Eurocardsharing

Go Back   Eurocardsharing > General Discussions > General Discussions > report website bugs

report website bugs Discussion, spent time on board at General Discussions forum; allmost a year now the "spent time on board" number has been the same, seems stuck ? Will it ever ...

Reply
 
LinkBack Thread Tools Display Modes
spent time on board
Old
  (#1)
dimking
Old Geezer Moderator
 
dimking's Avatar
 
Offline
Posts: 3,254

Level: 44 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 108 / 1083
Magic: 1084 / 34874
Experience: 33%

Thanks: 395
Thanked 520 Times in 333 Posts
Join Date: Dec 2006
Location: Earthbound..
spent time on board - 04-January-2008, 14:19

allmost a year now the "spent time on board" number has been the same, seems stuck ? Will it ever be fixed or removed ?

(rather have it fixed to give someone a boner or wood if he sees he's up here for a year or longer )


here at the left of the screen
Spent Time On Board: 299860
Posts: 1,140



+ 5000 channels to watch, and still nothin' on TV...
- Server 24/7/365 - Wanted.. ziggo 5555.. Share - pm me ! - CCcam -





CCcam info in u'r ODS skin ?!
Start cardsharing with CCcam ?!
Control u'r TV with DreamRemote ?!

Last edited by dimking; 05-March-2008 at 10:09..
   
Reply With Quote
Old
  (#2)
dimking
Old Geezer Moderator
 
dimking's Avatar
 
Offline
Posts: 3,254

Level: 44 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 108 / 1083
Magic: 1084 / 34874
Experience: 33%

Thanks: 395
Thanked 520 Times in 333 Posts
Join Date: Dec 2006
Location: Earthbound..
05-March-2008, 10:05

could someone fix this please !

- bytheway, any browser
- it's stuck since the database crash of the beginning of last year.



+ 5000 channels to watch, and still nothin' on TV...
- Server 24/7/365 - Wanted.. ziggo 5555.. Share - pm me ! - CCcam -





CCcam info in u'r ODS skin ?!
Start cardsharing with CCcam ?!
Control u'r TV with DreamRemote ?!

Last edited by dimking; 05-March-2008 at 10:07..
   
Reply With Quote
Sponsored Links
Old
  (#3)
dimking
Old Geezer Moderator
 
dimking's Avatar
 
Offline
Posts: 3,254

Level: 44 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 108 / 1083
Magic: 1084 / 34874
Experience: 33%

Thanks: 395
Thanked 520 Times in 333 Posts
Join Date: Dec 2006
Location: Earthbound..
16-March-2008, 12:43

no cause found yet ?!



+ 5000 channels to watch, and still nothin' on TV...
- Server 24/7/365 - Wanted.. ziggo 5555.. Share - pm me ! - CCcam -





CCcam info in u'r ODS skin ?!
Start cardsharing with CCcam ?!
Control u'r TV with DreamRemote ?!
   
Reply With Quote
Old
  (#4)
ivanovh
Administrator
 
ivanovh's Avatar
 
Offline
Posts: 12,542

Level: 69 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 516 / 1720
Magic: 4180 / 55742
Experience: 83%

Thanks: 2,419
Thanked 5,850 Times in 2,821 Posts
Join Date: Nov 2006
Location: Eindhoven
Age: 54
16-March-2008, 12:59

It hasn't been working for a longgg time.....







---------------------------------------------------
Dreambox 8000 HD PVR
Dreambox 7020si
Dual Xeon 3.4Ghz Cardserver in Raid 5 , Debian 5.1, CCcam 2.1.3



Loewe Individual Compose 40"

Iphone 5 64Gb [7.0]
Ipad 4, 128Gb
---------------------------------------------------
If you are happy with the reply,
show your appreciation press "thanks", dont be shy!
   
Reply With Quote
Old
  (#5)
dimking
Old Geezer Moderator
 
dimking's Avatar
 
Offline
Posts: 3,254

Level: 44 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 108 / 1083
Magic: 1084 / 34874
Experience: 33%

Thanks: 395
Thanked 520 Times in 333 Posts
Join Date: Dec 2006
Location: Earthbound..
22-March-2008, 18:13

Quote:
Originally Posted by ivanovh View Post
It hasn't been working for a longgg time.....
yeah over a year now, this could not be this hard to fix ?




+ 5000 channels to watch, and still nothin' on TV...
- Server 24/7/365 - Wanted.. ziggo 5555.. Share - pm me ! - CCcam -





CCcam info in u'r ODS skin ?!
Start cardsharing with CCcam ?!
Control u'r TV with DreamRemote ?!
   
Reply With Quote
Old
  (#6)
pronet
Database wizard
 
pronet's Avatar
 
Offline
Posts: 129

Level: 10 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 235
Magic: 43 / 7639
Experience: 40%

Thanks: 0
Thanked 57 Times in 31 Posts
Join Date: Oct 2006
Location: Somewhere kool
Age: 47
23-March-2008, 01:11

i think i know what this is....

only just saw this thread... lol..

looks like its printing the values as they are stored in db , without proper
PHP formatting...

its missing the time(); command hence u get db contents instead of a date

will try and fix in next few days...... need to find the correct bit thats doing it.

   
Reply With Quote
The Following User Says Thank You to pronet For This Useful Post:
dimking (11-April-2008)
Old
  (#7)
dimking
Old Geezer Moderator
 
dimking's Avatar
 
Offline
Posts: 3,254

Level: 44 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 108 / 1083
Magic: 1084 / 34874
Experience: 33%

Thanks: 395
Thanked 520 Times in 333 Posts
Join Date: Dec 2006
Location: Earthbound..
11-April-2008, 11:39

Quote:
Originally Posted by pronet View Post
need to find the correct bit thats doing it.
I found it for ya




+ 5000 channels to watch, and still nothin' on TV...
- Server 24/7/365 - Wanted.. ziggo 5555.. Share - pm me ! - CCcam -





CCcam info in u'r ODS skin ?!
Start cardsharing with CCcam ?!
Control u'r TV with DreamRemote ?!
   
Reply With Quote
Old
  (#8)
pronet
Database wizard
 
pronet's Avatar
 
Offline
Posts: 129

Level: 10 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 235
Magic: 43 / 7639
Experience: 40%

Thanks: 0
Thanked 57 Times in 31 Posts
Join Date: Oct 2006
Location: Somewhere kool
Age: 47
25-April-2008, 17:37

errrr......


lol.....


i doubt am looking for hexadecimal bytes.... am not reverse engineering an
ECM ?

lol...

i`been well buzy lately.... this bug will get done soon.... not even looked for it yet.... will try to take a look as soon as i get a bit of spare time...





(25-April-2008 18:01)
bug found....

another dodgy plugin.....

below is the function that fails....

function timeonboard($time)
{
global $vbulletin;

// initialize
$sec = '';
$min = '';
$hour = '';
$day = '';
$week = '';
$month = '';
$year = '';

// let's do the math
if($time < 60)
{
return $time = vb_number_format($time) . ' sec';
}
elseif(($time >= 60) AND ($time < 3600)) // min
{
return $time = floor($time%3600/60) . ' min ' . floor($time%60) . ' sec';
}
elseif(($time >= 3600) AND ($time < 86400)) // hour
{
// $min = floor(($time%3600)/60) . ' min ';
// $sec = floor(($time%3600)%60) . ' sec';
return $time = floor($time/3600) . ' h ' . floor(($time%3600)/60) . ' min ' . floor(($time%3600)%60) . ' sec';;
}
elseif(($time >= 86400) AND ($time < 604800)) // day
{
$day = floor($time/86400) . ' day ';
$hour = floor($time%86400/3600) . ' hour ';
$min = floor(($time%86400%3600)/60) . ' min ';
// $sec = floor($time%86400%3600%60) . ' sec';
return $time = $day . $hour . $min . $sec;
}
elseif(($time >= 604800) AND ($time < 2592000))// week
{
$week = floor($time/604800) . ' week ';
$day = floor($time%604800/86400) . ' day ';
$hour = floor($time%604800%86400/3600) . ' hour ';
//$min = floor($time%604800%86400%3600/60) . ' min ';
//$sec = floor($time%604800%86400%3600%60) . 'sec';
return $time = $week . $day . $hour . $min . $sec;
}
elseif(($time >= 2592000) AND ($time < 31536000)) // month
{
$month = floor($time/2592000) . ' month ';
$week = floor($time%2592000/604800) . ' week ';
$day = floor($time%2592000%604800/86400) . ' day ';
//$hour = floor($time%2592000%604800%86400/3600) . ' hour ';
//$min = floor($time%2592000%604800%86400%3600/60) . ' min ';
//$sec = floor($time%2592000%604800%86400%3600%60) . ' sec';
return $time = $month . $week . $day . $hour . $min . $sec;
}
elseif($time >= 31536000) // year - for some vb.org geeks
{
$year = floor($time/31536000) . ' year ';
$month = floor($time%31536000/2592000) . ' month ';
$week = floor($time%31536000%2592000/604800) . ' week ';
$day = floor($time%31536000%2592000%604800/86400) . ' day ';
//$hour = floor($time%31536000%2592000%604800%86400/3600) . ' hour ';
//$min = floor($time%31536000%2592000%604800%86400%3600/60) . ' min ';
//$sec = floor($time%31536000%2592000%604800%86400%3600%60) . ' sec';
return $time = $year . $month . $week . $day . $hour . $min . $sec;
}
}


its called like this.....

echo timeonboard('2998600'); (this can be tested from any php5 server)


the digits are the numbers u see in the forum just under the time spent on board message.....

it should return years/months/days of time spent.... but infact it doesnt

tested on local server mysql 5 / php5 and its not working....

with my own timestamp i get this >> 1 month 0 week 4 day

when it should be much higher....


solution......


Replace that B****x plugin with a version that works on latest hosting
am guessing its mysql / php 5 differences in time formatting and that plugin
cant cope....



enjoy................

(25-April-2008 19:25)
NOTICE TO vBulletin Plugin makers / coders....

this is how to make a proper plugin to see time spent on board...


point 1. if you DO NOT NEED to make extra sql fields then dont...
(golden rule or your already cpu hog board will be worse)

the time spent on board plugin makes an extra sql field... (bad move)
this not only causes extra sql inserts / deletes but also greater overhead in
the php core...

how to make a proper plugin step by step....



in vBulletin there is a sql table called user ... in that table there`s is a field called joindate.... THATS ALL THATS NEEDED....


apply this to that field to get the time spent on board......
without using a huge function AND without using an extra sql field

---bottom 2 lines compute time expired

$originaldate = date("j M Y H:i:s", "1160929380");
$days = number_format(floor((date("U")-strtotime($originaldate))/86400),0);

---bottom 2 php lines are just for printing

echo 'Time Spent Online : ' . $days . ' Days ';
echo '<br>';


if i apply this small 2 liner function to my account timestamp i get the following

Time Spent Online : 558 Days


which looks about rite to me.... all in 2 lines of PHP.... lol...


Last edited by pronet; 25-April-2008 at 20:25.. Reason: Automerged Doublepost
   
Reply With Quote
The Following User Says Thank You to pronet For This Useful Post:
morte (25-April-2008)
Old
  (#9)
dimking
Old Geezer Moderator
 
dimking's Avatar
 
Offline
Posts: 3,254

Level: 44 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 108 / 1083
Magic: 1084 / 34874
Experience: 33%

Thanks: 395
Thanked 520 Times in 333 Posts
Join Date: Dec 2006
Location: Earthbound..
27-April-2008, 00:18

Quote:
Originally Posted by pronet View Post
if i apply this small 2 liner function to my account timestamp i get the following

Time Spent Online : 558 Days
constantly online for 558 days don't we all got a virtual life over here

thnx for working on it dude, i like the : better allready



+ 5000 channels to watch, and still nothin' on TV...
- Server 24/7/365 - Wanted.. ziggo 5555.. Share - pm me ! - CCcam -





CCcam info in u'r ODS skin ?!
Start cardsharing with CCcam ?!
Control u'r TV with DreamRemote ?!
   
Reply With Quote
Old
  (#10)
Bacteria
Administrator
 
Bacteria's Avatar
 
Offline
Posts: 96,015

Level: 124 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 4638 / 4638
Magic: 32005 / 100843
Experience: 68%

Thanks: 1,107
Thanked 5,578 Times in 1,419 Posts
Join Date: Oct 2006
Age: 36
28-April-2008, 19:29

fixit is delete
   
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



ECS on RSS ECS on Twitter ECS on Facebook ECS on Youtube
Follow us on:

Powered by vBulletin
Copyright 2002 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Dreambox