Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8026 Posts in 1851 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationHacks and Mods (Moderators: scott, DanO, Marty)advanced searching capability
Pages: [1] 2 3 4   Go Down
Print
Author Topic: advanced searching capability  (Read 2094 times)
0 Members and 1 Guest are viewing this topic.
beneath_the_ashes
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: January 07, 2003, 05:11:00 PM »

hi..i am trying to find a way that i can have a link somewhere, that always does the same search, and provides a list of search results.  For example...a link that says "click here for upcoming shows"  and when you click it, it automatically just provides a dynamic list of search results.

Also...i notice the search results are sorted alphabetically....is there a way to make them show up chronologically?

thanks much
ryan

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: January 07, 2003, 06:04:00 PM »

** ...a link that says "click here for upcoming shows" and when you click it, it automatically just provides a dynamic list of search results. **

I think that will only be possible if you can make a dynamic link too. The search works from between 2 dates, you would have to have those dates change in the link to keep the results up to date.

You could link directly to the ssi.html template as that is basically what it does (ie. show upcoming events).

Dan O.

------------------

Logged
beneath_the_ashes
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: January 08, 2003, 03:32:00 AM »

if the url string contains date range variables, i can just set them to drastic extremes to make sure i get everything...but do you know what the url string format is?

and also for sorting chronologically...

ryan

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: January 08, 2003, 03:27:00 PM »

** if the url string contains date range variables, i can just set them to drastic extremes to make sure i get everything **

Doesn't do much for upcoming events. I would think linking to the ssi.html template would be a better idea, you can modify its design to display any way you like. Plus the search results do not always show recurring events which the SSI template does.

** do you know what the url string format is? **

calendar.pl?view=Search&end_month=2&start_date=8&calendar=default&start_year=2003&start_month=1&end_date=8&template=default.html&command=search&end_year=2003&FIELD_descrip tion=Search_Term

It will vary depending on what field you are searching on though.

** and also for sorting chronologically... **

All search results I've seen are by date. Maybe the template I'm using has been modified but don't remember?

If you find the code in the default.html template file following:

<% IF SEARCH RESULTS EXIST %>

Add

<% @$SEARCH_RESULTS = sort {$a->{schedule}->{start} <=> $b->{schedule}->{start} } @$SEARCH_RESULTS; %>

right before:

<TABLE BORDER="1" CELLPADDING="1" CELLSPACING="0">

That might do it.

Dan O.

[This message has been edited by DanO (edited January 08, 2003).]

Logged
TubaDave
New Member
*

Karma: 0
Offline Offline

Posts: 0

Student


WWW
« Reply #4 on: January 08, 2003, 07:16:00 PM »

Oooh, there's a quick'n'easy plugin.  Gimme an hour  

------------------
David Whittaker
[url" target="_blank">http://bama.ua.edu/~whitt013

Logged

beneath_the_ashes
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #5 on: January 08, 2003, 07:58:00 PM »

both worked beautifully...thanks much
ryan
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

Please don't PM me. Post in the open forum.


WWW
« Reply #6 on: January 08, 2003, 08:50:00 PM »

** both worked beautifully **

Glad to hear it.

Dan O.

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

Please don't PM me. Post in the open forum.


WWW
« Reply #7 on: January 14, 2003, 04:03:00 PM »

I just uploaded a plugin that will allow direct linking to the calendar search results page without the need for specifying a date in the link. The search results will display results from the present day forward and can be specifically requested for a certain numbers of days. You can also search only specific event fields, in all event fields or just display all results in that time period.

You can find it and other plug-ins at the www.much2.com web site.

Dan O.

------------------

Logged
beneath_the_ashes
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #8 on: January 16, 2003, 05:56:00 AM »

ok...plugin installed, but i dont fully understand how to utilize it...

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

Please don't PM me. Post in the open forum.


WWW
« Reply #9 on: January 16, 2003, 07:41:00 PM »

** i dont fully understand how to utilize it... **

What do you want to know?

Dan O.

------------------

Logged
beneath_the_ashes
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #10 on: January 16, 2003, 11:53:00 PM »

Is there something in the admin menu that i am missing?  Where do i find the URL i use...or do i structure it myself and pass specfic variables to it?  And if so what are they?

Or do i just use the URL string from the search page and add something to it?  Im not sure how to interact with the plugin...

ryan

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

Please don't PM me. Post in the open forum.


WWW
« Reply #11 on: January 17, 2003, 03:48:00 PM »

Did you read the _installation.txt file?

** Where do i find the URL i use **

From that file:

You can now link to the calendar's search results page using a link URL like the following:

calendar.pl?view=Search&command=search&FIELD_title=search+text&duration=14&calendar=default

** do i structure it myself and pass specfic variables to it? **

You can. From that file:

 

quote:
The calendar=default is optional and can point to the specific calendar to be searched.

duration=14 is optional but will set the duration in days from present for the calendar to display results from. If not supplied, a default of 7 days will be used.

You can search specific event fields using FIELD_title=search+text where "title" is the
event field to be searched and "search+text" is the text to be searched for.
NOTE: to separate multiple search terms use a "+" or "%20" (without the quotes) between the terms. Eg FIELD_title=search+text or FIELD_title=search%20text

Alternately, you can search all event fields using SEARCH_ALL=search+text

If no search term is supplied, all results that fall within the duration requested will be returned.


** Im not sure how to interact with the plugin... **

All you need to do (besides enabling the plug-in) is call the calendar using a URL with the wanted query string elements in it. All that has to be included is:
calendar.pl?view=Search&command=search

That will display all events from the current time forward 7 days.

Let me know if you have any other questions.

Dan O.


[This message has been edited by DanO (edited January 17, 2003).]

Logged
tw1000
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #12 on: January 17, 2003, 05:36:00 PM »

Dan Thanks for the plug-in! I have downloaded the file a few times but the file seems to be corrupt and will not unzip.

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

Please don't PM me. Post in the open forum.


WWW
« Reply #13 on: January 17, 2003, 05:47:00 PM »

** I have downloaded the file a few times but the file seems to be corrupt and will not unzip. **

I just uploaded a fresh copy making sure the upload was in binary (just in case it wasn't the last time). Let me know if you are successful now.

Dan O.

------------------

Logged
beneath_the_ashes
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #14 on: January 17, 2003, 06:32:00 PM »

Jebus...i thought i had looked at it...but apparently not...

but even with the info i have now, its not displaying anything, just a blank screen.
i am using:

calendar.pl?view=Search&command=search&calendar=default&duration=365&FIELD_description=beneath+the+ashes

and if i take of the search terms completely, the page comes up, ,but it says the Search query must not be blank!

does anything look wrong?  it seems like its not running through your plugin...

[This message has been edited by beneath_the_ashes (edited January 17, 2003).]

Logged
Pages: [1] 2 3 4   Go Up
Print
Jump to: