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)
-   -   Moderators Functions - add posts no. to Users Awaiting Moderation List (https://vborg.vbsupport.ru/showthread.php?t=206157)

josef1 02-20-2009 10:00 PM

add posts no. to Users Awaiting Moderation List
 
1 Attachment(s)
This mod to add number of post in Users Awaiting Moderation List in admin cp

this is useful only for forums request new registered to validate emails and wait till final approval from admin

this done in CP by clicking on
List Users Awaiting Moderation

so what then

the list shows User Name, Email, IP Address, options to accept or delete
but not number of posts >>>> is it important ?? yes

as if any old member change his email, that will lead him to validate his email and he will be waiting admin to moderate his membership

so he will be in the list like new registers

and if admin delete him without knowing he is already old member, that's bad , no return, he is out of forum

so it will look better for admin to see number of posts in the list to distinguish between members, who is new and who is old member

it is easy way to add this option but i suggest first you take copy of the file before making any changes

you have to open user.php file

go to moderate section

find
Quote:

SELECT userid, username, email, ipaddress
replace with
Quote:

SELECT userid, username, email, ipaddress, posts

find
Quote:

print_table_header($vbphrase['users_awaiting_moderation'], 4);
replace with
Quote:

print_table_header($vbphrase['users_awaiting_moderation'], 5);
find
Quote:

$vbphrase['ip_address'],
add after
Quote:

$vbphrase['posts'],
find
Quote:

$cell[] = "<a href=\"usertools.php?" . $vbulletin->session->vars['sessionurl'] . "do=doips&amp;depth=2&amp;ipaddress=$user[ipaddress]&amp;hash=" . CP_SESSIONHASH . "\" target=\"_user\">$user[ipaddress]</a>";
add after
Quote:

$cell[] = "<a >$user[posts]</a>";

that's all

Welshy2008 03-03-2009 04:24 PM

Watching with interest.


All times are GMT. The time now is 04:29 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.01156 seconds
  • Memory Usage 1,713KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete