Jul 05, 2009, 09:28 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Donate to MODx: Donations
Pages: [1] 2 3 ... 5   Go Down
  Print  
Author Topic: [Module/Plugin] Autolink (ala phpGiggle)  (Read 25304 times)
0 Members and 1 Guest are viewing this topic.
garryn
Coding Team
*
Posts: 1,252



WWW
« on: Mar 13, 2006, 08:04 PM »

Hi everyone,

This plugin/module combo will allow you to specify keywords for your site that can be dynamically hyperlinked when the page is loaded.

It originally started out as a straight integration of phpGiggle but, as everybody who frequents the IRC channel will know, it just wasn't that easy  Cheesy I found phpGiggle suffered major performance issues and therefore I have completely recoded the plugin to be a bit more efficient (and hopefully, I've succeeded  Wink )

However, it still draws heavily on phpGiggle, so people famaliar with that from previous experience will feel right at home - if not, have a play and see what you think.

Four link types can be dynamically created:
  • By specifying a valid URL a hyperlink will be created.
  • By specifying a highlight colour, the keyword will be highlighted on the page.
  • By specifying an abbreviation or acronym.
  • By using a template function, links to information websites and the Google search engine for a keyword can be added. (Some are included, but others can be added easily as well)

As long as you follow the install instructions (in the correct order) the plugin will be up and running in no time.

New Version 2 available! - Support for accented characters and <abbr> fix for good ole' IE

Download can now be found at: http://www.modxcms.com/Autolink-507.html

Cheers, Garry

Previous Versions: Version 1a - 216 downloads, Version 2 (pre-repository) - 117 downloads
« Last Edit: Jul 06, 2006, 09:07 PM by garryn » Logged

zi
MODx Special Forces /
Administrator
*
Posts: 3,329


May Peace Be On You


WWW
« Reply #1 on: Mar 14, 2006, 05:13 AM »

Great Plugin! Never used phpGiggle before... but I am right, can it be used to autolink any keyword given in the list ? for example: on webpage, wherever MODx is displayed, it converts MODx text to MODx (http://modxcms.com) link ?

Thanks,

zi
Logged

davidm
MODx evangelist
Marketing & Design Team
*
Posts: 7,026


Software is like sex, it's better when it's free !


WWW
« Reply #2 on: Mar 14, 2006, 05:16 AM »

Exactly what I've been looking for, thanks a lot Garryn !
Logged

.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net
Lizard
Support Subscriber
*
Posts: 273


« Reply #3 on: Mar 14, 2006, 05:49 AM »

My god Garryn ..thats AWESOME

installing to bittersweet now Smiley
Logged
Briggsy
Sr. Member
****
Posts: 372



WWW
« Reply #4 on: Mar 14, 2006, 06:25 AM »

Great Plugin! Never used phpGiggle before... but I am right, can it be used to autolink any keyword given in the list ? for example: on webpage, wherever MODx is displayed, it converts MODx text to MODx (http://modxcms.com) link ?

Thanks,

zi

Sure does Zi, just put the link as the value and the optional title in the title filed  Wink

You can see it in action in my MODx sandbox as per my message footer.
« Last Edit: Mar 14, 2006, 06:40 AM by Briggsy » Logged

Emergency Management Academy of New Zealand
      http://www.emanz.ac.nz

MODx Sandbox   Login: sandbox  Password: castle

Admin Sandbox   Login: sandbox  Password: castle
zi
MODx Special Forces /
Administrator
*
Posts: 3,329


May Peace Be On You


WWW
« Reply #5 on: Mar 14, 2006, 09:37 AM »

Sure does Zi, just put the link as the value and the optional title in the title filed  Wink

You can see it in action in my MODx sandbox as per my message footer.

Thanks Briggsy! Thats great! Smiley

regards,

zi
Logged

aNoble
Emeritus
******
Posts: 680



WWW
« Reply #6 on: Mar 14, 2006, 10:14 AM »

Too cool! We've been needing this for aver a year now (and I've been planning on writing it myself ever since then). You just saved me a bunch of time.
Logged

Lizard
Support Subscriber
*
Posts: 273


« Reply #7 on: Mar 14, 2006, 11:37 AM »

one slight problem ive foubd garryn .. and its not a biggy

is that if I capityalise a word mid sentence (ie: a name ) and then have that word as a keyword .. the auto_link turns it non capitalised, this is not the xcase for start of sentences etc .. any way around this .. ive checked that its capitalized in the Modx doc AND the keyword ..


great mod tho!

Logged
davidm
MODx evangelist
Marketing & Design Team
*
Posts: 7,026


Software is like sex, it's better when it's free !


WWW
« Reply #8 on: Mar 14, 2006, 11:42 AM »

Just a thought : could an adapted code be made into an auto-accronym module ?

That would be awesome Grin
Logged

.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net
Briggsy
Sr. Member
****
Posts: 372



WWW
« Reply #9 on: Mar 14, 2006, 01:46 PM »

Just a thought : could an adapted code be made into an auto-accronym module ?

That would be awesome Grin

It does that now Smiley

Just put the expanded title in the value field, and it works.  I use it on my site for this very purpose.
« Last Edit: Mar 14, 2006, 04:09 PM by Briggsy » Logged

Emergency Management Academy of New Zealand
      http://www.emanz.ac.nz

MODx Sandbox   Login: sandbox  Password: castle

Admin Sandbox   Login: sandbox  Password: castle
garryn
Coding Team
*
Posts: 1,252



WWW
« Reply #10 on: Mar 14, 2006, 04:22 PM »

Right, I've just put up a new version that has a few bug fixes for when using the acronyms/abbreviations.

Now for acronyms/abbreviations, the plugin will try and use 'title' but will fall back to the 'value' if no title has been entered and acronym tags will now work when selected in the module.

For those already using this, you will just need to update the plugin code.  Wink

Cheers, Garry
Logged

Briggsy
Sr. Member
****
Posts: 372



WWW
« Reply #11 on: Mar 14, 2006, 05:01 PM »

Right, I've just put up a new version that has a few bug fixes for when using the acronyms/abbreviations.

Thanks for the speedy fixes Garry working well on the site and looking smooth. I love not having to code in stupid <acronym> tags all the time.
Logged

Emergency Management Academy of New Zealand
      http://www.emanz.ac.nz

MODx Sandbox   Login: sandbox  Password: castle

Admin Sandbox   Login: sandbox  Password: castle
davidm
MODx evangelist
Marketing & Design Team
*
Posts: 7,026


Software is like sex, it's better when it's free !


WWW
« Reply #12 on: Mar 14, 2006, 05:12 PM »

It does that now Smiley Just put the expanded title in the value field, and it works.  I use it on my site for this very purpose.

Okay that's even greater than I thought, didn't try it yet why I was asking... really, this is cool Grin
Logged

.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net
davidm
MODx evangelist
Marketing & Design Team
*
Posts: 7,026


Software is like sex, it's better when it's free !


WWW
« Reply #13 on: Mar 15, 2006, 03:07 AM »

It works nice !

Yeah thanks for the bugfix, it works like a charm and also : great to have this localized, most certainly very helpful to have language strings here Grin
Logged

.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net
davidm
MODx evangelist
Marketing & Design Team
*
Posts: 7,026


Software is like sex, it's better when it's free !


WWW
« Reply #14 on: Mar 16, 2006, 08:16 AM »

I noticed something : when I input accented characters in the keyword (example : "présentation"), the term is not autolinked (or accronymed or abbreviated).

Probably something to do with the validation regexes, but I wouldn't know how to fix it...
Logged

.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net
Pages: [1] 2 3 ... 5   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!