Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 16 replies - 1 through 16 (of 16 total)

  • abutterworth
    Member

    @abutterworth

    Hi there, can someone please help me with this time stamp issue? Thanks in advance.


    abutterworth
    Member

    @abutterworth

    It shows

    Timezone
    UTC time is 2011-10-03 20:29:06
    Local time is 2011-10-03 13:29:06
    Choose a city in the same timezone as you.
    This timezone is currently in daylight saving time.
    Standard time begins on: November 6, 2011 2:00 am.

    So it’s showing me the diff between my application’s timezone and the server’s? How do I get BP to use the WP setting?


    abutterworth
    Member

    @abutterworth

    Thanks @mercime… my childtheme works but… my wordpress pages are not loading correctly now. It appears as though TEMPLATEPATH is referring to the BP plugin… do I need the Template Pack for this to work properly? I’m chasing my tail.


    abutterworth
    Member

    @abutterworth

    @becskr – where should they go then? In a funtions.php file in my child theme? The answer will help me and anyone else trying to accomplish the above.
    Thanks for the tip.


    abutterworth
    Member

    @abutterworth

    I could kiss you! Functions.php was in the default folder and my theme folder… but it is no more and now it all works!!
    Thank you thank you thank you.


    abutterworth
    Member

    @abutterworth

    I deleted the contents of bp-default/_inc/ajax.php so that there was something to see…?


    abutterworth
    Member

    @abutterworth

    Thank you so so much @modemlooper… but I still get this error:

    Fatal error: Cannot redeclare bp_dtheme_ajax_querystring() (previously declared in /home/resource/public_html/dev/wp-content/plugins/buddypress/bp-themes/bp-default/_inc/ajax.php:17) in /home/resource/public_html/dev/wp-content/plugins/buddypress/bp-themes/bp-default/_inc/ajax.php on line 81

    Would it help to look at it?
    http://dev.resourceclips.com/groups/cbm-asia-development/home/


    abutterworth
    Member

    @abutterworth

    BTW – I have deleted template pack and disabled all plugins.


    abutterworth
    Member

    @abutterworth

    Somehow I think both themes are active – is this possible?
    In the article:
    https://codex.buddypress.org/theme-development/building-a-buddypress-child-theme/
    Under “let’s start building”.. it says “Check your site home page. You’ll notice that there is no design at all. It’s just text on a white page….”

    Well when I got to that step that was not the case the bp-default styles were there. I just checked again. My new child-theme IS activated. The BP default.css is being enqueued as well.

    So why are files from two different themes conflicting? IE ajax.php.
    I have gone into the bp-default theme and deleted the content of ajax.php which gets rid of the fatal error but still leaves me with none of the ajax on my site is working. I’m pulling my hair out!


    abutterworth
    Member

    @abutterworth

    That’s a good question… lol

    Originally I installed BP 1.2 and used the template pack to get my WP theme working. I customized the html in the files within the theme/sirup/groups folder.

    Then I upgraded to 1.5 and stuff broke. I have moved over all (i think) of the folders/files where I didn’t make changes to the theme root from the bp-default as per: https://codex.buddypress.org/releases/1-5-developer-and-designer-information/#theme

    So I figured I had better make a real child theme which really just entailed adding the definition in the style.css.

    I am worried I am making my problems more complex though…


    abutterworth
    Member

    @abutterworth

    I am using a child theme


    abutterworth
    Member

    @abutterworth

    It seems to be a problem that keeps appearing whether or not I have the template pack activated… and the ajax functions aren’t working… any ideas?
    Thanks :)


    abutterworth
    Member

    @abutterworth

    I should add that I have modified the default theme.


    abutterworth
    Member

    @abutterworth

    SO I didn’t receive any answers on this but I did manage to struggle my way through and I will leave the solution here for those with the same question.

    To add sub_nav links in buddypress 1.5 groups do the following:
    1) bp-core-template.php
    register the groups
    ///////////////
    function bp_is_group_stock_quote() {
    if ( bp_is_groups_component() && bp_is_current_action( ‘stock-quote’ ) )
    return true;
    return false;
    }
    //////////////////

    2) bp-group-loader.php
    define the subnav item:
    /////////////////
    $sub_nav[] = array(
    ‘name’ => __( ‘Stock Quote’, ‘buddypress’ ),
    ‘slug’ => ‘stock-quote’,
    ‘parent_url’ => $group_link,
    ‘parent_slug’ => $this->current_group->slug,
    ‘screen_function’ => ‘groups_screen_group_stock_quote’,
    ‘item_css_id’ => ‘stock’,
    ‘position’ => 50,
    ‘user_has_access’ => $this->current_group->user_has_access
    );
    ///////////////////////

    3) bp-groups-screen.php
    define the action that clicking will elicit:

    function groups_screen_group_stock_quote() {
    global $bp;

    if ( $bp->is_single_item ) {
    // Refresh the group member count meta
    groups_update_groupmeta( $bp->groups->current_group->id, ‘total_member_count’, groups_get_total_member_count( $bp->groups->current_group->id ) );

    do_action( ‘groups_screen_group_stock_quote’, $bp->groups->current_group->id );
    bp_core_load_template( apply_filters( ‘groups_template_group_members’, ‘groups/single/home’ ) );
    }
    }

    The URIs above all go to the groups/single/home because there it loads the header etc and includes the body file depending on the action. So add your pages to that area and then create them in the your_theme/groups/single directory. For the above example I created theme/groups/single/stock-quote.php.

    Cheers


    abutterworth
    Member

    @abutterworth

    Hi update:
    I’ve found bp-group-loader.php where I was able to define $sub_nav[] items and they are indeed displaying on the site.
    I have defined the stock-quote item as follows:
    $sub_nav[] = array(
    ‘name’ => __( ‘Stock Quote’, ‘buddypress’ ),
    ‘slug’ => ‘stock-quote’,
    ‘parent_url’ => $group_link,
    ‘parent_slug’ => $this->current_group->slug,
    ‘screen_function’ => ‘groups_screen_group_stock_quote’,
    ‘item_css_id’ => ‘stock’,
    ‘position’ => 50,
    ‘user_has_access’ => $this->current_group->user_has_access
    );

    But I get this error when I try to click on the link:
    First argument is expected to be a valid callback, ‘groups_screen_group_stock_quote’ was given in /home/resource/public_html/dev/wp-includes/plugin.php on line 405

    dev URI is:
    http://dev.resourceclips.com

    Any thoughts?


    abutterworth
    Member

    @abutterworth

    Actually – as I go further I notice that the functionality in the buddypress profile field setup isn’t working either. I have reference problems as js and css files in the head are coming in referencing the main domain name.
    I have hard coded the subdomain into wp-config”
    `define(‘WP_HOME’, ‘http://dev.resourceclips.com’);
    define(‘WP_SITEURL’, ‘http://dev.resourceclips.com’);`
    Where else can/should I change this.

Viewing 16 replies - 1 through 16 (of 16 total)
Skip to toolbar