View Full Version : PHP Include - Need Help
MajorFm.com
11-27-2008, 09:29 AM
I created a plugin as it says in the manual with the following:
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
its part of a script called cjultra (http://www.cjultra.com/) 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 1227804973 at 1227804973 ---------------
I did exactly what it says here (http://www.vbulletin.com/forum/showthread.php?t=173937) ...and told to come to this forum if it doesn't work, so i'm not sure what i'm doing wrong...
--------------- Added 1227870433 at 1227870433 ---------------
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 ***
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.