Zeruell / ppx-raidplaner

Automatically exported from code.google.com/p/ppx-raidplaner
0 stars 0 forks source link

[Feature Request] Upcoming events widget/rss feed #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A way to import upcoming events(via iframe?) on the the homepage.

In other words a way to show upcoming events on a custom webpage.

Original issue reported on code.google.com by game...@gmail.com on 21 May 2013 at 2:30

GoogleCodeExporter commented 9 years ago
This will be possible with the API feature planned for 1.1.
At the moment you could query the raid database (containing all raids) manually.
This query for example will return the next 10 raids:

SELECT * FROM raids_Raid WHERE `Start` > CURRENT_TIMESTAMP LIMIT 10

Original comment by arne.cl...@gmail.com on 21 May 2013 at 3:22

GoogleCodeExporter commented 9 years ago
Thanks for the hint, but i got lazy and piggy back of your code :P

Ill share what I made for ppl who want something until you officially support 
it.
just extract the zip to where you have raidplanner installed and iframe to 
widget.php, you can edit widget.css (lib/layout/widget.css) to customize it.

Original comment by game...@gmail.com on 21 May 2013 at 11:14

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by arne.cl...@gmail.com on 2 Jun 2013 at 10:58

GoogleCodeExporter commented 9 years ago
I made a litle update of this unofficial widget to use the new Json format.
feel free to edit or inspire you to make your widget:

Original comment by athenebl...@gmail.com on 24 Oct 2013 at 10:31

Attachments:

GoogleCodeExporter commented 9 years ago
you sir are a coding god!, Thanks

Original comment by game...@gmail.com on 24 Oct 2013 at 11:07

GoogleCodeExporter commented 9 years ago
Good work - you should however convert the date and time fields by using 
getDateFromUTC contained in script/time.js. Otherwise the times will always be 
displayed in UTC.

Original comment by arne.cl...@gmail.com on 26 Oct 2013 at 7:04

GoogleCodeExporter commented 9 years ago
I had an error when I try'd to include time.js, it was something undefined, I 
think it was gUser. Writing this function in the widget file could be easier
I'll try again as people may be interested^^

Original comment by athenebl...@gmail.com on 26 Oct 2013 at 9:44

GoogleCodeExporter commented 9 years ago
Copying it might be the best solution for now as the 1.1 api will cover this 
problem anyway.

Original comment by arne.cl...@gmail.com on 26 Oct 2013 at 9:56

GoogleCodeExporter commented 9 years ago
this one seems to work

edit widget.js - line 97 if time offset is wrong

Original comment by athenebl...@gmail.com on 6 Nov 2013 at 4:42

Attachments:

GoogleCodeExporter commented 9 years ago
Nice widget you have done :-) Thanks. 
I must be connected to the RaidPlanner to be able to use the widget ( acces 
denied if i don't connect before ). 
Did you know a way to avoid this ? 

Original comment by adfar...@gmail.com on 25 Nov 2013 at 12:46

GoogleCodeExporter commented 9 years ago
try to remove the "if (validUser()){" and "{ else ...." from 
messsage_raid_list.php

Original comment by athenebl...@gmail.com on 26 Nov 2013 at 1:25

GoogleCodeExporter commented 9 years ago
Thanks for your reply

i comment "if (validUser()){" but dont' find "{ else", only else like these "}
else".
I comment the last one ( with  "$Out->pushError(L("AccessDenied"));" ) but all 
i have is a loading circle. 
Don't worry with this, Arne told me it will be implemented in a next version so 
i can wait. 
Sorry, i'm really bad at php ( & at english too ;) )

Original comment by adfar...@gmail.com on 26 Nov 2013 at 12:12

GoogleCodeExporter commented 9 years ago
If you like you can now use the API and move this thread to GitHub.

Original comment by arne.cl...@gmail.com on 3 Mar 2014 at 7:24