Jump to content
Larry Ullman's Book Forums

manic

Members
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About manic

  • Rank
    Newbie
  1. Thank you for your response. The idea was to adapt the original add_page.php form into an edit form, so that a first draft of a page which was originally entered via the add_page form and stored on the database could be amended/updated. In order to get the stored data to display on the edit form, I was setting it to $_POST['content'], so that when the form loaded, the create_form_input() function would display the content in the editor. You are right, (of course!), entities are being used. I substituted your mysqli_real_escape_string for htmlspecialchars (mainly because I am not famili
  2. Hi again! Have downloaded and installed CKEditor. It shows on my add page form ok. I can add text and add the page ok, and the content is safely stored in the database. However, when the add_page redisplays with the confirmation message, the content appears in the textarea field (CKeditor panel) as plain text together with formatting tags. ie it is not behaving as a WYSIWYG editor. How do I get this to display as WYSIWYG content? PS the allowed formatting tags are correctly stored on the database and the actual page displays properly when I visit it, so this is about getting t
  3. Thanks. with the benefit of hindsight, it now seems all rather obvious, but at the time, I was wrestling with a lot of new stuff. The bootstrap framework, sticky-footer-with-navbar template was all very new and I felt a bit over-faced when I expected to load it and it all work. Although, that said, I am still struggling to understand why a template which advertises a navbar, has that element preset to collapse! Is it supposed to appear if one hovers near the top of the page? ! am pleased that I got most of the way there by myself in the end. although, the page 'button' for $this_page still
  4. Hi Chapter 5, page 124 offers some SQL commands to populate the pages table, available to download from your website. Please could you guide me to them, as I cannot find them?
  5. RESOLVED It appears that the header template includes a <div with the class="nav-collapse collapse" . This class is not defined in either the bootstrap.css or the sticky-footer-navbar.css and yet somehow makes the navbar not appear. Once I added an exclamation mark (!) to the relevant div tags, eg: <!div class="nav-collapse collapse"> <!/div><!-- / .nav-collapse --> the navbar magically appeared! Perhaps this bit of styling is supposed to make the navbar appear, if you hover near the top of the page, but this was not happening for me. Bottom line: To mak
  6. IGNORE PART OF MY LAST the <li> elements of course have a class of "dropdown", unless this is superceded by "active". I am wondering if anything has changed with the latest release of bootstrap, ie v3.3.2?
  7. UPDATE I have a really slow internet connection and once when I loaded my home page, the page loaded temporarily without any CSS formatting. ie no grey navbar. I could see the home, about, contact, register items as an unordered list on the page, so it seems to me that there is not a problem with the php code for the navbar but there is some problem linking the relevant navbar elements to the css in order to get them to display properly. In the template header, I have the following between the <head> tags: <link href="/includes/scripts/bootstrap/css/bootstrap.min.css" rel=
  8. Hi - love your book and cannot wait to get going with applying your very clear php and sql code. However, I am falling at the first hurdle wrestling with the twitter bootstrap framework. Can you help? You can see where I have got to at http://www.worldsgreatestchallenge.com . I have downloaded the latest version of bootstrap and incorporated the sticky-footer-navbar.min.css. from your downloadable code from ex1. However, the navbar does not display at the top. I have managed to add the grey stripe at the top by adding the following to the sticky-footer-navbar.css: .navbar {
×
×
  • Create New...