vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Mini Mods - Admin Anger Button - Log a User Out (https://vborg.vbsupport.ru/showthread.php?t=163327)

Analogpoint 11-21-2007 10:00 PM

Admin Anger Button - Log a User Out
 
1 Attachment(s)
Adds a "Log User Out" option to the username popup menu in the postbit (in threads and PMs), and on the user's profile page, if you are an administrator. This does not ban the user or prohibit them from logging back in. It simply logs them out.

Request: https://vborg.vbsupport.ru/showthread.php?t=163318

Installation: Import the XML product file in the Product Manager.

Control: There is no options page for this mod, simply enable/disable in the Product Manager if you want.

History:
v 1.0.0 Initial release
v 1.0.1 Adds admin anger button/link when viewing a user's profile or a PM

pspmaster93 11-22-2007 02:23 AM

best mod ever! very usefull for other reasons aswell like if a hacker is on sum1 account, you change the pass but they still on, just log them out.

yoyoyoyo 11-22-2007 02:24 AM

LOL - you read my mind! thanks much

it would be really nice to have the install info, since I am using a custom postbit...

Vi3t4Lov3 11-22-2007 02:27 AM

this realy cool :) how about login this member :)) ?

hotwheels 11-22-2007 02:46 AM

Lmao........dat is great.

youradhere4222 11-22-2007 02:51 AM

Very cool. :)

Jennifer_27 11-22-2007 03:08 AM

Will this work with 3.6.4?

bela-meaad 11-22-2007 03:10 AM

hahahaha

thats realy cool
we can say:

GET OUT OF MY FORUM :mad:

Analogpoint 11-22-2007 03:12 AM

Quote:

Originally Posted by yoyoyoyo (Post 1387269)
it would be really nice to have the install info, since I am using a custom postbit...

It uses the $template_hook[postbit_user_popup] template hook available since (I think) version 3.6.6 It goes almost at the bottom of you postbit or postbit_legacy templates. If you don't have it in your template, just add it and the mod should work.

HTML Code:

        <if condition="$post['userid'] AND $show['member']">
        <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
        </if>
        $template_hook[postbit_user_popup]
        </table>
</div>
<!-- / post $post[postid] popup menu -->


Analogpoint 11-22-2007 03:15 AM

Quote:

Originally Posted by Jennifer_27 (Post 1387290)
Will this work with 3.6.4?

I don't think 3.6.4 has the required template hook.. Just add $template_hook[postbit_user_popup] right near the end of your postbit or postbit_legacy templates (whichever you use). See post #9 above for a snippet of the template code at the end of the postbit template, so you can see where the $template_hook variable should go.


All times are GMT. The time now is 03:42 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.01267 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete