vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Five Newest Members? (https://vborg.vbsupport.ru/showthread.php?t=183386)

Super Jinni 06-24-2008 10:38 AM

Five Newest Members?
 
How to have VB show the 5 newest mebers, just not the very last member?

Welcome to our newest member(s): #1, #2,, #3, #4, #5, etc...

I know this might be simple, but could not find solution...

Any ideas?

thanks

:)

kiril_cvetkov 06-24-2008 12:01 PM

Hi, i haven't try it to my vbulletin board, but i've coded something for you..
1.Create new plugin in forumhome
a) put this code into it
PHP Code:

$sql=$db->query_read("SELECT username,userid FROM ".TABLE_PREFIX." user ORDER BY userid desc LIMIT 5");
while (
$get $db->fetch_array($sql))
{
$theusername =  $get['username'];
$userid $get['userid'];
$latestmembers .= "<a href =member.php?u=$userid>$theusername</a> ";


Add some title and click save

2) Go to your style Templates -> Forumhome templates -> FORUMHOME

- Find
HTML Code:

<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
After that put this
HTML Code:

<div>The 5 newest members are $latestmembers</div>
:) Done

Super Jinni 06-24-2008 02:09 PM

ok, thank you man.. I'm gonna give it a try and see


thanks

:)

--------------- Added [DATE]1214320948[/DATE] at [TIME]1214320948[/TIME] ---------------

that did the trick

thank you

:)

but how about adding a (,) or (|) between names?

kiril_cvetkov 06-24-2008 03:52 PM

Simply add what you want in the hook

KURTZ 06-24-2008 04:12 PM

also check this ;)

https://vborg.vbsupport.ru/showthread.php?t=177778

Super Jinni 06-24-2008 06:40 PM

Quote:

Originally Posted by kiril_cvetkov (Post 1557853)
Simply add what you want in the hook

I'm lost

I couldn't do that..

can you be more clear about how exactly to do that

many thanks

Quote:

Originally Posted by KURTZ (Post 1557865)


but that isn't what I want

I do have that product, but I want to replace the ( welcome to our newest member ) with ( welcome to our five newest member) and I then I can replace it somewhere else e.g.( in the header );)

thanks anyway

:)


All times are GMT. The time now is 11:48 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.00983 seconds
  • Memory Usage 1,730KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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