Newest Member Recognition Mod [by Kae]

Forum
Last Post
Threads / Messages

Kaeliah

Premium Member
Premium Member
Joined
Sep 28, 2010
Messages
475
Points
0
Age
31
Location
Pennsylvania, United States
Mysidian Dollar
21,285
Newest Member Recognition Mod
By Kaeliah


Modification TOS
**Note that there is no viewable credit required for this mod**

I believe it was enddayne who suggested this Mod. It's just a small code snippet, so here it is.


PHP:
$query = "SELECT * FROM ".$prefix."users ORDER BY membersince DESC LIMIT 1";
$result = mysql_query($query);
$num = mysql_numrows($result);
$i=0;
while ($i < $num) {
$username=@mysql_result($result, $i, "username");

$article_content = $article_content."<br>Please Welcome our newest user, <a href='profile.php?user=".$username."'>".$username."</a> ";
$i++;
}
// Newest Member Recognition Modification Snippet by Kaeliah of Mysidia Adoptables
Instructions: This code snippet is meant to be placed near the end of the stats.php page, just before the...

Code:
// **********************************************************************
// Begin Template Definition
// **********************************************************************
... however it can be placed elsewhere IF you know what your doing!!

That's pretty much it! Enjoy!
 
Last edited:
Thank you. :smile: It was enddayne's idea though. I just coded it. XD I'm no good with ideas of my own.

EDIT: ninja'd by enddayne. ^.^

Thanks, hope you like it, it was your suggestion. ^.^
 
@Roconza, ^.^ don't worry about sounding dumb, nobody is going to penalize you for asking questions. :smile: And yes, as Chibi said. It shows the newest registered member, so they can be welcomed.

@Chibi, Thank you! :D
 
I know you said you just did the coding, but regardless great job Kaeliah. And it could be used for so many different things. For example I edited it to display creatures with the least amount of attention. That way creatures that may be more neglected are there front and center for other users to help out.
 
This is very nice! It's simple, yet helpful and a nice addition to any site.

@Plague; that's very smart, I think x]
 
Thanks! I modified it to show the last 5 users. :D
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,122
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top