Use the blog "archived" for a blog archive

Hi,

i think about using archived blogs. On my site i have a lot of short blogs, there are only new entries while a conference or event. after this i like to close the blog. Close means no more writing (no comments maybe) but they had to be visible for visitors.

The blog "archived"-flag make blogs invisible for user but let the posts in db. But it must be a way to fix this function a little bit to make the blog visible again.

and if it works there must be a way to list all blogs wich are archived and these wich are not archived. In the moment i use the list-blogs-widget for my navigation. bu i like to make 2 lists, one with archived blogs one with new blogs.

Any hints where to find it?

greetings staudi

Edit: or easier put anything in the "list blogs widget" that blogs with now new entry after 2 weeks will not be shown with a parameter in the function… hm… i think i have to have a look… (o:

  • staudi
    • New Recruit

    i think a hack in wpmu is the badest way…

    ok, i can close blogging by setting a new password for the blog user. on my "all-blogs-startpage" i have only the navigation wich makes trouble. the navigation runs with the list-blogs-widget and it must be possible to take there an option like if "last update" is older than 14 days -> don´t show

    i´m looking at the wpmu_functions.php

    there is get_last_updatet

    function get_last_updated( $deprecated = '', $start = 0, $quantity = 40 ) {<br />
    global $wpdb;<br />
    return $wpdb->get_results( $wpdb->prepare("SELECT blog_id, domain, path FROM $wpdb->blogs WHERE site_id = %d AND public = '1' AND archived = '0' AND mature = '0' AND spam = '0' AND deleted = '0' AND last_updated != '0000-00-00 00:00:00' ORDER BY last_updated DESC limit %d, %d", $wpdb->siteid, $start, $quantity ) , ARRAY_A );<br />
    }

    i think this:

    last_updated != '0000-00-00 00:00:00' ORDER BY last_updated DESC limit %d, %d

    is interesting.

    EDIT:

    i think i have an idea… but i don´t know much about date calculating…

    i need anything like this:

    current_time(‘mysql’:wink: – 14days

    any hints?

  • staudi
    • New Recruit

    i think i use

    gmdate( 'Y-m-d H:i:s', ( time() - $how_much_days * 86400 ) );

    insted of this. its the function wp uses to get the date. the gmt offset is not a matter for me, becaus i think in days not in hours (o:

    thanks for the hint, sometimes i sit in front of a forest and don´t see any tree..

  • staudi
    • New Recruit

    hm, i´m ready.

    but its not fine.

    i have a conflict…

    the solution with last update > 14 is nice but if i modify any entry its a new blog… i have a few mor places to work on my site, so it doesn´t matter if a solution takes a small while.

    So anyone else have an idea how to flag a blog as ready. small hacks are ok. but i see the update to 2.8.1 comming and the next… and the next…

    please no more hints to the jobs-section. i can do a lot of things for myself and have signed a membership here because i thaugt i can use a few of the plugins wich are offered, but till now i found nothing for "plug&play".

    greetings staudi