vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Public Ban List (https://vborg.vbsupport.ru/showthread.php?t=95580)

eNforce 09-10-2005 12:45 PM

Is there any way to tweak it so that when an admin or mod unbans a user then they are removed from the ban list?

lucky64 09-19-2005 11:26 PM

Quote:

Originally Posted by Maniaman
I believe I have fixed the bug. I will need to wait 1 day to find for sure though


I fixed it by readding
Code:

// insert a record into the userban table
                /*insert query*/
                $db->query_write("
                        INSERT INTO " . TABLE_PREFIX . "userban
                        (userid, usergroupid, displaygroupid, customtitle, usertitle, adminid, bandate, liftdate, reason)
                        VALUES
                        ($user[userid], $user[usergroupid], $user[displaygroupid], $user[customtitle], '" . $db->escape_string($user['usertitle']) . "', " . $vbulletin->userinfo['userid'] . ", " . TIMENOW . ", $liftdate, '" . $db->escape_string($vbulletin->GPC['reason']) . "')
                ");

above
Code:

// insert a record into the userban table
                /*insert query*/
                $db->query_write("
                        INSERT INTO " . TABLE_PREFIX . "banlist
                        (userid, username, dateline, bannedpost, sentbywhom, howlong, reason)
                        VALUES
                        ($user[userid], '" . $db->escape_string($user[username]) . "', " . TIMENOW . ", '" . $db->escape_string($vbulletin->GPC['bannedpost']) . "', '" . $db->escape_string($vbulletin->userinfo[username]) . "', $liftdate, '" . $db->escape_string($vbulletin->GPC['reason']) . "')
                ");

        }

Not sure if this is the best way to do it though.

Any luck?

Dialtone98 09-20-2005 01:48 AM

I have what may seen to be a dumb question, but how do you add a new template. I know how to modify them.

eNforce 09-20-2005 02:38 AM

1 Attachment(s)
Quote:

Originally Posted by Dialtone98
I have what may seen to be a dumb question, but how do you add a new template. I know how to modify them.

See attachment

Dialtone98 09-20-2005 03:05 AM

Quote:

Originally Posted by eNforce
See attachment


I have 3.5 but I don't have those options.

I found it.. Thanks for your help.. Sorry to be a newb.


All times are GMT. The time now is 02:34 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.01601 seconds
  • Memory Usage 1,724KB
  • 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
  • (3)bbcode_quote_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
  • (5)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