|
|
View previous topic :: View next topic |
Author |
Message |
doc1881
Posts: 2
|
Posted: Wed Sep 15, 2010 5:36 am Post subject: |
|
|
I was about to say the same but I thought I'd give it another day. |
|
Back to top |
|
|
sug
Posts: 1
|
Posted: Tue Sep 21, 2010 9:04 am Post subject: |
|
|
...so ? Nobody else has a working link ?
Seems that the site has been cleared completely for sachenhofer...
I'm trying to make my own calendar, but it doesn't work... |
|
Back to top |
|
|
mazz0310
Posts: 31
|
Posted: Thu Sep 23, 2010 6:43 pm Post subject: |
|
|
Just sign up for a free webhost and host it. That's what I do. It's very simple, and works great. |
|
Back to top |
|
|
Poguy
Posts: 3
|
Posted: Fri Sep 24, 2010 10:21 am Post subject: |
|
|
Hello !
When I try to open the myepisodes2ical.php on my web hoster, i get this error :
Parse error: syntax error, unexpected T_STRING in /home/a3076210/public_html/TV_Shows/myepisodes2ical.php on line 2
Any ideas ?
Adding the url to Gcal, it seems to load the calendar but nothing shows up. |
|
Back to top |
|
|
mazz0310
Posts: 31
|
Posted: Sat Sep 25, 2010 4:12 am Post subject: |
|
|
Did you change file permissions on the cache folder to 777? |
|
Back to top |
|
|
Poguy
Posts: 3
|
Posted: Sat Sep 25, 2010 9:03 am Post subject: |
|
|
Yes I did |
|
Back to top |
|
|
mazz0310
Posts: 31
|
Posted: Sat Sep 25, 2010 7:40 pm Post subject: |
|
|
Poguy wrote: | Yes I did |
Hm im not sire what you're missing then. You copied the 3 folders and the php file, added your username and RSS link, and change file permissions then t should work.
You used the. Zip from the 3rd or 4th page right? What about what site are you hosting it with? |
|
Back to top |
|
|
VortX
Posts: 8
|
Posted: Tue Sep 28, 2010 5:03 pm Post subject: |
|
|
Hi
I downloaded the code and tried to set it up, but I get the following error:
Code: |
Notice: Undefined variable: errno in /www/zxq.net/v/o/r/vortx/htdocs/simplepie/simplepie.inc on line 6601
Notice: Undefined variable: errstr in /www/zxq.net/v/o/r/vortx/htdocs/simplepie/simplepie.inc on line 6601
Warning: fsockopen() has been disabled for security reasons in /www/zxq.net/v/o/r/vortx/htdocs/simplepie/simplepie.inc on line 6601
Notice: Undefined variable: errstr in /www/zxq.net/v/o/r/vortx/htdocs/simplepie/simplepie.inc on line 6604
fsockopen error: |
I edited myepisodes2ical.php and changed this line:
Code: | $feed->set_feed_url('http://www.myepisodes.com/rss.php?feed=mylist&uid=VortX&pwdmd5=12b2d9664def256da7ddc49cb491899c'); |
Then, changed file permission of cache folder (and contents, just in case).
I try to access http://vortx.zxq.net/myepisodes2ical.php and get the error
Any help?
I'm using Zymic as a hosting provider |
|
Back to top |
|
|
mazz0310
Posts: 31
|
Posted: Tue Sep 28, 2010 7:43 pm Post subject: |
|
|
I'm going to give that website a shot and I'll let you know if it works for me or not.
That site isn't working for me. I found that to be a problem with a few sites. The one I'm currently using is www.mezoka.com
Or you can also use 000webhost.com
Let me know how it works out for you. |
|
Back to top |
|
|
VortX
Posts: 8
|
Posted: Wed Sep 29, 2010 9:07 am Post subject: |
|
|
thanks! mezoka is working |
|
Back to top |
|
|
mazz0310
Posts: 31
|
Posted: Wed Sep 29, 2010 6:11 pm Post subject: |
|
|
Awesome, I'm glad it worked |
|
Back to top |
|
|
gus85
Posts: 4
|
Posted: Thu Sep 30, 2010 2:49 am Post subject: |
|
|
namooth wrote: | How often are iCal subscriptions supposed to update? I've made changes on my shows in myepisodes and i don't see the changes in my calender even after 2 days. Is there a way to force a calender refresh or something? |
I was having the same problem, what I did that worked was: I deleted the files created in the cache folder on my webhost. |
|
Back to top |
|
|
gus85
Posts: 4
|
Posted: Thu Sep 30, 2010 6:43 pm Post subject: now I'm having problems with my half hour shows array |
|
|
I've just added Shit My Dad Says to my episodes and to my half hour shows array, but it is still showing as an one hour show on my calendar... |
|
Back to top |
|
|
mazz0310
Posts: 31
|
Posted: Thu Sep 30, 2010 10:12 pm Post subject: Re: now I'm having problems with my half hour shows array |
|
|
gus85 wrote: | I've just added Shit My Dad Says to my episodes and to my half hour shows array, but it is still showing as an one hour show on my calendar... |
It only updates like once a day. |
|
Back to top |
|
|
gus85
Posts: 4
|
Posted: Fri Oct 01, 2010 12:00 am Post subject: Re: now I'm having problems with my half hour shows array |
|
|
mazz0310 wrote: | gus85 wrote: | I've just added Shit My Dad Says to my episodes and to my half hour shows array, but it is still showing as an one hour show on my calendar... |
It only updates like once a day. |
I know, but if I added the show to my array before I added it to My Episodes, shouldn't it appear as half hour from the start? |
|
Back to top |
|
|
mazz0310
Posts: 31
|
Posted: Fri Oct 01, 2010 4:30 am Post subject: |
|
|
Ah I see what you're saying. I'm not sure, I'll have to look over mine and see if it works for me. You sure you have the title right? |
|
Back to top |
|
|
Mafteah
Posts: 1
|
Posted: Fri Oct 01, 2010 9:14 pm Post subject: |
|
|
Can someone share the link?
Thanks |
|
Back to top |
|
|
gus85
Posts: 4
|
Posted: Fri Oct 01, 2010 9:29 pm Post subject: |
|
|
mazz0310 wrote: | Ah I see what you're saying. I'm not sure, I'll have to look over mine and see if it works for me. You sure you have the title right? |
I'm sure, because after it was shown as an one hour show I copied the title directly from my calendar and pasted it on my array again, just to be sure...
But that's been over two days and still no change...
Let me ask you something that is not the case here, but I'm just curious, I was worried before I searched for Shit My Dad Says on my episodes, how special characters would work in the array, because on CBS they call it $h*! My Dad Says. Would it affect it in anyway? What about shows that have "&" on the title, does it make any difference? |
|
Back to top |
|
|
thesystem
Posts: 2
|
Posted: Mon Oct 04, 2010 7:55 am Post subject: |
|
|
With the new php script, the episodes are shown with the times they are broadcasted. I was wondering if it's possible to show the episodes as All-day events? |
|
Back to top |
|
|
thesystem
Posts: 2
|
Posted: Fri Oct 08, 2010 9:27 am Post subject: |
|
|
To answer my own question, this script shows the eps as all day events:
Code: |
<?php
error_reporting(E_ALL);
// Parsing of RSS files (http://www.simplepie.org)
require_once('./simplepie/simplepie.inc');
// Creating of iCal files (http://bennu.sourceforge.net/)
include('bennu/lib/bennu.inc.php');
$feed = new SimplePie();
$feed->set_feed_url('http://www.myepisodes.com/rss.php?feed=mylist&uid=USERNAME&pwdmd5=MD5-KEY');
$feed->enable_cache(true);
$feed->set_cache_location('./cache');
$feed->set_cache_duration(3600);
$feed->handle_content_type();
if ($feed->init()) {
$ical = new iCalendar;
$ical->add_property('X-WR-CALNAME', 'TV Shows');
// $icalevent = new iCalendar_event;
$i = 0;
foreach ($feed->get_items() as $item) {
$i++;
// fix for Repetition problem
$icalevent = new iCalendar_event;
$title_data = parseTitle($item->get_title());
$date1 = date("Ymd", strtotime($title_data[3]));
$date2 = date("Ymd", strtotime($title_data[3]." + 1 day"));
$date3 = date("Ymd\THis\Z", strtotime($title_data[3]));
// Start-end date
$icalevent->add_property('class', 'PUBLIC');
$icalevent->add_property('sequence', $i);
$icalevent->add_property('dtstart', $date1, array('value' => 'DATE'));
$icalevent->add_property('dtend', $date2, array('value' => 'DATE'));
$icalevent->add_property('dtstamp', $date3);
// $icalevent->add_property('description', $title_data[2]);
$icalevent->add_property('description', $item->get_permalink());
// Added the following text to the below line to include Episode Title in the Event Description (Summary) >> ." - ".$title_data[2] <<
$icalevent->add_property('summary', $title_data[0]." ".$title_data[1]." - ".$title_data[2]);
// Fix for apostrophe problem
$title_data[2] = str_replace("'", '', $title_data[2]);
// $icalevent->add_property('description', $title_data[2]);
// fix for UID problem
$icalevent->add_property('uid', md5($date3.$title_data[0].$title_data[1]));
$ical->add_component($icalevent);
}
echo $ical->serialize();
}
else {
echo $feed->error();
}
function Return_Substrings($text, $sopener, $scloser) {
$result = array();
$noresult = substr_count($text, $sopener);
$ncresult = substr_count($text, $scloser);
if ($noresult < $ncresult)
$nresult = $noresult;
else
$nresult = $ncresult;
unset($noresult);
unset($ncresult);
for ($i=0;$i<$nresult;$i++) {
$pos = strpos($text, $sopener) + strlen($sopener);
$text = substr($text, $pos, strlen($text));
$pos = strpos($text, $scloser);
$result[] = substr($text, 0, $pos);
$text = substr($text, $pos + strlen($scloser), strlen($text));
}
return $result;
}
function parseTitle($title) {
// format: [ Episode title ][ Episode Number ][ Episode Name ][ 15-May-2006 ]
return Return_Substrings($title, "[ ", " ]");
}
?>
|
|
|
Back to top |
|
|
mazz0310
Posts: 31
|
Posted: Sun Oct 10, 2010 3:52 pm Post subject: |
|
|
Personally I prefer them to show up as 30 min length, but I totally appreciate you sharing your modification. |
|
Back to top |
|
|
IIIIIIIIIIII
Posts: 30
|
Posted: Sat Oct 23, 2010 9:27 am Post subject: |
|
|
VortX wrote: | saxx's link (http://www.sachsenhofer.com/stuff/myepisodestoical.aspx?uid=YOURUSER&pwdmd5=YOURMD5PWD) is no longer working |
Not working on my end either. This was so useful while it worked. |
|
Back to top |
|
|
jamesking
Posts: 25
|
Posted: Mon Feb 28, 2011 7:28 pm Post subject: |
|
|
I am testing a version of this that uses Bennu 0.2 and SimplePie 1.2.
Hopefully this will be more futureproof. I've also put the permalink URL in to the iCal event's "URL" property. This seems more sensible than putting it in "location", but the event URL does not show up in google calendar, sadly. I'll try and find a better solution. |
|
Back to top |
|
|
mazz0310
Posts: 31
|
Posted: Tue Mar 01, 2011 3:43 am Post subject: |
|
|
Wow that's awesome news. I still literally use this daily...and other than the timezone thing it works absolutely perfectly for me and I still appreciate all the work done on V1.
Edit: I'm a CSC Major and consider myself pretty technological but unfortunately I've gone through all the code so far and couldn't figure out the timezone/how to write a new one I'm better at programs than websites. |
|
Back to top |
|
|
jamesking
Posts: 25
|
Posted: Tue Mar 01, 2011 8:44 am Post subject: |
|
|
mazz0310 wrote: | Wow that's awesome news. I still literally use this daily...and other than the timezone thing it works absolutely perfectly for me and I still appreciate all the work done on V1.
|
Hi,
The new version is basically the same code (!) but with more up to date php classes. I am testing it for a month or so, just to check it doesn't break anything.
I've also now read and actually understood most of the code! So it's much easier for me to make modifications to how the output shows up in google calendar.
I'd like to get to the bottom of this time zone problem. There is a Time Zone ID property of an ical event which we could set, but I'd like to be sure it's easy to make it work for everyone.
Can you please tell me a few things to help me figure it out?
1. If you navigate in your web browser or an RSS reader to the URL of your RSS feed, Air Date and Air Time does it give for the first show in your list?
2. At http://www.myepisodes.com/cp.php , under "Regional settings", what time zone do you have, and what episode offset do you have?
3. If you go to the URL of your calendar (eg, http://www.jamesking.co.uk/myepisodes/myepisodes2ical.php ) you will see the episodes listed as iCal. What air date and air time show up here for the first episode?
4. Under Google Calendar, Calendar Settings, General, what country and current time zone is set?
5. What is your webhost (where the PHP script is running) and what country are they in (if you know!)
Thanks!
James |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
Main design by MW. Refitted to board by Hostile.
|