471
culex
Re: xcGallery Thumbnails question.
  • 2007/1/20 12:37

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


I am not sure if there is any other way to do it, but I have always deleted my pictures from the database, changed the options I needed, and added the pictures again. This offcourse is troublesome when you have a large picture collection
Programming is like sex:
One mistake and you have to support it for the rest of your life.



472
culex
Re: check out my new theme background :D
  • 2007/1/20 12:33

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


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



473
culex
Re: Best Gallery Module?
  • 2007/1/5 17:20

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


I have to agree about xcGallery I am still using it, and you can get a hack - if it isn't already being used in the updated version - for multible upload etc
Programming is like sex:
One mistake and you have to support it for the rest of your life.



474
culex
Re: problem with culex dj rotator
  • 2006/11/14 19:51

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


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



475
culex
problem with culex dj rotator
  • 2006/11/9 19:58

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


I have been working on my first module called Culex_dj_rotator but have been recieving emails on how to deal with time formats.

The problem is this. My script saves starttime, endtime as 24 hour format: (24:00:00) but english user would like to display my data as 12 hour format (12:00:00 AM), and also in my block it shows current show in 24 hours etc etc and further more it gives a faulty time (an hour off in this case). However I found a soulution to the last problem..

$tidnu date("H:i:s"mktime(date("H")-1date("i"), date("s"), date("n"), date("j"), date("Y")));


I have now. Made a config option in adminsite, givin the oportunity to choose between (local timezone), (Hour format) and storing in a database.

I just down know how to retrieve and use properly.

You can see my script here http://www.culex.dk/culex_v10c.zip

the problem is in culex\blocks\block.php and I would like to:

Retrieve the config data from dj_dj_config.

Set variables and change the timeformat according to this. This mean it must also be able to change the retrieved $start, $endtime etc from the dj_dj table.

I'm puzzled but I hope you can find a good solution for me to use

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



476
culex
Re: Almost done rotator module
  • 2006/10/10 12:37

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


thanks, any point is helpfull, as I am pretty much on thin ice creating modules, so anything new will make it easier next time :)

Think I've done something right...

The module is here for download
Culex Dj Rotator

And here is the demo on my site
culex.dk
Programming is like sex:
One mistake and you have to support it for the rest of your life.



477
culex
Almost done rotator module
  • 2006/10/9 22:16

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


I have some time ago asked how to port a script to XOOPS and was told to try ModGen. So I did, but for some reason I can't get the blocks to work right (at all even).

My module, however undone it is as it is not finished, can be downloaded here. As I said it isn't done but you'll probably get the idea.

rotator module

All I really want is to have the preview.php in a block on the front page, eighter as an iframe or better as the script found in preview.php

The Preview.php can be seen here alson.

$dagenidag date("w");
$nydagenidag $dagarr[date("w")];
$tidnu date("H:i:s");
$nextevent date("H:i:s",strtotime("+1 minutes"));

$resultnext mysql_query("SELECT * FROM xoops_dj_dj WHERE 'djstart' > '$tidnu' AND '$dagenidag' = djdag LIMIT 1") or die(mysql_error()); 

while(
$nextnow mysql_fetch_array($resultnext))


        
$id            $nextnow['id']; 
         
$djtitel            stripslashes2($nextnow['djtitel']); 
         
$djname stripslashes2($nextnow['djname']); 
         
$djstation    stripslashes2($nextnow['djstation']); 
         
$djbeskrivelse   stripslashes2($nextnow['djbeskrivelse']); 
$nextmarquee"<MARQUEE DIRECTION=Left BEHAVIOR=SCROLL SCROLLAMOUNT=10 SCROLLDELAY=400>"._AM_DJ_scripttextnext.$nextnow['djstart']._AM_DJ_breaker.$nextnow['djslut']." ".stripslashes2($nextnow['djtitel']).$marqueewith." ".stripslashes2($nextnow['djname'])." </marquee>";



$resultshow mysql_query("SELECT * FROM xoops_dj_dj WHERE ('$tidnu' BETWEEN djstart AND djslut) AND '$dagenidag' = djdag") or die(mysql_error()); 

while(
$now mysql_fetch_array($resultshow))


        
$id            $now['id']; 
         
$djtitel            stripslashes2($now['djtitel']); 
         
$djname stripslashes2($now['djname']); 
         
$djstation    stripslashes2($now['djstation']); 
         
$djbeskrivelse   stripslashes2($now['djbeskrivelse']); 


echo 
"<table width=200 border=0 align=center>
  <tr>
    <bgcolor=#FF0000><center><font color=#000000 face=Verdana size=1>"
."<br><br><strong><font size=1>"._AM_DJ_ligenupåstation.stripslashes2($now['djstation'])."<br></strong></bgcolor><font size=1>".stripslashes2($now["djtitel"])."<br>".'<a href="javascript://" onclick="window.open('preview2.php?mode=info&id='.$now[id].'',null,'height=500,width=550,status=no,toolbar=no,menubar=no,location=no,left=0,top=0')"><img src="images/shots/thumbs/'.$now['djbillede'].'" width="100" height="120" alt="".$now[djnavn]." border="0"></a><br>'.stripslashes2($now["djname"])."<br></a><br>".$nydagenidag."<br>".$now['djstart']." to ".$now['djslut']."<td><br><td><br><br>".$nextmarquee."</center></tr>
</td></table>"
;

}


Anyone can give me an idea as to what I am doing wrong ?
Programming is like sex:
One mistake and you have to support it for the rest of your life.



478
culex
Re: Script 2 module help ?
  • 2006/10/2 13:35

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Hmm had the feeling it would be more work that I hope, but have downloaded genmod and will give it a try. Thanks for the help
Programming is like sex:
One mistake and you have to support it for the rest of your life.



479
culex
Script 2 module help ?
  • 2006/9/26 11:27

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


I have written a script to use with radiostations, theatres etc that will show you what is on-air now and what will be next, all according to a schedule.. It still a test-script though, but how do I make it a XOOPS - module ?

Can anyone tell me what to include in, the structure etc etc or perhaps even do the transform for me ?

Hope to get some help for this

The script can be downloaded here in rar format
and here in Zip format
Programming is like sex:
One mistake and you have to support it for the rest of your life.



480
culex
have written a script how to port to xoops
  • 2005/12/30 17:55

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Hello all. I have recently finished a small script. Now I would like to port it to xoops.

The script is made as a standalone. It's a script for radio / tv stations, theatres, cinemas etc. a small rotator with station name, picture with infolink, name of dj and program and start - end time + next program in a marquee.

The question is now how do I easily do this porting stuff ?

My script can be downloaded here whatson 1.0 beta

Sincerly
Michael Albertsen, Skagen, Denmark
Programming is like sex:
One mistake and you have to support it for the rest of your life.




TopTop
« 1 ... 45 46 47 (48) 49 »



Login

Who's Online

143 user(s) are online (95 user(s) are browsing Support Forums)


Members: 1


Guests: 142


mailsdaddy,

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