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.

Magnumutz 11-22-2007 03:41 AM

Real cool dude... I love it :D

Fungsten 11-22-2007 03:46 AM

On Edit:

Is there a way to have other than usergroup to be able to log out a member?

Analogpoint 11-22-2007 04:06 AM

Quote:

Originally Posted by Fungsten (Post 1387313)
What does near the end mean?

It means 4 lines from the end of the postbit or postbit_legacy template.

Here are the last 7 lines of those templates. $template_hook[postbit_user_popup] goes on the fourth to the last line. :)
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 -->


gforce75 11-22-2007 04:09 AM

Lolz, nice idea

elrafei 11-22-2007 04:30 AM

Very cool

ChurchMedia 11-22-2007 05:50 AM

I love it! :D

Tulsa 11-22-2007 06:25 AM

Any chance of adding this option to the users profile?

For those times when they've just logged in and used some really offensive name and haven't posted yet.

youradhere4222 11-22-2007 07:10 AM

Could you add it to the member info template?

redlabour 11-22-2007 09:39 AM

Cant find any Button after installing it. Default Postbit 3.6.8

yoyoyoyo 11-22-2007 11:25 AM

Quote:

Originally Posted by youradhere4222 (Post 1387369)
Could you add it to the member info template?

that would solve my postbit error problem. I tried adding the hook to my postbit, but it didn't work - as I said I am not using a style that has a regular postbit - it is highly customized, and isn't even really called a postbit

Kihon Kata 11-22-2007 01:07 PM

Nice, Installs

ETDC 11-22-2007 01:31 PM

Can we have a time bar on them logging back in? Seems a bit pointless otherwise, because they can just type out their text in notepad, log in then paste it in. :)

redlabour 11-22-2007 01:46 PM

Quote:

Originally Posted by ETDC (Post 1387498)
Can we have a time bar on them logging back in? Seems a bit pointless otherwise, because they can just type out their text in notepad, log in then paste it in. :)

Type Text - Save Notepad - Come back after Hours or Days - Copy&Paste - Save Posting. :D

DieselMinded 11-22-2007 01:56 PM

Sweet Thanks

/me clicks installed

DieselMinded 11-22-2007 02:06 PM

If you get board you can add a vb message


You have been logged out By:_________ please reconsider your demeanor before loging back in

Thanks


That would be cool

inciarco 11-22-2007 02:35 PM

A Bug in this Hack: When Listing the Posts in a Page, this Hack Adds and Repeats the Forumers that Have Posted Before the Post You're Displaying the User's Options shown in the Image, so if you're in the 5th Post of the Page, the 4 Posters of the Previous Posts are Displayed also in the Dropdown Menu accessed for the Username in the 5th Post!! :confused: ;)

Imagine the Previous Bug if you're Displaying 20 Posts per Page and you're accessing the 20th Post username dropdown menu!! :confused: ;)

Would be Nice to have this option Also in the User Profile, and only to be accessed for the Admins!! :rolleyes: And Even Better to be able to select which usergroups are allowed to Use this Hack!! ;)

Another Bug is that You're forced to thenavigate to the Main Page of the Forum after using the Option!! Would be Better to Stay in the same Post and better in the Profile of the User you're forcing to Leave the Forums!! :confused: ;)

My Best Regards!! ;)

:)

Tulsa 11-22-2007 02:41 PM

Quote:

Originally Posted by inciarco (Post 1387525)
A Bug in this Hack: When Listing the Posts in a Page, this Hack Adds and Repeats the Forumers that Have Posted Before the Post You're Displaying the User's Options shown in the Image, so if you're in the 5th Post of the Page, the 4 Posters of the Previous Posts are Displayed also in the Dropdown Menu accessed for the Username in the 5th Post!! :confused: ;)

Imagine the Previous Bug if you're Displaying 20 Posts per Page and you're accessing the 20th Post username dropdown menu!! :confused: ;)



You sure you don't have something conflicting with this mod in your postbit? I get only the poster whom I've chosen and no others.

Analogpoint 11-22-2007 02:47 PM

Quote:

Originally Posted by inciarco (Post 1387525)
A Bug in this Hack: When Listing the Posts in a Page, this Hack Adds and Repeats the Forumers that Have Posted Before the Post You're Displaying the User's Options shown in the Image, so if you're in the 5th Post of the Page, the 4 Posters of the Previous Posts are Displayed also in the Dropdown Menu accessed for the Username in the 5th Post!! :confused: ;)

Imagine the Previous Bug if you're Displaying 20 Posts per Page and you're accessing the 20th Post username dropdown menu!! :confused: ;)

Would be Nice to have this option Also in the User Profile, and only to be accessed for the Admins!! :rolleyes: And Even Better to be able to select which usergroups are allowed to Use this Hack!! ;)

Another Bug is that You're forced to thenavigate to the Main Page of the Forum after using the Option!! Would be Better to Stay in the same Post and better in the Profile of the User you're forcing to Leave the Forums!! :confused: ;)

My Best Regards!! ;)

:)

This must be a conflict with another mod, or your version of vB. What version of vB are you using, and what other mods do you have installed? Also, this mod does redirect you back to the same page you were on, after logging the user out.

Analogpoint 11-22-2007 02:59 PM

Quote:

Originally Posted by yoyoyoyo (Post 1387269)
LOL - you read my mind! thanks much

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

Quote:

Originally Posted by yoyoyoyo (Post 1387452)
that would solve my postbit error problem. I tried adding the hook to my postbit, but it didn't work - as I said I am not using a style that has a regular postbit - it is highly customized, and isn't even really called a postbit


Try manually adding this link to the postbit template (or where ever you want).
Code:

<a href="$vboptions[bburl]/login.php?do=loguserout&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[log_x_out]</phrase></a>

ETDC 11-22-2007 03:50 PM

Quote:

Originally Posted by redlabour (Post 1387501)
Type Text - Save Notepad - Come back after Hours or Days - Copy&Paste - Save Posting. :D

And in layman's terms? :confused:

TheBlackPoet 11-22-2007 04:06 PM

perfect

inciarco 11-22-2007 05:25 PM

Quote:

Originally Posted by inciarco (Post 1387525)
A Bug in this Hack: When Listing the Posts in a Page, this Hack Adds and Repeats the Forumers that Have Posted Before the Post You're Displaying the User's Options shown in the Image, so if you're in the 5th Post of the Page, the 4 Posters of the Previous Posts are Displayed also in the Dropdown Menu accessed for the Username in the 5th Post!! :confused: ;)

Imagine the Previous Bug if you're Displaying 20 Posts per Page and you're accessing the 20th Post username dropdown menu!! :confused: ;)

Would be Nice to have this option Also in the User Profile, and only to be accessed for the Admins!! :rolleyes: And Even Better to be able to select which usergroups are allowed to Use this Hack!! ;)

Another Bug is that You're forced to thenavigate to the Main Page of the Forum after using the Option!! Would be Better to Stay in the same Post and better in the Profile of the User you're forcing to Leave the Forums!! :confused: ;)

My Best Regards!! ;)

:)

I Insist Should be an Error on the Plugin "Admin anger button".

To correct the Duplication of the "Log {1} Out", I've turned this Plugin Off ("Admin anger button"), and replaced it for the following Code on the postbit and postbit_legacy, Templates:

Code:


<!-- Start of Admin Anger Button 2007-11-22 -->

        <if condition="$bbuserinfo[usergroupid] == 6">
                <tr><td class="vbmenu_option"><a href="/foros/login.php?do=loguserout&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[log_x_out]</phrase></a></td></tr>
        </if>

<!-- End of Admin Anger Button 2007-11-22 -->

/foros Apply for my Forums.

and to Place the Code on the User's Profile, I've Placed te Following code on the MEMBERINFO Template

Code:


<!-- Start of Admin Anger Button 2007-11-22 -->

        <if condition="$bbuserinfo[usergroupid] == 6">

                <td class="vbmenu_control"><a href="/foros/login.php?do=loguserout&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[log_x_out]</phrase></a></td>

        </if>

<!-- End of Admin Anger Button 2007-11-22 -->

/foros Apply for my Forums.

The "Log user out" Plugin shall be Active, because the Links feeds of the Code of this Plugin to Log the User Out, and of course the "Admin Anger Button" Addon shall be Active Too.

My Best Regards!! ;)

:)

realsumon 11-22-2007 05:36 PM

Thanks. i need it i will install tonight.

inciarco 11-22-2007 05:46 PM

I also insist there's a Bug on the "Log user out" Plugin, because when I try the Log User Out Link in a Post of a Thread, I'm redirected to the Main Page of my Forums, and when I try this on the User Profile with the Code I've Added and presented in my previous post, I'm redirected to the User's Profile, so perhaps there's something in the Code that don't works with vBulletin 3.6.7 PL1 to return to the Posts!! :( :confused:

I think is perhaps the Code Line:

Code:


exec_header_redirect($vbulletin->url);

Perhaps in vBulletin 3.6.7 PL1 the Code "$vbulletin->url" is different to work on the Posts?? :confused:

You're the Experts!! :p

My Best Regards!! ;)

:)

Analogpoint 11-22-2007 05:48 PM

Quote:

Originally Posted by inciarco (Post 1387620)
I Insist Should be an Error on the Plugin "Admin anger button".

I don't think it is. I think it's an incompatibility with your version of vBulletin and how the template hooks are handled. Are you using vB 3.6.7? See http://www.vbulletin.com/forum/proje...?issueid=22069

DieselMinded 11-22-2007 05:53 PM

Flawless here on 3.6.8 PL2 w/ Over 55 Mods installed

Analogpoint 11-22-2007 05:54 PM

Quote:

Originally Posted by inciarco (Post 1387630)
I also insist there's a Bug on the "Log user out" Plugin, because when I try the Log User Out Link in a Post of a Thread, I'm redirected to the Main Page of my Forums, and when I try this on the User Profile with the Code I've Added and presented in my previous post, I'm redirected to the User's Profile, so perhaps there's something in the Code that don't works with vBulletin 3.6.7 PL1 to return to the Posts!! :( :confused:

As stated in the first post, this mod was designed for 3.6.8, and there's no guarantees of it working with 3.6.7. Why don't you upgrade?

Analogpoint 11-22-2007 05:56 PM

Quote:

Originally Posted by ETDC (Post 1387498)
Can we have a time bar on them logging back in? Seems a bit pointless otherwise, because they can just type out their text in notepad, log in then paste it in. :)

That's what banning is for.

DieselMinded 11-22-2007 05:58 PM

Quote:

Originally Posted by DiesellMinded (Post 1387513)
If you get board you can add a vb message


You have been logged out By:_________ please reconsider your demeanor before loging back in

Thanks


That would be cool

Is this possible ?

inciarco 11-22-2007 05:59 PM

Quote:

Originally Posted by Analogpoint (Post 1387638)
As stated in the first post, this mod was designed for 3.6.8, and there's no guarantees of it working with 3.6.7. Why don't you upgrade?

Too many changes in 3.6.8 and Everytime a Change is needed to Upgrade all Mods Should be Installed Again, all Files Changed Again, and All Templates Edited Again; that happened to me with 3.6.6 and how quickly had to upgrade to 3.6.7 because of security problems with 3.6.6 Version!! :p

Perhaps I'll change to 3.6.8 when I have the Time to Make all those Changes!! ;)

My Best Regards and Thank You For Your Special Support!! ;)

:)


All times are GMT. The time now is 03:14 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.01597 seconds
  • Memory Usage 1,840KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_html_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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