Info
- 6 posts
- 2 voices
- Started 5 years ago by aircow33
- Latest reply from aircow33
- This topic is not a support question
header.php and forum name
-
- Posted 5 years ago #
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.
-
- Posted 5 years ago #
uhmmmm i just noticed that it automatically took the "<a href=" and made it into a link.
-
- Posted 5 years ago #
"<h1>"><?php bb_option('name'); ?></h1>"
-
- Posted 5 years ago #
<h1>'">'<?php bb_option('name'); ?></h1>
-
- Posted 5 years ago #
I do this on my page. Code looks like this:
<h1><a href="http://www.rayd.org/"><?php option('name'); ?></a></h1> -
- Posted 5 years ago #
hey ardentfros it works, the difference is that you used php option('name') instead of php bb_option('name') ...........what's the difference? and why would mine append forum.prosperworldloans.com to the beginning.......so wierd.
-
You must log in to post.