Go Back   vBulletin Setup > vBulletinSetup Information > Making Money Marketing vBulletin


Please Register to get full access to the forums.
Post New Thread  Reply



#1   06-30-2008, 02:24 PM
otis will become famous soon enough Join Date: Aug 2007 Posts: 21
iTrader: (0)
can someone help me figure out this conditional?


the idea here is to make it so that when there' a new post ... a background will show up on forumhome behind the statusicons. i have a different statusicon for each forum and i'm using the class="X" variable to make this work ... only i can't figure out what conditional i need to make it work.

here is what i'm talking about in my forumhome_forumbit_level2_post

PHP Code:
    <if condition="$forum['forumid'] == 7"><td class="alt2"><img src="ftbfba/images/forumicons/5.gif" border="0" alt="" class="newpost" border="0"></td></if>
<if 
condition="$forum['forumid'] == 8"><td class="alt2"><img src="ftbfba/images/forumicons/6.gif" border="0" alt="" class="newpost" border="0"></td></if>
<if 
condition="$forum['forumid'] == 11"><td class="alt2"><img src="ftbfba/images/forumicons/9.gif" border="0" alt="" class="newpost" border="0"></td></if>
<if 
condition="$forum['forumid'] == 9"><td class="alt2"><img src="ftbfba/images/forumicons/7.gif" border="0" alt="" class="newpost" border="0"></td></if>
<if 
condition="$forum['forumid'] == 12"><td class="alt2"><img src="ftbfba/images/forumicons/10.gif" border="0" alt="" class="newpost" border="0"></td></if>
<if 
condition="$forum['forumid'] == 10"><td class="alt2"><img src="ftbfba/images/forumicons/8.gif" border="0" alt="" class="newpost" border="0"></td></if>
<if 
condition="$forum['forumid'] == 13"><td class="alt2"><img src="ftbfba/images/forumicons/11.gif" border="0" alt="" class="newpost" border="0"></td></if>
<if 
condition="$forum['forumid'] == 14"><td class="alt2"><img src="ftbfba/images/forumicons/12.gif" border="0" alt="" class="newpost" border="0"></td></if>
   </else> 
notice how in the first forum the background behind the statusicon is simply alt2 .. but in the second and 3rd forum there's a background shown. that would signify the forum has new posts.

i have this in my additional css

.newpost
{
background: #ACAC00 url(images/gradients/gradient_newpost.gif) repeat-x top left;
color: #000000;
}



what am i missing???
Attached Images
File Type: jpg bkg.JPG (6.4 KB, 3 views)
Quote   |  



#2   06-30-2008, 02:40 PM
otis will become famous soon enough Join Date: Aug 2007 Posts: 21
iTrader: (0)
Re: can someone help me figure out this conditional?


essentially it's the same as this hack but with a conditional thrown in somewhere

http://forum.vbulletinsetup.com/f58/...-bar-5514.html
Quote   |  



#3   06-30-2008, 03:50 PM
otis will become famous soon enough Join Date: Aug 2007 Posts: 21
iTrader: (0)
Re: can someone help me figure out this conditional?


i was thinking this might work but i haven't gotten it yet

PHP Code:
<td class="<if condition="vbphrase [forum_contains_no_new_posts]">alt2<else />newpost</if>"
Quote   |  



#4   07-01-2008, 12:37 AM
Send a message via AIM to Brandon Send a message via MSN to Brandon Send a message via Yahoo to Brandon Brandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of light Join Date: Jul 2006 Posts: 11,287 Location: Topeka, KS
iTrader: (0)
Submit your RSS feeds to over 58 search engines and top directories
Re: can someone help me figure out this conditional?


wish I could help
I'll be here for support
--------------------
Brandon Sheley / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.


Add our Facebook Blog, Group and LinkedIn group.. Thanks
Stay up to date by installing our Tool Bar
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > Making Money Marketing vBulletin


Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
conditional url question .. otis Making Money Marketing vBulletin 2 03-11-2008 04:01 PM
Help with Conditional in forumhome_forumbit_level2_post Morrow Making Money Marketing vBulletin 0 04-20-2007 10:40 AM
Conditional to show "Get Firefox.." to IE users only marketprofits General Discussion 3 04-09-2007 06:09 AM
If conditional Anthony Making Money Marketing vBulletin 1 03-25-2007 01:28 PM
Adsense Conditional soultrader vBulletin Questions 4 11-15-2006 01:29 PM


All times are GMT -6. The time now is 02:48 AM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions
vBulletin Skins, Styles, Templates, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory