here's an add-on to this hack, which I have on my bulletin board:
On my BB (and you can see it at
http://www.atlasf1.com/bb/index.php ) on the first post of a thread (and only on that post) there is a link "Find more threads started by this user".
If you want to add that, do the following:
This add-on uses the Post Counter hack, so you need to have that installed first (the $post[postcount] version)
1) Create a new template, called
postbit_userthreads.
This template should include:
Code:
[high]<a href="search.php?s=$session[sessionhash]&action=userthreads&userid=$post[userid]">[/high]View all threads started by $post[username][high]</a>[/high]
** Note that the text between the highlighted code above can be whatever you want - text, image/button, whatnot.
2) Open showthread.php and find:
Code:
$post[postcount] = ++$postcount;
$postbits .= getpostbit($post);
Change it to (addition marked in high):
Code:
$post[postcount] = ++$postcount;
[high] if ($post[postcount]=="1") {
eval("\$post[userthreads] = \"".gettemplate("postbit_userthreads")."\";");
} else {
$post[userthreads] = "";
}[/high]
$postbits .= getpostbit($post);
3) edit the template
postbit, and place
$post[userthreads] at the point where you want this link to show.
C'est tu