Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Calendar Search and Download Details »»
Calendar Search and Download
Version: 1.10, by HCGB HCGB is offline
Developer Last Online: Oct 2012 Show Printable Version Email this Page

Category: Calendar Enhancements - Version: 4.0.x Rating:
Released: 03-20-2010 Last Update: 04-14-2010 Installs: 51
Uses Plugins
Re-useable Code Additional Files Translations  
No support by the author.

Calendar Search and Download for vB4


This mod addresses yet another basic feature missing from vB4 - calendar search and download


Features:


Replaces the Calendar menu item with a drop-down menu which adds a calendar search and export function. You can search in username, event title, description. custom fields, calendar and by year/month range. You can also export the search results (or the full calendar) as an iCalendar file (for import into a PC, mobile, Google, etc) or as a PDF text document.

Both export functions include email contact information for the event poster (provided that the current user has permission to view member groups and send emails AND the event poster allows email contact).

NEW! - v1.04b onward supports automated Google Calendar updates (view your vB calendar on Google alongside your other calendars!)

You can use the automatic indexing feature in Google Calendars to view your forum calendar (and sync it with your Nokia/iPhone/BlackberryAndroid/etc cell phone). Only calendars that have unregistered user access will be viewable (Unregistered Usergroup->can view calendars & ->view others events to yes).

To setup Google Calendars (http://www.google.com/calendars) to view your vB calendar(s) , select Other calendars->add->add by URL then enter http://your_forum_url/calsearch.php?do=gcal (replacing your_forum_url with your real forum URL!). Google can take many hours to actually index the vB calendar so be patient! If you want to start from a particular year - &startyear=20xx (it defaults to the current year).

Tested with Vbulletin 4.0.2 AND vBadvanced 4 beta. Product has no custom phrases or template/code edits. It uses two template hook locations in the navbar to change the calendar menu to a drop-down.


Settings:
None are needed - it does what it says on the tin .

AdminCP->vbulletin->options->message searching options->search results per page

Determines the number of event items displayed per page.


Installation
  1. Unzip the download package and copy the contents of the UPLOAD folder into your forum folder.
  2. Go to the VB AdminCP->Plugins & Products click "Manage Products". The click "Add/ImportProduct" at the bottom of the page.
  3. Click "Browse" button and point to the product-calsearch-(etc).XML file included in this ZIP package.
  4. Click "Import"
... all done


Updates

To update- uninstall the product AND delete the uploaded file calsearch.php then re-install as above.

v1.10
tested with vB 4.0.3
Recurring events now grouped by date
v1.09b
Added month selection options
v1.08b
Now allows reverse date order search (by entering a "To" year less than the "From" year.
Fixed user timezone issue with iCal files
v1.07b
Added full support for recurring events (also included in iCal export)
v1.06b
Changed search option layout
Start year now uses current year if no year selected (iCal/PDF/Google downloads all start from current year).

v1.05b
Standardised phrasing
Added "no events found" message
v1.04b:
Added calendar selection dropdown
Fixed IE layout issues
Added Google Calendar support
v103b:
Fixed time zone issue yet again (it DOES work this time!)
v102b:
Fixed time zone issue properly this time
Added drop down to select search field
Added support for searching custom calendar fields.
v101b:
Fixed time zone date calculation (was showing event on wrong day in some locales)



John

Download Now

File Type: zip Calendar Search and Download_109b.zip (31.0 KB, 45 views)
File Type: zip Calendar Search and Download_110.zip (31.0 KB, 283 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
starman?

Comments
  #12  
Old 03-24-2010, 12:45 AM
claystation claystation is offline
 
Join Date: Jan 2007
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is working very well. The added field queries are very nice. How difficult would it be to able to search one just one calendar at a time with this? If I can do this it will solve a lot of problems for my site.
Thanks
Reply With Quote
  #13  
Old 03-24-2010, 09:56 PM
is_it_me is_it_me is offline
 
Join Date: Mar 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks interesting for my ?what?s on? site, I'll take another look tomorrow when I am less screen-stir crazy.
Reply With Quote
  #14  
Old 03-25-2010, 12:38 PM
digibyte digibyte is offline
 
Join Date: Mar 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod is really interesting. I have some suggestions for further improvement and new features:
I don't really like the drop-down menu with the subitems "Calendar search" and "Calender". Can you make this drop-down menu optional with a setting? I think it would be more logical to add the search fields to the "calendar" page/template. You can there also make some export buttons (iCal/Gmail/PDF/...). Now you have to search for "nothing" to be able to export the whole calendar.

Thanks for this mod!
Reply With Quote
  #15  
Old 03-25-2010, 02:47 PM
HCGB HCGB is offline
 
Join Date: Apr 2008
Location: Scotland
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by digibyte View Post
This mod is really interesting. I have some suggestions for further improvement and new features:
I don't really like the drop-down menu with the subitems "Calendar search" and "Calender". Can you make this drop-down menu optional with a setting? I think it would be more logical to add the search fields to the "calendar" page/template. You can there also make some export buttons (iCal/Gmail/PDF/...). Now you have to search for "nothing" to be able to export the whole calendar.

Thanks for this mod!
Thanks for the suggestions. The calendar selection drop-down only appears if you have more than one calendar.

The default (when you click calendar search on the navbar menu) is to list all calendar content - you can then immediately click the download buttons to get everything. You can, of course, select a calendar then search and download to get just one calendar content (or one event type, etc).

I would agree that this mod should be part of the vB search system (both in the advanced search page and in the calendar itself). However, the calendar templates are buggy at the moment so I won't be spending time working with them until they are fixed
Reply With Quote
  #16  
Old 03-27-2010, 04:34 PM
is_it_me is_it_me is offline
 
Join Date: Mar 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I?ve had a chance to install this and I am well pleased with results so far, just a couple of things that would be an improvement if possible.

1 - by default the date range selected is 2008 - 2037; surely it should start with 2010, it?s only a small thing, but is there an easy way of changing it?

2 - the 'search for' button (or renamed 'search now') should be positioned at the end of all the options you need to complete/consider, i.e. after the date range, at the moment you work your way from left to right and when you get to the end you have to go back to the start to press search. Does that make sense?

3- and I agree with digibyte about making the drop-down menu optional, if possible.

I've put a link to the calendar search in my dropdown menu for 'What's On & Event Calendars' in my navbar, see here http://doctorwatson.info/calsearch.php, but what I could do with now is removing the vb search box from the navbar as this is going to cause confusion - can anyone point me in the right direction for doing that?

I?ll then add that search to the forum dropdown menu instead.
Reply With Quote
  #17  
Old 03-27-2010, 08:31 PM
HCGB HCGB is offline
 
Join Date: Apr 2008
Location: Scotland
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by is_it_me View Post
OK, I?ve had a chance to install this and I am well pleased with results so far, just a couple of things that would be an improvement if possible.

1 - by default the date range selected is 2008 - 2037; surely it should start with 2010, it?s only a small thing, but is there an easy way of changing it?

2 - the 'search for' button (or renamed 'search now') should be positioned at the end of all the options you need to complete/consider, i.e. after the date range, at the moment you work your way from left to right and when you get to the end you have to go back to the start to press search. Does that make sense?

3- and I agree with digibyte about making the drop-down menu optional, if possible.
I've made some changes (v1.06b+) which address some of these issues. The start year defaults to the current year (the drop-down allows earlier years to be selected). The search options have been rearranged to make better use of page space. The calendar selection remains as there is no easy way to handle multiple calendars otherwise

You may find it easier (now a decent calendar search is available ) to use calendar custom fields to categorise your event entries in a single calendar rather than having multiple calendars? That would get rid of the calendar selection drop-down!
Reply With Quote
  #18  
Old 03-27-2010, 09:58 PM
is_it_me is_it_me is offline
 
Join Date: Mar 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HCGB View Post
I've made some changes (v1.06b+) which address some of these issues. The start year defaults to the current year (the drop-down allows earlier years to be selected). The search options have been rearranged to make better use of page space. The calendar selection remains as there is no easy way to handle multiple calendars otherwise
Now that's what I call service, shame you're not running IB/Jelsoft at the moment.

The search options order seems so much more logical and layout cleaner, great improvement.

Quote:
You may find it easier (now a decent calendar search is available ) to use calendar custom fields to categorise your event entries in a single calendar rather than having multiple calendars? That would get rid of the calendar selection drop-down!
I?ll have a think about that, my first thoughts is it maybe not a great idea for my sort of site ? it would work if you knew what you were looking for, i.e. a search for ?Fred?s Flying Circus? brings up one result, and that?s happening 7-days a week for the period it?s listed for.

I did a search for ?Car Boot Sale? for 2009, on the basis the season hasn?t started properly yet this year, and it returns 50+, but recurring ones are only listed for the date range and not the day of the week. So, for example, it would be easier to view a calendar and see what particular ones were on for this Sunday.

Another example would be cinema listings; again if you just wanted to see what?s on this week, rather than a specific film, a search would list everything for the whole year, as you can?t search just for a weekend/week or month.

Just noticed a search for ?car boot sales? doesn?t return results for ?car boot sale?, which is actually how most of them are listed as they are singular events, but I can see people searching by the plural.

Although, I guess, that?s where custom fields could work, not that I would have a clue how to put them in place, until I got hold of vb4.02 about four weeks ago my only ?web-build? experience was running a standard vb3 installation for a year, with no hacks nor mods installed even!

I am a right numpty, but learning fast, for some reason I thought upgrading and adding a few bells and whistles was going to be easy.
Reply With Quote
  #19  
Old 03-28-2010, 08:16 PM
HCGB HCGB is offline
 
Join Date: Apr 2008
Location: Scotland
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by is_it_me View Post
Now that's what I call service, shame you're not running IB/Jelsoft at the moment.
...
I did a search for ?Car Boot Sale? for 2009, on the basis the season hasn?t started properly yet this year, and it returns 50+, but recurring ones are only listed for the date range and not the day of the week. So, for example, it would be easier to view a calendar and see what particular ones were on for this Sunday.
Attached is an updated version (now included in mod!) that handles recurring events by listing them (and their event dates) if they are occur within the selected year range. I haven't properly tested monthly recurring events as I can't work out how you set them in the calendar (the user interface is seriously deficient in that area ).

Quote:
Just noticed a search for ?car boot sales? doesn?t return results for ?car boot sale?, which is actually how most of them are listed as they are singular events, but I can see people searching by the plural.
Works OK here. The search works on event titles and content, not the calendar title (you can select the calender from the drop-down)
Reply With Quote
  #20  
Old 03-29-2010, 08:54 AM
is_it_me is_it_me is offline
 
Join Date: Mar 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HCGB View Post
Attached is an updated version that handles recurring events by listing them (and their event dates) if they are occur within the selected year range. I haven't properly tested monthly recurring events as I can't work out how you set them in the calendar (the user interface is seriously deficient in that area ).
Nice one - that seems to work OK, even for monthly recurring events - I've tested it on a couple of business networking events and Chamber Chat comes up as 'Monthly....First Wednesday' and the First Friday Network comes up as monthly and, as you would expect, on the First Friday - lol.

I agree the user interface for adding events is crap, worst than on vb3, and is causing my users confusion hence I am either having to add events myself or moderate most users adding their own, so I can correct mistakes.

Actually, there’s a thought, the search returns a ‘contact’ on the right of results, which is the person that added the event but not necessary the organiser/contact for it, could that be made optional, or maybe replaced with the ‘to & from’ times?

Quote:
Works OK here. The search works on event titles and content, not the calendar title (you can select the calender from the drop-down)
That's odd, because a search for car boot sales (with the 's') brings up 3 results, 2 of which doesn't include the 's' in event title nor content, in fact one doesn't even use the words 'sale or sales'.

However, a search for car boot sale returns 7 results and a search for just car boot brings up 8 results - be buggered if I can work out why.

Similar problems searching for farmers' market but worst because you can add an 's' or not to both the words and it doesn't return those with the apostrophe if you haven't included the apostrophe in the search, e.g. farmers market

ETA - And even worst it shows me up for the misuse of the apostrophe when I've imputed some as 'Farmer's Market'.
Reply With Quote
  #21  
Old 03-29-2010, 11:44 AM
HCGB HCGB is offline
 
Join Date: Apr 2008
Location: Scotland
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by is_it_me View Post
That's odd, because a search for car boot sales (with the 's') brings up 3 results, 2 of which doesn't include the 's' in event title nor content, in fact one doesn't even use the words 'sale or sales'.
All three entries contain "sales" (one has invisible text with the word in it - do a browser search on the event page and you will find it)

Quote:
However, a search for car boot sale returns 7 results and a search for just car boot brings up 8 results - be buggered if I can work out why.
"car boot" is in "car boot sales" so it will find both (it's a simple character string search , not a word list search).

Quote:
Similar problems searching for farmers' market but worst because you can add an 's' or not to both the words and it doesn't return those with the apostrophe if you haven't included the apostrophe in the search, e.g. farmers market
Are you expecting the search to know that you meant to add an apostrophe in the middle of the search phrase?

The product has been updated in the orginal post above to include the recurring event code. The iCal/Google export also now supports recurring events.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:26 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05004 seconds
  • Memory Usage 2,373KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (11)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete