The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Is there a possibility where I can place ads in some subsections of my forum and different ads in different subsections? Hypothetically speaking if I was running a gaming forum and I wanted xbox ads in the xbox section and PS3 ads in the PS3 section. No I am not running a gaming forum but this is just an example. Thank you in advance to anybody who can help.
By the way, I have this mod https://vborg.vbsupport.ru/showthrea...hreadid=203948 is it possible to do it using this mod? or even without it? Thank you. |
#2
|
||||
|
||||
![]()
You can use template conditionals in your templates:
Code:
<if condition="$forum['forumid'] == X">AD CODE</if> |
#3
|
|||
|
|||
![]()
where do you add it using the mod? any idea?
|
#4
|
|||
|
|||
![]()
I am having a very similar issue, except I want to do it on all forums for a usergroup - if that is possible, that would be awesome - other thing is, where do we add the code you gave us?
|
#5
|
|||
|
|||
![]()
The code would go into a few template depending on where you want the ads to show...
FORUMDISPLAY for a forum/ area SHOWTHREAD for the thread SHOWPOST for a single post view postbit or postbit_legacy for post contents --------------- Added [DATE]1234728769[/DATE] at [TIME]1234728769[/TIME] --------------- To change ads by usergroup you would use the code: Code:
<if condition="is_member_of($bbuserinfo, 5,10,20)> ads for groupds 5,10 and 20 <else /> <if condition="is_member_of($bbuserinfo, 40)> ads for 40 </if> </if> |
#6
|
|||
|
|||
![]()
Sorry for my noobness with this stuff but where in the FORUMDISPLAY does the code go? Also, do you require the VB AD management mod for this to work?
|
#7
|
|||
|
|||
![]()
It goes where you want it to go. If you want the ad at the top of the page it could under $navbar, if you want it at the end of the page it could go above $footer and on and on.
This is a conditional where you're manually placing code so no other addons or systems are needed. |
#8
|
|||
|
|||
![]() Quote:
If I just bypass it, nothing shows up. |
#9
|
|||
|
|||
![]()
My ads aren't showing up either, im putting them above $footer and nothing shows up.
|
#10
|
|||
|
|||
![]()
Have you changed the forum id to your forum IDs properly? Are you editing the same page you're looking at?
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|