Version: 1.00, by bad_madman
Developer Last Online: Oct 2023
Version: 2.2.x
Rating:
Released: 06-16-2002
Last Update: Never
Installs: 18
No support by the author.
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:
The following options are available:
- Display posts from previous xx days
- Sorted by Post date, User name, Subject, Attachement, Post length
- Show the post of all/definite users (with number posts)
- ascending/descending
- Search in Thread
» Show only posts in which the search string was found (v1.20)
» Own replacement for highlighted words possible (v1.20)
» String search in words
» Also mark parts of words
Decide which options shall be shown (simple template change)!
Show message instead of a empty thread, if the sort result = 0 posts (v1.10)
Very simple installation:
- 2 Templates must be made
- 1 Template must be changed
- 2 Files (showthread.php, admin/functions.php) must be changed
Look at the screenshot for more informations...
Updates 1.20 (6-24-2002):
- 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...
another thing: I have the contract/expand post hack installed, but after installation of this hack the images for contracting/expanding are not shown??????
That addon for the VIEWS thing that is up a couple of posts. You said to replace the code with that code. Well I have the STORE hack installed so it looks a little different can you help me please. What do i do about it. This is what my code looks like thanks.
PHP Code:
if ($noshutdownfunc) {
$DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
// Store hack by Lesane
$storeview=$DB_site->query_first("select views, postuserid from thread WHERE threadid='$threadid'");
$views=$storeview[views];
$postuserid=$storeview[postuserid];
if ($views == $view1)
{
$DB_site->query("UPDATE user SET storep=storep+$viewpoint1 where userid='$postuserid'");
}
elseif ($views == $view2)
{
$DB_site->query("UPDATE user SET storep=storep+$viewpoint2 where userid='$postuserid'");
}
elseif ($views == $view3)
{
$DB_site->query("UPDATE user SET storep=storep+$viewpoint3 where userid='$postuserid'");
}
elseif ($views == $view4)
{
$DB_site->query("UPDATE user SET storep=storep+$viewpoint4 where userid='$postuserid'");
}
elseif ($views == $view5)
{
$DB_site->query("UPDATE user SET storep=storep+$viewpoint5 where userid='$postuserid'");
}
} else {
$shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";
// Store hack by Lesane
$storeview=$DB_site->query_first("select views, postuserid from thread WHERE threadid='$threadid'");
$views=$storeview[views];
$postuserid=$storeview[postuserid];
if ($views == $view1)
{
$DB_site->query("UPDATE user SET storep=storep+$viewpoint1 where userid='$postuserid'");
}
elseif ($views == $view2)
{
$DB_site->query("UPDATE user SET storep=storep+$viewpoint2 where userid='$postuserid'");
}
elseif ($views == $view3)
{
$DB_site->query("UPDATE user SET storep=storep+$viewpoint3 where userid='$postuserid'");
}
elseif ($views == $view4)
{
$DB_site->query("UPDATE user SET storep=storep+$viewpoint4 where userid='$postuserid'");
}
elseif ($views == $view5)
{
$DB_site->query("UPDATE user SET storep=storep+$viewpoint5 where userid='$postuserid'");
}
}
if ($bbuserinfo[cookieuser]) {
vbsetcookie("bbthreadview[$threadid]",time(),0);
Originally posted by Birdie501
Hi, nice hack!!
i installed the hack that shows the number of posts and direct link in that thread! If you search the thread and the result is shown the numbers change and start again with 1.
Is it possible to keep the original numbers...
...Also how can i get back to the thread after searching? Because after the search there is no button where i can reset the search?...
Thanks
A couple of good suggestions :classic: I will write an update. I have little time at the moment. :surprised: But the update comes... !
Quote:
Originally posted by Birdie501
Hope you understand what i mean, is a little bit difficult for me to explain in english
Hehe, h?ttest es auch in deutsch versuchen k?nnen *fggg
Quote:
Originally posted by Birdie501
another thing: I have the contract/expand post hack installed, but after installation of this hack the images for contracting/expanding are not shown??????
Originally posted by BigJohnson That addon for the VIEWS thing that is up a couple of posts. You said to replace the code with that code. Well I have the STORE hack installed so it looks a little different can you help me please. What do i do about it. This is what my code looks like thanks....
Search for:
Code:
$DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
and replace with:
Code:
if ($ownsearch!=1) {
$DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
}
and search for:
Code:
$shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";
and replace with:
Code:
if ($ownsearch!=1) {
$shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";
}