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)

Mythotical 11-19-2005 12:07 AM

Hi,

I am having problems seriously. I don't understand this whole setting up of a banner rotation. I have followed each image and still nothing, I have changed from relative to absolute path, I have followed all suggestions and still nothing. Help please.

http://www.vbrenegades.com/vbr.php it should be showing up aligned to the right.

Thanks
Myth

Erox 11-19-2005 12:54 AM

Beee-yoo-ti-ful!
I had my own makeshift banner ad server (that no longer works in 3.5), this is just what the doctor ordered. Thanks!

dutchbb 11-19-2005 08:58 AM

Thank you for this plugin.

Can you help me out with a error message? I get this error:

Code:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xch1295/domains/dutchbodybuilding.com/public_html/gallery/photopostpal.php on line 71
This is on line 71:
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {

photopostpal is a script that shows thumbnails from photopostgallery on my forumhome...

My board: http://forum.dutchbodybuilding.com/

The M.I.P. 11-19-2005 11:03 AM

Quote:

Originally Posted by Mythotical
I am having problems seriously. I don't understand this whole setting up of a banner rotation. I have followed each image and still nothing, I have changed from relative to absolute path, I have followed all suggestions and still nothing. Help please.

http://www.vbrenegades.com/vbr.php it should be showing up aligned to the right.

Your script doesn't seem to call the view_ad function plugin, which resides on hook init_startup.
Make sure the plugin is enabled and the hook exists in you script.
As your script isn't part of original vBulletin, I can't give further free support.

Quote:

Originally Posted by Triple_T
Can you help me out with a error message? I get this error:

Code:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xch1295/domains/dutchbodybuilding.com/public_html/gallery/photopostpal.php on line 71
This is on line 71:
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {

photopostpal.php isn't part of original vBulletin - contact the author of this script for support.
Check the SQL query some lines before ($result=...), the problem seems to start there.

@Third party developers:
If using this product in your scripts, make sure the init_startup hook exists (required for the calls to the view_ad function plugin).

dutchbb 11-20-2005 07:43 AM

Quote:

Originally Posted by The M.I.P.
photopostpal.php isn't part of original vBulletin - contact the author of this script for support.
Check the SQL query some lines before ($result=...), the problem seems to start there.

@Third party developers:
If using this product in your scripts, make sure the init_startup hook exists (required for the calls to the view_ad function plugin).

I understand but photopost says the same "we can't help because you're using a hack" :(

Maybe you can help, this is before/after the problem lines in the file:
Code:

$resultb = mysql_query("SELECT id,ugnoview FROM {$pp_db_prefix}categories");
    $ViewPerm = array();
    while ( list( $catugid, $ugnoview ) = mysql_fetch_row($resultb) ) {
        $noview=0; $ViewPerm[$catugid] = 1;

Code:

$query = "SELECT p.id,p.user,p.userid,p.cat,p.bigimage,p.height,p.width,c.catname,c.photos,c.posts
                        FROM {$pp_db_prefix}photos p
                        LEFT JOIN {$pp_db_prefix}categories c ON c.id = p.cat
                        WHERE c.cattype = 'c' AND p.cat != 500 AND p.storecat = 0
                        ORDER BY RAND()";
}
$result = mysql_query($query);

$counted = 0; $countcol = 0; $featured = "";

while (list($pid,$puser,$puserid,$pcat,$photo,$height,$width,$catname,$cphotos,$cposts) = mysql_fetch_row($result)) {
 
    if ( $ViewPerm[$pcat] == 1 ) continue;

Any clue?

The M.I.P. 11-20-2005 02:06 PM

@Triple_T:
I can't see any interrelation of your problem with this phpAdsnew integration.
Nevertheless, your cited code above doesn't show the line where variable $result is assigned (there's only a similar $resultb variable), so the context of the problem is not clear. As Photopost is closed source and I don't have access to it, I can't look for it by myself.

I really doubt, that your problem has anything to do with this phpAdsNew plugin.
To be sure that this is no problem of this product, uninstall phpAdsNew integration completely and don't forget to remove the <ad .. /> tag from your templates.

dutchbb 11-20-2005 02:47 PM

When I remove the <ad /> tag , the problem is gone so it has something to do with it.
The phpadsnew javascript code I normally use doesn't cause the error to show.

Photopost says the hack conflicts with the PP script in some way

Attached is the complete PP script file, can you take a look please?
Thanks!

Sleazy 11-21-2005 03:57 PM

I got the <ad /> tag to display all the banners in my inventory, but using any sort of variable such like zones, client id, etc doesn't work so I can't specify certain ads to display.

The code I am using is:
<ad what="zone:1" />

Anyone else having this problem?

Sidewindr 11-22-2005 04:20 AM

I can only get the xml display working (which I don't want to use) and the absolute path for direct invocation to my phpAdsNew causes the site to fail.

I cannot use XML as the resulting CPU load kills the forums.

It also appears that only the first argument after <ad is noticed..

For instance

<ad what="zone:4" clientid="6" \> returns random banners from zone:4

however

<ad clientid="6" \> returns the banner for client 6 every time.

kafi 11-26-2005 08:18 PM

I would like to use left column on my forumhome in which I want to place small banners.

I am using phpadsnew for banners delivery with this integration hack (works good for me ). I am using tag system in templates:
<ad what="zone:8" />

Since currently I have 4 small banners next to each other vertically I am not worried about their place, because it's quite equal.
Once i will move them to column some of the advertiser might be upset about vertical position of his banner ...1st 2nd 3rd from the top.

Is there a trick that will randomly switch these banner's position at refresh?

Thank you!


All times are GMT. The time now is 02:44 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.01685 seconds
  • Memory Usage 1,753KB
  • 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
  • (4)bbcode_code_printable
  • (3)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