How would I achieve...
 
Notifications
Clear all

How would I achieve x last members to join the site?

4 Posts
3 Users
0 Reactions
1,495 Views
(@fanfictionworld)
Posts: 149
Estimable Member
Topic starter
 

I was wondering how to go about displaying the last <enter number here> of members to sign up to the site on a page

eg like if you set it to 10 it would display something like

Newest Members to join the site:

1 <membername>                     6 <membername>                     
2 <membername>                     7 <membername>
3 <membername>                     8  <membername>                 
4 <membername>                     9 <membername>                   
5 <membername>                     10 <membername>                           
                 
tho I have no clue how to pull it from the database and display it any help appriciated πŸ˜‰


~Spikey~

my site url: http://www.fanfictionworld.org
efic version:3.5.3

 
Posted : 16/09/2007 12:51 am
 Elle
(@jenny)
Posts: 594
Honorable Member
 

From a PHP newbie's point of view; with no knowledge of eFiction. (or apparent knowledge because I don't like tinkering with these type of scripts ;))

(from the top of my head)

<?php
$result = mysql_query("SELECT * FROM fanfiction_authors ORDER BY uid DESC LIMIT 10");
echo "<ol>";
while($story = mysql_fetch_array($result)) {
?>
<li><a href=""viewuser.php?uid=<?php" echo $story[uid]; ?>"><?php echo $story[penname]; ?></a></li>
<?php
}
?>

You'll have to eFic that ... (or wait for someone else to help you :))

I believe it's:

mysql_query = dbquery
mysql_fetch_array = dbrow

But I'm not sure.


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 16/09/2007 9:49 am
(@fanfictionworld)
Posts: 149
Estimable Member
Topic starter
 

yeah I'll wait untill someone else efic's it for me as im not sure how to do it tho im sure someone will know how! but thanks for the input Jenny  πŸ˜€


~Spikey~

my site url: http://www.fanfictionworld.org
efic version:3.5.3

 
Posted : 16/09/2007 10:09 am
(@azurite)
Posts: 209
Reputable Member
 

I'm interested in this, too. If this ever gets "eFicced," I'd like to know about it.
Matter of fact, I wonder if there's a way to alter the {newest} variable so it displays more than one member, like you can set the number for it to display.


Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log

 
Posted : 16/10/2007 2:55 am
Share: