Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-08-2005, 05:58 AM
flstreetscene flstreetscene is offline
 
Join Date: Sep 2003
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default phpAdsnew

Can this software be run on 3.5 using local mode invocation? If so how do I go about this? I've been searching continiously between here, vbulletin.com, and phpads forums and found no answer.
Reply With Quote
  #2  
Old 09-08-2005, 06:16 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't try it, but as it was possible in 3.0 it should be possible in 3.5 as well - Hook global_start seems to be a good place.
Reply With Quote
  #3  
Old 09-08-2005, 06:27 AM
mikexxx mikexxx is offline
 
Join Date: Aug 2004
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you mean phpadsnew? I use this plugin and it works fine. Just edit your templates where you want the ads. (and if you have more zones you have to ad them)
Attached Files
File Type: xml vbulletin-plugins.xml (932 Bytes, 91 views)
Reply With Quote
  #4  
Old 09-08-2005, 05:00 PM
flstreetscene flstreetscene is offline
 
Join Date: Sep 2003
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sorry but what code goes where?

When I import that plugin it comes back with an SQL error;

Code:
MySQL Error  : Table 'florida_phpads.session' doesn't exist
Reply With Quote
  #5  
Old 10-01-2005, 05:14 AM
MrWee's Avatar
MrWee MrWee is offline
 
Join Date: Jan 2004
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also get the "MySQL Error : Table 'XXXXX_phpads.session' doesn't exist" error.

In fact, i get 2 SQL on the same page.

Before the upgrade to 3.5, it worked fine, and after the upgrade, I copied and pasted the exact code from the phpinclude_start template into a plugin with the global_start hook.

This is the code
Code:
if (@include('/var/vhosts/com/s/i/s/sistersofbreastfeeding/htdocs/_/adserver/phpadsnew.inc.php')) {
        if (!isset($phpAds_context)) $phpAds_context = array();
        $phpAds_raw = view_raw ('zone:4', 0, '_blank', 'http://sistersofbreastfeeding.com', '0', $phpAds_context);
        $banner = $phpAds_raw['html'];
}
these are the errors:
Code:
Database error in vBulletin 3.5.0:

Invalid SQL:

		SELECT
			user.username, (user.options & 512) AS invisible, user.usergroupid,
			session.userid, session.inforum, session.lastactivity,
			IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
		FROM session AS session
		LEFT JOIN user AS user ON(user.userid = session.userid)
		WHERE session.lastactivity > 1128146372
		ORDER BY username ASC;

MySQL Error  : Table 'sisters_adserver.session' doesn't exist
Error Number : 1146
Date         : Friday, September 30th 2005 @ 11:14:32 PM
Script       : http://www.sistersofbreastfeeding.com/boards/index.php?
Referrer     : http://www.sistersofbreastfeeding.com/boards/online.php?order=asc&sort=username&pp=20&page=1
IP Address   : 24.16.63.220
Username     : MrWee
Classname    : vb_database
Code:
Database error in vBulletin 3.5.0:

Invalid SQL:

					UPDATE session
					SET lastactivity = 1128147272, location = '/boards/index.php?', inforum = 0, inthread = 0, incalendar = 0, badlocation = 0
					WHERE sessionhash = '44b217e04e55e3ca3491ffed6ee9020b';

MySQL Error  : Table 'sisters_adserver.session' doesn't exist
Error Number : 1146
Date         : Friday, September 30th 2005 @ 11:14:33 PM
Script       : http://www.sistersofbreastfeeding.com/boards/index.php?
Referrer     : http://www.sistersofbreastfeeding.com/boards/online.php?order=asc&sort=username&pp=20&page=1
IP Address   : 24.16.63.220
Username     : MrWee
Classname    : vb_database
Thanks in advance for your help
Reply With Quote
  #6  
Old 10-01-2005, 02:28 PM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah I use it on my site, I just didn't do a plugin, I modified global.php to include the PHP.
Reply With Quote
  #7  
Old 10-01-2005, 05:11 PM
MrWee's Avatar
MrWee MrWee is offline
 
Join Date: Jan 2004
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks acidburn0520, I tried that as well and get the same result as when i add it as a plugin.
Reply With Quote
  #8  
Old 10-01-2005, 05:22 PM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm... that's strange.

includes/affiliate_include
PHP Code:
<?php
//RANDOM AFFILIATES
if (@include(getenv('DOCUMENT_ROOT').'/forum/phpAdsNew/phpadsnew.inc.php')) {
if (!isset(
$phpAds_context)) $phpAds_context = array();
$randomaff view_raw ('zone:2'0'_blank''''0'$phpAds_context);
}
 
//DIRECT (3D PROGZ)
if (@include(getenv('DOCUMENT_ROOT').'/forum/phpAdsNew/phpadsnew.inc.php')) {
if (!isset(
$phpAds_context)) $phpAds_context = array();
$progaff view_raw (''2'_blank''''0'$phpAds_context);
}
 
//DIRECT (HALOGRID)
if (@include(getenv('DOCUMENT_ROOT').'/forum/phpAdsNew/phpadsnew.inc.php')) {
if (!isset(
$phpAds_context)) $phpAds_context = array();
$haloaff view_raw (''5'_blank''''0'$phpAds_context);
}
 
//DIRECT (SOCOMSOURCE)
if (@include(getenv('DOCUMENT_ROOT').'/forum/phpAdsNew/phpadsnew.inc.php')) {
if (!isset(
$phpAds_context)) $phpAds_context = array();
$socomaff view_raw (''6'_blank''''0'$phpAds_context);
}
?>
global.php
PHP Code:
// #############################################################################
// Start initialisation
require_once(CWD '/includes/init.php');
// affiliates
require_once('./includes/affiliate_include.php'); 
And then I just call them in my templates using the appropriate variable. You did all this correctly?
Reply With Quote
  #9  
Old 10-01-2005, 07:35 PM
MrWee's Avatar
MrWee MrWee is offline
 
Join Date: Jan 2004
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by acidburn0520
Hmm... that's strange.

And then I just call them in my templates using the appropriate variable. You did all this correctly?
Yes, like i said above, i literally copy and pasted the code that in used in the phpinclude_start template under 3.0.8. It worked fine in that version.

First i added it as a plugin wit hte global_start hook, then i tried adding it directly to global.php like you said.

Does the mysql error give anyone any ideas? it seem to be looking for a db table that doesn't exist, what in the code would cause this?

EDIT:

I found the solution in another thread:

https://vborg.vbsupport.ru/showpost....0&postcount=74
Reply With Quote
  #10  
Old 10-01-2005, 08:00 PM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh... never would've thought of that. I couldn't figure it out, but glad to hear that it's now working for you.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:06 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.06604 seconds
  • Memory Usage 2,294KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete