English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

For example type the word yahoo, and if someone clicks it, it directs them to yahoo.com.

Basically use PHP to turn a word into a link

2007-05-17 15:54:09 · 3 answers · asked by easysept2 2 in Computers & Internet Programming & Design

3 answers

This usually has to be set-up by the forum admin and will usually require an additional module. You can't do it if you're mererly a participant in the forum. Many forums also only allow BBCode to be used in posts, not full HTML, PHP or any other scripting language.

You have a list of words and their corresponding links in a file (usually a database entry but not always). PHP parses the post and checks the text against the list of terms. It inserts the relevant code around the highlighted word.

Check out phpBB, download their code, and any needed modules to perform this function.

2007-05-17 16:06:18 · answer #1 · answered by Anonymous · 0 0

There should be a hyperlink button when you're going to make the post I believe. If not, then the link may automatically be linked when you type something like http://Yahoo.com or something like that.

2007-05-17 22:57:56 · answer #2 · answered by Jamie 7 · 0 0

I believe, yahoo doesn't allow html in the post though. If you want hyper link, then include http://

2007-05-17 22:57:26 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers