MOD REQUEST: searching POSTS and not TOPICS

Support for phpBB mods/hacks.

Moderator: Moderators

MOD REQUEST: searching POSTS and not TOPICS

Postby jxhndxe on Tue Jul 06, 2004 9:04 pm

I'm interested in knowing if there's a mod that changes the "posts since last visit" link (and others like it) so that it actually lists posts, and not topics. It seems to me that it makes more sense to list the individual posts. As it is now, you see the topics that the posts are in, but then you have to look for the posts yourself.

If not already done, could a mod please be created to do that? I also have the "search back" mod installed (drop down that lets you see posts within the past 15, 30, 45, 60 minutes, etc). If that could be modified as well, that would be swell.

Any thoughts?

Thanks.
User avatar
jxhndxe
Registered User
Registered User
 
Posts: 75
Joined: Tue Jul 06, 2004 8:45 pm

Postby PostBot on Tue Jul 06, 2004 9:30 pm

Open search.php, find this:
Code: Select all
            if ( $userdata['session_logged_in'] )
            {
               $sql = "SELECT post_id
                  FROM " . POSTS_TABLE . "
                  WHERE post_time >= " . $userdata['user_lastvisit'];
            }
            else
            {
               redirect(append_sid("login.$phpEx?redirect=search.$phpEx&search_id=newposts", true));
            }

            $show_results = 'topics';
            $sort_by = 0;
            $sort_dir = 'DESC';
and replace $show_results = 'topics'; with $show_results = 'posts';
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby jxhndxe on Tue Jul 06, 2004 9:39 pm

Thanks! If I wanted to create a "toggle" link that would allow users to go between posts and topics, could you tell me how that would be done?

I appreciate your time.
User avatar
jxhndxe
Registered User
Registered User
 
Posts: 75
Joined: Tue Jul 06, 2004 8:45 pm

Postby PostBot on Wed Jul 07, 2004 6:44 am

I don't think that's possible.
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby jxhndxe on Wed Jul 07, 2004 7:14 am

Okay, no matter. Thank you much for your help!
User avatar
jxhndxe
Registered User
Registered User
 
Posts: 75
Joined: Tue Jul 06, 2004 8:45 pm


Return to phpBB Mods

Who is online

Users browsing this forum: No registered users and 1 guest

cron