vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Profile Enhancements - Ban user since their profile (Quick Ban) (https://vborg.vbsupport.ru/showthread.php?t=232682)

Dante848 11-25-2011 06:22 AM

Here is one for quick infraction
Code:

<a class="redcard" href="infraction.php?{vb:raw userinfo.userid}do=report&amp;u={vb:raw userinfo.userid}" rel="nofollow" title="{vb:rawphrase received_infraction}">
                <img src="{vb:stylevar imgdir_button}/red-card_sm.png" alt="Give Infraction" />
            </a>


Droptop 12-27-2011 06:57 AM

Quote:

Originally Posted by hazem_aliraqi (Post 2269311)
With your code will be visible to all members and visitors

What do you think of this code ?? that the admin only can see it and not for all, as is the case with edit profile for user ?

this is the code




PHP Code:

<vb:if condition="$show['edit_profile']"><a href="modcp/banning.php?do=banuser&amp;u={vb:raw userinfo.userid}" class="textcontrol imagecontrol">
                <
img src="{vb:stylevar imgdir_misc}/cross.png" alt="Ban user" />
</
a></vb:if> 


Thanks, works great! :up:

cjwinternet 07-02-2012 04:22 PM

Quote:

PS: Usergroups permissions are respected


Yeah if you mean that a member can't actually ban someone. They can see the X and it does take them to the control panel.


This mod should be deleted. There's clearly no permissions applied where there should be. Thank god the replies are better than the mod.

aouni_tahech 07-08-2012 10:55 AM

I agree.



Quote:

Originally Posted by TimberFloorAu (Post 2041129)
Better code would be:

Code:

<vb:if condition="is_member_of($bbuserinfo, 5,6,7)">
<a href="modcp/banning.php?do=banuser&amp;u={vb:raw userinfo.userid}" target="_blank" class="textcontrol imagecontrol">
                <img src="{vb:stylevar imgdir_misc}/cross.png" alt="Ban User" />
            </a></vb:if>

Very good tho, using it :)


Hakan39 07-08-2012 12:09 PM

thank you.

Menno11 07-09-2012 12:39 PM

thx installed

Arrogant-One 08-16-2012 07:00 PM

Quote:

Originally Posted by Candostum (Post 1954300)
Thanks installed.

This mod does not work for vB 4.1.12

pasta186 11-01-2012 09:28 AM

This might sound crazy, But is there a search button? Cuz i can't find " <span id="userinfo">"

Stan993 04-27-2014 03:01 PM

wow... tanks


All times are GMT. The time now is 03:21 AM.

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.01141 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)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
  • (9)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