[Solved][Request] All topics in a unified forum

This forum is now closed as part of retiring phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
Earthk
Registered User
Posts: 19
Joined: Wed Aug 13, 2003 7:21 am

[Solved][Request] All topics in a unified forum

Post by Earthk »

Since I've about 8 forums with only a handful of responses per forum per
day, it'll be a good idea to have all topics from all forums shown in a single
list. The result will be like using the search page searching for *.

Can someone help with this?
Earthk
Registered User
Posts: 19
Joined: Wed Aug 13, 2003 7:21 am

Post by Earthk »

OK I've managed to find a solution to this.

By default, every search is handled and gives results using the posts list
no matter what you put in the search_result variable. Thanks to FB-ke (the author of Buddylist & phpBB easyCMS) for the following
mini-mod.
#
# OPEN
#
search.php

#
# FIND
#
$show_results = ( isset($HTTP_POST_VARS['show_results']) ) ? $HTTP_POST_VARS['show_results'] : 'posts';

#
# REPLACE WITH
#
$show_results = ( isset($HTTP_POST_VARS['show_results']) ) ? $HTTP_POST_VARS['show_results'] : (( isset($HTTP_GET_VARS['show_results']) ) ? $HTTP_GET_VARS['show_results'] : 'posts');

Now when you use search.php?search_author=*&show_results=topics
it'll show the all topics in one unified forum :)
Post Reply

Return to “[2.0.x] MOD Requests”