vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   User Banned (https://vborg.vbsupport.ru/showthread.php?t=176459)

Benjamin-P 04-17-2008 07:30 PM

User Banned
 
Hello,

I would like a small hack which will show This user has been banned due to abuse. on a user profile which has been banned.

Thanks!

Lynne 04-17-2008 08:13 PM

Do you always want it to say the exact same thing?
HTML Code:

<if condition="is_member_of($vbulletin->userinfo, x)">
This user has been banned due to abuse.
</if>

Where x is the usergroup id of the banned group (8 ?)

(I think that's it.)

Benjamin-P 04-17-2008 08:22 PM

I have added the code in the appropriate place in MEMBERINFO but it does not show on a banned user's profile.

--------------- Added [DATE]1208467494[/DATE] at [TIME]1208467494[/TIME] ---------------

Ok, I have noticed the message shows to people who belong to the usergroup ID in the code. I would like it to show to everybody whenever they view a user profile which is banned.

Lynne 04-17-2008 08:27 PM

It may be just $userinfo, not $vbulletin->userinfo . I can never remember which is which! (I need to write myself a cheat sheet!)

Boofo 04-17-2008 08:42 PM

I think Lynne is right. It should be:

<if condition="is_member_of($userinfo, 8)">
This user has been banned due to abuse.
</if>

Benjamin-P 04-17-2008 09:17 PM

Your help has been much appreciated and the code works perfectly.

I have modified the profile a little bit which looks like this.

http://img175.imageshack.us/img175/2195/profilerm4.png

I just wanted it to remove GENERAL INFORMATION and $customfields and replace it with the code you provided.

Boofo 04-17-2008 09:33 PM

Nice looking profile page. It that 3.6?

Benjamin-P 04-17-2008 09:37 PM

Thank you,

Yeah, it's 3.6

Boofo 04-17-2008 09:38 PM

If you come up with a nice one for 3.7, I would be interested.

Benjamin-P 04-17-2008 09:40 PM

So you would like it to be exactly the same, just updated with 3.7?


All times are GMT. The time now is 03:49 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.01107 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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