Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Calendar Search and Export Details »
Calendar Search and Export
Mod Version: 1.09b, by HCGB (Coder) HCGB is offline
Developer Last Online: Oct 2012 I like it Show Printable Version Email this Page

vB Version: 3.8.4 Rating: (2 votes - 5.00 average) Installs: 15
Released: 30 Mar 2010 Last Update: 06 Apr 2010 Downloads: 71
Not Supported Uses Plugins Additional Files Re-usable Code Translations Is in Beta Stage  

Calendar Search and Download


There is a vB4 version of this mod HERE


Features:

Adds a calendar quick search and advanced search to the Search menu on the navbar. 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).

Also supports automated Google Calendar updates (view your vB site 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 3.8.4/3.8.5 and vBadvanced 3. Product has no custom phrases or template/code edits. It uses one template hook location in the navbar.


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.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

John

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 01 Apr 2010, 18:00
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Question

Very Interesting Mod.

Thank You For Sharing It; Works Fine on vB38x.

One Question:

Is it possible to Sort the Results to View the Most Recent Ones First. (If I Search Events From 2005 to 2010, it'll Display the Oldest Events First).

I Liked a Lot All the Search Options on the Search Results Page (calsearch.php), as well as the Displayed Info of the Events.

I Hope Results Can be Sorted Recent to Oldest.

My Best Regards.

Reply With Quote
  #3  
Old 01 Apr 2010, 19:41
HCGB HCGB is offline
 
Join Date: Apr 2008
Real name: John
Originally Posted by inciarco View Post
Is it possible to Sort the Results to View the Most Recent Ones First. (If I Search Events From 2005 to 2010, it'll Display the Oldest Events First).
Thanks for the comments. I find your request a bit strange - none of the calendars I've seen or used display in reverse order (newest to oldest) - it doesn't make sense for most users as calendars always look toward the future.

This mod will default to the current year onwards for the search - that's what most people want (to see what is happening in the near future) - unless you can convince me otherwise
__________________
Reply With Quote
  #4  
Old 02 Apr 2010, 04:55
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Question

You're Right.

One Important Thing I Just Noticed:

Guests Can Search Without Any Limit.

- How Can I Restrict Usergroups From Using The "calsearch.php" File and/or the Searching Options?

- Is there a way to Connect it with the Usergroup Search Permissions? (if an Usergroup don't have Search Permissions then Don't Display the Search Form and Options)

I Appreciate Your Instructions to Limit Usergroups From Making Calendar Searches.

My Best Regards.

Reply With Quote
  #5  
Old 02 Apr 2010, 08:13
HCGB HCGB is offline
 
Join Date: Apr 2008
Real name: John
Originally Posted by inciarco View Post
Is there a way to Connect it with the Usergroup Search Permissions? (if an Usergroup don't have Search Permissions then Don't Display the Search Form and Options)
It respects calendar permissions (AdminCP->Calendars->Calendar Permissions) and usergroup calendar permission (AdminCP->UserGroup Manager : <group> : Calendar Permissions)
__________________
Reply With Quote
  #6  
Old 02 Apr 2010, 12:48
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Question

Originally Posted by HCGB View Post
It respects calendar permissions (AdminCP->Calendars->Calendar Permissions) and usergroup calendar permission (AdminCP->UserGroup Manager : <group> : Calendar Permissions)
Thank You For The Update, HCGB.

What Code Can I Add To Hide the Search Form and if I Like the Entire Calendar Page From Certain Usergroups?

I don't Like Visitors (Usergroup 1), Not Activated (Usergroup 3), Not Approved (Usergroup 4), and Other Banned Usergroups (Included 8), To Be Able to Make Searchs with the "calsearch.php" Page.

I'll Apply the Same Code You Provide For This Mod to Your Album and Pictures Gallery, where I Asked the Same Question, (I'd like to Hide the Search Form on Both Pages on "albumall.php" and "picall.php", because I don't want certain Usergroups to Make Searchs).

I Usually Set this Permissions on the Mod's Templates, but Your Mods have Everything on the php Files, and I haven't done this Coding for Usergroup Permissions on the php Files.

I Appreciate Your Help by Providing me the php Code I should Use to Set Those Usergroup Permissions.

My Best Regards.

Reply With Quote
  #7  
Old 02 Apr 2010, 15:31
HCGB HCGB is offline
 
Join Date: Apr 2008
Real name: John
Originally Posted by inciarco View Post
Thank You For The Update, HCGB.

What Code Can I Add To Hide the Search Form and if I Like the Entire Calendar Page From Certain Usergroups?

I don't Like Visitors (Usergroup 1), Not Activated (Usergroup 3), Not Approved (Usergroup 4), and Other Banned Usergroups (Included 8), To Be Able to Make Searchs with the "calsearch.php" Page.
Now I'm confused - why would you want to hide the search options when the user will still be able to view all of the calendar content? All you are doing is making life slightly harder for them - you aren't stopping them accessing anything? If you want them not to be able to view the calendar then set their usergroup (or calender) permissions.

I Usually Set this Permissions on the Mod's Templates, but Your Mods have Everything on the php Files, and I haven't done this Coding for Usergroup Permissions on the php Files.
Although I don't understand the reason why you would want to stop people searching pictures but still let them view them all - you could easily modify the templates to remove the search option form for particular groups (you don't need to touch the PHP code at all)
__________________
Reply With Quote
  #8  
Old 02 Apr 2010, 18:46
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Lightbulb

Originally Posted by HCGB View Post
...
Although I don't understand the reason why you would want to stop people searching pictures but still let them view them all - you could easily modify the templates to remove the search option form for particular groups (you don't need to touch the PHP code at all)
You're Right I wasn't Smart Enough to Analyze the XLM Code and Check the Created Templates to Notice that I Just Needed to Edit the Templates "calsearch_result" for the Calendar Search and "gallery_albumall" for the Albums and Pictures Galleries.

Thank You For Pointing me that there were Templates, I don't know why I thought there weren't and that Everything was done with the php Files.

I Appreciate Your Patience and Help.

My Best Regards.

Reply With Quote
  #9  
Old 04 Apr 2010, 14:53
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Thumbs up

Thank You Veru Much For the Update, HCGB.

Reply With Quote
  #10  
Old 04 Apr 2010, 15:11
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Question

I've Tested this Mod and the Album and Picture Gallery on vB373 PL1, and both Mods Work Fine.

One Small Detail I Found:

On the Template "calendar_search" you have a "+-" text at the end of all the Template Code that should not be there; it should be removed because it displays that text above the Search Dropdown Menu.

My Best Regards.

Reply With Quote
  #11  
Old 06 Apr 2010, 07:33
HCGB HCGB is offline
 
Join Date: Apr 2008
Real name: John
Fixed- re download the 109b version.
__________________
Reply With Quote
  #12  
Old 09 Apr 2010, 21:28
OpenPitLane OpenPitLane is offline
 
Join Date: Aug 2007
We have rather a large calendar at http://openpitlane.co.uk/index.php?pageid=trackdays and this functionality would be great for our users.

But will it work with 3.6.8 by any chance, or do I need to upgrade?
Reply With Quote
  #13  
Old 12 Apr 2010, 12:05
HCGB HCGB is offline
 
Join Date: Apr 2008
Real name: John
Originally Posted by OpenPitLane View Post
We have rather a large calendar at http://openpitlane.co.uk/index.php?pageid=trackdays and this functionality would be great for our users.

But will it work with 3.6.8 by any chance, or do I need to upgrade?
No idea - It doesn't modify the database so it's perfectly safe to test it on older versions.
__________________
Reply With Quote
  #14  
Old 12 Apr 2010, 18:35
OpenPitLane OpenPitLane is offline
 
Join Date: Aug 2007
Originally Posted by HCGB View Post
No idea - It doesn't modify the database so it's perfectly safe to test it on older versions.
Great - I will give it a test. Thanks so much for replying.
Reply With Quote
  #15  
Old 12 Apr 2010, 19:05
OpenPitLane OpenPitLane is offline
 
Join Date: Aug 2007
Originally Posted by OpenPitLane View Post
Great - I will give it a test. Thanks so much for replying.
It won't actually let me import the xml file as we are on version 3.6.8. Is there a way to get round this?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 07:37.

Layout Options | Width: Wide Color: