[PHP] splitting content into pages

2003-08-03 Thread daniel
thanks to the poster on the substr page i made a modification to it so it now splits the content into pages lemme know anyone if this is useful usage: page_content($content,15,$_GET['page']); function page_content($content,$limit,$page) { $array = explode(\r\n, $content);

RE: [PHP] splitting content into pages

2003-07-31 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Wednesday, July 30, 2003 9:33 PM said: your example doesnt work Then fix it, don't complain to him. He spent his own time (either work time or personal time) to write it for you. Do you expect him to fully test it before he sends it? and the

Re: [PHP] splitting content into pages

2003-07-31 Thread skate
Another solution would be to abandon the idea of a fixed size background. Try to make it variable instead. althought not the most cross browser effective, you could also try some css to fix the background... style=background-repeat=none should do the job. -- PHP General Mailing List

RE: [PHP] splitting content into pages

2003-07-31 Thread Chris W. Parker
skate mailto:[EMAIL PROTECTED] on Thursday, July 31, 2003 9:44 AM said: althought not the most cross browser effective, you could also try some css to fix the background... style=background-repeat=none should do the job. The problem is not fixing the background in place. The problem

[PHP] splitting content into pages

2003-07-30 Thread daniel
hi there , i have an issue trying to split content into pages , we have a popup with content and a background image with a set height , when there is more content the background repeats , theoretically i'd want to split the content into pages after a given length or line length or where it meets

RE: [PHP] splitting content into pages

2003-07-30 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Wednesday, July 30, 2003 6:35 PM said: hi there , i have an issue trying to split content into pages , we have a popup with content and a background image with a set height , when there is more content the background repeats , theoretically i'd

RE: [PHP] splitting content into pages

2003-07-30 Thread daniel
ok let me explain , its straight up text content from the database , say its scrolls for ages , i need to split it into pages , so i get the length of the string up to the last paragraph which fits i need to split it there any idea ? [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Wednesday,

RE: [PHP] splitting content into pages

2003-07-30 Thread daniel
maybe somehow with a substr function that gets the position of the last paragraph ?? ok let me explain , its straight up text content from the database , say its scrolls for ages , i need to split it into pages , so i get the length of the string up to the last paragraph which fits i need to

RE: [PHP] splitting content into pages

2003-07-30 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Wednesday, July 30, 2003 7:04 PM said: ok let me explain , its straight up text content from the database , say its scrolls for ages , i need to split it into pages , so i get the length of the string up to the last paragraph which fits i need

Re: [PHP] splitting content into pages

2003-07-30 Thread Evan Nemerson
Is there a reason this can't be solved with a CSS background-repeat: repeat-y; ? Or is download time of individual pages an issue? This is really a client-side issue. The math is going to vary depending on each user's settings- which font is used, the size of the font, random browser

RE: [PHP] splitting content into pages

2003-07-30 Thread Chris W. Parker
Evan Nemerson mailto:[EMAIL PROTECTED] on Wednesday, July 30, 2003 7:17 PM said: Is there a reason this can't be solved with a CSS background-repeat: repeat-y; ? Or is download time of individual pages an issue? That can look funny of course if the picture doesn't tile well. The math is

Re: [PHP] splitting content into pages

2003-07-30 Thread daniel
this isnt a client side issue it'll defeat the purpose if i dont repeat the background image and then let the text flow over it , its supposed to look like a notepage for a blogger Is there a reason this can't be solved with a CSS background-repeat: repeat-y; ? Or is download time of individual

Re: [PHP] splitting content into pages

2003-07-30 Thread Evan Nemerson
Excellent point. A compromise, then? How about using the background-repeat: repeat-y; and not trying to do any math. Just decide how long the content should be, and wrap the page at the next sentence. That way, you make the end users happy, but don't risk an ugly page. For 150 characters,

RE: [PHP] splitting content into pages

2003-07-30 Thread daniel
ok i have an idea , i have a solution which may work i dont know just yet , ok say the strlen of the entire content is 1675 , the strlen of the content up to the last paragraph is 1300 , how can i substr this to get the next block of text from 1300 and also increment if there is more pages ??

Re: [PHP] splitting content into pages

2003-07-30 Thread daniel
your example doesnt work , and the whole purpose of this is because the background image wraps if there is too much text , i'm also trying to figure out of leaving it this way and add a few page breaks at the certain length so the text doesnt go over the dark edge as u cant see it any ideas ?