The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
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?
<
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?
<
Posted
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.<
Posted
Thanks Huw, I'm going to give it a go this week.
<
Posted
If you get this to work, I may be interested. Keep us posted of your progress.<
Posted
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?<
I have a question. It appears, from my memory
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?<
Posted
Originally posted by bobby131313Actually your mixing up different things. Badwords and replacement words are kept in app variables, no matter what.
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?
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.<
Posted
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!
<
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!
Posted
SHouldn't be too difficult. The new function just needs to be used in topic.asp, not in post_info.asp.<
Posted
Cool. Does my reasoning make sense to you though?<
Posted
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.<
Posted
Originally posted by bobby131313Regarding no changes to the actual post contents in the DB?<
Cool. Does my reasoning make sense to you though?
Email Member
Message Member
Post Moderation
FileUpload
If you're having problems uploading, try choosing a smaller image.
Preview post
Send Topic
Loading...