View Full Version : phpadsnew integration?
TechTalk
03-08-2003, 04:59 AM
I am going for the same look as:
http://sitepointforums.com/forumdisplay.php?forumid=16
Anyone have a page that explains how to get phpadsnew integrated like this? I have seen the same ad setup on many sites and assumed it was a template hack someone release.
Thanks
TechTalk
03-08-2003, 03:24 PM
Bump.
Anyone use this site anymore?
TechTalk
03-08-2003, 11:09 PM
Man this site had turned to crap. Used to get a reply in a matter of minutes :(
Tigga
03-08-2003, 11:35 PM
I think it's more of a case that phpAdsNew is crap. Granted it has some nice features, but it adds 10+ queries to every page for each ad. That might be why nobody has spent too much time trying to integrate it. ;)
TechTalk
03-09-2003, 12:01 AM
You're killing me.
A lot of people use phpads new with theit vb forums, and I just need to know how to integrate it like they have on sitepoint. Notice how they only have the ads on the forum pages and not the main page? So its not a header thing...
VampireMan
03-09-2003, 01:26 AM
I use phpads new.
it has it's own db & doesnt add 10 querys to my vb site either.
most people go for the php intergration .. yeah that will add 10 querys to a site.
But this doesnt.... (in my header where $banner was going to be)
<script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://www.xxxxxxxxx.co.uk/phpads/adjs.php?n=a421fca7");
document.write ("&what=zone:2&target=_blank");
document.write ("&exclude=" + document.phpAds_used);
document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.xxxxxxxxx.co.uk/phpads/adclick.php?n=a421fca7' target='_blank'><img src='http://www.xxxxxxxxxx.co.uk/phpads/adview.php?what=zone:2&target=_blank&n=a421fca7' border='0' alt=''></a></noscript>
Dean C
03-09-2003, 01:08 PM
Sitepoint doesn't use phpadsnew. They use a modified version of this hack i believe:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=26818
Details on how to do something similar are outlined in posts in the thread somewhere.
- miSt
TechTalk
03-09-2003, 01:29 PM
I got it working by using php in the control panel.
Mist,
I think that hack adds the small images on the forum home page for each forum. I am taling about the big ads
rstark
03-09-2003, 08:46 PM
I got it working with the javascript code as well. For some reason, I couldn't get the PHP code working.
Dean C
03-10-2003, 04:02 PM
TechTalk - like i said it is a modification from that hack. i can guarentee it :)
- miSt
Tuan Le
08-30-2003, 11:38 AM
I'm bringing this thread back to life...... :bunny:
Does anyone happen to have step-by-step integration instruction how to get phpAdsNew to work with vBulletin version 3 Beta 4? Any help you can give me will be greatly appreciated.
I go phpAdsnew installed and configured for all the correct banners. I am hitting the wall on trying to figure how to get it integrated with vBulletin 3 beta 4. :(
Thanks
-Tuan
Dolby
08-31-2003, 02:10 AM
What needs to be integrated? Wouldnt you just add your Invocationcode to the templates you want your ads to show? Then if you dont want some people to see the adds use the Dynamic Templates hack by Logician.
gmarik
08-31-2003, 05:40 AM
Has something been done?
Tuan Le
09-02-2003, 01:41 PM
I got this added to the phpinclude_start
require("C:/../../phpadsnew/phpadsnew.inc.php");
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('', 0, '', '', '0', $phpAds_context);
$variable_name = $phpAds_raw['html'];
But not sure where I need to put the local invocation code generated by phpadsnew. Do you know where I need to put them? I would greatly appreciated if you can point me to the right direction. :confused: Thanks.
<?php
if (@include('C:/../../phpadsnew/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('', 2, '', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
?>
Skyline_GT
01-10-2004, 08:03 AM
<i>I want to know too..</i>
cnczone
02-01-2004, 06:51 PM
I use phpadsnew http://cnczone.com/index.php?s= .
bada_bing
02-16-2004, 12:53 PM
cnczone or someone.
Can you please post a step by step on how to intergrate pgpadsnew to vbulletin? I am using vportal with vbulletin and I want to add a zone on the top of vportal and the top of my main vbulletin forum and the bottom. Please help
cnczone
02-16-2004, 01:15 PM
Just use the code generator in phpadsnew and plave that code in the template.
bada_bing
02-16-2004, 01:29 PM
cnczone
Can you please be a bit more specific I am not a coder. Do I have to add a code to the templete for every banner?
Which template do I have to edit of I want banners to rotate on the top of my vportal and top and bottom of vbulletin?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.