bbPress

Simple, Fast, Elegant

bbPress support forums » Themes

header.php and forum name

(6 posts)
  • Started 1 year ago by aircow33
  • Latest reply from aircow33
  • This topic is not a support question
  1. aircow33
    Member

    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 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 1 year ago #
  2. aircow33
    Member

    uhmmmm i just noticed that it automatically took the "<a href=" and made it into a link.

    Posted 1 year ago #
  3. aircow33
    Member

    "<h1>"><?php bb_option('name'); ?></h1>"

    Posted 1 year ago #
  4. aircow33
    Member

    <h1>'">'<?php bb_option('name'); ?></h1>

    Posted 1 year ago #
  5. I do this on my page. Code looks like this:

    <h1><a href="http://www.rayd.org/"><?php option('name'); ?></a></h1>

    Posted 1 year ago #
  6. aircow33
    Member

    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.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.