vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to disable Find all posts by user? (https://vborg.vbsupport.ru/showthread.php?t=304408)

00pavan00 11-11-2013 04:45 PM

How to disable Find all posts by user?
 
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...

Code:

        <if condition="$show['search']">
                <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;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.
Code:

<if condition="$post['usergroupid'] == 6"></if>

After adding conditional:
Code:

              <if condition="$post['usergroupid'] == 6">
        <if condition="$show['search']">
                <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;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.

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

1 Attachment(s)
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!


All times are GMT. The time now is 11:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00919 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete