Go Back   vBulletin Setup > vBulletinSetup Information > Community Forum Management > Make Money with vBulletin

Reply 
 
LinkBack Thread Tools Display Modes
Old 06-30-2008, 11:24 AM   #1
vBulletin Owner
 
Join Date: Aug 2007
Posts: 21
otis will become famous soon enough
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)
otis is offline   Reply With Quote

Advertisement [Remove Advertisement]

Old 06-30-2008, 11:40 AM   #2
vBulletin Owner
 
Join Date: Aug 2007
Posts: 21
otis will become famous soon enough
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
otis is offline   Reply With Quote
Old 06-30-2008, 12:50 PM   #3
vBulletin Owner
 
Join Date: Aug 2007
Posts: 21
otis will become famous soon enough
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>"
otis is offline   Reply With Quote
Old 06-30-2008, 09:37 PM   #4
Community Manager
Supporters
vBulletin Owner
vBSetup Mods
 
Brandon Sheley's Avatar
 
Join Date: Jul 2006
Location: Topeka, KS
Posts: 14,110
Blog Entries: 35
Brandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to behold
Send a message via AIM to Brandon Sheley Send a message via MSN to Brandon Sheley Send a message via Yahoo to Brandon Sheley
Re: can someone help me figure out this conditional?

wish I could help
I'll be here for support
__________________
Brandon Sheley / vBulletinSetup Staff
Check the Newsletter & Marketplace for the latest deals.
Looking for a place to Support vBulletinSetup?
Submit your Forum and other Quality Websites.
Confirm your vBulletinSetup account / Read the-> Forum Rules
Are you on Twitter? @BrandonSheley I'm offering a few vBulletin Services & here is my General Forums experiment | Google fiber project

Brandon Sheley is nu online   Reply With Quote
Reply 
vBulletin Setup > vBulletinSetup Information > Community Forum Management > Make Money with vBulletin

Tags
conditional, figure

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
Diablo 3 action figure and website Business FOR SALE News Webmaster Auctions 0 06-08-2009 08:38 PM
Cant figure this out Cerberus Troubleshooting vBulletin Problems 5 09-05-2008 01:34 PM
How do you figure out where you are in the search engine listings? Soliloquy vBulletin SEO Tips and SEO Questions 16 08-06-2008 06:43 AM
How do you figure out what to charge for ads? Soliloquy Make Money with vBulletin 5 08-05-2008 12:37 PM
If conditional Anthony Make Money with vBulletin 1 03-25-2007 10:28 AM


All times are GMT -8. The time now is 08:38 PM.