vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   PLEASE HELP! phpads - VBulletin Board Dummy Here (https://vborg.vbsupport.ru/showthread.php?t=97594)

GOAZCATS.com 10-05-2005 05:21 AM

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

eXtremeTim 10-05-2005 05:24 AM

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

GOAZCATS.com 10-05-2005 05:29 AM

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

AND PLEASE HELP :)

Daniel 10-05-2005 05:51 AM

Okay, this is getting awfully annoying. This is like the 10th time someone's done this today.

Marco van Herwaarden 10-05-2005 06:37 PM

Tim already answered i think.

mikexxx 10-05-2005 06:44 PM

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);

GOAZCATS.com 10-05-2005 07:28 PM

Mike, thanks, but I tried that and it did not work.


All times are GMT. The time now is 03:13 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.00931 seconds
  • Memory Usage 1,720KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete