Current time: 05-22-2012, 11:49 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 2 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Condition and vb navbar for 1.20
01-21-2008, 03:59 PM
Post: #121
RE: Condition and vb navbar for 1.20
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

Code:
// ###################### Start iif #######################

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

{

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

}

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

after the last comment
Quote:*/
at the start of the function.php file.

Current motto: Cross referencing threads by providing links is a good idea!

Back-on Online - Back-on Fansite
http://www.backon-online.com/

WordPress Snippets
http://www.wpsnippets.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
03-26-2008, 11:41 PM
Post: #122
RE: Condition and vb navbar for 1.20
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

[Image: premium_mybb_themes-500x100.png]
Find all posts by this user
Quote this message in a reply
03-26-2008, 11:43 PM
Post: #123
RE: Condition and vb navbar for 1.20
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

Current motto: Cross referencing threads by providing links is a good idea!

Back-on Online - Back-on Fansite
http://www.backon-online.com/

WordPress Snippets
http://www.wpsnippets.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
04-15-2008, 02:47 AM (This post was last modified: 04-15-2008 02:47 AM by Snowy.)
Post: #124
RE: Condition and vb navbar for 1.20
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

pwnt.
Visit this user's website Find all posts by this user
Quote this message in a reply
04-15-2008, 04:49 AM
Post: #125
RE: Condition and vb navbar for 1.20
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.

Current motto: Cross referencing threads by providing links is a good idea!

Back-on Online - Back-on Fansite
http://www.backon-online.com/

WordPress Snippets
http://www.wpsnippets.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
04-21-2008, 02:45 AM
Post: #126
RE: Condition and vb navbar for 1.20
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

pwnt.
Visit this user's website Find all posts by this user
Quote this message in a reply
04-21-2008, 03:17 AM
Post: #127
RE: Condition and vb navbar for 1.20
I really hope I've understood what you're asking. If we take a bit the first 'code edit' from the initial post:
Code:
<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

Code:
<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!

Current motto: Cross referencing threads by providing links is a good idea!

Back-on Online - Back-on Fansite
http://www.backon-online.com/

WordPress Snippets
http://www.wpsnippets.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
04-22-2008, 10:01 PM
Post: #128
RE: Condition and vb navbar for 1.20
But I don't want the "tcat" background color to change... just the navigation.

pwnt.
Visit this user's website Find all posts by this user
Quote this message in a reply
06-03-2008, 05:21 AM (This post was last modified: 06-03-2008 05:24 AM by Drew.)
Post: #129
RE: Condition and vb navbar for 1.20
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....
Find all posts by this user
Quote this message in a reply
06-03-2008, 10:41 AM (This post was last modified: 06-03-2008 10:41 AM by dikidera.)
Post: #130
RE: Condition and vb navbar for 1.20
Aaah good old fashion copy/paste Toungue

"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - J.D Salinger
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication