Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-13-2007, 08:12 PM
CrazyFish CrazyFish is offline
 
Join Date: Oct 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Welcome newest member

Hello who can help me out with this?

Threads: 3,127, Posts: 17,906, Members: 319
Welcome to our newest member ( name get incerted here)

Tell me is there a way to mod this or get rid of this? I keep getting people signing up on my site with rude and inappropriate names. I have it set-up that new members must be approved through me before having access to the site. But the welcome to our newest member( ) and the name shows up before my approval. Hope you understand what I'm trying to say here.

Thank-you

I was told there was a code to fix this, that way untill I approve the user, the will not show up in the newest member list?
Reply With Quote
  #2  
Old 01-14-2007, 01:05 AM
Dominic Dominic is offline
 
Join Date: Dec 2006
Location: Boston
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Simple fix, Go to the FORUMHOME template and find either

Code:
<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
Or if you can't find the first code, find this
Code:
<phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase>
And remove it.
Reply With Quote
  #3  
Old 01-14-2007, 09:03 AM
NeoToxic's Avatar
NeoToxic NeoToxic is offline
 
Join Date: Mar 2006
Location: Uk, Leeds
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

He wants it to show when the user is approved
Quote:
untill I approve the user, the will not show up in the newest member list?
Reply With Quote
  #4  
Old 01-14-2007, 10:09 AM
WhaLberg's Avatar
WhaLberg WhaLberg is offline
 
Join Date: Nov 2006
Location: Dersaadet
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CrazyFish View Post
Hello who can help me out with this?

Threads: 3,127, Posts: 17,906, Members: 319
Welcome to our newest member ( name get incerted here)



Tell me is there a way to mod this or get rid of this? I keep getting people signing up on my site with rude and inappropriate names. I have it set-up that new members must be approved through me before having access to the site. But the welcome to our newest member( ) and the name shows up before my approval. Hope you understand what I'm trying to say here.

Thank-you

I was told there was a code to fix this, that way untill I approve the user, the will not show up in the newest member list?
How you think to approve the user? I mean with changing the usergroup?
Reply With Quote
  #5  
Old 01-14-2007, 11:58 AM
Dominic Dominic is offline
 
Join Date: Dec 2006
Location: Boston
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh he said
Code:
Tell me is there a way to mod this or get rid of this?
so i told him how to get rid of it.
Reply With Quote
  #6  
Old 01-15-2007, 01:16 AM
CrazyFish CrazyFish is offline
 
Join Date: Oct 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was hoping not to get rid of it all together, just didn't want the name to show up till after approval. Can this be done?
Reply With Quote
  #7  
Old 02-16-2007, 03:26 PM
Mungky Mungky is offline
 
Join Date: Aug 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would love some help with this, too.

There was a hack available to restrict the selection of the "newest member" to certain usergroups; I had it installed on an earlier version of vB, but it doesn't seem to work with the current version.

I believe this is the code from the previous hack:

PHP Code:
 $newuser $DB_site->query_first("SELECT userid, username
                                  FROM " 
TABLE_PREFIX "user
                                  WHERE usergroupid NOT IN (3,4)
                                  ORDER BY userid DESC
                                  LIMIT 1"
);
     
$newuserid $newuser['userid'];        // set template variables
     
$newusername $newuser['username']; 
I tried substituting the above for the following in the index.php file, which I believe is the equivalent of where it worked in previous versions of vB:

PHP Code:
$newusername $vbulletin->userstats['newusername'];
$newuserid $vbulletin->userstats['newuserid']; 
However, this gave a fatal error; there are some differences between the coding styles in the old vs. newer versions of vB, but unfortunately I only know enough about PHP to do very low-level tweaks to suit my forum's needs.

If anybody who knows their way around these things could help out, it would be much appreciated!

EDITED TO ADD: I am using 3.6.4.
Reply With Quote
  #8  
Old 02-16-2007, 04:13 PM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try $db->query_first

rather than:

$DB_site->query_first
Reply With Quote
  #9  
Old 02-16-2007, 04:28 PM
Mungky Mungky is offline
 
Join Date: Aug 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by paul41598 View Post
Try $db->query_first

rather than:

$DB_site->query_first
Worked like a charm. Thank you so much!!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:19 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.06803 seconds
  • Memory Usage 2,253KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete