1
rpilney
Re: xComics 2.0 RC1
  • 2007/2/16 5:57

  • rpilney

  • Just popping in

  • Posts: 76

  • Since: 2006/1/25


I am trying to add this comic. Since I don't know how to actually code I used one of the other comics in the list and used the info from the new one to replace the data best I could.

and guess what... it's not working

here is what I have. Anyone help me with this so I know what I did wrong? Please...

Thanks

RE:

Quote:


$xComics = New xComics();

// url: http://www.tundracomics.com/strips/2007-2-15.gif
$url_to_image = $xComics->build_image_url('1', '2007-');

if(!$xComics->exists_image($url_to_image))
{
unset($url_to_image);

$xComics->back_in_time('4', '1', '2007-');
}


2
rpilney
Re: xComics 2.0 RC1
  • 2007/2/16 17:28

  • rpilney

  • Just popping in

  • Posts: 76

  • Since: 2006/1/25


Quote:

rpilney wrote:
I am trying to add this comic. Since I don't know how to actually code I used one of the other comics in the list and used the info from the new one to replace the data best I could.

and guess what... it's not working

here is what I have. Anyone help me with this so I know what I did wrong? Please...

Thanks

RE:

Quote:


$xComics = New xComics();

// url: http://www.tundracomics.com/strips/2007-2-15.gif
$url_to_image = $xComics->build_image_url('1', '2007-');

if(!$xComics->exists_image($url_to_image))
{
unset($url_to_image);

$xComics->back_in_time('4', '1', '2007-');
}


3
rpilney
Re: xComics 2.0 RC1
  • 2007/2/21 14:36

  • rpilney

  • Just popping in

  • Posts: 76

  • Since: 2006/1/25


solved it on my own..

here is the corrected code should anyone care to know.

$xComics = New xComics();

// url: http://www.tundracomics.com/strips/2007-2-15.gif
$url_to_image = $xComics->build_image_url('1', 'tn');
$url_to_image = "http://www.tundracomics.com/strips/".date('Y-n-j').".gif";
if(!$xComics->exists_image($url_to_image))
{
# set picture to two days ago (sometimes yesterday does not show)
unset($url_to_image);
$twodaysago = date('Y-n-j', mktime(0, 0, 0, date("m"), date("d")-2, date("Y")));
$url_to_image = "http://www.tundracomics.com/strips/". $twodaysago .".gif";
#$xComics->back_in_time('4', '2', 'tn');
}

4
MichaelK
Re: xComics 2.0 RC1
  • 2007/3/1 10:34

  • MichaelK

  • Just popping in

  • Posts: 6

  • Since: 2007/3/1 1


Is the module still working?
I installed it on 2.0.16 just to get some standard cartoons like Calvin, garfield and so
after activating I see the links but not much else

Michael

Login

Username:
Password:

Lost Password? Register now!

Who's Online

52 user(s) are online (28 user(s) are browsing Support Forums)


Members: 0


Guests: 52


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