SMF For Free Support Forum
Signup For Free Forum
October 07, 2008, 12:20:12 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: [Code Idea] Random Member  (Read 323 times)
0 Members and 1 Guest are viewing this topic.
Sharp
SMF For Free Hero
*
Offline Offline

Posts: 848


Aetus.net


View Profile WWW
« on: April 17, 2008, 10:11:23 pm »

Forum Url: http://stylesheets.smfforfree2.com
Hey I just thought of a code! But since i am not a coder and when i did try it was a horrible outcome i will just share it with you and maybe you can make it. Heres the idea:

Sorta like the random banner, arcade game, and so on with the random things. It would be awesome if there was a random member, like it would say there name and it would be clickable and would take them to their profile. So what do you think...? Probally be good if it was in portal, but it would be cool anywhere.
Good Luck.
Much Appreciated.
Thanks.

Need Addition Info? Reply and I'm happy to tell you!
Logged

Colonel Pepsi
SMF For Free Full Member
*
Offline Offline

Posts: 218

If you have more images for my site, PM me.


View Profile WWW
« Reply #1 on: August 26, 2008, 04:44:51 pm »

I think I understand. Sorta like a member of the day?
Logged
Celebrus
SMF For Free Hero
*
Offline Offline

Posts: 781


Previously known as Omikron


View Profile WWW
« Reply #2 on: August 27, 2008, 12:02:42 pm »

Code:
<script>
// If you like this code and want to make me happy, please visit my site (aetus.net) :)
var range = ID OF THE LAST USER INCLUDED;
// No more editing after this unless you know what you're doing. ;)
var numbuh = Math.floor(Math.random()*(range+1))
document.write('<a href="http://'+window.location.host+'/index.php?action=profile;u='+numbuh+'">Random member</a>');
</script>

Not sure how it'd function, use on a test forum first.
Logged



Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.274 seconds with 17 queries.