Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
New Members Page Details »»
New Members Page
Version: 1.0.2, by Eric Eric is offline
Developer Last Online: Jun 2023 Show Printable Version Email this Page

Version: 3.5.5 Rating:
Released: 08-06-2006 Last Update: 08-09-2006 Installs: 12
Uses Plugins Template Edits
Additional Files  
No support by the author.

New Members Page

Updated to 1.0.2

This modification will produce a New Members page listing the username, avatar, and profile pic of the latest users sorted by joindate. The amount listed is based on an admin configurable limit. If the user has no avatar or profile pic, a default one is used.

Made by request: https://vborg.vbsupport.ru/showthread.php?t=122676

Installation
  • Import the product 'product-newmemberspage.xml'.
  • Upload newmembers.php to your forum root. Upload noavatar.gif and noprofilepic.gif to images/misc/. If you want to use your own remember that you will have to go into the admincp and give it's filename + size.
  • Options can be set in AdminCP -> vBulletin Options -> New Members Page

That's it your done.. aside from linking to the newmembers page. Here's an example of adding it to the navbar:

Open the 'navbar' template.

FIND
HTML Code:
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
AFTER, ADD
HTML Code:
<td class="vbmenu_control"><a href="newmembers.php$session[sessionurl_q]">$vbphrase[newmembers]</a></td>
Upgrading
  • Re-import the product 'product-newmemberspage.xml' with "Allow Overwrite" set to yes.
  • Re-upload & overwrite newmembers.php.

Changelog
  • 1.0.2 - Re-added the 'cutoff'. It is based on an admin set number of days.
  • 1.0.1 - Removed the time restriction: 'cutoff'. Cleaned up the newmembers_results template.

WOL & Joindate
If you want New Members Page on WOL and/or display joindate on the New Members Page, make the edits in the following posts:

https://vborg.vbsupport.ru/showpost....6&postcount=26
https://vborg.vbsupport.ru/showpost....7&postcount=29

Make sure you click INSTALL if you use this modification.

Enjoy!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 08-11-2006, 03:46 PM
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Location: Montreal
Posts: 1,037
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stifmeister2
Suggestion: Could you add "Join date" also? After "User Name" for example.

Like
"User Name" | "Join Date" | "Avatar" | "Profile Picture"
Meh, don't add to much stuff, I need to take it all off when it comes to templates at the end, I just needed the username and profile picture
Reply With Quote
  #23  
Old 08-11-2006, 04:05 PM
Stifmeister2 Stifmeister2 is offline
 
Join Date: Feb 2006
Location: Finland
Posts: 755
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok ok it's not necessary, but I'd like it. If someone can give me some help how to do it myself I'd appreciate.


Yet another question though. Does anyone know how to edit this? (SEE ATTACHED IMAGE)
It would really make this cool mod look even cooler if you could add a text like "Viewing Newest Members" or something like that instead of that "Unknown Locaton".
Reply With Quote
  #24  
Old 08-11-2006, 06:53 PM
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Location: Montreal
Posts: 1,037
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated without a problem, keep up the good work
Reply With Quote
  #25  
Old 08-11-2006, 10:15 PM
Eric's Avatar
Eric Eric is offline
 
Join Date: May 2006
Location: Kentucky
Posts: 792
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stifmeister2
Ok ok it's not necessary, but I'd like it. If someone can give me some help how to do it myself I'd appreciate.


Yet another question though. Does anyone know how to edit this? (SEE ATTACHED IMAGE)
It would really make this cool mod look even cooler if you could add a text like "Viewing Newest Members" or something like that instead of that "Unknown Locaton".
Sure, here in a little while I'll do that. And make a post with a way to add joindate
Reply With Quote
  #26  
Old 08-12-2006, 03:27 PM
Stifmeister2 Stifmeister2 is offline
 
Join Date: Feb 2006
Location: Finland
Posts: 755
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SecondV
Sure, here in a little while I'll do that. And make a post with a way to add joindate
LOL don't ask me I'm a n00b when it comes to coding.
Reply With Quote
  #27  
Old 08-15-2006, 04:03 AM
Eric's Avatar
Eric Eric is offline
 
Join Date: May 2006
Location: Kentucky
Posts: 792
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stifmeister2
LOL don't ask me I'm a n00b when it comes to coding.
For WOL, you'll need two plugins.

online_location_process:
PHP Code:
if ($filename == 'newmembers.php')
{
    
$userinfo['activity'] = 'newmembers';

online_location_unknown:
PHP Code:
if ($userinfo['activity'] == 'newmembers')
{
    
$userinfo['action'] = construct_phrase($vbphrase['viewing_x'], 'New Members');
    
$handled true;

For joindate; open newmembers.php and find:
PHP Code:
        $bgclass 'alt2'
Above that add:
PHP Code:
        $newmembers['datejoined'] = vbdate($vbulletin->options['dateformat'], $newmembers['joindate'], true); 
Edit the newmembers template, find
HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr align="center">
	<td class="thead" align="$stylevar[left]" nowrap="nowrap">$vbphrase[username]</td>
	<td class="thead" nowrap="nowrap">$vbphrase[avatar]</td>
	<td class="thead" nowrap="nowrap">$vbphrase[profile_picture]</td>
</tr>

$newmemberbits
</table>
Replace with
HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr align="center">
	<td class="thead" align="$stylevar[left]" nowrap="nowrap">$vbphrase[username]</td>
	<td class="thead" nowrap="nowrap">$vbphrase[avatar]</td>
	<td class="thead" nowrap="nowrap">$vbphrase[profile_picture]</td>
	<td class="thead" nowrap="nowrap">$vbphrase[join_date]</td>
</tr>

$newmemberbits
</table>
Edit the 'newmembers_results' template. Replace everything with:
HTML Code:
<tr align="center">
	<td class="alt1Active" align="$stylevar[left]" id="u$newmembers[userid]"><a href="member.php?$session[sessionurl]u=$newmembers[userid]">$newmembers[username]</a></td>
	<if condition="exec_switch_bg()"><td class="$bgclass"><img src="$avatarurl" border="0" $avwidth $avheight alt="<phrase 1="$newmembers[username]">$vbphrase[xs_avatar]</phrase>" hspace="4" vspace="4" /></td></if>
	<if condition="exec_switch_bg()"><td class="$bgclass">$newmembers[profilepic]</td></if>
	<if condition="exec_switch_bg()"><td class="$bgclass">$newmembers[datejoined]</td></if>
</tr>
That should do it. Of course you can change the template around etc to get it where you want.
Reply With Quote
  #28  
Old 08-15-2006, 11:13 AM
Stifmeister2 Stifmeister2 is offline
 
Join Date: Feb 2006
Location: Finland
Posts: 755
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SecondV
For WOL, you'll need two plugins.

online_location_process:
PHP Code:
if ($filename == 'newmembers.php')
{
    
$userinfo['activity'] = 'newmembers';

online_location_unknown:
PHP Code:
if ($userinfo['activity'] == 'newmembers')
{
    
$userinfo['action'] = construct_phrase($vbphrase['viewing_x'], 'New Members');
    
$handled true;

For joindate; open newmembers.php and find:
PHP Code:
        $bgclass 'alt2'
Above that add:
PHP Code:
        $newmembers['datejoined'] = vbdate($vbulletin->options['dateformat'], $newmembers['joindate'], true); 
Edit the newmembers template, find
HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr align="center">
	<td class="thead" align="$stylevar[left]" nowrap="nowrap">$vbphrase[username]</td>
	<td class="thead" nowrap="nowrap">$vbphrase[avatar]</td>
	<td class="thead" nowrap="nowrap">$vbphrase[profile_picture]</td>
</tr>

$newmemberbits
</table>
Replace with
HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr align="center">
	<td class="thead" align="$stylevar[left]" nowrap="nowrap">$vbphrase[username]</td>
	<td class="thead" nowrap="nowrap">$vbphrase[avatar]</td>
	<td class="thead" nowrap="nowrap">$vbphrase[profile_picture]</td>
	<td class="thead" nowrap="nowrap">$vbphrase[join_date]</td>
</tr>

$newmemberbits
</table>
Edit the 'newmembers_results' template. Replace everything with:
HTML Code:
<tr align="center">
	<td class="alt1Active" align="$stylevar[left]" id="u$newmembers[userid]"><a href="member.php?$session[sessionurl]u=$newmembers[userid]">$newmembers[username]</a></td>
	<if condition="exec_switch_bg()"><td class="$bgclass"><img src="$avatarurl" border="0" $avwidth $avheight alt="<phrase 1="$newmembers[username]">$vbphrase[xs_avatar]</phrase>" hspace="4" vspace="4" /></td></if>
	<if condition="exec_switch_bg()"><td class="$bgclass">$newmembers[profilepic]</td></if>
	<if condition="exec_switch_bg()"><td class="$bgclass">$newmembers[datejoined]</td></if>
</tr>
That should do it. Of course you can change the template around etc to get it where you want.
Wow man thx, you rock!!
Reply With Quote
  #29  
Old 08-15-2006, 01:01 PM
Stifmeister2 Stifmeister2 is offline
 
Join Date: Feb 2006
Location: Finland
Posts: 755
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm it says everyone has joined "01-01-1970".. :S
Reply With Quote
  #30  
Old 08-17-2006, 01:01 AM
Eric's Avatar
Eric Eric is offline
 
Join Date: May 2006
Location: Kentucky
Posts: 792
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stifmeister2
Hmm it says everyone has joined "01-01-1970".. :S
Let me take a look into that.

EDIT: oops, my bad :red:

Forgot to add something to the query, open newmembers.php and find:
PHP Code:
    $getnewmembers $db->query_read("
        SELECT user.userid, user.username, avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline, customavatar.width AS avwidth, customavatar.height AS avheight, customprofilepic.userid AS profilepic, customprofilepic.dateline AS profilepicdateline, customprofilepic.width AS ppwidth, customprofilepic.height AS ppheight
        FROM " 
TABLE_PREFIX "user AS user
        LEFT JOIN " 
TABLE_PREFIX "avatar AS avatar ON(avatar.avatarid = user.avatarid)
        LEFT JOIN " 
TABLE_PREFIX "customavatar AS customavatar ON(customavatar.userid = user.userid)
        LEFT JOIN " 
TABLE_PREFIX "customprofilepic AS customprofilepic ON (user.userid = customprofilepic.userid)
        WHERE user.joindate >= 
$cutoff
        ORDER BY user.joindate DESC
        LIMIT " 
. ($limitlower 1) . ", $perpage
    "
); 
Replace with
PHP Code:
    $getnewmembers $db->query_read("
        SELECT user.userid, user.username, user.joindate, avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline, customavatar.width AS avwidth, customavatar.height AS avheight, customprofilepic.userid AS profilepic, customprofilepic.dateline AS profilepicdateline, customprofilepic.width AS ppwidth, customprofilepic.height AS ppheight
        FROM " 
TABLE_PREFIX "user AS user
        LEFT JOIN " 
TABLE_PREFIX "avatar AS avatar ON(avatar.avatarid = user.avatarid)
        LEFT JOIN " 
TABLE_PREFIX "customavatar AS customavatar ON(customavatar.userid = user.userid)
        LEFT JOIN " 
TABLE_PREFIX "customprofilepic AS customprofilepic ON (user.userid = customprofilepic.userid)
        WHERE user.joindate >= 
$cutoff
        ORDER BY user.joindate DESC
        LIMIT " 
. ($limitlower 1) . ", $perpage
    "
); 
Reply With Quote
  #31  
Old 08-17-2006, 01:53 PM
Stifmeister2 Stifmeister2 is offline
 
Join Date: Feb 2006
Location: Finland
Posts: 755
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works now. Thanks man. Really I appreciate this.
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 03:59 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.04648 seconds
  • Memory Usage 2,378KB
  • Queries Executed 27 (?)
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
  • (8)bbcode_html
  • (10)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete