vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   PHP Include - Need Help (https://vborg.vbsupport.ru/showthread.php?t=197369)

MajorFm.com 11-27-2008 09:29 AM

PHP Include - Need Help
 
I created a plugin as it says in the manual with the following:

Code:

ob_start();
  include('/home/sites/mydomainname.com/public_html/in.php');
  $includedphpin = ob_get_contents();
ob_end_clean();

as i want to include the in.php file in my templates

I have added $includedphpin in my header template to include it... all seems to work find but all thread links come up invalid, when i disable the plugin, it all works fine again... please advise as i really need to include this file and still have my site working fine...

SEOvB 11-27-2008 09:33 AM

what are your contents of in.php.

It sounds like you've got something wrong in that file

MajorFm.com 11-27-2008 09:45 AM

1 Attachment(s)
its part of a script called cjultra and i use it on all my other sites without any issues, it basically makes a note of the referring domain name and ranks all the incoming traffic on a top list.

I really need to use this script as i have thousands of people that take part in my link exchanges..

I have attached the file

Please advise...

SEOvB 11-27-2008 09:47 AM

Heres another fast question as nothing was glaring wrong in that script.

Does it happen when you use a default vBulletin theme, All your themes, or only one theme?

MajorFm.com 11-27-2008 12:18 PM

Good question, it happens when i use the vbSEO theme which i have been told by Mert at vbSEO that its nothing to do with their mods that are causing the issue

http://www.thefreeadvertisingsite.com

--------------- Added [DATE]1227804973[/DATE] at [TIME]1227804973[/TIME] ---------------

I did exactly what it says here ...and told to come to this forum if it doesn't work, so i'm not sure what i'm doing wrong...

--------------- Added [DATE]1227870433[/DATE] at [TIME]1227870433[/TIME] ---------------

what if i simply take the code out of in.php and add it before the end of the close tag on the forum's index.php file, would that work?

MajorFm.com 12-06-2008 09:10 AM

Can someone please help with this? this is still not resolved...

--------------- Added 06 Dec 2008 at 12:35 ---------------

I have noticed something else, when i enable the plugin, my thread links become invalid, before i even try to include it in the template, so its not in.php that is causing the issue, its the plugin, please advise...

--------------- Added 06 Dec 2008 at 12:42 ---------------

I have fixed this, i ended up changing the hook location to forumhome_complete instead of global_start

That fixed the issues...

*** Advertising removed ***


All times are GMT. The time now is 01:06 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.01055 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)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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