View Full Version : Posting - Putting 'Search' links within posts
Marc 1st June 2006, 06:52 AM If you do a search and post the link that comes up in your address bar, it will not work for others.
Remember, search terms must be at least 3 letters.
The 'correct' way:
Search for terms in thread titles ONLY:
Single search term:http://Elsmar.com/Forums/search.php?do=process&titleonly=1&query=term1 or multiple search terms: http://Elsmar.com/Forums/search.php?do=process&titleonly=1&query=term1+term2+...termx
To search all posts in all threads (not just the titles):http://Elsmar.com/Forums/search.php?do=process&query=term1 or http://Elsmar.com/Forums/search.php?do=process&query=term1+term2+...termx
Al Rosen 1st June 2006, 02:40 PM Marc, what do you add to limit the search to a particular forum or to two forums?
Marc 1st June 2006, 02:50 PM I don't know of any way to search 1 forum only. I'll look into it though. It's running a script so I'm relatively sure there is a query modifier, just like there is for searching titles only (&titleonly=1).
Wes Bucey 1st June 2006, 03:07 PM If you do a search and post the link that comes up in your address bar, it will not work for others.....
I don't know of any way to search 1 forum only. I'll look into it though. It's running a script so I'm relatively sure there is a query modifier, just like there is for searching titles only (&titleonly=1).
OK. I read this once without coffee, then I took a cup and read it again. Then I proceeded to do an advanced search by clicking on Advanced search in the navigation bar ("whistle blower" for author Wes Bucey) The first item came up with the shortcut
http://elsmar.com/Forums/showthread.php?p=149322&highlight=whistle+blower#post149322
clicking on that brought me to
http://elsmar.com/Forums/showpost.php?p=149322&postcount=6
If someone else clicks on either of the above links, what happens?
How can I replicate the effect for other Covers?
Do I have to sign in as someone else?
Can non-registered viewers do searches?
Is anyone else using this system? How does it square with the directions in Marc's posts?
Marc 1st June 2006, 03:21 PM I posted this because Randy posted a search link in a post, which you can do and which I do a lot. But when you do a search you get a link in the navigation box of your browser which looks something like this:http://elsmar.com/Forums/search.php?searchid=448582 showing in the browser navigation box. Note the 'searchid'. This is only good for that user for that search (it is caching the results for a few minutes). Any other user clicking the link will get an error page. To see what I mean, click the following link: http://elsmar.com/Forums/search.php?searchid=448582
Let's say you're posting and want to make it easy for someone to find information on quality manuals. You can form a search query as a link within the post:<url=http://Elsmar.com/Forums/search.php?do=process&titleonly=1&query=quality+manual>Quality Manuals</url>NOTE: In this example I used < and > instead of [ and ] because even in the 'code' box' the string will appear as a clickable link like this: Quality Manuals (http://Elsmar.com/Forums/search.php?do=process&titleonly=1&query=quality+manual) instead of your being able to see the code - In this example I am searching for the two words 'quality' and 'manual' and I'm limiting the search to thread titles only.
"Can non-registered viewers do searches?" Yes - They have full search capabilities.
Wes Bucey 1st June 2006, 03:36 PM Point I was making is the results of my searches using the advanced search do NOT have "search ID" What happens when YOU click on the two separate links posted?
Marc 1st June 2006, 03:45 PM The key word is the RESULTS of your search. It is correct that the results page gives you a list of clickable links to threads and/or posts. What you put in your post above were from the search results, not from the url in the address bar that you see after you did the search.
I usually just embed the search query so the person clicking the link can see all the threads that they would see if the person did the search manually.
How is this different? You are choosing one or a few threads to link to that are in the Results of the search you did. If you embed the search query they will see all the relevant threads just as if they had done the search manually. Sometimes one way makes more sense than another. It's up to any one of us which makes more sense in the context of the post / thread.
I'm not asking you folks to do this. I just wanted to show you how. Now and again I see someone post a link something like http://elsmar.com/Forums/search.php?searchid=448582 which, as I pointed out, will only give an error page.
Wes Bucey 1st June 2006, 07:13 PM "I see!" said the blind man.
Marc 5th June 2006, 08:41 PM Marc, what do you add to limit the search to a particular forum or to two forums?
OK - Found the information. Here is a list of the extra search parameters you can add to the URL.
It's prettier here: http://www.vbulletin.com/forum/showthread.php?t=107955
When you add a search parameter to the URL you need to add this to the end of the URL:
Parameter Template: &variable_name=value
Search field: Search by Key Word
Variable name: titleonly
Values:
* 0 = Search Entire Posts
* 1 = Search Titles Only
Search field: Search by User Name
Variable name: searchuser
Values: Enter a username
Variable name: starteronly
Values:
* 0 = Find Posts by User
* 1 = Find Threads Started by User
Variable name: exactname
Values:
* 0 = Partial name
* 1 = Exact name
Search field: Find Threads with
Variable name: replyless
Values:
* 0 = At Least
* 1 = At Most
Variable name: replylimit
Values: Any integer values
Search field: Find Posts from
Variable name: searchdate
Values:
* 0 = Any Date
* lastvisit = Your Last Visit
* 1 = Yesterday
* 7 = A Week Ago
* 14 = 2 Weeks Ago
* 30 = A Month Ago
* 90 = 3 Months Ago
* 180 = 6 Months Ago
* 365 = A Year Ago
Variable name: beforeafter
Values:
* after = and Newer
* before = and Older
Search field: Sort Results by
Variable name: sortby
Values:
* rank = Relevancy
* title = Title
* replycount = Number of Replies
* views = Number of Views
* threadstart = Thread Start Date
* lastpost = Last Posting Date
* postusername = User Name
* forum = Forum
Variable name: order
Values:
* descending = in Descending Order
* ascending = in Ascending Order
Search field: Show Results as
Variable name: showposts
Values:
* 0 = Show Results as Threads
* 1 = Show Results as Posts
Search field: Search in Forum(s)
Variable name: forumchoice[]
Values: Do not include this variable in the URL to search all forums. If you want to search specific forums then you need to add an instance for each forumid. For example:
&forumchoice[]=X&forumchoice[]=Y&forumchoice[]=Z
Where X, Y, and Z are the forumids of the forums in which you want to search.
ForumIDs can be determined by the forum 'address'. For example, the " How To Use the Forum Software - Basic Instructions" forum's adress is http://Elsmar.com/Forums/forumdisplay.php?f=86 (http://Elsmar.com/Forums/forumdisplay.php?f=86) - The 86 is the forumid.
Variable name: childforums
Values:
* 0 = Do not search in child forums
* 1 = Also search in child forums
Wes Bucey 5th June 2006, 10:43 PM Wow! Seems like it would be simpler to just give the search parameters for the Cover to enter in Advanced search. (Occam's Razor, don't you know;) )
Al Rosen 5th June 2006, 10:49 PM It's more trouble than it's worth!
Marc 5th June 2006, 11:06 PM I posted all the info as an FYI - As I said, I'm not asking anyone to use the search link method. I definitely don't expect anyone here to use complex search links - I responded to Al's question - Can a search link limit the search to specific forum(s).
Al Rosen 5th June 2006, 11:18 PM I posted all the info as an FYI - As I said, I'm not asking anyone to use the search link method. I definitely don't expect anyone here to use complex search links - I responded to Al's question - Can a search link limit the search to specific forum(s).I appreciate the information, but I don't think I will use the capability.
Marc 5th June 2006, 11:21 PM I didn't figure many people would. But since you asked....
Like I said, my main intent with this thread was to explain that we cannot do a search, and then copy and paste the url from the address bar in a post because it will just give an error page.
BradM 14th February 2007, 12:22 AM Marc,
You continue to amaze me in how you know where all the stuff is on the site.
How did you perform the search for the calibration procedure? I tried to simulate what you did and could not get it.
Marc 14th February 2007, 01:05 AM Well, I put in a 'special' url for the search. You can do the same thing by going to the 'Advanced Search' (http://elsmar.com/Forums/search.php) page.
The Google search there is pretty good, but what I usually do is put in the key words I want, I specify 'Search Thread Titles Only' and see what that brings up.
NOTE: If you do a search and you copy the resulting 'address' from your browser address bar, the link will NOT work as a link for other people because it is a 'session ID' which is only applicable for your search, and it also 'expires'. When you do a search you get a link in the navigation box of your browser which looks something like this:http://elsmar.com/Forums/search.php?searchid=448582 showing in the browser navigation box. Note the 'searchid'. This is only good for that user for that search (it is caching the results for a few minutes). Any other user clicking the link will get an error page.
http://elsmar.com/gif/Search 2a.gif
NOTE: If you want to try url search links, make sure you Check The Link afterwards and edit your post if the link doesn't work as you expect it to. You should be somewhat familiar with vBulletin coding.
Remember, search terms must be at least 3 letters.
The 'correct' way:
Search for terms in thread titles ONLY:
Single search term:http://Elsmar.com/Forums/search.php?do=process&titleonly=1&query=term1 or multiple search terms: http://Elsmar.com/Forums/search.php?do=process&titleonly=1&query=term1+term2+...termx
To search all posts in all threads (not just the titles):http://Elsmar.com/Forums/search.php?do=process&query=term1 or http://Elsmar.com/Forums/search.php?do=process&query=term1+term2+...termx
Here is a list of the extra search parameters you can add to the URL.
It's prettier here: http://www.vbulletin.com/forum/showthread.php?t=107955
When you add a search parameter to the URL you need to add this to the end of the URL:
Parameter Template: &variable_name=value
Search field: Search by Key Word
Variable name: titleonly
Values:
* 0 = Search Entire Posts
* 1 = Search Titles Only
Search field: Search by User Name
Variable name: searchuser
Values: Enter a username
Variable name: starteronly
Values:
* 0 = Find Posts by User
* 1 = Find Threads Started by User
Variable name: exactname
Values:
* 0 = Partial name
* 1 = Exact name
Search field: Find Threads with
Variable name: replyless
Values:
* 0 = At Least
* 1 = At Most
Variable name: replylimit
Values: Any integer values
Search field: Find Posts from
Variable name: searchdate
Values:
* 0 = Any Date
* lastvisit = Your Last Visit
* 1 = Yesterday
* 7 = A Week Ago
* 14 = 2 Weeks Ago
* 30 = A Month Ago
* 90 = 3 Months Ago
* 180 = 6 Months Ago
* 365 = A Year Ago
Variable name: beforeafter
Values:
* after = and Newer
* before = and Older
Search field: Sort Results by
Variable name: sortby
Values:
* rank = Relevancy
* title = Title
* replycount = Number of Replies
* views = Number of Views
* threadstart = Thread Start Date
* lastpost = Last Posting Date
* postusername = User Name
* forum = Forum
Variable name: order
Values:
* descending = in Descending Order
* ascending = in Ascending Order
Search field: Show Results as
Variable name: showposts
Values:
* 0 = Show Results as Threads
* 1 = Show Results as Posts
Search field: Search in Forum(s)
Variable name: forumchoice[]
Values: Do not include this variable in the URL to search all forums. If you want to search specific forums then you need to add an instance for each forumid. For example:
&forumchoice[]=X&forumchoice[]=Y&forumchoice[]=Z
Where X, Y, and Z are the forumids of the forums in which you want to search.
ForumIDs can be determined by the forum 'address'. For example, the " How To Use the Forum Software - Basic Instructions" forum's adress is http://Elsmar.com/Forums/forumdisplay.php?f=86 (http://Elsmar.com/Forums/forumdisplay.php?f=86) - The 86 is the forumid.
Variable name: childforums
Values:
* 0 = Do not search in child forums
* 1 = Also search in child forums
BradM 14th February 2007, 01:22 AM Thanks for the update. I'm sure I have messed up some links.
ForumIDs can be determined by the forum 'address'. For example, the " How To Use the Forum Software - Basic Instructions" forum's adress is http://Elsmar.com/Forums/forumdisplay.php?f=86 (http://elsmar.com/Forums/forumdisplay.php?f=86) - The 86 is the forumid.
So appropriate pasted links should have a designation like the one above for the forumid. Yes, I should always be checking my links. But, initially I'm asking the correct threads should look something like above. Correct?
Marc 14th February 2007, 01:41 AM I *think* I understand your question.
This only applies to putting in a Search Link, which I doubt you've done before. I don't think anyone else uses this search link method, but it has been discussed in the moderator's forum because I've found a lot of links where someone did a search and then copied the resulting link from the navigation bar and pasting it in as a link. E.g.: http://Elsmar.com/Forums/search.php?searchid=448582
I know they're trying to help, but it doesn't work when someone does a search and then copies and pastes the resulting link from the address bar.
I wouldn't get too excited here unless you really want to be able to help in this way. I do it from time to time because I know some people do not 'know' how to search 'properly'. I tend to put in a Search Link when there are a lot of existing discussion threads. It's pretty easy to do and I do think some people appreciate being able to click a link and get an auto-magic listing of existing discussion threads. I DO typically try the search first to ensure it gives me expected results. I open a new tab in my browser, paste in the link url I made and hit return. If it gives me the results I expect, I'll save the post in the other tab and then try it there as well. When the link is clicked on it should open a new tab (or window, depending upon one's browser setup) and the results should display what I expected.
All other links you can copy and paste from the navigation bar of your browser, such as when you're reading a thread.
BradM 14th February 2007, 10:55 AM I'm sure some of the ooold Covers know all this, but for the newbies, it's good to know the appropriate way to do things.
Thanks.
Jyotsna 13th November 2007, 07:34 AM formats for training plan , Training schedule , effectiveness of training , Induction training , Guidelines for HR
harry 13th November 2007, 08:59 AM Welcome Jyotsna,
I am guessing that you want to search or to know how to search using these words as 'keyword'.
Ordinary search - go to the top bar - blue color bar below the welcome message. You will see 'search' in yellow. Just click on it and a drop down menu will appear. In the box, fill in your keyword and click 'go'. This will bring you to pages of relevant threads.
Advance forum search - just click on 'advance forum search' in the drop down menu. Enter the keywords in the keyword box. You can confine the search to certain forums or posts by certain Covers or both.
Let us know if you are still facing problem. Enjoy surfing in the Cove.
|
|