151
culex
Re: Onair 1.04 Review
  • 2010/6/23 14:08

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Would this be a nicer aproach in the start / stop time ?

<?php
$local 
= +7200;
$now time(); 

// Function to convert time differnece between midnight and servertime
// +/- the time offset for local time (specified in xoops_version.php config.)
// $Local is the offset
// $now is time()
// returning difference in seconds

function xoops_onair_GetCorrectTime ($local$now) {
    
$midnight strtotime('midnight');
    
$difference $now $midnight+$local;
return 
$difference;
}

echo 
date("H:i:s",xoops_onair_GetCorrectTime ($local$now));
    echo 
"<br/>";
echo 
date("h:i:s a",xoops_onair_GetCorrectTime ($local$now));

?>
Programming is like sex:
One mistake and you have to support it for the rest of your life.



152
culex
Re: Onair 1.04 Review
  • 2010/6/22 21:06

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Great stuff, thanks Mboyden for taking time to haul over this onair module So much more easy to make work right when someone else than myself looks this over.

Half of these items I would never have caught, simply because ...well I made them and I guess am blind to see the issues

Thanks again for taking the time to look at this. Nice to see people use this module (my very first Xoops Module ever)
Programming is like sex:
One mistake and you have to support it for the rest of your life.



153
culex
Re: Alternative to preloads ?
  • 2010/6/22 20:55

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Doh of course... We actually did this in the beginning but found preloads more easy to handle... How quickly I forget lol..

We had some problems havin ajax running like this but with some more tweaking I'm sure it'll work!

thanks Trabis
Programming is like sex:
One mistake and you have to support it for the rest of your life.



154
culex
Re: Alternative to preloads ?
  • 2010/6/22 19:53

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Because the messenger should be running on every page
Programming is like sex:
One mistake and you have to support it for the rest of your life.



155
culex
Re: Alternative to preloads ?
  • 2010/6/22 18:11

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Yes but in xim also you need these run on every page. I have tried with modifying the header or including this in the theme or in the xoops header, but still doesnt work as nice as preloads
Programming is like sex:
One mistake and you have to support it for the rest of your life.



156
culex
Re: Need help please
  • 2010/6/22 16:46

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


It depends if you have placed your php file same place as mainfile.php.

mainfile.php is in the root of your xoops installation. So the url would be like this.:

My guess is /data/17/2/111/71/2111560/user/2316904/htdocs/xoops1/

but you'll have to check if mainfile.php is in xoops1 dir
Programming is like sex:
One mistake and you have to support it for the rest of your life.



157
culex
Alternative to preloads ?
  • 2010/6/22 16:37

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Almost I have become used to working modules with preloads, at least I am now relying on the method. Now it seem this is perhaps / perhaps not supported in next versions of Xoops.

Basicly I Understand this adds a lot of styles and scripts to the header that could easily be added using theme insertion or added to the independent modules / blocks.

However in the xim modules as an example a lot of jquery is needed to be added to the header as well as styling + jquery code for the footer (showing online users and friendlist).

so both css, js and the file footer_bar.php uses preloads.

So what is a good alternative for xim to add script + style to header. This is a good idea anyway as we'd like to give xim to users with for instance Xoops 2.3.3 etc.

Xim is here
Programming is like sex:
One mistake and you have to support it for the rest of your life.



158
culex
Re: news module
  • 2010/6/22 11:36

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Also you can see this thread. This is dealing with errors in pdf news 1.63

Click here
Programming is like sex:
One mistake and you have to support it for the rest of your life.



159
culex
Re: Letter r not shown in date
  • 2010/6/22 11:33

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


No problem, glad to help Mazarin
Programming is like sex:
One mistake and you have to support it for the rest of your life.



160
culex
Re: White Screen- No Style or graphic missing
  • 2010/6/21 21:36

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


No problem. But again it looks like in the version in reposit this problem has been fixed
Programming is like sex:
One mistake and you have to support it for the rest of your life.




TopTop
« 1 ... 13 14 15 (16) 17 18 19 ... 49 »



Login

Who's Online

207 user(s) are online (137 user(s) are browsing Support Forums)


Members: 0


Guests: 207


more...

Donat-O-Meter

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

Latest GitHub Commits