Previous Thread
Next Thread
Print Thread
Hop To
#140144 06/11/2004 12:42 AM
Joined: Dec 2003
Posts: 28
newbie
newbie
Joined: Dec 2003
Posts: 28
http://www.domain.com/ubbthreads/do...&fromsearch=1&bodyprev=1

Looking at the link.. it would be nice if somewhere there were user preferences where they can on the fly decide to toggle the body preview and or show only the initial post or include the replies, plus the number of posts etc.

#140145 06/26/2004 11:08 PM
Joined: Dec 2003
Posts: 28
newbie
newbie
Joined: Dec 2003
Posts: 28
Curious to find out what each of these parameters do...
in the dosearch.php script....

Code
http://www.yourdomain.com/ubbthreads/dosearch.php?Cat=0&Forum=All_Forums&Words=&daterange=1&newertype=d&newerval=1&Limit=25&topic=1&fromsearch=1&bodyprev=1

Forum=All_Forums& - This is where you would choose All forums or insert a forum keyword
Words=& - empty results in all otherwise any word you are searching
daterange=1& this is how old the post is in days?
newertype=d& I am not sure what 'd' means I assume date? what are the other options.
newerval=1& Unclear what this is or what the other options are
Limit=25& - shows # of results
topic=1& - 1 shows post & replies, 2 Shows original posts only
fromsearch=1& - Not sure what this does
bodyprev=1 - 1 shows the body preview 0 turns it off.

I was thinking of something like this in your dosearch.tmpl

Code
FIND THIS
================
$tbopen
<tr>
<td class="tdheader">
{$ubbt_lang['SEARCH_RES']}: $headerwords $excluded
</td>
</tr>
$tbclose


REPLACE IT WITH THIS
=============
$tbopen
<tr>
<td class="tdheader">
{$ubbt_lang['SEARCH_RES']}: $headerwords $excluded
</td>
</tr>
<tr>
<td class="lighttable" align="center">

<INSERT YOUR ACTIVE TOPIC LINK HERE>
 ·
<INSERT YOUR ACTIVE TOPIC LINK HERE>
 ·
<INSERT YOUR ACTIVE TOPIC LINK HERE>
 ·
<INSERT YOUR ACTIVE TOPIC LINK HERE>
 ·

</td>
</tr>
$tbclose

The idea here is that if a user hits "active topics" they can change the options as to what is present - say toggle on/off the body, or toggle the display of posts & replies w/ posts only.

I could add all the links but I am not sure how to make the links toggle so if for example I am viewing the body part hitting the link w/ turn it off
and hitting the link again would turn it back on.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Nightcrawler), 639 guests, and 217 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)