|
|
Summarys ?
- Development Posted by Daniel (Saturday September 16 2000 @ 06:42PM EDT) views: 144 |
I hope, I am not dancing on your nerves, but I think there is another bug in handling the summaries.
The system always overwrites the summary with the stories text?
Daniel
|
|
By jason (Monday September 18 2000 @ 12:43AM EDT)
|
No, not at all. I like to dance.. just not in public. =]
Its kind of a weird (unique?) thing. If you type a story, and hit submit, it automatically creates a summary out of the first 255 characters of the story. If you hit preview, it shows you the summary in another textarea and allows for you to change the summary there.
|
[ reply | parent ]
|
By jason (Monday September 18 2000 @ 12:44AM EDT)
|
0.4.0 is entirely different btw, on the "contribute story" page, it asks for both a summary and a story.
|
[ reply | parent ]
|
By Philip Jenkins (Monday September 18 2000 @ 08:49PM EDT)
|
I have been trying to fix that problem and noticed two problems in the code which is stoping the summary from working. I would like to know if this is just an oversite, or if there is a legit reason for doing this:
In preview.php the else condition is set to Content, and should be set to Summary, and then in the if clause the test of mode==_PREVIEW should not be there, or should be mode!=_PREVIEW. Please correct me if I am missing the bigger picture, is the $mode==(!=) even needed, what is the purpose for that, I am sure that there is some reason for it, I just haven't seen it yet.
Thanks,
/* form summary only if it has not been changed. */
if ($mode==_PREVIEW || empty($Summary)) {
$summ = substr($Content,0,255);
} else {
$summ = $Content;
}
|
[ reply | parent ]
|
|
|
|