vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Welcome newest member (https://vborg.vbsupport.ru/showthread.php?t=136417)

CrazyFish 01-13-2007 08:12 PM

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?

Dominic 01-14-2007 01:05 AM

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.

NeoToxic 01-14-2007 09:03 AM

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?

WhaLberg 01-14-2007 10:09 AM

Quote:

Originally Posted by CrazyFish (Post 1158335)
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?

Dominic 01-14-2007 11:58 AM

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.

CrazyFish 01-15-2007 01:16 AM

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?

Mungky 02-16-2007 03:26 PM

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.

paul41598 02-16-2007 04:13 PM

Try $db->query_first

rather than:

$DB_site->query_first

Mungky 02-16-2007 04:28 PM

Quote:

Originally Posted by paul41598 (Post 1183992)
Try $db->query_first

rather than:

$DB_site->query_first

Worked like a charm. Thank you so much!!


All times are GMT. The time now is 07:12 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.01146 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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