41
blackrx
Re: eXtCal 2.37 Beta 4, will this ever get out of beta?
  • 2013/4/23 13:29

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


or maybe it should be event will show in the Todays Event block and the Upcoming Event block. Once the start time of the todays event starts it should disappear from the upcoming event block.


but not all event has start and end time



42
blackrx
Re: eXtCal 2.37 Beta 4, will this ever get out of beta?
  • 2013/4/23 13:18

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


i think it should be otherwise where today's event should not be display in upcoming event regardless of it time

right now...Once the start/end time time has passed it still appear in both blocks....it will only disapear the following day



43
blackrx
Re: Userlog: a new module to log user activities
  • 2013/4/23 12:59

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


hi imrtfan very nice

btw can you make a special block for the success last login history where we can exclude any user etc

i forgot where i got this but i use this in my site all this while

echo "<div style='clear:both;'></div> ";

function 
timeDifference($start,$end,$return='days') {
    
//change times to Unix timestamp.
    //$start = strtotime($start);
    //$end = strtotime($end);
    //subtract dates
//echo 'Start Timestamp: ' . $start . '<br/>End Timestamp: ' . $end . '<br/>';
    
$difference max($end$start) - min($end,$start);
    
$time NULL;
    
//calculate time difference.
    
switch($return) {
        case 
'days':
             
$days floor($difference/86400);
                
$difference $difference 86400;
                    
$time['days'] = $days;
        case 
'hours':
            
$hours floor($difference/3600);
                
$difference $difference 3600;
                    
$time['hours'] = $hours;
        case 
'minutes':
            
$minutes floor($difference/60);
                
$difference $difference 60;
                    
$time['minutes'] = $minutes;
        case 
'seconds':
            
$seconds $difference;
                
$time['seconds'] = $seconds;
    }
    
    
$output = array();
       if(
is_array($time)) {
        
$showSec true;
                    if(isset(
$time['hours']) && $time['hours'] > 0) {
                        
$output[] = $time['hours'] . ' Hour';
                        
$showSec false;
                    }
                    
                    if(isset(
$time['minutes']) && $time['minutes'] > 0) {
                        
$output[] = $time['minutes'] . ' minutes';
                        
$showSec false;
                    }
                    
                    if(isset(
$time['seconds']) && $showSec == true) {
                        return 
$time['seconds'] . ' Second';
                    }
                
        
            return 
implode(', ',$output);
        }
}  



$now time();
$hours 24;
$count=0;
$time = ( intval$hours ) > ) ? time() - ( intval$hours ) * 3600 ) : ( time() - 24*3600 );
global 
$xoopsDB;


$sql "SELECT distinct uid, uname, user_avatar, last_login FROM ".$xoopsDB->prefix("users")." WHERE level > 0 AND uid NOT IN (1) AND uid NOT IN (76) AND last_login >= '" $time "' ORDER BY last_login DESC";
$result $xoopsDB->query($sql);


while (list(
$uid$uname,$user_avatar,$last_login) = $xoopsDB->fetchRow($result) ) {
//Put this variable in the echo statements where you would like them to show up.
$sinceLastLogin ' ' timeDifference($last_login,$now,'hours') . ' ago';
$count++;
if (
$user_avatar == 'avatars/blank.gif')
{
echo 
"<div style='float: left; padding:2px;'><a href='".XOOPS_URL."/userinfo.php?uid=".$uid."'><img src='".XOOPS_URL."/uploads/avatars/blank.gif' title='$uname | $sinceLastLogin' border='0' alt='".$uname."' height='48' width='48'></a></div>";
}

else

{
echo 
"<div style='float: left; padding:2px;'><a href='".XOOPS_URL."/userinfo.php?uid=".$uid."'><img src='".XOOPS_URL."/uploads/".$user_avatar."' title='$uname | $sinceLastLogin' border='0' alt='".$uname."' height='48' width='48'></a></div>";
}

}

echo 
"<div style='clear:both;'></div> ";



44
blackrx
Re: eXtCal 2.37 Beta 4, will this ever get out of beta?
  • 2013/4/22 10:34

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


Ok i made afresh install xoops and extcal

i received this
Call to undefined function eclaircirCouleur() in ..\modules\extcal\class\event.php on line 322

disable the line

todays event and upcoming event are showing

but 1 problem

i have an event today > but its both showing in both block in upcoming and todays event



45
blackrx
Re: eXtCal 2.37 Beta 4, will this ever get out of beta?
  • 2013/4/22 10:01

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1



im trying to display the todays event and upcoming event block together

my test

- normal event and recurring event
- block today's event ok
- after activating upcoming block - resulting blank page
- on debug but no error

Quote:

eXtCal 2.37 RC 6 (2013/4/20)
by Zoullou, Mage, Mamba, JJ Delalandre (JJDai)


Quote:

XOOPS Version XOOPS 2.5.5
PHP Version 5.3.1
mySQL Version 5.1.41
Server API apache2handler
OS WINNT
safe_mode Off
register_globals Off
magic_quotes_gpc Off
allow_url_fopen On
fsockopen On
post_max_size 128M
max_input_time 60
output_buffering
max_execution_time 60
memory_limit 128M
file_uploads On
upload_max_filesize 128M



46
blackrx
Re: eXtCal 2.37 Beta 4, will this ever get out of beta?
  • 2013/4/22 9:43

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


chefry,

is your upcoming event block working ? for normal event or reccuring events ?



47
blackrx
Re: eXtCal 2.37 Beta 4, will this ever get out of beta?
  • 2013/4/21 13:50

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


how about the the upcoming event block ?



48
blackrx
Re: Extgallery nightmares...
  • 2013/4/20 15:48

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


to make sort by weight work in user side

in public-album.php

change photo_date to photo_weight somewhere in line 43



49
blackrx
Re: Site Statistics module
  • 2013/4/17 10:08

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


you can also try logcounter x

http://xoops.taquino.net/modules/mydownloads/singlefile.php?lid=4

install...set preferences and activate the block



50
blackrx
Re: xoops_theme_select not working
  • 2013/4/17 2:38

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


Tarik, ive selected the theme in pref

for anyone who have the same problem

i have finally figured this out, this is not working because of the preferences in Defacer module

you have to set Disable Theme changing in Defacer pRef as Yes






TopTop
« 1 2 3 4 (5) 6 7 8 ... 20 »



Login

Who's Online

191 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 191


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits