New Zenner
- Join Date:
- Apr 2009
- Posts:
- 52
- Plugin Contributions:
- 0
Scheduled Events Add-On
Yes, I get the same message no matter what code I've tried. Makes me wonder if something else is over-ridding it.
april_may
Views: 45,672
New Zenner
Yes, I get the same message no matter what code I've tried. Makes me wonder if something else is over-ridding it.
april_may
Totally Zenned
When you look in the database, is the table named events or something else? Perhaps zen_events?
New Zenner
it is zen_events
An unrelated question... you say the events roll off when expired. Is there a way to have an option to have them "reset" if the event is a monthly re-occuring event.
Example: I list 2nd Saturday Art Walk events. They are always on the 2nd sat of the month, so as soon as one expires and "rolls off" can it be programmed to re-set to show it for the next month?
april_may
Totally Zenned
Let's try this as the header_php.php```php
<?php // $Id: header_php.php 2008-12-31 08:07:26Z dbltoe $ require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php')); // include template specific file name defines $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_EVENTS, 'false'); $result = $db->Execute("SELECT * FROM zen_events WHERE (EndDate >= NOW()-1) ORDER BY StartDate"); $eventData = array(); while (!$result->EOF) { $eventData[] = $result->fields; $result->MoveNext(); } $breadcrumb->add(NAVBAR_TITLE); ?>
New Zenner
Tried it. Still does not work - still getting same error message
New Zenner
Could it be in the files where I copied and pasted rather than WinMerging?
in the informatio.php file I copied and pasted this code:
if (DEFINE_EVENTS_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_EVENTS) . '">' . BOX_INFORMATION_EVENTS . '</a>';
}
is this the ONLY code snip that you added to this file?
Maybe I am missing something here.
Totally Zenned
april_may:
Tried it. Still does not work - still getting same error message
The EXACT SAME message as before or does it now contain "zen_events"?
New Zenner
exact same message as before... the error message has never changed no matter what code we've tried.
New Zenner
could this be it? In the extra_pages_filenames.php
?php
// $Id: extra_pages_filenames.php 2008-12-31 08:07:26Z dbltoe $
// define the extra page filenames
define('FILENAME_DEFINE_EVENTS', 'define_events');
define('FILENAME_EVENTS', 'events');
?>
should I change it to
define('FILENAME_EVENTS', 'zen_events');
Totally Zenned
No.
If you can hold off to later today after I get out of the flea market my wife talked me into, we'll look at this a little more in depth.
New Zenner
Ok- no problem...Thanks
New Zenner
for later... I went ahead and tried changing it and that did not work either.
"talk" later
New Zenner
Hi. Thank for the MOD. It's awesome and very useful for my site. Although I loved it, I don't know a thing to tweak it. Thanks to genius people here. :smile:
Can someone tell me how to add a "Start Time" (ie. 8:20am) and "End Time" ? (ie. 4:20pm) in the form? This is for a yardsale community I'm building. I want it to show as:
What: (Already working)
Where: (Already working)
When: (Already working)
Time: ----need help here---
Notes: (Already working)
Driving Directions: (Already working)
Thanks in advance guys! :smile:
Totally Zenned
Actually, when I developed the mod, I wanted to avoid putting too much code into the works. It was important to track the start and stop date in order for the system to sort the events and drop them from the list when they were done.
For that reason (and the varying times of servers) I chose to use the Comments section for the information about event times. Entering "We'll be open 9 to 5 Thursday, 10 to 6 Friday, and 12 to 6 Sunday" is kinda hard to code.:P You can see why I tried to make it flexible.
If every one of your events were going to have static times for each day OR all events are for one day only, that's another matter. You could use the start or end date to insert the time and extract it in the tpl file.
Let me know if you need to go that way and I'll help with the code, but I think you can get by with using comments.
New Zenner
dbltoe:
You could use the start or end date to insert the time and extract it in the tpl file.
Let me know if you need to go that way and I'll help with the code, but I think you can get by with using comments.
Thanks for the reply! :-) I actually want to post concert events too and others that has the start and end time. I did notice a 00:00:00 but just don't know how to go about it.:blush:
New Zenner
Hi,
Works nice and so useful! But I have a puzzle in my mind is if there would be a chance that someone else would enter the 'eventz' folder by accident and input something like spam there!
regards,
Totally Zenned
Matters not what the folder is named. It doesn't show in the sitemap and add an underscore to the name can help as well.
Naming it differently will help or you can access the events table through phpMyAdmin or some other database program. Navicat has a free tool that is nice.
The eventz folder was created for those who were uncomfortable with having to dive into the database.
Zen Follower
hi im using a fresh install of 1.3.8 i have some addons but nothing that conflicts with these folders
i have installed the sql patch and everything seems to be great except the events main page shows as blank, despite me having set up a dummy event for it to display, i cant work out what is causing it to not show up? i have scanned this board over and over and ive seen a couple of posts relating to this but no solution unless i am missing something? any help would be much appreciated :smile:
thankyou
Zen Follower
my mistake, i entered a past date for the dummy event i put in, school boy error! working now lol
Totally Zenned
Glad you got it going:clap:
For others' reference. --- When the events page comes up with the title and no information, either there's no information or the information is outdated.
Tell staff why this post should be reviewed.