vBulletin Modifications

Different banner on each forum

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > vBulletin Modification Requests

Reply
 
LinkBack Thread Tools
Old 08-17-2006, 03:35 AM   #1
vB User
MaxM's Avatar
Join Date: Jun 2006
MaxM is on a distinguished road

Question Different banner on each forum
Version: 3.6.x
Hack Category: Forum Display Enhancements

Hello Friends,

I need to know some code..like i want to display a ad on overall site. So, i added adcode in 'header' template.

Now, i want that this ad should not visible on a specific forum..eg. forum id=2

Please suggest some code how to do this??

I tried this code-
You must first be a registered member to view any code.
and it works fine but then it don't show ad on profiles, search page, ...etc.

I want some code like...if condition is that forum id is =xx no ad and on rest (like <else></else>) of the header ad should be visible




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 08-20-2006, 10:30 AM   #2
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

So basically
You must first be a registered member to view any code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-17-2007, 08:26 PM   #3
Kewlbie
Join Date: Jun 2007
Gorleanne is on a distinguished road

Default

Quote:
Originally Posted by Nick R View Post
So basically
You must first be a registered member to view any code.
This isn't working for me, or I'm doing it wrong. This is what I'm working with, sorry if it's way off... I'm a n00b.

You must first be a registered member to view any code.
Any help would be much appreciated.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-18-2007, 05:03 AM   #4
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

To read that out it's;
if the forumid found in the foruminfo array doesn't equal 4 then show the image blah blah blah.

What you probably want is:
if the forumid found in the foruminfo array does equal 4 then show the image blah blah blah.

Which would be;
<if condition="$foruminfo['forumid'] == 4"><img src="URL" alt="ALT TEXT" border="0" /></if>




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-18-2007, 01:35 PM   #5
Kewlbie
Join Date: Jun 2007
Gorleanne is on a distinguished road

Default

Quote:
Originally Posted by Nick R View Post
To read that out it's;
if the forumid found in the foruminfo array doesn't equal 4 then show the image blah blah blah.

What you probably want is:
if the forumid found in the foruminfo array does equal 4 then show the image blah blah blah.

Which would be;
<if condition="$foruminfo['forumid'] == 4"><img src="URL" alt="ALT TEXT" border="0" /></if>
Thank you very much. Like I said... *n00b*.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forum Display Ordering (User Control) xyz vBulletin 3.5 / 3.6 Hack Releases 14 07-20-2007 08:35 PM
Automatic send forum password after accept rules JollyJack vBulletin Modification Requests 3 08-17-2006 08:24 PM
Archive HDRebel88 vBulletin Modification Requests 2 07-29-2006 09:38 AM
Forum Gold ( money ) tuffkid vBulletin Modification Requests 13 05-21-2006 06:45 AM


All times are GMT -3. The time now is 10:42 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)