Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Automatic linking of specific terms...

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
bobby131313 Posted - 22 March 2008 : 16:57:03
Kind of like some of those advertising services do... Auto-link certain words to relevant ads.

Except I'm not thinking of ads, more like educational help. I have a pretty extensive site built around my forum and would like to raise awareness and help people learn.

For example, if someone uses the exact phrase large cent in a post, it would be cool if it automatically linked like so, large cent. Perhaps with a slightly different link color or a little arrow next to it (like Wikipedia) so users get accustomed to it being an on-site educational link.

I tried using the bad word filter, but the fields are a little too short.

Has anyone done anything like this?

<
15   L A T E S T    R E P L I E S    (Newest First)
cripto9t Posted - 28 May 2008 : 17:13:20
I posted my code for this in the mods w/code forum.
Uses a xml file that you edit manually instead of the db, so its not the most user friendly.
But for you hands on types there should be no problems .

Very easy install<
weeweeslap Posted - 27 May 2008 : 18:26:05
okie dokie
Thanks!<
cripto9t Posted - 27 May 2008 : 14:33:16
No, it would take more than that . You don't use the xml as an include. there's code to access it just like a db. And you would still need a function to loop the text and do the replacing.

What I meant was, when you want to add or remove a phrase or word, you would just need to edit the xml file instead of the db.

Give me a little time to bone up on my xml and I'll see if I can come up with something.<
weeweeslap Posted - 27 May 2008 : 13:31:43
cripto9t, that's all it would take? I would like include the page into the inc_header.asp file? I don't mind editing files <
leatherlips Posted - 26 May 2008 : 17:12:48
I have a thread that uses a dictionary script. I have a question on there that if answered could possibly do what you want very easily. I need to know if the Snitz search page can search through the URL. If it can, then this may do what you want.

Here is the thread I am referring to:

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=67086

What it could potentially do is allow you to double click any word in your forum and have it list the search results of that term. However, the snitz search uses a DoIt and I can not figure out how to add the search term to the url and have it search. It either just goes to the search page itself or it says no keywords entered.

For example, if you use Google to search you could enter in the URL:

http://www.google.com/search?hl=en&q=

Then enter your search term like this (shown in red):

http://www.google.com/search?hl=en&q=snitz

This would let google show all the search result for snitz. If snitz could be used the same way then the dictionary script could be pointed to the snitz search url.<
cripto9t Posted - 26 May 2008 : 16:20:36
If you don't mind editing files You can use an xml file to store your keywords.
I use one for my sports pool to store the team names and cities.
I thought about using a table at first, but decided it would be easier to use xml instead of writing a program to add and remove teams or update the db manually.

sample
<sitekeys>
   <key id="1">
       <phrase>Morgan Dollar</phrase>
       <link>Link</link>
   </key>
   <key id="2">
       <phrase>Large Cent</phrase>
       <link>Link</link>
   </key>
</sitekeys>

Just a thought <
bobby131313 Posted - 26 May 2008 : 14:34:10
I'm afraid I still haven't gotten to it weewee. <
weeweeslap Posted - 26 May 2008 : 13:23:03
How did this go? I have a need for this on one of my sites and would like to know if it worked out and if you would share the code.
Thanks<
bobby131313 Posted - 22 April 2008 : 19:30:29
Cool, if I have issues when I get to it I'll be back. <
ruirib Posted - 22 April 2008 : 19:17:31
Yeah, makes total sense, since it will allow you to change the destination link whenever you want, still based on the same input word(s). Better option, IMHO.<
bobby131313 Posted - 22 April 2008 : 18:57:39
quote:
Regarding no changes to the actual post contents in the DB?


Yes. Make sense to you?<
ruirib Posted - 22 April 2008 : 18:54:36
quote:
Originally posted by bobby131313

Cool. Does my reasoning make sense to you though?


Regarding no changes to the actual post contents in the DB?<
phy1729 Posted - 22 April 2008 : 18:54:14
I think there's a function in inc_func_common.asp that only parses from the db not into. You may want to stick this into there.<
bobby131313 Posted - 22 April 2008 : 18:43:34
Cool. Does my reasoning make sense to you though?<
ruirib Posted - 22 April 2008 : 18:37:57
SHouldn't be too difficult. The new function just needs to be used in topic.asp, not in post_info.asp.<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07