| Author |
Message |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
| Sun Feb 19, 2006 11:20 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
flyboy17
Joined: 21 Feb 2007 Posts: 49
|
|
|
|
It's a great plugin.
But when I add a text and leave the 'short story' field empty, I still get a warning that the 'short story must contain a value'.
|
|
| Mon Apr 09, 2007 11:22 pm |
|
 |
marten
Joined: 10 Sep 2007 Posts: 23
|
|
|
|
FI-DD pleas I need your help in auto-short-story $max = 100; but the problem it cut the last word I tried to change many times $max but still it cut the last word in short story.
Example for short story
this is a good and great pulgins thanks for your eff...
here is the probem the word effort is eff...
please advise
Thanks in advance
|
|
| Wed Sep 12, 2007 7:14 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
Yes, it's because the plugin cuts the text after 100 characters. The script doesn't know if the last word is complete or not - it just counts to 100 and then cuts it off.
|
|
| Wed Sep 12, 2007 7:55 pm |
|
 |
marten
Joined: 10 Sep 2007 Posts: 23
|
|
|
|
Thanks FI-DD
|
|
| Wed Sep 12, 2007 8:04 pm |
|
 |
marten
Joined: 10 Sep 2007 Posts: 23
|
|
|
|
Please FI-DD I need some help some times I need when I add a new news to add a picture and a text around the text in short story so when I did that I found that the autoshort overwrite what I did in the short story and cut after 100 characters so how I can solve this problem please?
Thanks in advance
|
|
| Wed Sep 19, 2007 8:34 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
|
I finally found out why I had so much trouble with this all this time. I did some testing. First, after changing cute.js as FI-DD instructed above, you need to clear your browser cache or it will continue to tell you that you need to fill in a value in your {short-story}... second.. this will only work on NEW content items you add to your site. Existing content will have to be readded or truncated manually. I edited a news item, erased {short-story} value, checked, it was still blank.. I then added a new content item from scratch and it truncated properly.
Just thought someone might find a little heads-up useful 
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Wed Sep 26, 2007 1:45 am |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
|
Hey FI-DD.. is it possible to make this work with the 'Guest can add news' hack? I noticed when the {full-story} is entered.. it does not put the info into the {short-story}, it leaves it blank.
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Thu Sep 27, 2007 7:06 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
Just add something like this to the code:
 |  | if($short_story == ''){$short_story = substr($full_story, 0, 100).'...';} |
|
|
| Fri Sep 28, 2007 3:00 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
|
Cool, thanks! You always make it seem so simple.
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Fri Sep 28, 2007 10:24 pm |
|
 |
|