![]() |
ok, real quicky one: find all threads (note: threads, not posts!) started by X.
Open search.php and find: Code:
// ###################### Start posts by user x ####################### Code:
// ###################### Start threads by user x ####################### For example, If you want it to appear in a user's profile, then place the following link in the getinfo template: Code:
<a href="search.php?s=$session[sessionhash]&action=userthreads&userid=$userinfo[userid]">Find threads started by $userinfo[username]</a> |
it's great!!:)
can show up in postbit template?? |
the link for postbit template is
<a href="search.php?s=$session[sessionhash]&action=userthreads&userid=$post[userid]">View all threads started by $userinfo[username]</a> Cheers, Bira |
Forgot to mention you can view this 'hack' on my bb, at http://www.atlasf1.com/bb (you don't need to be registered in order to view threads or profiles).
I have it added to the user's profile, but also in the first post of a thread (and only there), I have a link "view all threads started by X". |
thankz bira!!
i really think this is a good hack for me~~:D |
Nice Hack, thanks Bira.
|
late to the party but definitely installing this one :D
|
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] 2) Open showthread.php and find: Code:
$post[postcount] = ++$postcount; Code:
$post[postcount] = ++$postcount; C'est tu :) |
Thanks for the addon Bira, i gonna add it soon.
|
Bira:
Great hack yet again. I know I will personally use this a lot. I would really like to see this added to the general search page too. How is the threadpreview hack working out on your board? I haven't noticed any slow downs at all since installing it. Parker |
All times are GMT. The time now is 10:08 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:
|