![]() |
Calendar Search and Comments for Events
This hack I made was a paid request by Lee Wilde, the thread can be found here: https://vborg.vbsupport.ru/showthread.php?t=74337 . He and I want to release this to public because Lee Wilde believed that there're alot of members looking for this.
*UPDATE: 03/28/2005 If you installed this hack before 03/28/2005, to fix search bugs please rehack the file calendar.php *UPDATE: 03/23/2005 Fixed 2 table_prefix mistaken, please read this post: https://vborg.vbsupport.ru/showpost....0&postcount=38 *UPDATE: 03/17/2005 fixed avatar disable problem and a minor wrong in instructions.txt TO FIX avatar disable: FIND: PHP Code:
PHP Code:
What does this hack do ? Give your users ability to search for Events on Calendar. Ability to add comments for events. The permission is usergroup based:
Files edit: 3 New Template: 7 Templates Edit:1 Database: 1 new table, 2 new column for table 'event'. Installation time: less than 10 minutes. Screenshots: (thanks to Lee Wilde). Search Events: https://vborg.vbsupport.ru/attachmen...chmentid=24795 event_with_quickreply_enabled : https://vborg.vbsupport.ru/attachmen...chmentid=24793 event_with_reply_added : https://vborg.vbsupport.ru/attachmen...chmentid=24794 Credits: The installer I use is from V3 Article with permission from John so the credit goes to him. Last words: I will try to help with all the problems *in cases* may occur. |
hum.. comments on events, does this mean it works like a "new thread for each event", so people doesn't have to create new threads for each event ?! this is great!
EDIT: found a first error; in the instructions, the first thing is not to ADD BELOW, but to REPLACE WITH in the "in includes/init.php find..." EDIT AGAIN: script look solid, but you're not using $vbphrase ... fix this and this will be my next Hack of the Month!!! (ok, we may find some other details to fix before that!) |
Is there any screenshot or live demo ?
|
Yeah, some screenshots would be great...
|
Yeah, great! Thanks for releasing!
|
I wish I could see screenshots. What is the difference between this hack and that one
|
Well, I installed. I had avatar disabled on my board, that gave me a mysql error. Could not go any further. Once I enabled avatar, it became fine. I don't want avatar.
Quote:
|
Ahem.....deathemperor.....I am a "she" not a "he".... lol
The hack worked perfectly for me on a development board. I'll be installing it on my live site today and I'll post a link here when its ready. My site is a small business networking site. The ability for my members to add comments to events in the calendar will encourage them to discuss and arrange to meet at upcoming events. deathemperor accomplished this hack for me with lightening speed and I did not experience any errors at all when installing....and my board had been hacked to death already. Given his knowledge, I'm sure any errors experienced by others will be able to be rectified without much fuss. Excellent work deathemperor. I will try and contact some of the members who had been searching for the calendar search hack in particular, and alert them to this thread. |
Lee, out of curiosity do you have avatars enabled? Hack works perfect for me, until avatar is disabled...
|
Quote:
deathemperor's hack enables users to reply directly to the event in the calendar....so the calendar event itself can become a thread! This will bring our calendars to life!! I'll post a link to a live example later today. |
Quote:
|
Thanks. I hope I am not the only one with that problem. Like you said, it brings life in calendar. It's just that avatar I'd like to keep disable.
|
Here are 2 screenshots.
1. event_with_quickreply_enabled.jpg Users are used to seeing the quick reply box in the forums, so to see under an event seems natural. 2. event_with_reply_added.jpg Once someone has replied to the event, it begins to look like a forum thread! I will add a screenshot of the calendar search page shortly. |
a minute I'll fix the avatar disable problem, didn't think of disabling avatar T_T
to fix avatar disable problem if you installed: FIND: PHP Code:
PHP Code:
BTW thanks for the kinds word Lee Wilde, much appriciate. and the reason why I didn't add phase to this was I didn't have enough time, also this hack isn't really big enough |
This looks great! Any sceenshots of the search?
|
Screenshot of calendar search page.
|
Quote:
|
I used the event attendance hack on my previous setup and it was brilliant. I don't know whether I really need it now.
I guess the event attendance hack did create the cool list of who is going. Hmmm......perhaps I will install it again. I'll let you know if it causes any problems. |
That fixed my problem. Hack seems to work 100% ok. Indeed you've created a forum within the calendar. Great work!
|
Quote:
|
I placed the search in the navbar under a drop down for calendar as a link. It would be nice to be able to use with vbaCMS. The old module does not recognize the events id
|
hit a snag. My signature block comes up as code. Any ideas? Link
|
A couple of problems I'm having:
The avatar link is broken The drop-down on the user name has some weird code in it The signature is not recognizing line breaks When trying to delete a comment I get: Quote:
http://www.churchmedia.net/community...-4-19&e=94&c=4 |
Here the fix for the error when trying to delete comments:
in calendar.php find: PHP Code:
PHP Code:
Thanks everyone very much for your kind words. |
Am I missing something? Do I need to apply that fix? I am able to delete comments, events no problems, so I am not sure if I should do it or not....
|
If it aint broke, don't fix it Lionel ;-)
We have all customised our forums in different ways, so we may experience different problems. So far the only problem I've seen on mine is the signature not displaying correctly, but deathemperor will provide a fix for that soon I'm sure. |
Quote:
SIGNATURE FIX: in calendar.php FIND: PHP Code:
PHP Code:
|
I did not have the delete problem under the conditions that you said. I updated and I got
Quote:
mysql database 4.03 |
I'm sorry, to fix that: find:
PHP Code:
PHP Code:
|
that works, thanks.
|
Thank you for releasing this hack. In retrospect, I cant believe you cant search for calander events making this very much needed.
|
Maybe I missed something but how does a user access the search?
|
you can use: http://YOURSITE.com/FORUM/calendar.php?do=search for the link to event search.
|
When I try that, I get a user not allowed permissions error. I went into the admincp and for admin, the search calender option is set to 'yes'. I probably typo'd something... i'll have to check the code edits when im more awake.
|
it may be because you have not 'save' the usergroup permission in the first time so that it takes effect. I believe the code is ok since ppl is searching finely.
|
Ah that was it. I knew it had to be something simple lol
Thanks! |
Installed this on a 303 with event attendance. All went fine, but when trying to add a comment or quote a existing comment this error pops up (the comments get added into the db all ok):
Quote:
Certainly hope there is a fix around for the mysql error. This is one hell of a handy hack:banana: Regs, -Mika |
OOPS !
my bad mistake, I missed 2 table_prefix. TO FIX: IN calendar.php FIND: PHP Code:
PHP Code:
|
Quote:
|
no prob.
I'm glad to hear that. |
All times are GMT. The time now is 04:48 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|