Welcome, Guest. Please Login or Register.
April 30, 2025, 10:05:01 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  text and phrase replacement « previous next »
Pages: [1] Reply Ignore Print
Author Topic: text and phrase replacement  (Read 499 times)
Zarabadoo
Jr. Member
**
Posts: 92


.....

ICQ - 14689087zarabadoo@hotmail.com WWW
text and phrase replacement
« on: March 12, 2002, 04:18:10 PM »
Reply with quote

ok, this may seem a little silly, in my mind it can be somewhat useful.

what i've been wanting is modified version of the censor words function. what it would do is take, for example, the word "keyword or phrase" and then replace it with either <a href="http://www.keywordwebsite.org" target="_blank">keyword or phrase</a> or [url=http://www.keywordwebsite.org]keyword or phrase[/url] or something along those lines. it would be admin specified words and urls of course. mainly for things relating to the site or other pages within the site.the censor function does not, of course, work with those type of changes.

a lot of the actual reason i want it too is for the latest_topics addition or the news.php (when it is officially released). i know it would be useful for me and possibly some others here. but then again, maybe i am just lazy.. hehe.
Logged

go read Project: Comic dammit. don't you THINK you can hide from me! i see you hiding behind that bush over there. go tell all your friends about it too.
PostDeals
Full Member
***
Posts: 112


Checkout postdeals.net for the latest deals.

WWW
Re:text and phrase replacement
« Reply #1 on: March 14, 2002, 03:57:32 AM »
Reply with quote

i want this myself so when someone puts

staples   it will link to staples

that would be great i can make a lot of $$$ off my site @ http://www.postdeals.net  from affils.

thanks
Logged

For HotDeals, Coupons, Games Visit: www.postdeals.net

Zarabadoo
Jr. Member
**
Posts: 92


.....

ICQ - 14689087zarabadoo@hotmail.com WWW
Re:text and phrase replacement
« Reply #2 on: March 14, 2002, 04:09:39 AM »
Reply with quote

hehe.. just when i thought this topic was dead.

technically, it doesn't have to be a completely new function. possibly it can be a modified censor words. of course i am not a php coder and know not what i am saying.

 i had just found when i tried to use the cesor words funtion, it would only accept the length of one word and the urls wouldn't work because the "=" sign in the link code would mess up the whole thing. instead of using the  "=" sign, maybe a different symbol could be used or possibly switch the variables to being put within a container of some sort (like parenthesis or brackets).

just a thought, but like i said, i am not a php expert. so i do not know the difficulty level of these things.
Logged

go read Project: Comic dammit. don't you THINK you can hide from me! i see you hiding behind that bush over there. go tell all your friends about it too.
Shoeb Omar
Disciple of Joe
YaBB God
*****
Posts: 1420


The shrub demands war. I don't. The world doesn't.

ICQ - 69234983clickopedia@hotmail.com WWW
Re:text and phrase replacement
« Reply #3 on: March 14, 2002, 04:13:03 AM »
Reply with quote

im pretty sure it will work with the current censor... - try it :)
Logged

"If we all practice an eye for an eye, pretty soon the whole world will be blind" - Gandhi

We need to start listening to advocates of peace in oder to advance society. We have not grown from the prehistoric barbarians we once were.  Will society ever mature?
Zarabadoo
Jr. Member
**
Posts: 92


.....

ICQ - 14689087zarabadoo@hotmail.com WWW
Re:text and phrase replacement
« Reply #4 on: March 14, 2002, 04:27:52 AM »
Reply with quote

tried it already. when i put in my variables, it deletes everything after the second "=". plus if i have a phrase like "kung fool" it doesn't take in the translation.
Logged

go read Project: Comic dammit. don't you THINK you can hide from me! i see you hiding behind that bush over there. go tell all your friends about it too.
Shaun
Wannabe Mod Writer
Sr. Member
****
Posts: 361


YaBB SE Rules.

Re:text and phrase replacement
« Reply #5 on: March 14, 2002, 06:36:57 AM »
Reply with quote

This would be kool for a "glossary" that would link new terms or "keywords".  Perfect for new users of your boards...
Logged

This guy uses objects like women man!
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  text and phrase replacement « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.012 seconds with 16 queries.