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)

Masiello 12-26-2005 06:16 PM

I add that code
HTML 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="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
        <td align="$stylevar[right]">
        <ad what="unks" />
                &nbsp;
        </td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

But when i try to save it, return me this:

HTML Code:

Database error in vBulletin 3.5.2:

Invalid SQL:

                        INSERT INTO vb3_template
                                (styleid, title, template, template_un, dateline, username, version, product)
                        VALUES
                                (1,
                                'header',
                                '<!-- logo -->\r\n<a name=\\\"top\\\"></a>\r\n<table border=\\\"0\\\" width=\\\"$stylevar[outertablewidth]\\\" cellpadding=\\\"0\\\" cellspacing=\\\"0\\\" align=\\\"center\\\">\r\n<tr>\r\n        <td align=\\\"$stylevar[left]\\\"><a href=\\\"\" . $GLOBALS[\'vbulletin\']->options[\'forumhome\'] . \".php\" . $GLOBALS[\'vbulletin\']->session->vars[\'sessionurl_q\'] . \"\\\"><img src=\\\"$stylevar[titleimage]\\\" border=\\\"0\\\" alt=\\\"\" . $GLOBALS[\'vbulletin\']->options[\'bbtitle\'] . \"\\\" /></a></td>\r\n        <td align=\\\"$stylevar[right]\\\">\r\n        \" . view_ad(\"unks\", \"0\", \"\", \"\", \"0\") . \"\r\n                &nbsp;\r\n        </td>\r\n</tr>\r\n</table>\r\n<!-- /logo -->\r\n\r\n<!-- content table -->\r\n$spacer_open\r\n\r\n$_phpinclude_output',
                                '<!-- logo -->\r\n<a name=\"top\"></a>\r\n<table border=\"0\" width=\"$stylevar[outertablewidth]\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\r\n<tr>\r\n        <td align=\"$stylevar[left]\"><a href=\"$vboptions[forumhome].php$session[sessionurl_q]\"><img src=\"$stylevar[titleimage]\" border=\"0\" alt=\"$vboptions[bbtitle]\" /></a></td>\r\n        <td align=\"$stylevar[right]\">\r\n        <ad what=\"unks\" />\r\n                &nbsp;\r\n        </td>\r\n</tr>\r\n</table>\r\n<!-- /logo -->\r\n\r\n<!-- content table -->\r\n$spacer_open\r\n\r\n$_phpinclude_output',
                                5756784532,
                                'admin',
                                '3.5.2',
                                'vbulletin');

MySQL Error  : Table 'lottosqueeze-org_5.vb3_template' doesn't exist
Error Number : 1146
Date        : Monday, December 26th 2005 @ 09:14:08 PM
Script      : http://www.lottosqueeze.org/forum/admincp/template.php
Referrer    : http://www.lottosqueeze.org/forum/admincp/template.php?s=&do=add&dostyleid=1&title=header&group=all&searchstring=&expandset=1
IP Address  : 87.3.252.86
Username    : admin
Classname    : vb_database

It seems try to save my Header template in the database of phpadsnew and not on vbulletin db

FROGGYJ 12-26-2005 06:26 PM

Great Mod! works great! I have setup my first zone in the header, but now I want to add another one perhaps just above the forums and below the shoutbox.....I know I just have to change the zone id...but I can't seem to find the right spot in the templates. I tried forumhome and forumdisplay just above $forumbits but that didn't work. Anyone know?

Masiello 12-26-2005 06:55 PM

I have solved my issue, Thanks anyway :) and thanks for this great tool

Masiello 12-26-2005 07:14 PM

Only a short question, But this tool work with a SQL Banner or not?

tanyeri24 12-28-2005 02:37 PM

Quote:

Originally Posted by tanyeri24
I getting this error if I put the <ad ..> tag on header template:
Fatal error: Call to a member function scalarval() on a non-object in /home/security/public_html/includes/lib-xmlrpc.inc.php on line 729

I have remote phpadsnew and copied the 2 files to my forum includes (describted like on your NOTES..)

Thx for helping in advance

hey dude you're not good enough the resolve it? please give only a short answer if you able to fix or not then can I look somewhere else..

FROGGYJ 12-28-2005 04:44 PM

Quote:

Originally Posted by Masiello
Only a short question, But this tool work with a SQL Banner or not?

works with mine...in fact doesn't matter what kind of banner.

Masiello 12-28-2005 05:04 PM

I dont show any banner, i solved this just copyng invocation code of phpAdsNew in my Header template, that's all, whitout using any product.

Trickle 12-28-2005 06:40 PM

I don't know about this one, it doesn't seem very newbie user friendly for me. My eyes are bugged eyed right now from reading about 300 pages of installation and I still can't get it to work. Anyone got a Dummies guide for this? I know I am soooo close I can smell it like a fart in the car on a hot august day. Once I create the new advertiser and upload the banner, I can't figuer out how to get it to show up in the linked zone section.

/edit
Making progress here. Bent and determined to figure this one out. I am now getting this error when I add the <ad what"zone:1" /> to the header

Warning: view_ad(/forums/includes/lib-xmlrpc-class.inc.php): failed to open stream: No such file or directory in /includes/init.php(273) : eval()'d code on line 68

Can anyone please tell me what that means. Be gentle I've just started doing VB in the last few weeks.

Trickle

Masiello 12-29-2005 05:33 AM

Put that library in to the includes directory of your forum, it is inside "libraries" directory of phpAdsNew, when you try again if it ask needing another libs, you find in the same "libraries" dir.

Trickle 12-29-2005 06:36 PM

So far I got it to work now. Or at least the banner appears. I guess the lesson I learned is to take breaks and refresh the mind. Getting pissed cause I couldn't figure it out only made things worse.

CHECK INSTALLED!!!


All times are GMT. The time now is 01:54 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.03380 seconds
  • Memory Usage 1,755KB
  • 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_html_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