Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 06:33 am EST
Geeklog Forums
Please help
LostFan
Anonymous
Ok,
I just need a bit of help here with GL. I have been updating the look of the calendar and all is going well, however, I want to update the look of the 2 smaller calendars that show up on the calendar page and cannot figure it out. In the code they are simply called {previous_months_calendar} and {next_months_calendar} but I cannot find where the actual code is called from.
Any ideas and help appreciated!
I just need a bit of help here with GL. I have been updating the look of the calendar and all is going well, however, I want to update the look of the 2 smaller calendars that show up on the calendar page and cannot figure it out. In the code they are simply called {previous_months_calendar} and {next_months_calendar} but I cannot find where the actual code is called from.
Any ideas and help appreciated!
11
10
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
If you check the HTML that's generated for the two small calendars, you'll notice lots of CSS class names with "small" in their name - those should be sufficient to modify their layout.
Otherwise, the code is (in 1.4.0) in calendar.php, function getSmallCalendar(), and makes use of the calendar class in system/classes/calendar.class.php.
bye, Dirk
Otherwise, the code is (in 1.4.0) in calendar.php, function getSmallCalendar(), and makes use of the calendar class in system/classes/calendar.class.php.
bye, Dirk
8
9
Quote
LostFan
Anonymous
Thanks, that helped. But I guess I should have asked a better question...
Where are the variables defined? Such as {event_location} {event_description} etc...
What I am trying to do it make it so that the form for event additions has default values.
Thanks
Where are the variables defined? Such as {event_location} {event_description} etc...
What I am trying to do it make it so that the form for event additions has default values.
Thanks
8
9
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/05
Posts: 985
You would probably want to modify the saveevent function within the submit.php (on version 1.4 and earlier). After this line:
you could add a check for the content of location and fill it with a default if it is empty only if eid is empty:
$A['location'] = $default_location;
You need the eid check so that the default location is only filled in the first time the event is submitted. The default location might be wrong and you should allow the user to edit the event and remove the location. Same with description.
Of course, the calendar was converted to a plugin in 1.4.1 so you'll have to make this change in the function plugin_savesubmission_calendar in file /path2gl/plugins/calendar/function.inc when you switch to that version.
Hope that helps.
Text Formatted Code
$A['location'] = addslashes (strip_tags (COM_checkWords ($A['location'])));Text Formatted Code
if ((!isset($A['eid']) || $A['eid'] == 0) && empty($A['location']))$A['location'] = $default_location;
Of course, the calendar was converted to a plugin in 1.4.1 so you'll have to make this change in the function plugin_savesubmission_calendar in file /path2gl/plugins/calendar/function.inc when you switch to that version.
Hope that helps.
8
8
Quote
All times are EST. The time is now 06:33 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content