Jump to content
MakeWebGames

[mccode] Main menu users online count


Modern-Empires
 Share

Recommended Posts

This mod i made from scratch, i will tell you how many poeple are onlineon the main menu.

Open Main Menu

Find the line:

$mc=$ir['new_mail'];

add under:

$var2['num_users_on'] = mysql_query("SELECT userid FROM users WHERE laston >= UNIX_TIMESTAMP()-900", $c);

$var['num_users_on'] = mysql_num_rows($var2['num_users_on']);

and put this anywhere on the links in main menu:

Users Online ({$var['num_users_on']})

 

This mod was made by me Peter Greenacre

First Placed on modern-empires

http://www.modern-empires.site40.net

Link to comment
Share on other sites

Re: main menu users online count

 

This mod i made from scratch, i will tell you how many poeple are onlineon the main menu.

Open Main Menu

Find the line:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

add under:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

and put this anywhere on the links in main menu:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

This mod was made by me Peter Greenacre

First Placed on modern-empires

http://www.modern-empires.site40.net

 

Much better

Link to comment
Share on other sites

Re: main menu users online count

 

there's only one way to check out if it works and that by joining my game and have a look, you locate the working mod at the bottem of the main menu, thanks

LoL not only one wy you could install it into your own game, lOl

by joining my game and have a look
LoL, cheap wahy of getting people to join NICE ONE!

Anyway thanks for this MOD

Link to comment
Share on other sites

Re: main menu users online count

 

there's only one way to check out if it works and that by joining my game and have a look, you locate the working mod at the bottem of the main menu, thanks

LoL not only one wy you could install it into your own game, lOl

by joining my game and have a look
LoL, cheap wahy of getting people to join NICE ONE!

Anyway thanks for this MOD

 

well it helps me get members lol, but it is there to show you the mod i made in working prgress

Link to comment
Share on other sites

Re: main menu users online count

@ simplepanda, i would like to see your game running fast and efficient with that script plus 900 people online with in 15 minute's.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

To display:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

That's what i use.

Link to comment
Share on other sites

[mccode] Re: main menu users online count

 

This mod i made from scratch, i will tell you how many poeple are onlineon the main menu.

Open Main Menu

Find the line:

$mc=$ir['new_mail'];

add under:

$var2['num_users_on'] = mysql_query("SELECT userid FROM users WHERE laston >= UNIX_TIMESTAMP()-900", $c);

$var['num_users_on'] = mysql_num_rows($var2['num_users_on']);

and put this anywhere on the links in main menu:

Users Online ({$var['num_users_on']})

 

This mod was made by me Peter Greenacre

First Placed on modern-empires

http://www.modern-empires.site40.net

 

let me do a little edit for ya

Open Main Menu

Find the line:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

add under:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

and put this anywhere on the links in main menu:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

that should work...

Link to comment
Share on other sites

  • 2 weeks later...

Re: [mccode] Main menu users online count

 

aint there a code that shows atleast 10 people who are online and under neath them will be a link to usersonline page in the mainmenu. if you can make it please post them

and you say your a coder... limit 10 god thats basic i taught myself simple sql queries on my first day...

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...