The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to integrate phpadsnew ?
<a href="http://www.phpadsnew.com" target="_blank">www.phpadsnew.com</a>
Anyone know how to integrate this ads script into VB for me to sell banners ? Thanks ! |
#2
|
|||
|
|||
1) Install phpAdsNew
2) Setup ad campaigns and publisher 3) Get remove javascript invocation code from phpAdsNew 4) Put this invocation code wherever you want the banner to appear No integration needed... |
#3
|
||||
|
||||
If your forum is busy, I'd suggest you forget about phpadsnew. With experience I can say that it is killing the server in busy forums with untolerable CPU processes. (Sorry I don't have any alternative suggestion either!)
|
#4
|
|||
|
|||
Quote:
|
#5
|
|||
|
|||
Thanks guys for the information
vbmechanic - how do i change it to load the PHP ? Like you mentioned.... |
#6
|
|||
|
|||
Quote:
PHP Code:
echo $phpAds_raw['html']; instead set it to a variable like: $bannerad = $phpAds_raw['html']; Then wherever you want the banner ad to appear, you put $bannerad in your template. You can also load multiple ads this way, by calling this set of lines multiple times: $phpAds_raw = view_raw ('', 0, '', '', '0', $phpAds_context); $banneradtop = $phpAds_raw['html']; $phpAds_raw = view_raw ('', 0, '', '', '0', $phpAds_context); $banneradmiddle = $phpAds_raw['html']; $phpAds_raw = view_raw ('', 0, '', '', '0', $phpAds_context); $banneradbottom = $phpAds_raw['html']; Which would set 3 separate banner ad variables. As you might guess, the javascript invocation is easier.. hehe |
#7
|
|||
|
|||
I tried not to use the javascript method as you mention but when I put the code in index_header and header template, It didn't worked and I switch to the javascript method an it worked, by the way I'm running vbadvanced at my site, local mode worked when I put the variable $bannerad in the index template but I didn't know how to put the banner besides the vb logo so I switch to the header and index_header template but the banner didn't show, but as soon as I started using the javascript it worked.
What I'm doing wrong? I'm a lit bit worried about the javascript, will this bring me problems in the near future? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|