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 11-27-2008, 09:29 AM
MajorFm.com MajorFm.com is offline
 
Join Date: Dec 2004
Location: UK
Posts: 402
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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...
Reply With Quote
  #2  
Old 11-27-2008, 09:33 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what are your contents of in.php.

It sounds like you've got something wrong in that file
Reply With Quote
  #3  
Old 11-27-2008, 09:45 AM
MajorFm.com MajorFm.com is offline
 
Join Date: Dec 2004
Location: UK
Posts: 402
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Attached Files
File Type: php in.php (6.4 KB, 5 views)
Reply With Quote
  #4  
Old 11-27-2008, 09:47 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 11-27-2008, 12:18 PM
MajorFm.com MajorFm.com is offline
 
Join Date: Dec 2004
Location: UK
Posts: 402
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #6  
Old 12-06-2008, 09:10 AM
MajorFm.com MajorFm.com is offline
 
Join Date: Dec 2004
Location: UK
Posts: 402
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ***
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:57 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.03555 seconds
  • Memory Usage 2,226KB
  • 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
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete