vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   phpAdsNew Banner Ads integration (advertisements, classified ads, Adsense, etc.) (https://vborg.vbsupport.ru/showthread.php?t=100229)

Puntoboy 12-31-2005 02:53 PM

i'm quite new to all this, how do i install the xml file?

kevinrstruck 01-02-2006 07:38 PM

I have this working but I am not sure of one thing:

I am using a affiliate program for a company that using Kolimbo.com to run their program.

The code they give me to produce the banner looks like this:

Code:

<A href="?kbid=62123&sub=153310&img=Adorama-468x60.gif" onmouseover="window.status='http://www.adorama.com';return true;" onmouseout="window.status=' ';return true;" target="_blank"><img src="http://www.adorama.com/banners/affil/Adorama-468x60.gif" border=0></a><img src="http://www.myaffiliateprogram.com/u/adorama/showban.asp?id=62123&sub=153310&img=Adorama-468x60.gif" border=0>
How in the heck would I put this code in to PAN?

Then again, maybe this is a question best answered over at the PAN support area, but I figured maybe someone here may be able to help.

Great plugin by the way...Nice job.

kevinrstruck 01-02-2006 07:41 PM

Quote:

Originally Posted by Puntoboy
i'm quite new to all this, how do i install the xml file?

VB CP -> Plugin System -> Manage Products -> Add/Import Product

There you can browse to the copy of the XML file you downloaded and save to your local machine then click IMPORT.

Puntoboy 01-02-2006 07:43 PM

thanks, i never had that option until i upgraded to 3.5.2 today.

kevinrstruck 01-02-2006 08:59 PM

No problem. Glad I could help.

FROGGYJ 01-02-2006 09:47 PM

@Kevinstruck

You can copy that whole code right into your "html" banner. Then also copy the href part into the href section in PAN.

kevinrstruck 01-03-2006 01:17 AM

Well, I thought I had this working.

Using the <ad.../> tags, I can not get a banner to display. Using the direct code from PAN, the banners display.

I installed PAN outside my forums directory in the root so I could use it on my portal as well.

I tried an URL in the Server Setting and Opt screen and uploaded lib-xmlrpc-class.inc.php and lib-xmlrpc.inc.php into the forums/includes folder to see if that would work but it would not.

I then tried a full path:

/home/thephoto/public_html/adserver

But that did not work.

I then tried ../adserver

but that did not work either.

Again, I tested PAN and it is serving ads on both a test page and with the direct code (Javascript) pasted into my header.

Anyone have any suggestions?

tgmorris 01-03-2006 01:44 AM

Make sure you've done what was posted a few pages back...
Quote:

Please make sure to have set $phpAds_config['compatibility_mode'] = true; in phpAdsNew config file, as this resolves problems with a local phpAdsNew installation when phpAdsNew's tables are in a database different from the one used by your vBulletin board.
Once I did that it worked fine with my PAN in a separate db.

kevinrstruck 01-03-2006 01:53 AM

Yes, I did that.

Here is my config file:

Code:

// Database local connection using sockets
$phpAds_config['dblocal'] = false;

// Database hostname
$phpAds_config['dbhost'] = 'localhost';

// Database port
$phpAds_config['dbport'] = 3306;

// Database username
$phpAds_config['dbuser'] = 'xxxxx';

// Database password
$phpAds_config['dbpassword'] = 'xxxxx';

// Database name
$phpAds_config['dbname'] = 'thephoto_adserver';

// Database table name prefix
$phpAds_config['table_prefix'] = 'phpads_';

// Database table type
$phpAds_config['table_type'] = 'MYISAM';

// Use persistent connections to the database
$phpAds_config['persistent_connections'] = true;

// Use INSERT DELAYED in logging functions?
$phpAds_config['insert_delayed'] = true;

// Database compatibility mode to insure phpAdsNew
// won't disturb an available database connection
$phpAds_config['compatibility_mode'] = true;



/*********************************************************/
/* phpAdsNew configuration                              */
/*********************************************************/

// The URL to your phpAds-installation
$phpAds_config['url_prefix'] = 'http://www.thephotostation.net/adsever/';

// Is the admin interface enabled
$phpAds_config['ui_enabled'] = true;

// Only allow access to the admin interface if SSL is used
$phpAds_config['ui_forcessl'] = false;


kevinrstruck 01-03-2006 02:00 AM

Another issue: When I add the tag, I get a blank screen on my forums. When I take the ad code out, the forums come up normally.

Here is the ad code I am trying to use:

<ad what="zone:2" />


My Header Template is:
Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td align="$stylevar[left]"><a href="$vbpoptions[portalhome]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
        <td align="$stylevar[right]">
                    &nbsp;
<!--
  NEW HEADER &amp; NAVBAR

  Now that the nav buttons are in the
  navbar template, you can stick whatever
  you like into this space.

  This makes it much easier for novice
  admins to customize their header
  template without affecting important
  navigation elements.
-->
        </td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

My path to PAN in Server Settings and Opt is:

/home/thephoto/public_html/adserver
I hope I have included enough info for someone to figure this out for me.


All times are GMT. The time now is 03:13 PM.

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.01286 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete