Not signed in ( Sign In)

Categories

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorcvik
    • CommentTimeOct 10th 2007
     permalink
    Hello to all.

    I need some help with FP.
    1. How to enter code so lightbox work?
    2. Did lightbox come with instalation, or I need to download something?
    3. And I was turn off BBCode, but now I can't use xhtml in entries, or I do something wrong?

    Gretings
    Cvik
    •  
      CommentAuthorSamyWeb
    • CommentTimeOct 10th 2007
     permalink
    Hello,
    1,2: lightbox comes with FP (you can see it into plugins direcotry) and you can enable it from admin panel (plugin section).
    I suggest you to enable these plugins:

    'jsutils', //needed by ligthbox (quite heavy in size)
    'lightbox', //fancy usable img overlay effect, needs jsutils
    'thumb', //creates thumbnails adding scale=NN% to [img] tags :)

    you can use this sintax in your entry:
    [img=images/someimage.jpg scale=30]

    3: I don't understand what do you mean with "I can't use xhtml in entries".
    •  
      CommentAuthorNoWhereMan
    • CommentTimeOct 10th 2007
     permalink
    enabling xhtml was discussed in this thread http://www.flatpress.org/forums/comments.php?DiscussionID=4&page=1#Item_8 (ita)

    if you don't understand what to comment, ask here

    bye
  1.  permalink
    I know that it's not the right way, but I use lightbox with code like this

    [ html ] <a title="photo title" rel="lightbox" href="url"><img class="album" alt="photo title" src="url"></a>[ /html ]

    only because by doing this way on the bottom of the photo it's shown the title... If you don't want the title, you can use the "SamyWeb Way"!!! :)

    p.s. If someone knows another way to improve the way I use it, please let me know!!!
    •  
      CommentAuthorNoWhereMan
    • CommentTimeOct 10th 2007
     permalink
    @marco: maybe you would like to enable inline html as described in the link above; you wouldn't need the [html] thingie anymore (which I actually dislike)
    If you don't use much the < & > signs you can use it; just remember to escape your input in case you need them
    •  
      CommentAuthorcvik
    • CommentTimeOct 10th 2007
     permalink
    @SamyWeb
    1,2: Your way [img=images/someimage.jpg scale=30] works fine. I just did not know wright code for...Thanx
    3: " 'bbcode', // bbcode-style formatting; if you disable this you'll loose some features, but you will be able to use xhtml as a default "
    I was disable bbcode in hope that I can put code in way from slimbox, but without success. Maybe it will work if I put them inside [ html ][ /html ] tag. (like marcoverga86 way). But I was not born smart... ;)

    Thank You all. A think that I will love this blog. I know that I will love FP!

    Cvik
    •  
      CommentAuthorNoWhereMan
    • CommentTimeOct 11th 2007 edited
     permalink
    FYI, the fix to input xhtml is commenting (put a # or a // before) these lines of fp-includes/core/core.wp-default-filters.php


    // Clean & add entities
    add_filter('content_save_pre', 'wp_specialchars');
    add_filter('excerpt_save_pre', 'wp_specialchars');
    add_filter('comment_save_pre', 'wp_specialchars');


    then disable bbcode;
    If you want to enable inline html even when bbcode is enabled comment

    add_filter('content_save_pre', 'wp_specialchars');


    in fp-plugins/bbcode/plugin.bbcode.php

    Thank You all. A think that I will love this blog. I know that I will love FP!


    Well, that's always nice to hear :)