Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Dickson Waudo
    Participant

    @dicksonmedia

    @nuprn1 @r-a-y Just a little update,

    Finally got around to it, actually the lastest Buddypress update kinda forced me to and it worked like a charm. I had to educate my self on wordpress’s apply_filters and add_filters.

    I wrote a custum function that filtered the results of the groups_get_groups function, basically removing my “handy dandy” code from the core files into my cutome plugin class file. Thanks for all your help.


    Dickson Waudo
    Participant

    @dicksonmedia

    @r-a-y Thats sounds a little better, I thought I would have to filter the `bp_has_groups` function, I guess I didn’t quite figure the code out. I’ll try that. Thank you everybody let you know how it goes


    Dickson Waudo
    Participant

    @dicksonmedia

    @nuprn1 thats a nice idea, I don’t know about the apply_filter though. the `$browse_sql` var is a new var that I initiate in just that function and within the scope of the if statement. Reasons being I added a whole other table to be queried in `$paged_groups` and `$total_groups` array being returned by the `get_active` function.

    Its a small line of code, easily replaced on upgrade and works perfectly fine for me right now, I just wanted to be able to access, append/modify and object oriented class function from an outside function (that doesn’t make sense) lol. Something like whatever I have in my what if statement gets its own function and the arguments from the get_active function and processes my query after get active is complete (sorta), its not a private function so I can access it outside the BP_Groups_Group class, just don’t know how I can do an add_action or an apply_filter


    Dickson Waudo
    Participant

    @dicksonmedia

    Yes travel Junkie, I have declared the
    `global $wpdb, $bp ; `

    lol@ the no brainer

    WOW just tried it out and works like a charm. I should know better with typos and stuff. I was condensing my FROM statements from a larger query to something more efficient and totally missed the extra FROM. …TIRED I need a nap

    Thank you

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