Calendar


Upcoming Events (Within next 31 days):
There are no upcoming events

Upcoming Birthdays (Within next 31 days):
Congratulations to: JohnnyTheOne (29 on Sun 19th Sep)
nGAGE™ (35 on Thu 30th Sep)
musta (35 on Wed 29th Sep)
Bingle (40 on Fri 17th Sep)
Donations

All information and modifications on this site are open source and free, but any donations are gratefully received. They also provide the fuel (beer) that keeps me motivated!

Thanks, Stu

Online Users

In total there are 0 users online :: 0 registered, 0 hidden and 0 guests.

Most users ever online was 208 on Mon Jul 12, 2010 8:05 am

Users browsing this forum: No registered users and 0 guests based on users active over the past 60 minutes

Pull the "UPCOMING EVENTS" and place in External Page

Quick guides for some common general tasks

Moderators: Dev Team, SGP Team, MODerators

Pull the "UPCOMING EVENTS" and place in External Page

PostAuthor: guywiddahair on Sat Jan 02, 2010 12:35 am

Hi guys, I've been using the Mod now for quite a while after some amazing help getting it sorted after a destruction by myself ;).

One thing I'd love to know is - Is it possible to pull the "UPCOMING EVENTS (Within next X Days)" and place it onto another page of my website? I've got the forum installed under the ./Community/ section and would love to be able to grab that info (I'm guessing from the database) and place it into a page that's in the ./ directory. I have no idea what I'd need to look for in the php code and no idea how to open a connection / close a connection with the database using sql and php - I'm a real noob when it comes to this.

What I've got so far is the php code:

Code: Select all
{L_SHOW_UPCOMING_EVENTS}
from the layout.html and
Code: Select all
$s_show_upcoming_events     = $config['calendar_show_events_list'];
Then a heck of a lot of code underneeth this... from if ($s_show_upcoming_events || $s_show_upcoming_birthdays) downwards...


Is there a simple way of doing this or would it be better me getting some PHP/SQL lessons and learning how to pull the stuff from the database? I would love to be able to implement this on other pages of my site. I had thought about having the whole Calendar on other pages but decided against asking due to the themes and way it'd work/not work - if this is easier or doable with not much effort then I'd love to hear too. I can pull from a database but don't a) how to set variables for which dates to show between, b) show the dates in an english form, c) say I just want the event name and then have it link to the actual topic on the calendar (if this is too much then don't worry - maybe the output of the php pull could be a simple page that includes the topic_desc - mine are short and sweet ;) d) where the heck to start!


Thanks for your time!
guywiddahair
 
Posts: 17
Joined: Fri Oct 17, 2008 7:35 am

Re: Pull the "UPCOMING EVENTS" and place in External Page

PostAuthor: dodgeboy on Wed Apr 28, 2010 3:51 pm

Did you figure this out? I'd like to do the same. I can get the event window to show up, but it never shows any events.

Thanks!
dodgeboy
 
Posts: 2
Joined: Tue Apr 27, 2010 7:15 pm


Return to How To...

Who is online

Users browsing this forum: No registered users and 1 guest

cron