 | |  |
 |

lgrayson
Novice
Sep 18, 2003, 3:01 PM
Post #1 of 8
(3440 views)
Shortcut
|
|
AM + PageBreak add-on problems
|
Can't Post
|
|
Hi all, Flushed with my success at implementing the GoForum add-on with phpBB, I'm now trying to get the page break add-on to work with AM. I've followed the installation instructions to the letter, updated the editor.js, uploaded the pagebreak.js and added the supplied script to my article default template. Unfortunately, instead of page breaks, I now have broken pages (sorry!) - the articles open up with the respective article fields at the head of the page, but the article content is notable only by its total absence. example - http://www.thesmallpicture.com/article_31.shtml The add page break button appears to be working just fine, but I get the same problem even when I add the <!--page--> tag manually. I even tried replacing my edited article default template with the supplied default_pagebreak template to see if I'd got the script placement wrong somehow (quite possible as I have the coding skills of a goldfish) but I get the same problem. All the AM files and folders are located in the one article manager directory (rather than split between the AM folder and the CGI-bin folder), could this have something to do with it? Haven't got a clue what to try next. Would be grateful if anyone could shed some light on this problem for me. Oh and be gentle - like I said, I have only the most basic grasp of HTML and no idea what JavaScript does (and I'm quite happy keeping it that way!) Cheers! Laurence
|
|
|  |
 |

Benjamin
Staff

Sep 18, 2003, 3:32 PM
Post #2 of 8
(3438 views)
Shortcut
|
|
Re: [lgrayson] AM + PageBreak add-on problems
[In reply to]
|
Can't Post
|
|
lol! Hi Laurence, We're actually just in the midst of updating the pagebreak documentation to account for the new custom publish directories introduced in Article Manager 1.30. But in your case, the problem is that your page is looking for the pagebreak.js file in the same directory as your articles - in your webroot, here: http://www.thesmallpicture.com/pagebreak.js However, the file doesn't appear to exist at that location. Where did you upload that file to? Maybe try uploading it to your webroot and then refresh the article pages. Post me back! Ben interactivetools.com
|
|
|  |
 |

lgrayson
Novice
Sep 18, 2003, 4:27 PM
Post #3 of 8
(3434 views)
Shortcut
|
|
Re: [Benjamin] AM + PageBreak add-on problems
[In reply to]
|
Can't Post
|
|
You know, it never even occurred to me that the 'Publish' folder was there for a reason ;) As you rightly pointed out, my published files were all sitting in the root folder and not the folder that you kindly supplied for that very purpose, so I put the pagebreak.js file in there too, as per your suggestion. It seems to be working now, (hurrah!), unfortunately, the preview without publishing isn't (boo!). This may be something to do with my foolish (but well-meaning) blundering around in places where my abilities suggest I shouldn't be going to, but hey - you live by your mistakes. Am I going to have to reset my admin config to point to the publish folder, copy the pagebreak.js to this folder and re-publish to make it work? Or do you have a better/simpler/slicker solution? Cheers! Laurence PS - Enormously impressed by the speed of your response, BTW.
|
|
|  |
 |

Donna
Staff
/ Moderator

Sep 18, 2003, 4:47 PM
Post #4 of 8
(3426 views)
Shortcut
|
|
Re: [lgrayson] AM + PageBreak add-on problems
[In reply to]
|
Can't Post
|
|
Hi there! Thanks for your post. :) Can you let me know what happens when you try to preview without publishing? What doesn't appear to be working the way you expect? Thanks! I look forward to hearing from you. :) Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

lgrayson
Novice
Sep 18, 2003, 4:55 PM
Post #5 of 8
(3424 views)
Shortcut
|
|
Re: [Donna] AM + PageBreak add-on problems
[In reply to]
|
Can't Post
|
|
Hi Donna, When I try to preview, I get the same result as I used to get when viewing the article before I put the pagebreak.js into the right folder. In other words, the page builds, including the relevant article headers but the article content doesn't appear. I'm guessing that the preview code is looking in the wrong folder for the pagebreak.js file, but I don't know how to point it at the right one (my root directory). While you're mulling this one over, I'll try changing the server settings in the admin control panel so that they point to the Publish directory and then re-publish all files. I'll let you know how I get on. Cheers! Laurence
|
|
|  |
 |

Benjamin
Staff

Sep 18, 2003, 5:29 PM
Post #6 of 8
(3417 views)
Shortcut
|
|
Re: [lgrayson] AM + PageBreak add-on problems
[In reply to]
|
Can't Post
|
|
Hey Laurence! What I did was recreate this locally, and the reason why it's not working with the "Preview" feature is again a paths issue. What's happening is that the preview button runs through the admin.cgi script, which is located in your /exec directory. That means it's looking for the pagebreak.js file in the same directory... So you have two options: 1. Quick and easy fix: upload another copy of the pagebreak.js file into your /exec directory, alongside your search.cgi and admin.cgi scripts. (Note: I have a sneaking suspicion some servers won't like reading a .js file from that location, but it works locally just fine). 2. More elegant fix: in your /templates/article/default.html template change this line: <script language="javascript" src="pagebreak.js"></script> to this: <script language="javascript" src="http://www.yoursite.com/path/to/pagebreak.js"></script> That way, it will always point to the one location of the pagebreak.js file and you don't have to have that file anywhere else but at that location. I'll be sure to fix this problem in the new doc for pagebreak. :-) Ben interactivetools.com
|
|
|  |
 |

lgrayson
Novice
Sep 18, 2003, 5:40 PM
Post #7 of 8
(3415 views)
Shortcut
|
|
Re: [Benjamin] AM + PageBreak add-on problems
[In reply to]
|
Can't Post
|
|
Whoop! Excuse my barely contained excitement, but everything's as it should be, and I can go to bed a happy bunny (it's 1:35am here). I took the 'quick and easy' route (it's my general life philosophy), and it works just fine. If we weren't separated by a rather large stretch of water, I'd offer to buy you a beer. As it is, you'll just have to make to with my gratitude - it won't get you drunk, but that isn't without its own advantages Cheers! Laurence
|
|
|  |
 |

Benjamin
Staff

Sep 18, 2003, 5:59 PM
Post #8 of 8
(3414 views)
Shortcut
|
|
Re: [lgrayson] AM + PageBreak add-on problems
[In reply to]
|
Can't Post
|
|
Haha! :-) Well, if you're ever in Vancouver I'll take up the offer of the beer ;-) Ben interactivetools.com
|
|
|  |
|