vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Mini Mods - Ban or Password reminder in user profile (https://vborg.vbsupport.ru/showthread.php?t=222209)

Alexey? 08-31-2009 10:00 PM

Ban or Password reminder in user profile
 
1 Attachment(s)
Hey all,
i created a simple "code" that with it you can Ban user or reminde him his password from his proffile.

Here is what you need to do.
Go to Admincp >Style manager > then go to MEMBERINFO Template
After that search "$navbar"

then
place this below "$navbar"

Code:

<if condition="$show['modcplink']">
<br />
<font face="Arial">
<div width="100%">
<strong>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"><tr>
<td class="tcat" align="center">
Manage User:
&nbsp;&nbsp;
</td>
<!-- if user isn't banned-->
  <if condition="$userinfo[usergroupid]=='8'"><!-- if user is banned -->
  <td class="thead" align="center">
    <a href="$modcpdir/banning.php?do=liftban&u=$userinfo[userid]">Remove Ban</a>
    &nbsp;&nbsp;
  </td>
  <td class="thead" align="center">
    <a href="$modcpdir/banning.php?do=editreason&userid=$userinfo[userid]">Banning Reason</a>
    &nbsp;&nbsp;
  </td>
  <else /><!-- if user isn't banned-->
  <td class="thead" align="center">
    <a href="$modcpdir/banning.php?do=banuser&u=$userinfo[userid]">Ban</a>
    &nbsp;&nbsp;
  </td>
  </if>
  <td class="thead" align="center">
  <a href="$modcpdir/user.php?do=editsig&u=$userinfo[userid]">Edit Signature</a>
  &nbsp;&nbsp;
  </td>
<if condition="$show['admincplink']">
<td class="thead" align="center">
<a href="$admincpdir/user.php?do=editaccess&u=$userinfo[userid]">Edit Forum Premmisions</a>
&nbsp;&nbsp;
</td>
</if>
</tr></table>
</strong>
</div>
</font>
<br />
</if>


After you done. click save. go to some user profile and see what its done.


Click install if you dont mind and like this "hack"



by the way sorry for my bad English.

enemy@fps 09-01-2009 10:51 AM

in use.
thanks.

Blackheart_72 09-01-2009 12:11 PM

Nice one, thanks

Alexey? 09-01-2009 04:22 PM

Maybi soon i will add more finctions to this modification

enemy@fps 09-05-2009 09:00 PM

i really like your mods i hope u will release more

i have about 10 mods installed and 3 are of u

Alexey? 09-06-2009 11:04 AM

huh, Tnx dude.

multiplex 09-06-2009 12:42 PM

gonna tag this one. would like to see a screen shot first. can you add a screen shot please of what the user sees?

Alexey? 09-06-2009 03:55 PM

users can't see it.
only super mod +

ForrestBlack 09-08-2009 11:33 AM

When I click the "Password Reminder" link I get a screen with the following message:

"Click the button below to send a password reminder to " [SEND]

Note it's missing their name or user ID or whatever should be there.

If I click send it gives me the following error:

"You have not entered an email address that we recognize. Please try again or contact the administrator."

What do I need to fix?

Alexey? 09-09-2009 03:48 AM

I noticed this bug too right now.
i will try do fix it and then update this script


All times are GMT. The time now is 11:27 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.01074 seconds
  • Memory Usage 1,732KB
  • 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_code_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