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)

The M.I.P. 12-03-2005 04:38 AM

@Triple_T:
I'll have a look at it. Meanwhile, please use a separate DB connection as told in the comments in your inc_feeatures.php file.

@Xstreamist:
If your banner's don't rotate, please first check your phpadsnew setup - it might fall back into displaying a default ad when setup is not correct.
If you're sure that it's not directly related to phpadsnew, then switch vbulletin into debug mode or enable the display of template names in HTML and tell me exactly what is displayed between BEGIN ad and END ad HTML comments.
Also make sure that your browser doesn't cache your banners during your test phase.

@toxin:
It looks like the plugin isn't able to include the phpadsnew code. Please check if the path to you phpadsnew installation is set correctly and phpadsnew works cleanly outside of vbulletin.

@all:
When reporting problems, please also specify the PHP version and the OS you're using.

dutchbb 12-03-2005 07:57 AM

Quote:

Originally Posted by The M.I.P.
@Triple_T:
I'll have a look at it. Meanwhile, please use a separate DB connection as told in the comments in your inc_feeatures.php file.

Hm i'm not sure what you mean. Photopost provides/suggests the option to place it's tables in the vbulletin database when you first install it. I have used that option but there is no way back now. I don't see what else I could do...
Thanks again

toxin 12-03-2005 12:54 PM

Quote:

Originally Posted by The M.I.P.
:

@toxin:
It looks like the plugin isn't able to include the phpadsnew code. Please check if the path to you phpadsnew installation is set correctly and phpadsnew works cleanly outside of vbulletin.

yes, phpadsnew is working correctly outside of vBulletin.

My website directories are:
DOC ROOT: /home/httpd/vhosts/mydomain.com/httpdocs/
VBULLETIN: /home/httpd/vhosts/mydomain.com/httpdocs/forums/
PHPADSNEW: /home/httpd/vhosts/mydomain.com/httpdocs/adserver/
so I have used /adserver as the path in the vBulletin Server Settting and Optimization.

Xstreamist 12-03-2005 02:15 PM

Quote:

Originally Posted by The M.I.P.
@Xstreamist:
If your banner's don't rotate, please first check your phpadsnew setup - it might fall back into displaying a default ad when setup is not correct.
If you're sure that it's not directly related to phpadsnew, then switch vbulletin into debug mode or enable the display of template names in HTML and tell me exactly what is displayed between BEGIN ad and END ad HTML comments.
Also make sure that your browser doesn't cache your banners during your test phase.

Where do I look for the BEGIN ad and END ad ?
My browser isn't caching banners.

Here is how I am trying to add the phpAdsNew code:

Quote:

<!-- banners -->

<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">

<tr>
<td align="center">
<ad what="zone:1" />
</td>
</tr>
</table>

<!-- /banners -->
I am trying to add it to the Header template right after the logo. But when I do the banner only shows on the front page and no where else. When I try to add it to the Navbar template it will add it abve the Navbar but within the same table as the Navbar and only on the front page and the View Threads Page, not the View Posts page.

djsydeburnz 12-03-2005 03:13 PM

first off, let me say that this is looking to be something i can use greatly, thanks! second, let me apologize in advance if my questions have allready been asked and answered. i did breeze through the number of posts with no luck.

1) with phpAdsNew, i logged in as a client and didnt see a way for me to add banners that way, only logged in as admin. did i miss a setting in pan?

2) it seems that my default banner doesnt like to display (the one in the default banner settings)

3) when i tried adding google adsense through pan, it displays the script on the main page of the admin, and you can click on the link next to it to show the actual banner. i thought i was good to go, then when i went to my site, it is trying display the default banner only which shows a broken image. even now after i have delted the google banner. not sure what i did.

4) has anyone got a setup that would allow to use some sort of payment system through vb that would give someone access to adding banner campaigns??

thanks in advance

***on a side-note, i had an idea to reduce the amount of sifting through a multi page post to find q & a. a cool plugin for this type of site might be to have a second post directly under the original post that houses only FAQs from the post. maybe it would look a bit like hybrid mode display.

The M.I.P. 12-03-2005 03:46 PM

Hi Toxin,
Quote:

Originally Posted by toxin
My website directories are:
DOC ROOT: /home/httpd/vhosts/mydomain.com/httpdocs/
VBULLETIN: /home/httpd/vhosts/mydomain.com/httpdocs/forums/
PHPADSNEW: /home/httpd/vhosts/mydomain.com/httpdocs/adserver/
so I have used /adserver as the path in the vBulletin Server Settting and Optimization.

since version 1.0.1 of this plugin, the path to a local phpAdsNew is a "normal" filesystem path.
So in your case, the correct setting in vBulletin options is either /home/httpd/vhosts/mydomain.com/httpdocs/adserver or ../adserver. I'd prefer using an absolute path (the former one), even though a relative one (the latter one) is easier to type.

@Xstreamist:
I currently have no time to check, but I'll have a look at it after weekend.

@djsydeburnz:
When logged in as phpAdsNew admin, you have to add appropriate rights (zones, etc.) to the client. Please have a look at the excellent phpAdsNew handbook.

@Triple_T:
Regarding the temporary solution, have a look at lines 25,26 of your attached inc_features.php.
Fill in the DB settings of your Photopost database (or your vbulletin database when Photopost tables are inside vBulletin database; in line 25 replace $dbuserid with your db username, $dbuserpassword with the db password and in line 26 pp_database with the correct db name) and uncomment these lines in your original inc_features.php.
This makes Photopost use a separate db connection and should solve the problems you mentioned above.
I'm still trying to get my hands around a recent Photopost version to be able to check it out and present a clean solution.

djsydeburnz 12-03-2005 04:20 PM

there is alot of documentation that i read through last night. i just dont understand how it worked for a day, now it doesnt.

toxin 12-03-2005 04:28 PM

Quote:

Originally Posted by The M.I.P.
Hi Toxin,
since version 1.0.1 of this plugin, the path to a local phpAdsNew is a "normal" filesystem path.
So in your case, the correct setting in vBulletin options is either /home/httpd/vhosts/mydomain.com/httpdocs/adserver or ../adserver. I'd prefer using an absolute path (the former one), even though a relative one (the latter one) is easier to type.

Both paths give the same error:
Database error in vBulletin 3.5.1:

Invalid SQL:
SELECT pageid, title, name, parentid, userperms FROM adv_pages WHERE active = 1 ORDER BY displayorder;

MySQL Error : Table 'phpadsnew.adv_pages' doesn't exist
Error Number : 1146
Date : Saturday, December 3rd 2005 @ 06:24:43 PM
Script : http://www.mydomain.com/?
Referrer : http://www.mydomain.com/forums/forumdisplay.php?f=25
IP Address : 62.252.0.7
Username : admin
Classname : vb_database

toxin 12-03-2005 08:25 PM

ok, I've fixed it.

I was running PAN in its own database; when I merged it into the main vB database everything started working..

tgmorris 12-03-2005 09:39 PM

I've installed this and am running into the same problem that toxin had. My PAN (2.0.7) is in a separate db and runs fine on my existing forum. I'm in the process of brining up 3.5.1 on my test forum and getting PAN to work. If I try to specify an absolute path to the PAN directory I get a db error. The only way I get it to work is by using xml-rpc.

I guess the question is pretty simple at this point...

Does PAN need to be using the vb database to be considered a 'local' install?

If so, what would it take to allow for it to be on the same server but using a different db?


All times are GMT. The time now is 01:41 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.01554 seconds
  • Memory Usage 1,757KB
  • 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
  • (6)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