Kaeliah
01-20-2011, 12:23 PM
Newest Member Recognition Mod
By Kaeliah
Modification TOS (http://www.mysidiaadoptables.com/forum/blog.php?cp=3)
**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.
$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 AdoptablesInstructions: This code snippet is meant to be placed near the end of the stats.php page, just before the...
// ************************************************** ********************
// Begin Template Definition
// ************************************************** ********************... however it can be placed elsewhere IF you know what your doing!!
That's pretty much it! Enjoy!
By Kaeliah
Modification TOS (http://www.mysidiaadoptables.com/forum/blog.php?cp=3)
**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.
$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 AdoptablesInstructions: This code snippet is meant to be placed near the end of the stats.php page, just before the...
// ************************************************** ********************
// Begin Template Definition
// ************************************************** ********************... however it can be placed elsewhere IF you know what your doing!!
That's pretty much it! Enjoy!