I hope you don't mind, but I downloaded your button_search.gif file from your site. It wasn't included in the .zip, and it didn't come with the Snitz 3.3.05 .zip.
I want to encourage prospects to join to become members, and I am also anticipating your "My Searches" MOD to either be added or created as a stand alone MOD. So since I don't want to record the activity of guests and their searches (because I want to tease guests to death) I modified search.asp to include the following:
if mlev > 0 then
if CInt(strSLDoLog) = 1 then
Call AddSearchToDB()
Call AddKeywordsToDB()
Call AddQueriesToDB()
end if
end if
This way when a guest does a search, the keywords aren't recorded. Actually nothing is recorded. When a guest looks at the Search Log, they can still click on the Search button, and perform the same search as the member. However, their search is still unrecorded.
This will also reduce the temptation of some weird guests to spam my forum with key phrases that may be phrases none of us appreciate. Like some sales pitch set up as a mock query. If only a member can have his searches saved, then I think fewer will dare such publicity stunts. Some people are like that. They'll do anything for attention, you know.
On the cheerful side of things, I think by omitting guest searches, this will help members who are searching to get better acquainted with other members who have similar needs and interests as shown in their own searches.
quote:I am using Snitz 3.3.05, so perhaps for Snitz 3.4.03 the SLS_METHOD could work fine with the Data Type as int. I'm not sure how the search.asp is setup for 3.4.03.
In v3.4 the search form posts an integer value; if you would like me to provide a Snitz v3.3 version of this MOD, let me know.
quote:I want to encourage prospects to join to become members, and I am also anticipating your "My Searches" MOD to either be added or created as a stand alone MOD. So since I don't want to record the activity of guests and their searches (because I want to tease guests to death)
Very good idea, Etymon. What about a admin option whether to log guest searches or not? And as another addition a option to display "last x searches" and/or my "recent x searches"
quote:What about a admin option whether to log guest searches or not? And as another addition a option to display "last x searches" and/or my "recent x searches"
Any admin options would be greatly appreciated and useful.
Also, I thought about the anomynous (spelling? LOL!) users. Perhaps, on the search.asp page there could be the option for them to NOT have their searches viewable to the public in order to protect their privacy. However, if the admin could still see it (not sure for what reason really), it might still be useful for things ... internal stats perhaps.
quote:Also, I thought about the anomynous (spelling? LOL!) users.
If you're talking about this MOD, then I'm afraid I can't include that since i've never used this MOD.
quote:Perhaps, on the search.asp page there could be the option for them to NOT have their searches viewable to the public in order to protect their privacy. However, if the admin could still see it (not sure for what reason really), it might still be useful for things ... internal stats perhaps.
Hmm... I'm not sure if this is really useful; BTW you just discovered a bug - as Admin you should be able to always see all statistics; the display options should affect other users only.
Actually, I am thinking of converting the Guest feature on your MOD to acting like the Active Users MOD where a person can choose to be invisible. Where ever it says Guest on your Search log, I'll see if I can have it say, Anomynous or something to that effect.
For example, when an anomynous user is logged in and viewing the search log, she will see her own searches with her name on them, and the searches of non-anomynous members will have their names on them, and the searches of other anomynous members will still say say "Anomynous". This way, it will integrate with the usefulness of the Active Users' anomynous feature.
I am thinking about having an option on the search.asp page where a person can choose to not have their search viewable or not, like a checkbox. This way if it doesn't matter to the anomynous user that their search is viewable, then that will work (by default for them it will be checked for invisible). If someone is doing a really stupid sounding search, they can protect their integrity also, by placing a check in the box (by defaul for them the box will be unchecked).
I know it's alot to think about. Just a wish list I suppose. Thanks again for the MOD work though! And, if I needed the guest feature for my needs, I would definitely keep it.
By the way, I need to know how to fix something on your MOD.
I notice if a member does a redundant search that instead of that search being tallied as in the number of times it was searched, it is added to the list which makes the list longer. I'm just trying to make the list shorter with fewer pages to look through. That's all.
Thanks for this mod, OneWayMule; sure bits the snot out of my pitiful attempt at text file log.
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.”
if strUseMemberDropDownBox = 1 then
strSLByMember = CLng(Request.Form("SearchMember"))
else
strSLByMember = getMemberID(chkString(Request.Form("SearchMember"),"SQLString"))
end if
Beginning on line 30 of inc_searchlog.asp: Replace
strsql = strsql & strSLSearchDate & "'"
if strSLByMember <> 0 then
strsql = strsql & ", " & strSLByMember
end if
strsql = strsql & ")"
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.”
Only thing to maybe change is in the changes to search.asp
When you add some code under
if Request.QueryString("mode") = "DoIt" then
if Request.Form("Search") <> "" or Request.QueryString("MEMBER_ID") <> "" then
if Request.Form("Search") <> "" then
It says that the line is approximately 339. I'm installing it on a blank never used Snitz 3.4.03 and I found that code on line 220... Might need to be changed. Up to you.