Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Show Length of Description

Quote Reply
Show Length of Description
Hi All

I need the global tags to show the total length of 'Description', for example, i was created the project for ringtones and i really need to know the the length of keyword on description.

Title: Madonna
OTA Hex: 024A3A58C0C0C0C0C0C4041EA716934D5156104 28AD08514568428A274214513A10A288D0851446 8428934C210515610428AD08514568428A274214 511A10A289D08514468428934C210515610224AD 0851256042892B42144936108249D085124E8428 9274214493A10A249D08512450000
Length: 229

Please help and thanks so much.

Last edited by:

reenee: Mar 21, 2003, 7:27 PM
Quote Reply
Re: [reenee] Show Length of Description In reply to
Hi,

To calculate the length of the Descritption for a link as a global var is impossible I am afraid. To create a small plugin is possible to do this.

Cheers,

Cheers,

Dat

Programming and creating plugins and templates
Blog

Last edited by:

tandat: Mar 22, 2003, 1:57 AM
Quote Reply
Re: [tandat] Show Length of Description In reply to
Quote:
To calculate the length of the Descritption for a link as a global var is impossible I am afraid

Why would you say that?...it's very simple.

Code:
sub {
return length $_[0];
}

Tag:

<%tag_length($Description)%>
Quote Reply
Re: [Paul] Show Length of Description In reply to
Oh, cool. I did not know that
Thanks,

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [Paul] Show Length of Description In reply to
Thank you so much Paul Blush