Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hack the blogs listing pages – don’t show new ones


  • oldskoo1
    Participant

    @oldskoo1

    Hi all,

    Wondered if anyone knows or could help me hack the blogs page for BP.

    My network has 80% of the members creating a blog but only 10% actually using it; therefore making it very hard for real blogs to be found unless they are currently active.

    Its a new network and i can’t really remove unused blogs but because i get sign ups everyday its clouding the blog directory with hello world blogs.

    Therefore i thought it would be a good idea only to show blogs that have had a user update (last update db column maybe?). So ignore any blogs and don’t show them in the listing if they haven’t been updated by the user from the default post.

    Cheers

Viewing 1 replies (of 1 total)

  • oldskoo1
    Participant

    @oldskoo1

    If anyone else is looking for the answer to this see my post here : https://buddypress.org/forums/topic.php?id=1979#post-10620

    Simply, i made a dirty little hack, as follows:

    So, simply put, add the following SQL : AND EXTRACT(DAY_MINUTE FROM wb.last_updated)!=EXTRACT(DAY_MINUTE FROM wb.registered)

    to the functions :

    function get_by_letter

    function get_all

    in the file:

    /wp-content/mu-plugins/bp-blogs/directories/bp-blogs-directory-blogs.php

Viewing 1 replies (of 1 total)
  • The topic ‘Hack the blogs listing pages – don’t show new ones’ is closed to new replies.
Skip to toolbar