Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 39

Thread: includes:

  1. #21
    Join Date
    Oct 2009
    Posts
    21
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    The stylesheet probably isn't included in the main page's head section, since that's where it needs to be added as a tag.

    This is the head section from (index.php from picKLE)

    <HTML>
    <HEAD>
    <TITLE>
    <?php echo '' .$gallery_title. ' - ' .$title. ' ' .$version. '';?>
    </TITLE>
    <link href="style.css" rel="stylesheet" type="text/css">
    <?php
    if ($slide == '1') {
    $gallery->picKLEslide();
    }
    ?>
    </HEAD>


    As you can see it has style.css but that is for picKLE.

    How can i add the additional style.css that makes the header show correctly, you say hard-code, template, i am not experienced enough to understand your comments let alone to carry them out!

    You replied with...
    or just hard-code the stylesheet into the top


    Please if you can help i would appreciate it

  2. #22
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    place your stylesheet link just below the link to the picKLE stylesheet. Make sure the href (path) is correct; if your stylesheet is also called style.css (boring!) you'll need to either rename it or place it in a different folder.

    <HTML>
    <HEAD>
    <TITLE>
    <?php echo '' .$gallery_title. ' - ' .$title. ' ' .$version. '';?>
    </TITLE>
    <link href="style.css" rel="stylesheet" type="text/css">
    <link href="/path/to/your/stylesheet.css" rel="stylesheet" type="text/css">
    <?php
    if ($slide == '1') {
    $gallery->picKLEslide();
    }
    ?>
    </HEAD>

  3. #23
    Join Date
    Oct 2009
    Posts
    21
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Hi again,
    I think i am almost there regarding the header and stylsheet issues (with your help that is)

    Just this one thing i can't figure.

    The header is working so is the css apart from the size of the text being much smaller on the picKLE page than it is on the shtml pages...baffled.

    Two images to show what i mean.
    Thanks again to everyone.
    Maggs.

  4. #24
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    what is your css sheet like; specifically the part that deals with font size...? if you're using ems, %'s or a relative keyword (e.g., smaller), it may be cascading with some other text-size setting.

    Have you tried simply making your font-size larger? might not be the cleanest way, but it would still work.

  5. #25
    Join Date
    Oct 2009
    Posts
    21
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Talking

    Thanks Traq,
    I apologise, i was working on the wrong stylesheet!!
    Changing the font size as you suggested has worked great.

    As i said at the beginning of my posts i am not a coder, especially with php, i am always wary of deleting parts of the script i dont want or need in case i mess up the whole thing.

    By talking to you guys i have been learning and experimenting, have made mistakes along the way.

    The php coding still confuses me, the main part being how to exclude parts not required.

    I need, or would like to remove all the text apart from the title of the image from the page...picture attached.
    Thanks,
    Maggs.

  6. #26
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Well, if you're uncomfortable deleting parts of scripts (and you should be), just

    /* comment them out */

    and you can see if you like it that way without actually screwing anything up beyond repair. Similarly, you can

    //make a commented note

    about pieces of code you add, so you can edit them out again if they don't work properly.

    //end of note

  7. #27
    Join Date
    Oct 2009
    Posts
    21
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    That must make sense to you...but not me!
    How,where, and what wording would i place:

    /* comment them out */

    Sorry for bothering you with all this.
    Maggs.

  8. #28
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    this: /* starts a comment,
    and this: */
    ends a comment in php. all code between the /* and */ symbols is ignored, as if it were deleted, but if I need to restore it all I need to do is remove the comment tags.

    A one line comment uses two slashes, // like this. After a
    line break, the comment ends (there is no closing tag).

    When adding code to a modify script, I usually use comments to remind myself which code is mine
    /* OLD CODE commented out
    if(it_works){
    echo 'Don\'t fix it';
    }
    END old code */
    // MY CODE FOLLOWS

    if(new_function_works){
    echo 'It works';
    }else{
    echo 'Delete this, it sucks.';
    }
    // END my code

    Edit:
    Quote Originally Posted by terriers33
    ...I need, or would like to remove all the text apart from the title of the image from the page
    ^ Sorry, I just caught that part of your post.

    I wouldn't be able to give you any specific help with that without seeing the actual script, so I could find the relevant lines of code.
    Last edited by traq; 10-23-2009 at 01:07 AM.

  9. #29
    Join Date
    Oct 2009
    Posts
    21
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Hi,
    I think i could manage to do that if only i knew where to put the comments.

    I have attached the index.php file as a zip (hope it works)
    Thanka again,
    Maggs

  10. #30
    Join Date
    Oct 2009
    Posts
    21
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thanks anyway,
    Sorry for being presuptious.
    Maggs.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •