vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Header problem (https://vborg.vbsupport.ru/showthread.php?t=120327)

nestoras 07-04-2006 04:57 PM

Header problem
 
Hi!
Dont know if that is the right forum to post it.
I have a little problem with my header.
im using the same header my main site does!
And to put it there i just make a plugin and put the $includedphp
to my forum header.
the problem i have is that now all the links have change.
in my main site its like that
www.mysite.com/contact.php but now in the forums its like www.mysite.com/forum/contact.php
why does this happen?

peterska2 07-04-2006 05:05 PM

you will need to edit the links in the plugin to be the full URL as the way the whole internet works is that it will always try to open a page within the current directory unless told otherwise.

nestoras 07-04-2006 05:16 PM

dont really understand what you are saying!
this is the plugin
PHP Code:

ob_start();
  include(
'/home/creh6ch6/public_html/head.php');
  
$includedphp ob_get_contents();
  
ob_end_clean(); 


peterska2 07-04-2006 05:32 PM

Then in your oginal head.php or the template/html that it uses, you need to change all the links to be the full links (ie yoursite.com/contact.php NOT contact.php) so that they will be correct on all pages where this is used.

nestoras 07-04-2006 05:51 PM

oh. ok thanks a lot!


All times are GMT. The time now is 11:35 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.01080 seconds
  • Memory Usage 1,718KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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