Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-09 09:56:22

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

lam_article_info (display live word count, link, id of edited article)

download here : lam_article_info v0.1

not much to it and probably not useful to most people but i just wanted to play around with jquery.

basically like zem_article_info, except this plugin provides live word count update as you type, permalink, and displays the current article id. (link and id don’t show up until you actually save the article of course)

Last edited by iblastoff (2008-01-09 09:57:34)

Offline

#2 2008-01-09 13:04:07

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: lam_article_info (display live word count, link, id of edited article)

Nice. The info this plugin provides is on the scale of other interface option on the write page not very important, so would it be better placed at the foot of the page under last modified. Otherwise, imo, it tends to clutter the page.

Thanks for good work.
Lee

Offline

#3 2008-01-09 15:21:38

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: lam_article_info (display live word count, link, id of edited article)

I see something that can drag bottom border of your body textarea – how did you do this?


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#4 2008-01-09 15:43:38

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: lam_article_info (display live word count, link, id of edited article)

I see something that can drag bottom border of your body textarea – how did you do this?

Rip from Drupal

Cheers!

Offline

#5 2008-01-09 16:09:20

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: lam_article_info (display live word count, link, id of edited article)

Another excellent plugin. Thanks

Offline

#6 2008-01-09 17:22:04

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: lam_article_info (display live word count, link, id of edited article)

the_ghost wrote:

I see something that can drag bottom border of your body textarea – how did you do this?

i used this guy (although i think i like drupals simple opacity dimming effect and might ‘rip’ it from there)

slapped it into a quick plugin and voila.

if you already use hak_tinymce it has built-in resizing as well.

Last edited by iblastoff (2008-01-09 17:22:38)

Offline

#7 2008-01-09 22:48:58

NeilA
Member
From: Blue Mountains, Australia
Registered: 2004-08-15
Posts: 316
Website

Re: lam_article_info (display live word count, link, id of edited article)

Nice job Steve!

Another little item that would be nice to see in the core.

Thanks!


Neil – Blue Mountains, Australia

http://westserve.org
http://ministrygrounds.net.au

Offline

#8 2008-01-09 23:38:35

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: lam_article_info (display live word count, link, id of edited article)

When installing it shows strange help

Some improvements:

  1. Add title to body and excerpt words counters – Something like “Amount of words in body” and “Amount of words in excerpt”. Little but pleasent thing for users with bad memory
  2. If you can – take out all language-sensetive output strings to one place. Because it’s much easier to translate such plugins…
  3. Ability to count symbols instead of words would be nice :)

P.S. It seem’s RegExp of plugin doesn’t like textile? Look this screenshot. Sorry for russian text, bit you can see that it counts wrong :)

Last edited by the_ghost (2008-01-10 00:07:08)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#9 2008-01-09 23:47:45

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,250
Website GitHub

Re: lam_article_info (display live word count, link, id of edited article)

the_ghost wrote:

When installing it shows strange help

Eeek, that’ll probably be my fault: the plugin composer playing up, sorry.

@iblastoff: Have you got the latest version installed? In fact, wait 5 minutes and I’ll have a new version up… Just put a new version up. See the link below for the fix, sorry for the inconvenience.

EDIT2: Fixed the Plugin Composer to get rid of the odd help markers. Thanks for spotting this, guys!

Last edited by Bloke (2008-01-10 09:26:06)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#10 2008-01-11 19:57:27

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: lam_article_info (display live word count, link, id of edited article)

Some code issues:
  1. instead of using <div style=\"display:inline;\" id=\"lam-word-excerpt\"></div> you can use <span id=\"lam-word-excerpt\"></span> – no need to define block as inline element if there is institutional inline element span
  2. Thinking more…

Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#11 2008-01-11 20:00:21

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: lam_article_info (display live word count, link, id of edited article)

thanks the_ghost. they were originally divs for another reason. feel free to change whatever you want obviously. either way the plugin is updated.

Last edited by iblastoff (2008-01-11 20:18:18)

Offline

#12 2008-02-06 06:56:13

holli.p
Member
From: Pinneberg/Germany
Registered: 2004-04-21
Posts: 83
Website

Re: lam_article_info (display live word count, link, id of edited article)

Hi,

the download link is broken.


Visit my Textpattern sites:
Northerndelight | Hasenbude
Curiculum Vitare | Rezepteblock

Offline

Board footer

Powered by FluxBB