Go Back   vBulletin Setup > vBulletinSetup Information > Making Money Marketing vBulletin > vBulletin Programming & Coding

Why not Register and remove some of the ads from vBulletin Setup
Post New Thread  Reply



#1   03-11-2008, 11:47 AM
otis will become famous soon enough Join Date: Aug 2007 Posts: 17


i want to display a different button on my cmps page than on my forum home page. i've tried all the conditionals i could think of but i can't work it out. on the cmps page i want the button to read Forum and Home on the forum home page. i've searched everywhere and i haven't seen a conditional that involves a URL.. any ideas?

PHP Code:
<if condition="$show['guest']">
    
Show Guest This Message
<else />
    
Show Everyone but guests this message
</if> 
here's where i'm stuck

PHP Code:
<if condition= == "index3">
<
a href="index.php"><img src="./vB_Dark/images/buttons/home3.jpg" border="0" alt="Home Page" class="fog"></a></if> 

Last edited by ARealRedneck; 03-11-2008 at 12:45 PM. Reason: merged double post
Quote   |  



#2   03-11-2008, 01:28 PM
otis will become famous soon enough Join Date: Aug 2007 Posts: 17
Re: conditional url question ..


this didn't work either

PHP Code:
<if condition="THIS_SCRIPT != 'index3'">
            <
a href="index.php?><img src="./vB_Dark/images/buttons/home3.jpg" border="0" alt="Home Page" class="fog"></a>
            <else />
            <a href="
index3.php?><img src="./vB_Dark/images/buttons/forum.jpg" border="0" alt="Forum" class="fog"></a>
</if> 
Quote   |  



#3   03-11-2008, 03:01 PM
Michael Biddle is just really niceMichael Biddle is just really nice Join Date: Aug 2006 Posts: 1,514 Location: Anaheim, CA
Re: conditional url question ..


PHP Code:
<if condition="THIS_SCRIPT == 'adv_index'">portal code<else />regular code</if> 
--------------------
Do NOT PM me for Support!
Michael Biddle / 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.
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > Making Money Marketing vBulletin > vBulletin Programming & Coding


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
Help with Conditional in forumhome_forumbit_level2_post Morrow vBulletin Programming & Coding 0 04-20-2007 09:40 AM
Conditional to show "Get Firefox.." to IE users only marketprofits General Discussion 3 04-09-2007 05:09 AM
If conditional Anthony vBulletin Programming & Coding 1 03-25-2007 12:28 PM
Adsense Conditional soultrader vBulletin Questions 4 11-15-2006 12:29 PM


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

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