header.php and forum name
-
Hi all, currently the header.php will display the name of the forum as a link. And the link sends you back to whereever you set in your config.php the variable $bb->domain. Currenlty it is $bb->domain = ‘forums.prosperworldloans.com’;
i dont want to change the domain variable because i think location of cookies and many other things use this variable. But i want to change the link in header.php to point to a different location, namely http://www.prosperworldloans.com
The code in header.php looks like this
<body id=”<?php bb_location(); ?>”>
<div id=”wrapper”>
<div id=”header”>
<h1>“><?php bb_option(‘name’); ?></h1>
<?php login_form(); ?>
</div>
<div id=”main”>
<?php if ( is_bb_profile() ) profile_menu(); ?>
and i changed it to
<body id=”<?php bb_location(); ?>”>
<div id=”wrapper”>
<div id=”header”>
<h1><?php bb_option(‘name’); ?></h1>
<?php login_form(); ?>
</div>
<div id=”main”>
<?php if ( is_bb_profile() ) profile_menu(); ?>
However when i make this change the link actually becomes http://forums.prosperworldloans.com/http://www.prosperworldloans.com
I have no idea why this is. i tried using php printf to print it out and it seems to work but screws up the layout of the following php login_form() command. Any help on this issue is greatly appreciated it is very frustrating.
- You must be logged in to reply to this topic.