Welcome to the archive of the old FlatPress support forum. Browse more than a decade of FlatPress wisdom! Login is disabled.

The current FlatPress support forum is available here: forum.flatpress.org
Lightbox - how to
  • 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
  • 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".
  • 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
  • I know that it's not the right way, but I use lightbox with code like this [ html ] photo title[ /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!!!
  • @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
  • @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
  • 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 :)
This discussion has been closed.
All Discussions
Start a New Discussion

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion