View Full Version : How to disable Find all posts by user?
00pavan00
11-11-2013, 04:45 PM
Hello all i want to disable showing find all posts by user search, Please help me thanku very much :) I want to disable it completly except few admins thanku.
blind-eddie
11-19-2013, 03:26 AM
I don't believe there is a way to disable just that section.....
You could add if conditionals to the find all post by user link in the postbit/postbit legacy (Which ever you use) and the MEMBERINFO templates to hide the link from all but admins.
But, if someone knows the URL they will still be able to see post by user.
Example:
In your postbit_legacy template the code for the find more post by user link is...
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
To hide that link from all but admins you will be using the following conditional.
<if condition="$post['usergroupid'] == 6"></if>
After adding conditional:
<if condition="$post['usergroupid'] == 6">
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
</if>
To learn more about using vBulletin Template Conditionals please visit this Article (https://vborg.vbsupport.ru/showthread.php?t=215032&highlight=conditionals).
Happy editing.
Simon Lloyd
11-19-2013, 04:08 AM
I'll knock you something up if you want?
Simon Lloyd
11-19-2013, 04:15 AM
Errr!, it was a really simple thing to do, this has no settings (didnt think you'd want them) and will prevent all but staff from using the "Find All Users Posts" even if they know the url.
Enjoy!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.