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

Reply
 
Thread Tools
Calendar Advanced Search Details »»
Calendar Advanced Search
Version: 1.0.0, by Dylanblitz Dylanblitz is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Calendar Enhancements - Version: 3.8.x Rating:
Released: 09-25-2009 Last Update: Never Installs: 22
Uses Plugins Auto-Templates
Additional Files Is in Beta Stage  
No support by the author.

I haven't seen a calendar search hack so I thought I'd make one.

This hack will add search functionality for your calendars.
It will add an option for a quick search in the Search dropdown navbar as well as an option to do advanced searching. You can search based on the text in the title/body of the event, the event author, start/end date of the event and the calendars you have permissions to view.

Download Now

File Type: zip Calendar_Search_1.0.zip (15.6 KB, 124 views)

Screenshots

File Type: png 01-DropDown.png (13.6 KB, 0 views)
File Type: png 02-AdvancedSearch.png (43.1 KB, 0 views)
File Type: png 03-SearchResults.png (17.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 10-19-2009, 01:57 PM
Dylanblitz Dylanblitz is offline
 
Join Date: Oct 2005
Location: OC, California
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by inciarco View Post
I noticed that the Search Results Only Show the Future Events, no matter if I Choose a Past Date on the Advanced Search.

Is it Possible to Include the Possibility to Include in the Search the Previous Events Too?

I Hope You Can Include that Feature on the Mod or Perhaps Indicate us what should we Change and where to Obtain those Complete Results.

Of Course I Voted for this Mod on this Mont's MOTM, I Like a lot this Feature on the Board. :up:

My Best Regards.

If you want to show previous dates you can modify this line 240

PHP Code:
$event_query $db->query_read("SELECT ce.*, cu.username, cc.title AS CalendarName FROM " TABLE_PREFIX "event ce LEFT JOIN " TABLE_PREFIX "user cu ON ce.userid = cu.userid LEFT JOIN " TABLE_PREFIX "calendar cc ON ce.calendarid = cc.calendarid WHERE ce.visible = '1' && dateline_from > '$thisdate'" $search_vars " ORDER BY " $chksort " " $chkorder " LIMIT " . ($limitlower 1) . ", " $perpage); 
Change it to

PHP Code:
$event_query $db->query_read("SELECT ce.*, cu.username, cc.title AS CalendarName FROM " TABLE_PREFIX "event ce LEFT JOIN " TABLE_PREFIX "user cu ON ce.userid = cu.userid LEFT JOIN " TABLE_PREFIX "calendar cc ON ce.calendarid = cc.calendarid WHERE ce.visible = '1'" $search_vars " ORDER BY " $chksort " " $chkorder " LIMIT " . ($limitlower 1) . ", " $perpage); 
Reply With Quote
  #23  
Old 10-19-2009, 03:21 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dylanblitz View Post
If you want to show previous dates you can modify this line 240

PHP Code:
$event_query $db->query_read("SELECT ce.*, cu.username, cc.title AS CalendarName FROM " TABLE_PREFIX "event ce LEFT JOIN " TABLE_PREFIX "user cu ON ce.userid = cu.userid LEFT JOIN " TABLE_PREFIX "calendar cc ON ce.calendarid = cc.calendarid WHERE ce.visible = '1' && dateline_from > '$thisdate'" $search_vars " ORDER BY " $chksort " " $chkorder " LIMIT " . ($limitlower 1) . ", " $perpage); 
Change it to

PHP Code:
$event_query $db->query_read("SELECT ce.*, cu.username, cc.title AS CalendarName FROM " TABLE_PREFIX "event ce LEFT JOIN " TABLE_PREFIX "user cu ON ce.userid = cu.userid LEFT JOIN " TABLE_PREFIX "calendar cc ON ce.calendarid = cc.calendarid WHERE ce.visible = '1'" $search_vars " ORDER BY " $chksort " " $chkorder " LIMIT " . ($limitlower 1) . ", " $perpage); 
Thank You Very Much, Dylanblitz. :up:

I removed the

Quote:
&& dateline_from > '$thisdate'
and is Working Great.:up:

This is a Great Mod, Very Important for Boards that Use the Calendar Tool. :up:

My Best Regards, and Thank You Very Much For Sharing This Great Mod. :up:

Reply With Quote
  #24  
Old 10-19-2009, 03:51 PM
Dylanblitz Dylanblitz is offline
 
Join Date: Oct 2005
Location: OC, California
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by inciarco View Post
Thank You Very Much, Dylanblitz. :up:

I removed the



and is Working Great.:up:

This is a Great Mod, Very Important for Boards that Use the Calendar Tool. :up:

My Best Regards, and Thank You Very Much For Sharing This Great Mod. :up:

Good to hear. This mod will go away with vb4. From what I hear the calendar is finally being included in the search so doing it from the outside won't be needed anymore
Reply With Quote
  #25  
Old 10-19-2009, 09:02 PM
SamirDarji SamirDarji is offline
 
Join Date: Apr 2004
Posts: 645
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vb4 is vaporware at the moment, and I think there will be support for the 3.8.x series for a while after vb4 is out. This mod will live on for a few years.
Reply With Quote
  #26  
Old 10-19-2009, 10:37 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Small Bug.

I made the Changes to include on the results all the List of Events (not only from the current date).

When I try to search for events with certain words like "colombia", "mexico", the mod only displays the first page of results, leaving many events out, (the results are larger than that); in other cases like when I search in my calendar for "espa?a", the results are presented in 2 pages, but leaving the other pages and results out; the results list and pages are being truncated for some reason.

This is happening with the Navbar Search and also with the Advanced Search, even by selecting Start and End Dates.

Looks like the pagination feature needs some code checking.

Do you know why?

Is there something additional that I should change to correct this?

My Best Regards.

Reply With Quote
  #27  
Old 10-20-2009, 03:26 PM
Dylanblitz Dylanblitz is offline
 
Join Date: Oct 2005
Location: OC, California
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by inciarco View Post
Small Bug.

I made the Changes to include on the results all the List of Events (not only from the current date).

When I try to search for events with certain words like "colombia", "mexico", the mod only displays the first page of results, leaving many events out, (the results are larger than that); in other cases like when I search in my calendar for "espa?a", the results are presented in 2 pages, but leaving the other pages and results out; the results list and pages are being truncated for some reason.

This is happening with the Navbar Search and also with the Advanced Search, even by selecting Start and End Dates.

Looks like the pagination feature needs some code checking.

Do you know why?

Is there something additional that I should change to correct this?

My Best Regards.

Can you send me a link to your forum so I can check it out? I thought I had the nav path built right, I don't have enough calendar records to test it out right.
Reply With Quote
  #28  
Old 10-20-2009, 04:40 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dylanblitz View Post
Can you send me a link to your forum so I can check it out? I thought I had the nav path built right, I don't have enough calendar records to test it out right.
I've Sent You a PM with the Info, Dylanblitz. :up:

Is it possible to Include the Following Feature on the Mod:

1. To be able to Control the Time Betwen Searchs with the same one Specified for the Thread and Post Searchs, to Avoid Abuse of this Tool.

To do it, what Code Should I Include and in what File/Plugin for Make it Happen?

My Best Regards.

Reply With Quote
  #29  
Old 10-20-2009, 08:55 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess you can use the same Date and Time Control that vBulletin Uses for the Searchs, because this is a Search it self, so if you Update and Control this Limits with the same System as the Board the User won't be able to Abuse of this Queries and also won't be able to Search Again on the Calendar or the Threads/Posts until the Waiting Time Expires.

(This way you don't need to Create your own Time Control, and use the related one on the Forum Board).

(I saw that the Mod uses the same Permission for Searching, so if an Usergroup don't Have Permissions to Search on the Forums won't have Permissions to Search on the Calendar, that is very Logic because both are Searchs on the Board.)

My Best Regards.

Reply With Quote
  #30  
Old 02-27-2010, 03:45 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Dylanblitz.

I Hope You Can Share With Us Soon an Update of this Great Mod.

Remember that One Small Detail is missing (not working properly), and is that when the Results have more than 1 Page the other Pages don't Show.

I've tested it on vB384 PL2 and the Error is still there.

My Best Regards and Hopes for an Update.

Reply With Quote
  #31  
Old 05-24-2010, 02:46 AM
MonkYZ MonkYZ is offline
 
Join Date: Jul 2008
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod ! I've installed it but unfortunatelly it gives me a bad link. To be more exact, the link to calendarsearch.php?do=dosearch is missing the /forum/ path. How can i fix this ?
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 08:48 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.05051 seconds
  • Memory Usage 2,364KB
  • 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
  • (4)bbcode_php
  • (6)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
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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