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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Keyword Links - Last Update 6/9/08
 New Topic  Reply to Topic
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 7

weeweeslap
Senior Member

USA
1077 Posts

Posted - 07 June 2008 :  15:27:12  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message  Reply with Quote
I applied what you posted in the first post and it doesn't seem to be working and oddly I am getting a jscript error which I can't make sense of. Here is the li9nk to the test topic:
http://www.coastercrazy.com/forum/topic.asp?TOPIC_ID=17825
here is the xml file
http://www.coastercrazy.com/keywords.xml
and here is my inc_func_common.asp
http://www.coastercrazy.com/forum/inc_func_common.txt
For absolute path I did the url above and also tried the whole directory line (c:\etc..etc...)
Help? <

coaster crazy

Edited by - weeweeslap on 08 June 2008 17:54:52
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 07 June 2008 :  17:13:05  Show Profile  Reply with Quote
I tried all the settings & updates; spaces (and all following the first space in a phrase are eliminated).<
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 08 June 2008 :  19:38:45  Show Profile  Reply with Quote
quote:
Originally posted by cripto9t

The original code has been updated with all the bug fixes mentioned so far.


Not quite:

quote:
Add this line right after that



"#keywords a {color:yellow;font-weight:bold;background-color:yellow;)" & vbNewLine & _
<
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 08 June 2008 :  20:46:21  Show Profile  Visit bobby131313's Homepage  Reply with Quote
No the a is not needed, the id is added directly to the a tag.<

Switch the order of your title tags
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 08 June 2008 :  22:06:43  Show Profile  Visit leatherlips's Homepage  Reply with Quote
Do you guys have this working now? The last time I tried it did not show the links.<

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

cripto9t
Average Member

USA
881 Posts

Posted - 09 June 2008 :  11:56:36  Show Profile  Reply with Quote
Guys, I haven't forgot this . I put a few hours into it this morning. I'll post an update after a little more testing and I get a post wrote up.

Got a new way of checking files so hopefully it should work for everyone.
Also put a lot more checks in so it catches a lot more words.

Theres still a link within a link problem, but I haven't give up.

Just noticed this morning that carrage returns and line feeds were being replaced before checking for keywords. So that should solve alot of the problems I was haveing with regex for a future update.

bobby, when (if?) this switched over to regular expressions, maybe I'll be able to fix the letter case problem. But I don't think I can do it using the replace function.<

    _-/Cripto9t\-_

Edited by - cripto9t on 09 June 2008 11:58:45
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 09 June 2008 :  15:47:05  Show Profile  Reply with Quote
The code in the topic has been updated.

For those that are using this.

1. In the function FormatStr(), move this line "fString = ChkKeys(fString)" to here
function FormatStr(fString)
	on Error resume next
        fString = ChkKeys(fString)


2. Replace function ChkKeys() with the new one.

3. Then you'll need to add this line of code to the files you want keywords on.
Dim ShowKeyWords : ShowKeyWords = True

Add it somewhere after this "<%". This is "topic.asp".
%>
<!--#INCLUDE FILE="config.asp"-->
<%
Dim ShowKeyWords : ShowKeyWords = True

This takes the place of the exclude list and hopefully it will work for everyone.

<edit>6/10/08 Some of the instructions were left out. There all there now</edit><

    _-/Cripto9t\-_

Edited by - cripto9t on 10 June 2008 07:20:05
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 09 June 2008 :  17:47:53  Show Profile  Visit leatherlips's Homepage  Reply with Quote
Seems pretty good so far. I have a couple of questions.

You have it now to open all links in a new window. I would rather not do that. Before you had it open in the same window. I tried removing the part in red from both lines that have it but they still open in a new window:

strReplace = "<a id=""keywords"" href=""" & xmlKeyList.item(iKey).childNodes(1).text & """ target=""blank"">"

Am I removing the correct section of code? Also, I'm wonder if the target frame could be set in the xml file when you specify the url for the phrase?

Another thing I notice is that if I update the xml file with a new phrase it does not seem to take effect. What is causing that?

Thanks again for all your work. I really like this mod!<

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

cripto9t
Average Member

USA
881 Posts

Posted - 09 June 2008 :  19:10:08  Show Profile  Reply with Quote
quote:
Am I removing the correct section of code?
Yeah, you need to comment out the "if" and "end if" lines here, leave the center line uncommented.
quote:

    'if trim(Application(strCookieURL & "STRKEYWORDS")) = "" or trim(Application(strCookieURL & "STRKEYREPLACE")) = "" then
	LoadKeywordApps
    'end if
That way the apps will reload every refresh or page view. Be sure to uncomment when your through .
That should take care of your problems.
quote:
Also, I'm wonder if the target frame could be set in the xml file when you specify the url for the phrase?

Thats a good idea and I think I have a good idea on how to do it .<

    _-/Cripto9t\-_
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 09 June 2008 :  19:46:45  Show Profile  Reply with Quote
Ok - one minor bug that I can live with. If a keyword or key-phrase starts a sentence, it doesn't get selected. If it is at any other point in the sentence, it does.<
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 09 June 2008 :  20:16:01  Show Profile  Reply with Quote
quote:
Originally posted by leatherlips

I tried removing the part in red from both lines that have it but they still open in a new window:

strReplace = "<a id=""keywords"" href=""" & xmlKeyList.item(iKey).childNodes(1).text & """ target=""blank"">"

Am I removing the correct section of code?


Yes, but not doing the right thing to the code. Change the word "blank" to "_self" and they'll open in the same window.<
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 09 June 2008 :  20:40:52  Show Profile  Visit leatherlips's Homepage  Reply with Quote
Thanks guys.

It seems that this needs to be made clear in the instructions for future users of this mod. Each time you upate your xml file or even change the target of the keyword links in the inc_func_common.asp file you must first uncomment the lines you mentioned, save the file and then uncomment the lines and then save again:

'if trim(Application(strCookieURL & "STRKEYWORDS")) = "" or trim(Application(strCookieURL & "STRKEYREPLACE")) = "" then
	LoadKeywordApps
'end if


Now if you can share how to control the target of the links in the xml file itself this mod will work perfectly for me. <

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

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 09 June 2008 :  21:32:32  Show Profile  Reply with Quote
Read my response above yours to edit the targets.

I don't think it can be done in the XML file, it will not validate if you modify the format.<
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 09 June 2008 :  21:39:17  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message  Reply with Quote
Yeah minor bug same as carefree, if it starts the sentence it doesn't get linked, if it ends the sentence and not followed by a period or another sentence then it doesn't get linked either. Minor but figured I'd post them. Thank you very much for this. It is very much needed and I greatly appreciate your work!
-Oscar

http://www.coastercrazy.com/forum/topic.asp?TOPIC_ID=17825 <-- this is the topic so you can see what I am talking about above.

-edit
in my reply you can see I just wroe the single word trivia and it did get linked. Sooo not sure why that one worked and the others didn't. Thanks!<

coaster crazy

Edited by - weeweeslap on 09 June 2008 21:42:02
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 09 June 2008 :  21:48:59  Show Profile  Visit leatherlips's Homepage  Reply with Quote
I fixed my links Carefree. Thanks. It looks like it is either all same window or all new window. I was trying to have links in my own site open in the same window while links outside of my site would open in a new window. I can live with it the way it is unless someone knows how to do it.

I am not having the same issues with the keywords not linking if at the beginning or end etc. Mine links no matter where it is. You can see this post if you want to see:

http://www.mangionemagic.com/forumbeta/topic.asp?TOPIC_ID=881

Log in is demo/demo. The second post in the above link will show the variations.

One other thing, I am trying to get the keyword links to have a dashed underline under them but can not get it to work. Any ideas? What I currently have is just playing around with different things.<

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
Page: of 7 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07