split long entries not working with 0.9

Creating and modifying plugins.
Post Reply
periferral

split long entries not working with 0.9

Post by periferral »

hi i am using split long entries with Serendipity 0.9 and PHP 4.3.8

Split long entries
Enables you to split longer entries into several subpages
version: 1.4

Any clues if this works with 0.9 and what am I doing wrong.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: split long entries not working with 0.9

Post by garvinhicking »

How exactly did you configure the split long entries plugin? It has several options.

And then tell us how which code you entered in your entries to indicate the splitting.

It should work fine with serendipity 0.9, if properly used. :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
periferral

Post by periferral »

hi garvin. thanks for the response.
In the options page, I have
page break : <!--nextpage-->
length: 1000
show the entry.... : No (tried yes too, dont quite understand what this option really is)

Initially I was hoping that after a 1000 characters, the page would split properly but that didnt work. Then, I tried using <!--nextpage--> to break the page myself. That didnt work either.

When I first installed serendipity (0.8) and used split long entries, it used to work fine. But since I upgraded it has not worked.

garvin, if you need more info let me know. thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Could you tell me which other event plugins (and in which order) you have installed? It might be a problem colliding with the entryproperties plugin, that I'd like to fix if it is the problem.

You know that the splitting is only done on the extended entry, right?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
periferral
Regular
Posts: 14
Joined: Tue Jan 17, 2006 7:30 pm

Post by periferral »

the settings are as ive mentioned before.
currently I have my entries as follows

Event Plugins
Markup: Serendipity
Markup: Emoticate
Markup: NL2BR
Browser Compatibility
Spam Protector
Polls
Markup: Gallery Image
Split long entries

Ive moved split long entries to the top as well but it didnt seem to help.
Last edited by periferral on Fri Jan 20, 2006 9:06 am, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Did you read my last statement about the "Extended Entry" part? It seems to apply to you :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
periferral
Regular
Posts: 14
Joined: Tue Jan 17, 2006 7:30 pm

Post by periferral »

i'm not sure I understand. the link I sent you is the extended entry and it is not split.
can you explain further.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

But in the link you sent me, I only found reference to "entry_body". Usually if you have an extended entry it is enclosed in "<div class="serendipity_entry_extended".

You must enter the text you want to split into the "Extended Body" within the admin entry screen!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
periferral
Regular
Posts: 14
Joined: Tue Jan 17, 2006 7:30 pm

Post by periferral »

hey garvin. i understood what you were saying. i changed it into extended settings and it all worked out just fine. thanks for you help
Elaine
Regular
Posts: 27
Joined: Thu Jul 20, 2006 10:21 pm

Post by Elaine »

I don't really understand the point of this plug in if that's how it works.

Here's what I'd like to do. If anyone knows an easy way to do it please let me know.

I'd like to write my entry without manually splitting it (either by entering it into the "extended entry" or by entering a character set). And I'd like serendipity to automatically split it when it's more than a specified character limit.

Thanks :)
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

It actually works a little of both.

You need to give the entry a teaser text, in the "entry body" section. Then you enter the meat of the entry in the "extended body" section. If you've included the split sequence, the plugin splits the extended body portion there. If you haven't, it splits the extended body portion according to length.

Not too difficult, I think.
Judebert
---
Website | Wishlist | PayPal
Elaine
Regular
Posts: 27
Joined: Thu Jul 20, 2006 10:21 pm

Post by Elaine »

Hi Jude -

Yeah, I understand how it works. But that's not what I want.
Basically, I don't want to type in "teaser" text. I just want to type in journal entries. The ones that are long, I want them to be automatically split.

Looks like that can't be done with any the plug-ins currently available. That's OK. I will live with it. But if anyone wants to make a plug-in that does what I want I will be very happy :)

thanks.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Hi, Elane.

Actually, you don't really *need* to type the teaser text. You could create the entire entry in the extended body.

Of course, then the front page would only show the title, no teaser text.

Getting teaser text and split pages with only one text box for entry would involve some plugin programming, as you said.
Judebert
---
Website | Wishlist | PayPal
Rei
Regular
Posts: 30
Joined: Tue Jan 01, 2008 11:13 am
Location: Malaysia

Post by Rei »

:D I tried and tried and the splitentry plugin seems never work. Then i found this page. Then i realised it only works in extended body.

May be a better description for the plugin can avoid the mistake that new users might make?

"Enables you to split longer entries into several subpages. Note: Only works in Extended Body.

I used other blogging engines before and split entry works right at the entry body that's why i made the mistake of testing it on entry body.

I don't quite understand the usage of Entry Body and Extended Body.
I thought the easier way would be the whole blog post in the Entry Body, if i need a "read more", i just insert a read more code to break it, similar to the subpage code thing, but it would give the link as "read more" instead of page number etc. (I admit that's what i have experienced from other blog engines.)
Anyway, that's my personal view. :wink:

Currently, if i have very long page, first i need to put part of the story in the entry body, then all others in extended body.
Visitors would need to click "Continue reading..." first, then reach the 2nd page. Since it's too long, i used the Subpage in extended body, visitors would see links for previous, page numbers and view all. It introduces too many clicks.
I thought it would be neater and easier once the subpage is in used, the visitors can immediate see it from the post itself and click the 2nd page and so forth.
s9y 1.2.1 & 1.3.1 - bulletproof v1.2 - Safari3.0.4 & 3.1.2
linux - php5.2.6 - mysql5.0.51a
[openssl extension - no / magic_quotes_gpc - on / allow_url_fopen - off / post_max_size - 8m / imagemagick binary - not found]
Post Reply