News:

We have *Free* SMF 2.0 & 2.1 Themes for Download and Support!

Main Menu

Recent Topics

Members
Stats
  • Total Posts: 10,749
  • Total Topics: 1,374
  • Online today: 708
  • Online ever: 879
  • (Jan 21, 20, 05:49:15 PM)
Users Online
Users: 0
Guests: 681
Total: 681

Manual Mod Edits in Black Rain...

Started by sdkid, Dec 26, 10, 03:46:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sdkid

Hey Crip...

I'm using BlackRain at http://greatplainsvoices.com.  I made small css color changes to it, and the Members seem happy with it! :) 

I've been hitting some snags with mods though, as some of your code is substantially different than what the mod expects to find in various files.  Example: I want to add a mod called "good Post/Bad Post" (here: http://custom.simplemachines.org/mods/index.php?mod=1890) and I am having trouble doing some manual edits since the auto install failed. 

This "seems" to be a sticking point, and I have no clue how to make it work:

In /Theme/Default/DisplayTemplate.php... one of the edits is this:

find:
<div class="', $message['approved'] ? ($message['alternate'] == 0 ? 'windowbg' : 'windowbg2')

Replace with:
<div', $gpbp_action == 'hide' ? ' id="gpbp_hidden_' . $message['id'] . '"' : '' ,' class="', $message['approved'] ? ($gpbp_action == 'hide' ? 'gpbp_hider ' : '') . ($gpbp_badPost && $gpbp_action != 'none' ? 'gpbp_greyed' : ($message['alternate'] == 0 ? 'windowbg' : 'windowbg2'))

The code used in BlackRain (I think??) is:
         <div class="clearfix ', !$is_first_post ? 'topborder ' : '', $message['approved'] ? ($message['alternate'] == 0 ? 'windowbg' : 'windowbg2') : 'approvebg', ' largepadding">';

What do you think?
Should I be using a different version of Black Rain?  Is there a newer version that is a bit more "mod friendly"?  Am I doing something else really wrong here? Sorry in advance for my code-lameness! 

thanks for looking.   O0

Crip

I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

Crip

Demo of BR_Alt Curve templates not Core templates may be easier with mods.

RC4:'
http://www.jpr62.com/demos/index.php?theme=38
I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

sdkid

Oops--- yeah sorry-- RC4.  Probably helps if I'd tell you what the hell I'm running.   :uglystupid2:

ZarPrime

sdkid,

Crip is saying that the Blackrain_alt theme may be easier to edit for Mods if you are using SMF 2.0 RC4 because it is based on the SMF 2.0 Curve templates --> New Blackrain_alt for 2.0 RC4 Curve Alternative version!

Right now, the Blackrain_alt theme  is only available for download at the SMF Themes site at this link --> http://custom.simplemachines.org/themes/index.php?lemma=118

ZarPrime


Crip

I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

sdkid

Just a little update...

I got my forum up to RC5, and I am using DarkModern now.  AWESOME theme there Crip.  I have advanced reputation system running now, and everything seems smooth as silk! Great job on that theme.