Auto link words

Download plugins, language packs and stuff.

Auto link words

Postby FI-DD » Fri Dec 08, 2006 12:54 am

Based on a user created list the plugin will convert certain words into links.
Attachments
auto-link-words.zip
Auto link words
(1.38 KiB) Downloaded 836 times
Last edited by FI-DD on Fri Dec 22, 2006 7:30 pm, edited 2 times in total.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby scottdallas » Fri Dec 08, 2006 3:45 am

That's really neat and a very unique feature. I can't say I've seen that on any site and joebloggs wasn't working when I went there. How does your brain do this FI-DD?
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby snoopy » Thu Dec 21, 2006 11:06 am

thats great FI-DD. many Thanks
snoopy
 
Posts: 29
Joined: Tue Mar 28, 2006 11:43 am

Postby master7 » Fri Dec 22, 2006 8:51 am

Great plugin :)

But there is a problem when I use in news HTML code.

For example
Code: Select all
<a href="index.php?do=some_linkword">bla_bla</a>


Goes to something like on the page

Code: Select all
some_linkword">
User avatar
master7
 
Posts: 27
Joined: Tue Apr 11, 2006 1:34 pm

Postby FI-DD » Fri Dec 22, 2006 7:29 pm

I modified the plugin a bit. It's not perfect but it should be better than before.



Please download the plugin again.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby master7 » Sat Dec 23, 2006 9:51 pm

Thanks FI-DD, I try this version in 2007 year :)



BTW

meanwhile I wrote some modification in this plugin and its working. Unfortunately code is on computer in my work ;)

In two weeks I put this code here.
User avatar
master7
 
Posts: 27
Joined: Tue Apr 11, 2006 1:34 pm

Re: Auto link words

Postby flesh » Tue Jan 23, 2007 6:57 pm

FI-DD wrote:Based on a user created list the plugin will convert certain words into links.


Fi-dd, the plugin is great ! I just need something ...

Is it possible the links to be more good looking ...

Like when you enter in the word list the word to be "Nely Fortado" the replacement to be <a href="http://mysite.com/index.php/nellybio.html" target="_blank">Nely Fortado</a> ?

Now when I try to add this html - in the news it shows as an ordinary word ...
flesh
 
Posts: 103
Joined: Sat Mar 04, 2006 3:51 pm
Location: Poland

Postby FI-DD » Tue Jan 23, 2007 9:25 pm

Don't know if I understood you but in plugins/auto-link-words.php try changing this:

Code: Select all
$replace = ' <a href="'.$replacement.'">'.$replacement.'</a> ';




to this:

Code: Select all
$replace = ' <a href="'.$replacement.'">'.$link.'</a> ';
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby flesh » Tue Jan 23, 2007 9:38 pm

FI-DD wrote:Don't know if I understood you but in plugins/auto-link-words.php try changing this:

Code: Select all
$replace = ' <a href="'.$replacement.'">'.$replacement.'</a> ';




to this:

Code: Select all
$replace = ' <a href="'.$replacement.'">'.$link.'</a> ';




hmm thank you for your reply but maybe you didn't understood me ...

so I want when I have in my news "Nelly Fortado" to be shown Nelly Fortado ...

I mean not only the http://... but the name - link ...

Is it possible to be made when I add this
Code: Select all
<a href="http://mysite.com/index.php/nellybio.html" target="_blank">Nely Fortado</a>
in the replacement field and "Nelly Fortado" in the word field to be shown this "Nelly Fortado" In the news ...
flesh
 
Posts: 103
Joined: Sat Mar 04, 2006 3:51 pm
Location: Poland

Postby FI-DD » Tue Jan 23, 2007 9:44 pm

Yes. Did you test the code I just gave you?
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby flesh » Tue Jan 23, 2007 10:14 pm

FI-DD wrote:Yes. Did you test the code I just gave you?


yes but as i told you it is not working :(
flesh
 
Posts: 103
Joined: Sat Mar 04, 2006 3:51 pm
Location: Poland

Postby FI-DD » Tue Jan 23, 2007 11:26 pm

Did you clear the cache?
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby flesh » Wed Jan 24, 2007 8:53 am

FI-DD wrote:Did you clear the cache?


Ooh yes ... I tried to add html as I told you but you made it easier ... thank you

you are great ! :lol:
flesh
 
Posts: 103
Joined: Sat Mar 04, 2006 3:51 pm
Location: Poland

Postby KArkhon » Fri Apr 06, 2007 6:41 pm

Would it be possible to have the script replace the word just once in the article. For example :



Based on [Replace just here]Star Trek created by Gene Roddenberry, Enterprise premiered on September 26, 2001. The series follows the adventures of the crew of the pre-Federation Enterprise (NX-01)—the first human-built vessel to achieve Warp 5. Enterprise is a prequel to the other [dont replace here]Star Trek TV series and films. The pilot episode, "Broken Bow", takes place in 2151, ten years before the founding of the Federation and about halfway between the 21st century events shown in the movie, [dont replace here]Star Trek: First Contact and the original [dont replace here]Star Trek.



I know it's most likely impossible, but i just had to ask :D



BTW This addon is truly amazing.
KArkhon
 
Posts: 31
Joined: Wed Jan 24, 2007 2:27 pm
Location: Montenegro

Postby astrostart » Sat Apr 07, 2007 10:19 am

That would be so great! That only one word in every story gets 'linked'



Is it also possible to start with the linking in the full story? Not in the short story? Otherwise it would be a mess on my homepage with all kind of links!



Btw, I have found a bug. It seems like its case sensitive. So when I'm entering the world 'magnetar' it always replaces 'magnetar', also if it should be written with a capital (at the beginning of a sentence). I changed the code, FI-DD ($replace = ' <a href="'.$replacement.'">'.$link.'</a> ';), but it still seems to do that.



I added a screenshot. The words with a circle should be written with a capital. As you see there are a lot of links, so only one linked word per article would be great. :D
Attachments
screen1.JPG
(212.74 KiB) Downloaded 282 times
My site: http://www.astrostart.nl | Thanks to everyone here who has helped me!
User avatar
astrostart
 
Posts: 124
Joined: Sun Feb 11, 2007 6:08 pm
Location: The Netherlands

Next

Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 0 guests

cron