The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
See only posts by the thread starter within a thread?
I've got a fairly unique situation here - I have a sub-forum that's used more as a journal. A thread is started and content is added over time by the original thread author. I'd like to find a way to give the members a way to view that thread and click a link and have all the replies from people that are not the original thread starter be filtered out. This way you can quickly see all the replies by the author of the thread. I know this is possible with the Search feature, and maybe I'll see about building a pre-loaded search link if there's no other way of doing it - one where you can see the full posts not just the search results. But I figured I'd ask here to see if anyone has any ideas. Maybe there's a hack out there that does something similar.
|
Благодарность от: | ||
blind-eddie |
#2
|
|||
|
|||
1.) Open the SHOWTHREAD template & search for <-- / thread display mode -->
2.) Select the highlighted text shown in the picture below. 3.) Replace with the code below. Note: my code actually includes an additional option to find all posts you have posted in the thread. You can remove that if you'd like by removing the entire <if condition="$show['member']"> section. Replace with: Code:
<!-- **************************************************** --> <if condition="$show['search']"> <!-- thread search menu --> <div class="vbmenu_popup" id="threadsearch_menu" style="display:none"> <form action="search.php?do=process&searchthreadid=$threadid" method="post"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">$vbphrase[search_this_thread]<a name="goto_threadsearch"></a></td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input type="hidden" name="do" value="process" /> <input type="hidden" name="searchthreadid" value="$threadid" /> <input type="text" class="bginput" name="query" size="25" />$gobutton<br /> </td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input type="hidden" name="do" value="process" /> <input type="hidden" name="searchthreadid" value="$threadid" /> <a href="search.php?$session[sessionurl]searchthreadid=$threadid&do=finduser&u=$thread[postuserid]">Find Thread Author's Posts</a> </td> </tr> <if condition="$show['member']"> <tr> <td class="vbmenu_option" title="nohilite"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input type="hidden" name="do" value="process" /> <input type="hidden" name="searchthreadid" value="$threadid" /> <a href="search.php?$session[sessionurl]searchthreadid=$threadid&do=finduser&u=$bbuserinfo[userid]">Find My Posts</a> </td> </tr> </if> <tr> <td class="vbmenu_option"><a href="search.php?$session[sessionurl]searchthreadid=$threadid">$vbphrase[advanced_search]</a> </td> </tr> </table> </form> </div> <!-- / thread search menu --> </if> <!-- **************************************************** --> |
Благодарность от: | ||
blind-eddie |
#4
|
|||
|
|||
I figured doing it with search results was fairly easy, but I wanted a cleaner solution - one that involved actual posts instead of search results. Click a link and view all posts inline from the thread author.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|