![]() |
Add Search/Sort/Order in thread view
Add sort, order, search, posts from user options at the end of the thread.
Latest version: 1.20 (6-27-2002) - Bug fixed: at every search views counter is increased (link) Features:
- Show only posts in which the search string was found - Own replacement for highlighted words possible - String search in words - Also mark parts of words - Update instructions in download archive Updates 1.10 (6-19-2002): - Show message instead of a empty thread, if the sort result = 0 posts - Now compatible with: FireFly's beta hack 'Multiple Quotes' - Bug fixed: if you use the links 'Previous Thread' ... 'Next Thread' in thread... Screenshots: - Thread view Installation: - Read !readme.txt in ZIP-ARCHIV! Download: |
kewl :)
putting it on the "To Install" list :) |
Very, very cool hack, bad_madman!
This will make it heaps easier to moderate long threads! Thanks! |
Hey this looks like fun, downloaded the file and I will look at it later :) Maybe even install it. Gonna discuss how needed this is for our forum. By the way, can this be made for only certain usergroups? So only registered members can use it, or only admins.
|
Quote:
Search after hack installation in showthread.php for: Code:
eval("\$threadview_adds=\"".gettemplate("showthread_adds")."\";"); Code:
if ($bbuserinfo[usergroupid]==x) eval("\$threadview_adds=\"".gettemplate("showthread_adds")."\";"); |
hey, looks very good
good work |
@xiphoid
In addition, you can remove options. Open the template 'showthread_adds' and remove the options which you don't need. For example: Code:
<option value="attach" $ososel[attach]>Attachement</option> Code:
<b>in</b> |
Hi. Great hack. How can I change the color of the background to match my forum? Also, is there a way this can be added to all the pages? Right now it only shows up on individual threads. Thanks again. :)
|
I have changed the templates.
Reinstall the hack (only templates) or change the templates: Search in template showthread_adds: PHP Code:
Code:
</table> Search in the template showthread for: Code:
</table> Code:
$threadview_adds |
Thank you very much. :)
|
This hack is wonderful, this should definately be in vB 3. I specially like the possibility of searching in a thread only, since I always get lost when I get 80 threads as a result, each one of them with 50 pages! :)
Congrats and thanks for a great hack! |
Hmmm, still can't get the background color to change to my forum's colors...it's purple. Am I missing something or is there another way to do it? I tried both way (reinstalling and manually). Thanks again.
|
Opp, my bad. I got it through my main colors page. :confused:
|
Search in template showthread_adds for:
Code:
<td colspan=4 align=center> Code:
<td colspan=4 bgcolor="{ tableheadbgcolor }" align=center> sorry :nervous: Please, test it. I then change the Download. Thx. edit: 1. not template "showthread" but template "showthread_adds" 2. { tableheadbgcolor } -> without blanks ! |
ok installed, got a small problem tho, every search takes me the the new reply of the thread im currently looking at
|
@Recluse: After the search the complete thread is always shown. Become the search result (the words) highlightedly (highlight function). Do you mean this?
|
Quote:
Cool, yep, it works. Thanks. :) |
@bluecat: Good. Very good. :classic:
Thx for your report. The Download was actualized. |
For what it's worth, I added a new replacement variable (Replacement > Add) and created {tableheadbgcolor2}, made this color it's own and edited it in the showthread_add to the new variable, giving me the option to change just this table's colors. :) Thanks again for the great hack.
|
will this work on older versions of vb
|
Quote:
|
Quote:
|
The latest version is now good to go with vb 2.2.2?
|
Quote:
|
bad_madman,
That's probably the best set of install instructions I've ever seen. Absolutely perfect! Installed and works great. Thank you for this great hack. |
Quote:
ok 2 part post :) when i go here to search |
it takes me here
|
Quote:
I believe the reason for the problem is the form tag (<form>...). You probably use a form-tag in a form-tag (<form>.... <form>.....</form>....</form>). The html source code or your URL would be helpfully. You look the html source code on, whether it is so. This probably sounds very complicated ?! :surprised: You have already changed the Template before? Or is it still original? If it is still the original, then repeat the changes in the template "showthread" once again. You probably have inserted the line "$ threadview_adds" to a wrong place... edit: Hm. You have installed FireFly's beta hack 'Multiple Quotes...'? This is the reason.... I try to adapt my hack to the beta hack 'Multiple Quotes'. |
Quote:
yep , now what :) |
Quote:
you must put the button "Quote Selected" into the same line as "new thread" and "post reply". In addition, you should change the template 'showthread' easily again. However, this is insignificant. The form (<form> ... </form>) would stand within a table (<table> .... </table>) in front of <tr> (for example: <table><form><tr> ... </tr></form></table>), though. It is usual to surround the complete table by the form (<form><table> ... </table></form>). However, this is unproblematic. I change my hack for FireFly's hack 'Multiple Quotes', if there is still interest. |
ill give your suggestion a try after work tonight, let you know the outcome in about 12 hours
|
Quote:
However, take the new version 1.10 of the hack for this. |
New version out: 1.10
Features/Updates - Show message instead of a empty thread, if the sort result = 0 posts - Now compatible with: FireFly's beta hack 'Multiple Quotes' - Bug fixed: if you use the links 'Previous Thread' ... 'Next Thread' in thread... Screenshots: Screenshots in the first post. Download: The latest version is in the first post of this thread. |
ok reinstalled to the new version for the multi quote hack, this is what i get when searching
Warning: Variable passed to reset() is not an array or object in /home/cra++++/public_html/forums/showthread.php on line 749 Warning: Variable passed to each() is not an array or object in /home/cra++++/public_html/forums/showthread.php on line 750 Code:
//highlight words for search engine |
Strange. Which version of vB do you use? It seems to be an old version.
Replace the complete highlight-part by this code. PHP Code:
code changed |
I already installed the old hack can some just post what i have to change in order to have it updated? That would help alot more thanks.
|
Quote:
Note: Remove all blanks between { and } for example: ="{ secondaltcolor} -------------- ^ search in template 'showthread_adds' for: Code:
<input type="hidden" name="threadid" value="$threadid"> Code:
<input type="hidden" name="threadid" value="$threadid"><input type="hidden" name="goto" value="$goto"> Code:
<table bgcolor="{ pagebgcolor}" width="{ tablewidth}" cellpadding="0" cellspacing="0" border="0"><tr><td width="10"><img width="10" height="1" src="{ imagesfolder}/space.gif" alt=""></td><td width="100%"><!-- spacer --> Code:
$pagenav = getpagenav($totalposts,"showthread.php?s=$session[sessionhash]&threadid=$threadid&perpage=$perpage$threadnavi".iif(isset($highlight), "&highlight=$highlight", "")); Code:
if ($totalposts<1) eval("\$postbits=\"".gettemplate("showthread_adds_notfound")."\";"); |
using 2.2.2 with a few updates for securty, ill give your codea go when i return from work
|
bad_madman,
Maybe its me, but I had to remove this hack. It caused my showthread page queries to go from 23 to anywhere from 50-89 queries. Anyone else see this? |
This is interesting. :surprised: I will have a look at this more exactly in my forum...
|
All times are GMT. The time now is 06:47 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|