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/O Code)
 Automatic linking of specific terms...
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

bobby131313
Senior Member

USA
1163 Posts

Posted - 22 March 2008 :  16:57:03  Show Profile  Visit bobby131313's Homepage  Reply with Quote
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?

<

Switch the order of your title tags

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 22 March 2008 :  19:27:22  Show Profile  Visit HuwR's Homepage  Reply with Quote
just create yourself a new table to store the various links/phrases in and just duplicate the badwordfilter function but select the values from your new table, then at the end of the badword filter, just call your new function.<
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 23 March 2008 :  11:35:05  Show Profile  Visit bobby131313's Homepage  Reply with Quote
Thanks Huw, I'm going to give it a go this week. <

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

leatherlips
Senior Member

USA
1838 Posts

Posted - 23 March 2008 :  11:55:53  Show Profile  Visit leatherlips's Homepage  Reply with Quote
If you get this to work, I may be interested. Keep us posted of your progress.<

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

bobby131313
Senior Member

USA
1163 Posts

Posted - 22 April 2008 :  17:06:12  Show Profile  Visit bobby131313's Homepage  Reply with Quote
Haven't had time to play with this yet, but it has been on my mind.

I have a question. It appears, from my memory , that the bad word filter works 2 ways.

New posts (and edited posts?) it actually changes what's entered into the DB, but posts previous to the BW entry, just being viewed, get changed using server variables.

Is that correct?<

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

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 22 April 2008 :  17:19:54  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
quote:
Originally posted by bobby131313

Haven't had time to play with this yet, but it has been on my mind.

I have a question. It appears, from my memory , that the bad word filter works 2 ways.

New posts (and edited posts?) it actually changes what's entered into the DB, but posts previous to the BW entry, just being viewed, get changed using server variables.

Is that correct?


Actually your mixing up different things. Badwords and replacement words are kept in app variables, no matter what.
When a post is created, badwords are replaced and their substitutes stored in the database, as integral part of the post. When a topic is displayed, badword filtering is done again, so even badwords that were not on the list when the post was created get filtered on display.
Both when replacing words on a new post creation op or when displaying a existing topic, app variables contents are used, unless they are blank, in which case the app variables get reloaded from the database.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 22 April 2008 :  18:24:00  Show Profile  Visit bobby131313's Homepage  Reply with Quote
OK, I think I understand.

This being the case, I don't think I want to duplicate the Bad Word functionality exactly for this.

I don't think I would want the database entry to be altered. For the simple reason when someone edits a post all the new code would be there and runs the risk of getting butchered.

I'm thinking I would just want these filtered on display, not in the DB.

I'll have to see what it looks like when I get to it.

Thanks! <

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

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 22 April 2008 :  18:37:57  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
SHouldn't be too difficult. The new function just needs to be used in topic.asp, not in post_info.asp.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 22 April 2008 :  18:43:34  Show Profile  Visit bobby131313's Homepage  Reply with Quote
Cool. Does my reasoning make sense to you though?<

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

phy1729
Average Member

USA
589 Posts

Posted - 22 April 2008 :  18:54:14  Show Profile  Reply with Quote
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.<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 22 April 2008 :  18:54:36  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
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?<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 22 April 2008 :  18:57:39  Show Profile  Visit bobby131313's Homepage  Reply with Quote
quote:
Regarding no changes to the actual post contents in the DB?


Yes. Make sense to you?<

Switch the order of your title tags

Edited by - bobby131313 on 22 April 2008 18:58:07
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 22 April 2008 :  19:17:31  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
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.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 22 April 2008 :  19:30:29  Show Profile  Visit bobby131313's Homepage  Reply with Quote
Cool, if I have issues when I get to it I'll be back. <

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

weeweeslap
Senior Member

USA
1077 Posts

Posted - 26 May 2008 :  13:23:03  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message  Reply with Quote
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<

coaster crazy
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 26 May 2008 :  14:34:10  Show Profile  Visit bobby131313's Homepage  Reply with Quote
I'm afraid I still haven't gotten to it weewee. <

Switch the order of your title tags
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
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 1.5 seconds. Powered By: Snitz Forums 2000 Version 3.4.07