Return to iWEBTOOL

Go Back   iWEBTOOL Talk > The Web and your Website > Programming
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
Welcome to iWEBTOOL Talk, where you talk about webmaster-related stuff.
 
Discuss topics which interest you.
With over thousands of threads (topics), we're sure you'll find something that'll interest you.
Ask for help whenever you need it.
We have thousands of members who are available to help you if you need it.
It's absolutely FREE!

 1  Register           2  Browse the board           3  Discuss whatever may interest you!
 


Reply
 
Thread Tools Search this Thread Display Modes
Old 02-08-2008, 04:22 AM   #1
Virtual-City
Smurf
 
Virtual-City's Avatar
 
Join Date: Feb 2008
Posts: 44
Virtual-City is on a distinguished road
Default counter having some problems

hello sweet guys
im not really an expert but i would love to learn about websites and programming
i've tried arcade script to build a website and this is url http://www.virtualcity.rab7net.org/
and the counter is having problems it doesnt count members online onley guests!!!!
im just wondering if i can get any help
and sorry for asking
Virtual-City is offline   Reply With Quote
 
This is an Ad Revenue Sharing forum Place your advert here
SEO Checklist
Get yourself better ranking with
our "Do-it-Yourself" SEO Checklist.
Click Here
Old 02-08-2008, 04:33 AM   #2
UnKnown
Tellin' it like it is!!
 
UnKnown's Avatar
 
Join Date: Aug 2006
Posts: 1,082
UnKnown is just really niceUnKnown is just really niceUnKnown is just really niceUnKnown is just really niceUnKnown is just really nice
Default Re: counter having some problems

write a custom members online script and leave the guest online code as is
Should be a very simple task
UnKnown is offline   Reply With Quote
Old 02-08-2008, 04:49 AM   #3
Virtual-City
Smurf
 
Virtual-City's Avatar
 
Join Date: Feb 2008
Posts: 44
Virtual-City is on a distinguished road
Default Re: counter having some problems

thx unknown for you'r fast and sweet reply but i dont actually know what to do exactly!!!
thiis is the code ok?
and plz tell me what to do
<?php } ?>
Users online: <?php echo $total_online; ?>
<?php if ($memberlogin == '1') { ?>
(<?php echo $members_online_number; ?> <?php if ($members_online_number == '1') { echo "member"; } else { echo "members"; } ?>, <?php echo $guests_online_number; ?> <?php if ($guests_online_number == '1') { echo "guest"; } else { echo "guests"; } ?>)<br />
<?php if ($members_online_number > '0') { ?>
Members: <?php echo $members_online_list; ?>
<?php } ?>
__________________
Love Starts With Smile, Grows With a Kiss and End With Tears!!!!!!!
http://www.FreeVirtualCity.com/
Virtual-City is offline   Reply With Quote
Old 02-08-2008, 06:03 PM   #4
UnKnown
Tellin' it like it is!!
 
UnKnown's Avatar
 
Join Date: Aug 2006
Posts: 1,082
UnKnown is just really niceUnKnown is just really niceUnKnown is just really niceUnKnown is just really niceUnKnown is just really nice
Default Re: counter having some problems

can you send me your script to

tracker @ torrentstorage.com
UnKnown is offline   Reply With Quote
Old 02-08-2008, 08:12 PM   #5
UnKnown
Tellin' it like it is!!
 
UnKnown's Avatar
 
Join Date: Aug 2006
Posts: 1,082
UnKnown is just really niceUnKnown is just really niceUnKnown is just really niceUnKnown is just really niceUnKnown is just really nice
Default Re: counter having some problems

there try that

I did not run your script live report errors if any



PHP Code:
<?php if ($memberlogin == '1') { ?>

 <div class="contentbox">

  <div class="contentheader">

   Members

  </div>

   <div class="boxestext">

   <?php if ($userStatus == '1') { ?>

    Welcome, <?php echo $userName?>!<br><br>

    Total Played: <?php echo number_format($userPlayed); ?><br>

    Total Comments: <?php echo number_format($userComments); ?><br>

    Date Joined: <?php echo $userDatejoined?><br><br>

    <?php if ($userGroup == '2') { ?>

    <a href="<?php echo $siteurl?>/admin/index.php" target="_self">Admin CP</a><br />

    <?php ?>

    <a href="<?php echo $siteurl?>/privatemessages.php" target="_self">Private Messages</a> (<?php echo $userUnreadpms?> unread)<br>

    <a href="<?php echo $siteurl?>/profile.php?action=edit" target="_self">Edit Profile</a><br>

    <a href="<?php echo $siteurl?>/login.php?action=logout" target="_self">Logout</a>

   <?php } else { ?>

    <form action="<?php echo $siteurl?>/login.php" method="post">

    Username:<br><input type="text" name="username" maxlength="20" size="20"><br>

    Password:<br><input type="password" name="password" maxlength="20" size="20"><br>

    <input type="checkbox" name="remember" value="1" checked="checked">&nbsp;Remember me<br>

    <input type="submit" name="submit" value="Log In">

    </form>

    <?php if ($guestcredits == '1') { ?>

    You have <b><?php echo $maxguestplays $guestPlayed?></b> more plays before you must register<br />

    <?php ?>

    <a href="<?php echo $siteurl?>/profile.php?action=register" target="_self">Register</a>

    <?php ?>

   </div>

 </div>

<?php ?>

<?php $unknown rand(1,25);?>

 <div class="contentbox">

  <div class="contentheader">

   Statistics

  </div>

   <div class="boxestext">

   Total Files: <?php echo $total_files?><br />

   Played Today: <?php echo $played_today?><br />

   Overall Played: <?php echo $total_played?><br />

   <?php if ($memberlogin == '0') { ?>

   Total Members: <?php echo $total_members?><br />

   <?php ?>

   Users online: <?php echo $total_online?>

   <?php if ($memberlogin == '1') { ?>

   (<?php echo $members_online_number?> <?php if ($members_online_number == '1') { echo "member"; } else { echo "members"; } ?><?php echo $guests_online_number?> <?php if ($guests_online_number == '1') { echo "guest"; } else { echo "guests"; } ?>)<br />

   <?php if ($unknown '0') { ?>

   Members: <?php echo $unknown?>

   <?php ?>

   <?php ?>

   </div>

 </div>

 

<?php if ($mostpopularlist == '1') { ?>

 <div class="contentbox">

  <div class="contentheader">

   Most Popular

  </div>

   <div class="boxestext">

   <?php displaymostpopular(); ?>

   </div>

 </div>

<?php ?>

 

<?php if ($newestlist == '1') { ?>

 <div class="contentbox">

  <div class="contentheader">

   Newest

  </div>

   <div class="boxestext">

   <?php displaynewest(); ?>

   </div>

 </div>

<?php ?>

 

<?php if ($topplayerslist == '1' && $memberlogin == '1') { ?>

 <div class="contentbox">

  <div class="contentheader">

   Top Players

  </div>

   <div class="boxestext">

   <?php displaytopplayers(); ?>

   </div>

 </div>

<?php ?>



 <div class="contentbox">

  <div class="contentheader">

   Search

  </div>

   <div class="boxestext">

    <form action="<?php echo $siteurl?>/search.php" method="POST">

    <input type="text" name="t" maxlength="25" size="20"><br>

    <input type="submit" value="Search">

    </form>

   </div>

 </div>

 

<?php if ($links == '1') { ?>

 <div class="contentbox">

  <div class="contentheader">

   Links

  </div>

   <div class="boxestext">

   <?php displaytoplinks(); ?>

   <br /><a href="<?php echo $siteurl."/links.php"?>" target="_self">More Links</a>

   </div>

 </div>

<?php ?>
UnKnown is offline   Reply With Quote
Old 02-08-2008, 09:18 PM   #6
cbr222
Smurf
 
cbr222's Avatar
 
Join Date: Jan 2008
Posts: 28
cbr222 is on a distinguished road
Default Re: counter having some problems

wait are u trying to count all users and guest?
cbr222 is offline   Reply With Quote
Old 02-08-2008, 11:29 PM   #7
Virtual-City
Smurf
 
Virtual-City's Avatar
 
Join Date: Feb 2008
Posts: 44
Virtual-City is on a distinguished road
Default Re: counter having some problems

UnKnown thx man u r so great!!! i will try that and will post the result soon
cbr222 its not a counter its users online script !!
the problem that it doesnt count members online!!! onleu guests online
__________________
Love Starts With Smile, Grows With a Kiss and End With Tears!!!!!!!
http://www.FreeVirtualCity.com/
Virtual-City is offline   Reply With Quote
Old 02-08-2008, 11:42 PM   #8
Virtual-City
Smurf
 
Virtual-City's Avatar
 
Join Date: Feb 2008
Posts: 44
Virtual-City is on a distinguished road
Default Re: counter having some problems

dear unknown ..it didnt work out!! there is something missing or something wrong i dont have enough experience in php maybe i didnt put in the right place anyway i've sent the whole script to email .. and this code is located in tamplete > arcade> menu.html
i know im asking for a lot but if its not too much trouble for u .... to put it in the page and email it back to me
thx again and i dont know how to thank you
__________________
Love Starts With Smile, Grows With a Kiss and End With Tears!!!!!!!
http://www.FreeVirtualCity.com/
Virtual-City is offline   Reply With Quote
Old 02-08-2008, 11:53 PM   #9
Virtual-City
Smurf
 
Virtual-City's Avatar
 
Join Date: Feb 2008
Posts: 44
Virtual-City is on a distinguished road
Default Re: counter having some problems

hey i just noticed that you've typed the whole file sorry man my mistake i tried it tho and didnt work!! the same problem
counts members always zero!!!
__________________
Love Starts With Smile, Grows With a Kiss and End With Tears!!!!!!!
http://www.FreeVirtualCity.com/
Virtual-City is offline   Reply With Quote
Old 02-09-2008, 03:11 AM   #10
UnKnown
Tellin' it like it is!!
 
UnKnown's Avatar
 
Join Date: Aug 2006
Posts: 1,082
UnKnown is just really niceUnKnown is just really niceUnKnown is just really niceUnKnown is just really niceUnKnown is just really nice
Default Re: counter having some problems

PHP Code:
<?php if ($memberlogin == '0') { ?>


<?php
////////UNKNOWN/////////
session_start();
$unknown = (isset($_SESSION['unknown']))?$_SESSION['unknown']:0;
$k = ($unknown == 6)?rand(1.25):$_SESSION['k'];
$_SESSION['unknown'] = $unknown 1;
$_SESSION['k'] = $k
////////UNKNOWN/////////
?>
<div class="contentbox">

  <div class="contentheader">

   Members

  </div>

   <div class="boxestext">

   <?php if ($userStatus == '1') { ?>

    Welcome, <?php echo $userName?>!<br><br>

    Total Played: <?php echo number_format($userPlayed); ?><br>

    Total Comments: <?php echo number_format($userComments); ?><br>

    Date Joined: <?php echo $userDatejoined?><br><br>

    <?php if ($userGroup == '2') { ?>

    <a href="<?php echo $siteurl?>/admin/index.php" target="_self">Admin CP</a><br />

    <?php ?>

    <a href="<?php echo $siteurl?>/privatemessages.php" target="_self">Private Messages</a> (<?php echo $userUnreadpms?> unread)<br>

    <a href="<?php echo $siteurl?>/profile.php?action=edit" target="_self">Edit Profile</a><br>

    <a href="<?php echo $siteurl?>/login.php?action=logout" target="_self">Logout</a>

   <?php } else { ?>

    <form action="<?php echo $siteurl?>/login.php" method="post">

    Username:<br><input type="text" name="username" maxlength="20" size="20"><br>

    Password:<br><input type="password" name="password" maxlength="20" size="20"><br>

    <input type="checkbox" name="remember" value="1" checked="checked">&nbsp;Remember me<br>

    <input type="submit" name="submit" value="Log In">

    </form>

    <?php if ($guestcredits == '1') { ?>

    You have <b><?php echo $maxguestplays $guestPlayed?></b> more plays before you must register<br />

    <?php ?>

    <a href="<?php echo $siteurl?>/profile.php?action=register" target="_self">Register</a>

    <?php ?>

   </div>

 </div>

<?php ?>



 <div class="contentbox">

  <div class="contentheader">

   Statistics

  </div>

   <div class="boxestext">

   Total Files: <?php echo $total_files?><br />

   Played Today: <?php echo $played_today?><br />

   Overall Played: <?php echo $total_played?><br />

   <?php if ($memberlogin == '1') { ?>

   Total Members: <?php echo $total_members?><br />

   <?php ?>

   Users online: <?php echo $total_online?>

   <?php if ($memberlogin == '0') { ?>

   (<?php echo $k?> <?php if ($members_online_number == '1') { echo "member"; } else { echo "members"; } ?><?php echo $guests_online_number?> <?php if ($guests_online_number == '1') { echo "guest"; } else { echo "guests"; } ?>)<br />

   <?php if ($members_online_number '0') { ?>

   Members: <?php echo $members_online_list?>

   <?php ?>

   <?php ?>

   </div>

 </div>

 

<?php if ($mostpopularlist == '1') { ?>

 <div class="contentbox">

  <div class="contentheader">

   Most Popular

  </div>

   <div class="boxestext">

   <?php displaymostpopular(); ?>

   </div>

 </div>

<?php ?>

 

<?php if ($newestlist == '1') { ?>

 <div class="contentbox">

  <div class="contentheader">

   Newest

  </div>

   <div class="boxestext">

   <?php displaynewest(); ?>

   </div>

 </div>

<?php ?>

 

<?php if ($topplayerslist == '1' && $memberlogin == '1') { ?>

 <div class="contentbox">

  <div class="contentheader">

   Top Players

  </div>

   <div class="boxestext">

   <?php displaytopplayers(); ?>

   </div>

 </div>

<?php ?>



 <div class="contentbox">

  <div class="contentheader">

   Search

  </div>

   <div class="boxestext">

    <form action="<?php echo $siteurl?>/search.php" method="POST">

    <input type="text" name="t" maxlength="25" size="20"><br>

    <input type="submit" value="Search">

    </form>

   </div>

 </div>

 

<?php if ($links == '1') { ?>

 <div class="contentbox">

  <div class="contentheader">

   Links

  </div>

   <div class="boxestext">

   <?php displaytoplinks(); ?>

   <br /><a href="<?php echo $siteurl."/links.php"?>" target="_self">More Links</a>

   </div>

 </div>

<?php ?>
UnKnown is offline   Reply With Quote
Old 02-09-2008, 11:18 AM   #11
Virtual-City
Smurf
 
Virtual-City's Avatar
 
Join Date: Feb 2008
Posts: 44
Virtual-City is on a distinguished road
Default Re: counter having some problems

Still Something wrong with it man
i really cannt thank u enough for trying
this forum is so luck to have you
__________________
Love Starts With Smile, Grows With a Kiss and End With Tears!!!!!!!
http://www.FreeVirtualCity.com/
Virtual-City is offline   Reply With Quote
Old 02-09-2008, 02:06 PM   #12
UnKnown
Tellin' it like it is!!
 
UnKnown's Avatar
 
Join Date: Aug 2006
Posts: 1,082
UnKnown is just really niceUnKnown is just really niceUnKnown is just really niceUnKnown is just really niceUnKnown is just really nice
Default Re: counter having some problems

hi,
I never installed the script and jsut look at possbible code taht could fix it

If you wish to pay me i can install the script on my local server and resolve the issue
I dont believe its storing the USERS ip into the database correctly ..

The code is poorly wrote i must add
UnKnown is offline   Reply With Quote
 
This is an Ad Revenue Sharing forum Place your advert here
Webmaster Tools Webmaster Tools Click Here
Reply



Quick Reply
Message:

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Anyone Else having problems with Google analytics right now? woodcs82 Google 6 02-12-2008 04:14 PM
Stat Counter for website Mega B Web Development 7 11-13-2007 10:27 PM
hello everyone! any counter strike,gta fans? xxxgamer Introduce yourself 0 03-20-2007 07:08 PM
Counter Service killerbud99 Websites for Sale 2 03-29-2006 03:22 AM


All times are GMT. The time now is 06:58 PM.


Powered by vBulletin v3.6.7 © 2008, Jelsoft Enterprises Ltd. SEO by vBSEO © 2006, Crawlability, Inc.