The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Using phpAdsNew with the Usergroup Specific Adverts Hack
https://vborg.vbsupport.ru/showthread.php?t=83081
Hi there, above is the Usergroup Specific Ads hack. I'm trying to get it to work with phpAdsNew so not only can I make sure that my paying users don't get ads, but also so those that don't pay get served the correct ad via phpAdsNew. I have to display the phpAdsNew code which is the following: PHP Code:
Quote:
|
#2
|
||||
|
||||
Put that Code in Hook global_start (without the php-Tags).
|
#3
|
|||
|
|||
I think that's what hellsatan said to do. I'll try again...
What do I put in the global_adverts template though? |
#4
|
||||
|
||||
Don't know, as I do not know what it would be for
Anyway, I'd suggest to remove th echo call. Doesn't make much sense as the output will be bufered and put into a variable anyway. |
#5
|
|||
|
|||
Fixed it
FYI -- if anyone asks again, there's a way to generate JavaScript code instead of using PHP in phpAdsNew. Using that means you don't have to edit the hack whatsoever and just put the phpAdsNew java code into the global_adverts template. Just like you'd put the GoogleAds code in there etc. |
#6
|
||||
|
||||
Yep. But I prefer local invocation
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|