Forums

Join
bbPress Support ForumsThemesheader.php and forum name

Info

header.php and forum name

  1. 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.

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

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

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

  5. I do this on my page. Code looks like this:

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

  6. 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.

  7. You must log in to post.