Bp Fun Theme help

So I think this theme is awesome — especially since I don’t have to hack css. BUT, I changed the backgrounds to Black and all the text in the options to white — some of my H2 and body text is still black — Black onBlack is not good. Am I missing an option for body text or should I just hack the CSS?

  • JoseffB
    • The Crimson Coder

    on thing I found (maybe a bug) is that I changed the color to white which is perfect on all pages except the registration page. Registration page uses a white underlay for the form and causes white on white.

    I worked around this by changing to a grey color.

    check t out at housesoldiers.com — this is a hobby site so I’m trying not to do any php programming like I do on my business sites. :wink:

    It’s also a case study for me to see how many of your plugins I canuse in a functional site and if that site becomes more popular then my commercial sites.

  • Richie_KS
    • HummingBird

    the custom header is wp built in custom image header..

    it can’t be rotate since only 1 image perheader allow..

    of coz you can always used ‘cycle.js’ search google to cycle the header but

    this need some hardcoded stuff tho…

    you can check the directoriesforums/index.php..you should be able to

    see the Popular Group Forums area…again this need some hardcoded moving the div to sidebar..and recss the div..:slight_smile:…the bp_core are structure that way..hehe

  • JoseffB
    • The Crimson Coder

    Also, How would I add a space for a URL in the same page I tell the theme options where the custom header is?

    I assume I’d have to create a new field in the DB and add the url code to a certain php page. Can you walk me to it?

  • Richie_KS
    • HummingBird

    hi joseff

    not quite understand your question:slight_smile:

    do you mean you want to add ahref link to the custom header?

    or you want to rotate different header for different page?

    assuming the second one..it is not possible with the custom image

    header since custom image header can only used once with call the_header_image() this is a wordpress function..not controable in

    theme option

    the header image only called in header.php throuhgh out entire site..

    checkout header.php with <?php header_image(); ?> call function.

  • Richie_KS
    • HummingBird

    you could edit the bp-fun header.php in line 152+

    <div class=”custom-img-header”><‘a href=”#”‘><img src=”<?php header_image(); ?>” alt=”<?php bloginfo(‘name’:wink:; ?>” /><‘/a’></div>

    add the bold text above to the line

    cheers

  • JoseffB
    • The Crimson Coder

    @andrew: I understand how to do it manually in the code. I want to set it up so that I add another input box for Header HREF in the theme options page on the admin backside. That way I can change the header file and the link from the options page at same time.

    I will be changing the header image frequently and I dont want to touch code everytime I need to change the URL.

    All I need is a “how-to add a field to the theme-options.php file” and i can do it myself. Thanks.

    Please feel free to point me to another tutorial some other place on the net too. Thanks.

  • Richie_KS
    • HummingBird

    that will need in depth theme option tutorial since even you manage

    to add the field to theme option page, you still need it to echo some

    condition as you wanted per page.

    you are looking for something like

    if you at homepage

    – different header img and img linkto

    and in some page

    – different header img and img linkto

    and in blog page

    – different header img and img linkto

    so basically different header img and link to accroding to your setting right?

    it is better to edit the header.php something like below but the default

    wordpress header image will be unusable.

    <?php if(is_home()) { ?>

    <div class=”custom-img-header”><‘a href=”#yourlink”‘><img src=”yourimglink” alt=”youralt” /><‘/a’></div>

    <?php } else if(is_page()) { ?>

    <div class=”custom-img-header”><‘a href=”#yourlink”‘><img src=”yourimglink” alt=”youralt” /><‘/a’></div>

    <?php } ?>

    and more follow conditional template tags.

  • JoseffB
    • The Crimson Coder

    So, I ended up disecting the theme options in fucntions and it came pretty basic on how you setup the options. I’m so happy there was no DB SQL calls I had to edit!

    on line 655 of functions.php I added

    array(

    "name" => __("Enter the link for your custom image header"),

    "id" => $shortname . $shortprefix . "header_link",

    "inblock" => "bg",

    "type" => "text",

    "std" => "#",

    ),

    on line 1566 of functions.php I added:

    $header_url = get_option('tn_buddyfun_header_link');

    define('HEADER_LINK', $header_url);

    on/around line 123 of my header.php I added a hack to only show the header on the home page and pull in the link and custom image:

    <?php

    if (is_home()) {

    $tn_buddyfun_header_on = get_option('tn_buddyfun_header_on');

    if($tn_buddyfun_header_on == 'enable'){ ?>

    <div id="header">

    <div class="custom-img-header">"><img src="<?php header_image(); ?>" alt="<?php bloginfo('name'); ?>" /></div>

    </div>

    <?php

    }

    }?>

    This seems to work for me. Now I can go into theme options update the link for the header then go to the custom header and change the image.

  • JoseffB
    • The Crimson Coder
    <?php
    if (is_home()) {
    $tn_buddyfun_header_on = get_option('tn_buddyfun_header_on');
    if($tn_buddyfun_header_on == 'enable'){ ?>
    <div id="header">
    <div class="custom-img-header"><a href="<?php echo HEADER_LINK; ?>"><img src="<?php header_image(); ?>" alt="<?php bloginfo('name'); ?>" /></a></div>
    </div>
    <?php
    }
    }?>

    Seems the board striped the href in this.