vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   phpadsnew integration? (https://vborg.vbsupport.ru/showthread.php?t=49805)

TechTalk 03-08-2003 04:59 AM

phpadsnew integration?
 
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)

PHP Code:

 <script language='JavaScript' type='text/javascript'>
<!--
   if (!
document.phpAds_useddocument.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 ("&amp;what=zone:2&amp;target=_blank");
   
document.write ("&amp;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&amp;target=_blank&amp;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/showthrea...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

Code:

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.

Code:

<?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?


All times are GMT. The time now is 02:45 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01138 seconds
  • Memory Usage 1,756KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete