MyBB Community Forums

Full Version: Condition and vb navbar for 1.20
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
LOL Big Grin I was just about to say - it was quite easy to find the changes, but it seems most people want the file straight out. Glad to see someone take the initiative to find their own solution too! Smile Thanks to PsX2X for providing the new download (will update links in my posts)

Since he/she pointed it out, for anyone who's wondering, it's the addition of

// ###################### Start iif #######################

function iif($expression, $returntrue, $returnfalse = '')

{

    return ($expression ? $returntrue : $returnfalse);

}

// #############################################

after the last comment
Quote:*/
at the start of the function.php file.
Well, can someone provide me with the original codes? Reason being is I did everything the first post told me to do and ended up with this:

Fatal error: Call to undefined function: generate_post_check() in /home/www/pokelounge.com/forums/global.php on line 46
Some of the changes in the first post don't work with the latest version (1.2.12) of MyBB anymore. Please try: http://community.mybboard.net/showthread...#pid179452
Anybody know how I can change the background color to have it something other then Alternating Table Rows and Table sub headers?
[Image: __-lolaolaola.jpg]
Thanks
I hope I've understood the question correctly, but it seems that making edits to the template changes (from post 1) might help with adding additional colours.

The template uses alot of '{$bgcolor}' and 'trow1' 'trow2' etc.
Hmm... I'm still now sure how I'd change the colors, though. That's all PHP in the template, right?

Could someone give me an example?

thanks much
I really hope I've understood what you're asking. If we take a bit the first 'code edit' from the initial post:
<tr>
<td class="{$bgcolor}" align="center" valign="middle"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" /></td>
<td class="{$bgcolor}" valign="middle">

Here we can see that the TD class is defined to be a particular background colour.

If one then moves further down to the Breadcrumb section

<table cellpadding="5" cellspacing="0" width="100%">
<tr>
<td class="tcat">{$welcomeblock}</b></a></td>
<td class="tcat" align="center"><a href="{$mybb->settings['bburl']}/index.php"><b>Index</b></a></td>

The TD class is defined as 'tcat', so any colour set in the CSS for 'tcat' will be called when this 'welcomeblock' is displayed.

Sorry if I've got the completely wrong end of the stick!
But I don't want the "tcat" background color to change... just the navigation.
Is there a new functions.php file for 1.2.13

Because I just upgraded to it and now the navbar doesn't work right. I was using the Black Rose theme... http://community.mybboard.net/showthread...154&page=1

Edit:
I got it to work with the last functions file that was posted, for 1.2.12 I think. But now some functions don't work, like deleting posts....
Aaah good old fashion copy/paste Toungue
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17