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 10-05-2005, 05:21 AM
GOAZCATS.com GOAZCATS.com is offline
 
Join Date: Aug 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default PLEASE HELP! phpads - VBulletin Board Dummy Here

OK, here is the situation:

I am in desparate need of help and I think it may be a simple solution. We run a board that was running phpads (the old version) and in it we had a template called phpincludes_start and then a modified header that places the code for the ads. The rotating banner ads would display right next to the logo on the top of our boards.

Here is our site: http://forum.goazcats.com

This was the code that we had in phpincludes_start:

require("/www/goazcats/phpAds/config.inc.php3");
require("/www/goazcats/phpAds/view.inc.php3");
require("/www/goazcats/phpAds/acl.inc.php3");
$banner = view(home);


Then in the header we had the following where we wanted the banner:

<? $banner; ?>

Well it worked until the upgrade to 3.50 and the usage of plugins. I really think there probably is a simple solution, just do not know how to do it.

You can see that our banners are working at this test page where we have both the code from the phpinclude and the banner code:

http://forum.goazcats.com/adtest.php


Now that there is no phpinclude_start in 3.5 where do I place the code that we had there? If I do had a plugin what template do I say the hook is in? The header template is not in the drop down menu of availavble hooks.

To be honest I am not even sure if that makes sense or if I am on the right track.

I could really use some help- Help please! I tried over at VBulletin and their guy said he could not help with plugins -t hough that is what seems to be the problem. If you have a solution or suggestion please let me know.

Thanks so much.

JS
Reply With Quote
  #2  
Old 10-05-2005, 05:24 AM
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Location: eXtremewebtech.com
Posts: 1,201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wrong forum this forum is for hack releases only.

But the code you had in phpinclude_start put that in a hook. Location of hook global_start
Reply With Quote
  #3  
Old 10-05-2005, 05:29 AM
GOAZCATS.com GOAZCATS.com is offline
 
Join Date: Aug 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, if someone could move it to the appropriate forum that would be great.

AND PLEASE HELP
Reply With Quote
  #4  
Old 10-05-2005, 05:51 AM
Daniel's Avatar
Daniel Daniel is offline
 
Join Date: Jul 2005
Location: USA
Posts: 707
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, this is getting awfully annoying. This is like the 10th time someone's done this today.
Reply With Quote
  #5  
Old 10-05-2005, 06:37 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tim already answered i think.
Reply With Quote
  #6  
Old 10-05-2005, 06:44 PM
mikexxx mikexxx is offline
 
Join Date: Aug 2004
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Make a new plugin and hook it up to: global_start

give your plugin a name

Plugin PHP Code:
require("/www/goazcats/phpAds/config.inc.php3");
require("/www/goazcats/phpAds/view.inc.php3");
require("/www/goazcats/phpAds/acl.inc.php3");
$banner = view(home);
Reply With Quote
  #7  
Old 10-05-2005, 07:28 PM
GOAZCATS.com GOAZCATS.com is offline
 
Join Date: Aug 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mike, thanks, but I tried that and it did not work.
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 07:07 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03885 seconds
  • Memory Usage 2,215KB
  • Queries Executed 13 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete