The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have banner ads on the forum which I have put from admincp > advertising.
I also have a vbCMPS homepage. But I don't want these ads to show up on the home page, while I want them to show up on all other pages (like they currently are). So how to remove these ads just from the vbCMPS homepage? |
#2
|
||||
|
||||
![]()
Perhaps wrap the ad code in a conditional.
Code:
<vb:if condition="THIS_SCRIPT != 'vbcms'"> add code here </vb:if> |
#3
|
||||
|
||||
![]()
I think he may be talking about the vbadvanced CMPS in which case I have no idea what THIS_SCRIPT is set to for their page. You will need to look it up on the php file.
|
Благодарность от: | ||
ozzy47 |
#5
|
|||
|
|||
![]() Quote:
Where should I put this code? In the advertising place where I put the banner code? What is the meaning of this code? Does your code mean that the ads should not be displayed in adv_index? |
#6
|
||||
|
||||
![]()
Yes, you wrap the code you added in the advertising with that conditional. Yes, it means the ad should not display on the vBAdvanced page.
|
#7
|
|||
|
|||
![]()
This successfully worked.
Now what, I want to do is display separate (different) banners on the vBAdvanced CMPS. Is that possible to do? I put ozzy47's code in the advertising area above all the banner codes and it successfully removed the banners from the home page. Now I want to display banners on this home page which are different from other pages. Which vBAdvanced CMPS file will I have to edit and put the banner code there for it to be displayed on the top of the home page? |
#8
|
||||
|
||||
![]() Code:
<vb:if condition="THIS_SCRIPT == 'adv_index'"> add code here </vb:if> |
#9
|
|||
|
|||
![]() Quote:
I am using the code you posted in post 4 and it did what I wanted it to i.e display banners on all pages EXCEPT the home page. Now I want to put banners on the home page as well but different from the ones that are currently on all other pages. For example, When you go to mysite.com, you will see vBAdvanced CMPS home page and banner A there. Then you go to mysite.com/forum, you will see the forum and banner B, banner C there. This is what I want to do. Currently there are banner B and C on mysite.com/forum and there is nothing on the home page (since I put that code of yours). But now I want to display banner A on the home page. Do you understand what I'm trying to do? |
#10
|
||||
|
||||
![]()
It is slightly different, the first one don't show the ads on the vBAdvanced page THIS_SCRIPT != 'adv_index' the second one shows the ads on the vBAdvanced page THIS_SCRIPT == 'adv_index'
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|