Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Forum Customization Questions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Forums Feedback
View previous topic :: View next topic  
Author Message
dibblethewrecker
n00b
n00b


Joined: 07 Jan 2004
Posts: 20

PostPosted: Sat Sep 03, 2005 10:36 am    Post subject: Forum Customization Questions Reply with quote

I have a few questions about the customizations that have been made to the forum.

1) Glance: how have you reduced the fields/columns shown in the list? I can't seem to find an explanation - just people saying they have done it - [FIXED] you need to edit the template glance_body.tpl
2) How/Why does the gentoo forums plugin for firefox return results with AND enabled and by threads rather than posts? Have you hacked search.php to make this a default? I am quite sure it is not the plugin itself that controls this.

Many thanks
_________________
.: dibblethewrecker | Dell C610 - Arch PKGBUILDS | My fluxbox styles :.
Code:
[dibble]
Server = http://dtw.jiwe.org/share/pkgs/dibble
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6377
Location: Graz / EU

PostPosted: Sat Sep 03, 2005 11:55 am    Post subject: Re: Forum Customization Questions Reply with quote

dibblethewrecker wrote:

2) How/Why does the gentoo forums plugin for firefox return results with AND enabled and by threads rather than posts? Have you hacked search.php to make this a default? I am quite sure it is not the plugin itself that controls this.

I don't really know which plugin you are talking about, but we have changed some of the default settings (such as enabling AND) on the search page, maybe that affects the plugin?
_________________
Dinosaur week! (Ok, this thread is so last week)
Back to top
View user's profile Send private message
dibblethewrecker
n00b
n00b


Joined: 07 Jan 2004
Posts: 20

PostPosted: Sat Sep 03, 2005 12:05 pm    Post subject: Reply with quote

Hello,

I'm refering to the firefox gentoo forum searchplugin listed here - as far as I can tell there are no special commands in the plugin that effect the results display - so I assume the changes must be in search.php - is it possible to have a list of those changes?
_________________
.: dibblethewrecker | Dell C610 - Arch PKGBUILDS | My fluxbox styles :.
Code:
[dibble]
Server = http://dtw.jiwe.org/share/pkgs/dibble
Back to top
View user's profile Send private message
Earthwings
Administrator
Administrator


Joined: 14 Apr 2003
Posts: 7747
Location: Karlsruhe, Germany

PostPosted: Sat Sep 03, 2005 12:49 pm    Post subject: Reply with quote

For 2), have a look at this patch for an older version of phpbb:
Code:
--- ../phpBB/search.php 2005-03-19 12:17:58.000000000 +0100
+++ search.php  2005-04-23 18:56:45.000000000 +0200
@@ -69,7 +69,8 @@
 
 $search_id = ( isset($HTTP_GET_VARS['search_id']) ) ?
$HTTP_GET_VARS['search_id'] : '';
 
-$show_results = ( isset($HTTP_POST_VARS['show_results']) ) ?
$HTTP_POST_VARS['show_results'] : 'posts';
+$show_results = ( isset($HTTP_GET_VARS['show_results']) ) ?
$HTTP_GET_VARS['show_results'] : 'topics';
+$show_results = ( isset($HTTP_POST_VARS['show_results']) ) ?
$HTTP_POST_VARS['show_results'] : 'topics';
 $show_results = ($show_results == 'topics') ? 'topics' : 'posts';
 
 if ( isset($HTTP_POST_VARS['search_terms']) )


Don't use it this way however:
myself wrote:

Thinking on it, "topics" shouldn't be default as it would affect
search.php?search_author=<user> which is used by the "show all posts from"
button.


I think you get the idea.
_________________
KDE 4.10 - Get It While It's Hot!
Back to top
View user's profile Send private message
dibblethewrecker
n00b
n00b


Joined: 07 Jan 2004
Posts: 20

PostPosted: Sat Sep 03, 2005 2:00 pm    Post subject: Reply with quote

Well, we could have two search.phps - one would be the regular one for the site and search2.php could be used by the firefox plugin to always sort by threads - I am still have problems with an AND search by default tho - that is the main problem - 100 results for the word "is" is no good for anyone!
_________________
.: dibblethewrecker | Dell C610 - Arch PKGBUILDS | My fluxbox styles :.
Code:
[dibble]
Server = http://dtw.jiwe.org/share/pkgs/dibble
Back to top
View user's profile Send private message
ian!
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 3826
Location: Essen, Germany

PostPosted: Sat Sep 03, 2005 3:09 pm    Post subject: Reply with quote

I'm currently working on a new search engine. I don't think we will make any changes to the existing one because it will become obsolete soon. (As well as the browser plugin.)
_________________
"To have a successful open source project, you need to be at least somewhat successful at getting along with people." -- Daniel Robbins
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Forums Feedback All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum