 |

dlo_itools
Staff

Jul 30, 2002, 5:37 PM
Post #1 of 19
(9341 views)
Shortcut
|
In another thread http://www.interactivetools.com/forum/forum.cgi?post=537 there was a request for a page breaking feature (i.e. view an article as separate pages). I've coded a Javascript to do a simple page break feature; it requires the latest version of Article Manager 1.11 (to be released in the next few days). Here's a sneak peek at how it works: http://www.interactivetools.com/staff/dlo/artman/pagebreak/article_25.shtml The above link contains just the barebones stuff. I copied and pasted what would have been the $art_content$ portion. In the actual article the tag <!--page--> was added to indicate page breaks. I'll post more details when AM 1.11 is released. As usual, all comments are welcomed! /Dave Lo
(This post was edited by dlo on Jul 31, 2002, 9:56 PM)
|
|
|  |
 |

taylor
User
Jul 30, 2002, 8:11 PM
Post #2 of 19
(9330 views)
Shortcut
|
|
Re: [dlo] Page break coming soon
[In reply to]
|
Can't Post
|
|
God bless you, Dave. Lose the [ALL] option or at least make it optional for publishers to include in their news stories and I'm a convert. The reason I'm concerned about the [ALL] link is that I NEED people to click on as many pages as possible (for my ad impressions to be maximized). If you give the user that choice, they'll click [ALL] everytime because they don't want to click through each page link(although we want them to). Will the page refresh after each link? Again, I'm thinking in terms of ad impressions here. Will the publisher be able to specify how many pages each article spans (which is the best solution for the publisher instead of a random break). And will this feature work if we choose to use .html output instead of .shtml? I can't use .shtml--it has to be .htm or .html. Let us know... Peace, Taylor
(This post was edited by taylor on Jul 30, 2002, 8:18 PM)
|
|
|  |
 |

dlo_itools
Staff

Jul 31, 2002, 9:31 AM
Post #3 of 19
(9311 views)
Shortcut
|
|
Re: [taylor] Page break coming soon
[In reply to]
|
Can't Post
|
|
Hi Taylor, - The [All] option is completely optional. - From my testing, the page refreshes after each link. - In terms of setting the number of pages that each article spans, it is entirely up to the publisher because you have to manually insert <!--page--> tags into the article. Existing articles without the page break tags will be displayed in their entirety. - The file extension does not affect the page break function. And I noticed that Article Manager 1.11 (with rebranding and archiving) is now available. I'll post the pagebreak script shortly... /Dave Lo
|
|
|  |
 |

dlo_itools
Staff

Jul 31, 2002, 10:07 AM
Post #4 of 19
(9308 views)
Shortcut
|
|
Re: [dlo] Page break coming soon
[In reply to]
|
Can't Post
|
|
A simple page breaking feature for Article Manager is now available via a Javascript solution. Note that this requires the latest version of Article Manager 1.11. You can request the AM upgrade from http://www.interactivetools.com/upgrade/index.cgi Download the follwing file and unzip it: http://www.interactivetools.com/staff/dlo/artman/pagebreak/pagebreak.zip See the readme.txt file for full installation and usage. Briefly, implementing page breaks involve these steps: 1. Copy the pagebreak.js script to your artman/publish/ directory 2. Replace the $art_content$ placeholder in the article template with some Javascript shown in the readme.txt 3. Add <!--page--> to your articles to indicate page breaks 4. Republish the articles If you have comments or interesting customization for the script, you're welcomed to share it with everyone! /Dave Lo
|
|
|  |
 |

taylor
User
Jul 31, 2002, 10:45 AM
Post #5 of 19
(9304 views)
Shortcut
|
|
Re: [dlo] Page break coming soon
[In reply to]
|
Can't Post
|
|
Rock on! You guys have made A LOT of people happy today. Later, Taylor
|
|
|  |
 |

MalaK_3araby
User
Jul 31, 2002, 11:37 AM
Post #6 of 19
(9293 views)
Shortcut
|
|
Re: [taylor] Page break coming soon
[In reply to]
|
Can't Post
|
|
Rock on! You guys have made A LOT of people happy today. Later, Taylor Count me in that. I guess waiting pays eh? :) Thank you folks. -------------- Sure you can spell it, but do you get it?
|
|
|  |
 |

jmsierra
User
Aug 7, 2002, 10:36 PM
Post #7 of 19
(9208 views)
Shortcut
|
|
Re: [MalaK_3araby] Page break coming soon
[In reply to]
|
Can't Post
|
|
CHa CHing!! Yes, yes!! Happy....most for sure. I just purchased Article Manager, and I am blown away by the support and community these products have! My God, its like having a HUGE team of technical consultants on call! ;-) Im really happy about this script, because we will be able to give more value to our advertisers, or charge for additional banner impressions. Good work. Thank you again. Josue Sierra Miami, FL http://www.caracol.com Coming Soon!
|
|
|  |
 |

mickknutson
User
Aug 8, 2002, 5:06 AM
Post #8 of 19
(9197 views)
Shortcut
|
|
Re: [dlo] Page break coming soon
[In reply to]
|
Can't Post
|
|
I am happy you have this, however I have a question I thought I would ask before trying to test: What happends with the java script on older browsers Like IE 3,4, NS 3,4? It seems that to use this javascript, I would have to change a whole category to the new scheme, instead of just a single article. The only option I can see would be to add a <noscript><!--art_content--><\noscript> in addition to the javascript you gave me? Either that or the text would just not show up at all? Please tell me if I am correct, and if I am, then my large documents now double in size for the user. Right? This poses a performance issue for my users. If there is no fix, then OK, but I am just trying to find out for sure. __________________________________________________ Thank You... Mick Knutson BLiNC Magazine________ http://blincmagazine.com BASE-Jumping Network__ http://basejumping.net [org,info,biz,ws,us] FREE Email____________ http://basejumper.net __________________________________________________
|
|
|  |
 |

dlo_itools
Staff

Aug 8, 2002, 9:53 AM
Post #9 of 19
(9176 views)
Shortcut
|
|
Re: [mickknutson] Page break coming soon
[In reply to]
|
Can't Post
|
|
Hi Mick, [older browsers] We have not tested the script on the old browsers. However, the script avoids the latest-and-greatest javascript features so slightly older browsers with some decent implementation should be able to run it. [noscript] As with any web page with scripting, if you want to guarantee 100% compatibility with all browsers then you will have to add <noscript>$art_content$</noscript>. This will roughly double the resulting document size. The performance hit would be on the download/bandwidth end; the actual rendering of the page should take about the same time. [whole category] When you make changes to the article template, it will be used for all newly published pages, not just a single category. If you do a Publish All from the Setup Options, then all articles will use the template. Note that the new template is compatible with old articles. That is, if an article does not have the <!--page--> pagebreak tags, it will appear the same as before. If you want to limit the page break to just one article, you have to do a quick rename of the template/articles/default.html file before publishing an article, then rename back. [To everyone] Keep us updated on your pagebreak implementation! /Dave Lo
|
|
|  |
 |

WebGuys
User
Aug 8, 2002, 10:58 AM
Post #10 of 19
(9167 views)
Shortcut
|
|
Re: [dlo] Page break coming soon
[In reply to]
|
Can't Post
|
|
The pagebreak code works good in ie6, but in netscape 4.7 on a mac it doesnt work on the first page, but the second and third pages of the breaked pages worked right.. Hmmmmmmmmmmm Just letting the gurus know
|
|
|  |
 |

taylor
User
Aug 8, 2002, 12:54 PM
Post #11 of 19
(9157 views)
Shortcut
|
|
Re: [WebGuys] Page break coming soon
[In reply to]
|
Can't Post
|
|
Blechhhh. He's right--and it doesn't work on Windows Netscape 4.75 either. Dave--we need a fix for this! Taylor
|
|
|  |
 |

dlo_itools
Staff

Aug 8, 2002, 1:35 PM
Post #12 of 19
(9150 views)
Shortcut
|
|
page break failing on other browsers
[In reply to]
|
Can't Post
|
|
I'm taking a look at this now. IE6/NS6/Moz1 are ok. On browsers where page break fails, can you give me the following information (it'll help with finding a compliant solution for those browsers): * A more detailed description of how something is not working (e.g. page not displayed, url is incorrect, nav links not working, etc) * What does the browser say the URL of the page is * What is the URL pointed to by one of the navigation links * If you manually enter the URL with ?page=2, does page 2 display correctly (e.g. http://www.mysite.com/artman/publish/article_xxx?page=2) Please send the info to dlo@interactivetools.com Thanks for helping out and your kind support, /Dave Lo
|
|
|  |
 |

dlo_itools
Staff

Aug 8, 2002, 3:10 PM
Post #13 of 19
(9141 views)
Shortcut
|
|
Re: [dlo] page break failing on other browsers
[In reply to]
|
Can't Post
|
|
I've made some changes to the pagebreak.js file that should make it more browser friendly (in particular Netscape 4.75 and Opera 6). You can download from http://www.interactivetools.com/staff/dlo/artman/pagebreak/pagebreak.zip Note that the template file default_pagebreak.html also have a change: instead of using "$url_publish$/pagebreak.js", it is now "$url_publish$pagebreak.js" (delete the /). Browsers don't seem to mind the extra /, nonetheless it is fixed. If you have already customized your default article template you can manually make this change. /Dave Lo
|
|
|  |
 |

taylor
User
Aug 8, 2002, 6:19 PM
Post #14 of 19
(9136 views)
Shortcut
|
Re: [dlo] page break failing on other browsers
[In reply to]
|
Can't Post
|
|
Dave- Works on Win Netscape 4.75 now! Anybody check it on Mac yet? Thank you for all your help! Later, Taylor
|
|
|  |
 |

WebGuys
User
Aug 8, 2002, 6:35 PM
Post #15 of 19
(9134 views)
Shortcut
|
|
Re: [taylor] page break failing on other browsers
[In reply to]
|
Can't Post
|
|
Yep folks, dave has done it again, it works in netscape 4.79 on a Slackintosh (mac) he truely is CEO and president Thanks
|
|
|  |
 |

Dave
Staff
/ Moderator

Aug 8, 2002, 8:39 PM
Post #16 of 19
(9130 views)
Shortcut
|
|
Re: [WebGuys] page break failing on other browsers
[In reply to]
|
Can't Post
|
|
Don't give me the credit, it was Dave Lo ("D-lo") who coded this one! There's two Dave's at interactivetools, so it can be a little confusing at times. : ) Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

WebGuys
User
Aug 9, 2002, 5:59 AM
Post #17 of 19
(9123 views)
Shortcut
|
|
Re: [Dave] page break failing on other browsers
[In reply to]
|
Can't Post
|
|
A million appologies to D-lo good job ;) will have mistress punish me for my mistake :)
|
|
|  |
 |

WebGuys
User
Aug 11, 2002, 8:02 PM
Post #18 of 19
(9103 views)
Shortcut
|
|
Re: [WebGuys] page break failing on other browsers
[In reply to]
|
Can't Post
|
|
Hey got another patented WebGuys dumb Question ( wow 2 in 1 day ) I have the page breaks installed but no i cant seem to figure out how to set the font size for the actual articles :( any help greatly appreciated.... also, when are thos admit templates coming? i cant launch or even think about getting writers until such time.. Thanls again
|
|
|  |
|