Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Can't Use Apostrophe In Search
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 3

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 20 May 2008 :  08:58:39  Show Profile
Further to above looking into why the searched word is not highlighted, if you change the line
SearchLink = "&SearchTerms=" & ChkString(Request("searchterms"),"display")
back to
SearchLink = "&SearchTerms=" & ChkString(Request("search"),"display") the searchword is highlight but no popup and can't

<
Go to Top of Page

Carefree
Advanced Member

Philippines
4222 Posts

Posted - 20 May 2008 :  09:04:56  Show Profile
Andy, look at my search_mod.asp, highlighting works, it finds words with apostrophes, etc.<
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 20 May 2008 :  09:25:22  Show Profile  Visit leatherlips's Homepage
quote:
Originally posted by Carefree

Andy, look at my search_mod.asp, highlighting works, it finds words with apostrophes, etc.

It's not that our search_mod will not find or highlight words with apostrophes. It will do that just fine. Our problem is that we also installed the search terms mod. With a word with an apostrophe it will not allow the pop up page to appear. If we apply the code above it will work but then it will not highlight the word.

If you go to my search page you can see what we are talking about. Search for can't. Then try to click the "quick look" icon. Then try searching for can and do the same thing.<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

Edited by - leatherlips on 20 May 2008 09:25:58
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 20 May 2008 :  09:42:50  Show Profile
I have tried your coding (thank you) from search_mod.asp and still the pop_printer_friendly.asp does not pop up. Now reverted to last above where, everything works except the highlighting of the searched text.<

Edited by - Andy Humm on 20 May 2008 09:47:40
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 20 May 2008 :  10:07:38  Show Profile
quote:
Originally posted by leatherlips

quote:
Originally posted by Carefree

Andy, look at my search_mod.asp, highlighting works, it finds words with apostrophes, etc.

It's not that our search_mod will not find or highlight words with apostrophes. It will do that just fine. Our problem is that we also installed the search terms mod. With a word with an apostrophe it will not allow the pop up page to appear. If we apply the code above it will work but then it will not highlight the word.

If you go to my search page you can see what we are talking about. Search for can't. Then try to click the "quick look" icon. Then try searching for can and do the same thing.



Try the same on my search_mod.asp and see the differences, I have the added code from phy1729 and can't will display both on topic.asp and pop_printer_friendly.asp but all searched words will not highlight<
Go to Top of Page

Carefree
Advanced Member

Philippines
4222 Posts

Posted - 20 May 2008 :  10:35:06  Show Profile
OK - I looked at the search terms mod & the problem is in the single line within search.asp (or search_mod.asp). Eliminate the javascript call and go with a target=_blank and the problem is solved.


					Response.Write	" <a href=""pop_printer_friendly.asp?" & ArchiveLink & "TOPIC_ID=" & Topic_ID & SearchLink & """ target=""_blank"">" & getCurrentIcon(strIconPrint,"","align=""absmiddle""") & "</a>"
<
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 20 May 2008 :  11:21:28  Show Profile  Visit leatherlips's Homepage
Carefree, that indeed did solve the problem! Thank you! Now just one more little tweak?

The original pop up window when called by the javascript had these properties in it:

scrollbars=yes toolbars=yes menubar=yes resizable=yes

I was trying to add this to your code but it doesn't seem to effect it at all. What is happening now is the pop up is opening a full complete browser window. How would I go about adding the above propeerties to your code? I've tried various combinations but none of them are working.<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 20 May 2008 :  11:22:49  Show Profile
Carefree well done...

But just as a reminder because we have removed the javascript call we need to do the same in topic.asp as the printer friendly links 'error page' too.

Topic.asp line 993 amend to read:

Response.Write " <br /><a href=""pop_printer_friendly.asp?" & ArchiveLink & "TOPIC_ID=" & Topic_ID & SearchLink & """ target=""_blank"">" & getCurrentIcon(strIconPrint,"","align=""absmiddle""") & "</a> <a href=""pop_printer_friendly.asp?" & ArchiveLink & "TOPIC_ID=" & Topic_ID & SearchLink & """ target=""_blank"">Printer Friendly</a>" & vbNewLine<
Go to Top of Page

Carefree
Advanced Member

Philippines
4222 Posts

Posted - 20 May 2008 :  11:30:54  Show Profile
Leather, cannot be done. Those properties are only for javascript controlled windows; so you'll have to forego them if you want the thing to work at all.

I forgot about the call in topic.asp, Andy; was concentrating on the issue that had everyone bothered lol.

So with the exception of losing a controllable window size, we're all good?<
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 20 May 2008 :  11:54:58  Show Profile  Visit leatherlips's Homepage
I guess I can live with the pop up page but I'd still like to know why it won't work with the javascript when there is an apostrophe. <

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

Edited by - leatherlips on 20 May 2008 11:57:13
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 20 May 2008 :  11:57:22  Show Profile
Carefree, yes it had me bothered too... But like leatherlips, we were homing in on the problem from all angles, just to get it right. Thank's every one (whooops there's an apostrophe to worry about.. ho ho ho..)<
Go to Top of Page

Carefree
Advanced Member

Philippines
4222 Posts

Posted - 20 May 2008 :  12:20:28  Show Profile
The reason is because the javascript routine requires the use of apostrophes to delineate the page to open; it disregards them afterward.<
Go to Top of Page

phy1729
Average Member

USA
589 Posts

Posted - 20 May 2008 :  13:41:32  Show Profile
Should have used jsurlpath not display for the ChkString so it's not

Response.Write " <a href=""JavaScript:openWindow5('pop_printer_friendly.asp?" & ArchiveLink & "TOPIC_ID=" & Topic_ID & ChkString(SearchLink,"display") & "')"">" & getCurrentIcon(strIconPrint,"","align=""absmiddle""") & "</a>"

it's

Response.Write " <a href=""JavaScript:openWindow5('pop_printer_friendly.asp?" & ArchiveLink & "TOPIC_ID=" & Topic_ID & ChkString(SearchLink,"jsurlpath") & "')"">" & getCurrentIcon(strIconPrint,"","align=""absmiddle""") & "</a>"
<
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 20 May 2008 :  14:11:54  Show Profile  Visit leatherlips's Homepage
phy1729,

That fixed it! Thank you so much! I had to also make the change to topic.asp in the search terms mod section to get the Printer Friendly link to work. Between you can Carefree and Andy Humm we finally nailed it down! I think I will post all of the steps necessary in another reply to this topic for anyone encountering these issues in the future.<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

Edited by - leatherlips on 20 May 2008 14:13:30
Go to Top of Page

Lon
Starting Member

USA
47 Posts

Posted - 22 May 2008 :  08:09:09  Show Profile
I've had this issue for a long time and could not figure it out. I am very proud of you guys working together to get this solved. I'm sure many others were also watching.

Thanks again.

Lon<
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.63 seconds. Powered By: Snitz Forums 2000 Version 3.4.07