text in two columns

Hi,
Is there a way to show the text from the description of the thumbnails and single image in a two column order? I search the forum about "description" and more, and see no results.
And what about the albuns description: is it possible to limit the text to some amount, like a excerpt? I read about costume fields, but dont know how to do it...
Any help? Thanks

Comments

  • acrylian Administrator, Developer
    1. HTML per se does not support real columns as you surely know. So there are two ways:
    1. Set your theme up to use the description field and the custom field as two parts and then setup your theme to display them as fake columns. http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetAlbumCustomData
    2. Add html code to the description itself using two divs or a table.
    2. You can limit the description with standard php functions or our standard function:
    http://www.zenphoto.org/documentation/functions/_functions.php.html#functiontruncate_string
    You have to edit the given theme files.
  • Thank you acrylian,
    The only thing I tryed is the div thing, but it prints the same text three times! The two I created at the side of the thumbs and the one by default at the bottom... that is the only thing my bad knowledge let me do, lol. Php is to much for me, and css or html is just a bit better...
  • acrylian Administrator, Developer
    You have to use the two divs on the backend description editing field directly. You can switch our editor TinyMCE to a pure html mode. Of course the theme's CSS needs to be setup to display that correctly.
  • I tryed with no sucess, probably I do something wrong...
    Now I want the text one column above the thumbs. That is ok, but the description text appears at the bottom of the images too. I have deleted the editor_config.js.php because I saw in other post to remove it in order to make the text dissapear from the bottom. It did not work, still both texts. Now I put the file in its place again, but (only with IE), the search form disapear and the tags went crazy...
    Zenphoto looks great, but not for people who dont understand php...
  • acrylian Administrator, Developer
    `editor_config.js.php` is the configuration file to load the TinyMCE editor on the administration backend. It has nothing to do with the display on the site itself. I don't know where you read that...

    You probably call the album desc twice so it will appear twice. You probably really should read the theming tutorial again.

    You also did not tell what theme you are actually using.
    Zenphoto looks great, but not for people who dont understand php...
    Every CMS requires special knowledge if you want to do special things as no CMS is able to do everything out of the box. You problem has not exactly really to do with PHP.
  • Thanks once more, sorry for this long post.
    I am using default theme. Maybe my problem is english... :)

    I read it here: http://www.zenphoto.org/support/topic.php?id=5330
    don´t know if I am right but it was what I understood. Anyway, after I remove the file, the search box dissapear. It is a strange behaviour. But now I put the file again in its place and when open the page in other computer I can see the search box, but not in my computer, only with IE, (even if I refresh the database, clean the cache, etc...). So I dont think it is a real problem.

    And I dont know nothing about PHP, when you say I call the description twice, I dont think I do, but not sure exactly what that means, so maybe I am call it twice...

    What I want is to remove the duplicated text at the bottom of the thumbs (the original one): http://www.barrento.com/emag/zenphoto/Egrets/ and I dont think I have call it twice, here is my code:

    <body>
    <div id="navegacao">
    <div id="gallerytitleHeader">
    <h2><span><?php printHomeLink('', ' | '); ?>" title="<?php echo gettext('Albums Index'); ?>"><?php echo getGalleryTitle();?> | <?php printParentBreadcrumb(); ?></span> <?php printAlbumTitle(true);?></h2>
    </div> <!-- GALLERYTITLEheader ACABA-->
    <div id="searchHeader">
    <?php if (getOption('Allow_search')) { printSearchForm(''); } ?>
    </div>
    </div> <!-- NAVEGACAO ACABA-->
    <div id="corpo">
    <div id="main">
    <div id="albumdesc">
    <h3>" title="<?php echo gettext('View album:'); ?> <?php echo getAnnotatedAlbumTitle();?>"><?php printAlbumTitle(); ?></h3>
    <small><?php printAlbumDate(""); ?></small>
    <p><?php printAlbumDesc(); ?> </p>
    </div> <!-- ALBUMDESC ACABA-->
    <p style="clear: both; "></p>
    <div id="padbox">
    <?php if (function_exists('printSlideShowLink')) printSlideShowLink(gettext('Slideshow')); ?>
    <div id="albums">
    <?php while (next_album()): ?>
    <div class="album">
    <div class="thumb">
    " title="<?php echo gettext('View album:'); ?> <?php echo getAnnotatedAlbumTitle();?>"><?php printAlbumThumbImage(getAnnotatedAlbumTitle()); ?>
    </div> <!-- THUMB ACABA-->
    </div> <!-- ALBUm ACABA-->
    <?php endwhile; ?> </div> <!-- ALBUMSSSS ACABA-->
    <div id="images">
    <?php while (next_image(false, $firstPageImages)): ?>
    <div class="image">
    <div class="imagethumb">" title="<?php echo getBareImageTitle();?>"><?php printImageThumb(getAnnotatedImageTitle()); ?></div> <!-- IMAGETHUMBS ACABA-->
    </div> <!-- IMAGES ACABA-->
    <?php endwhile; ?>
    </div> <!-- PADBOX ACABA-->
    <div id="comments">
    <?php printAlbumDesc(true); ?>
    <?php printPageListWithNav("« ".gettext("prev"), gettext("next")." »"); ?>
    <?php printTags('links', gettext('Tags:').' ', 'taglist', ''); ?>
    <?php if (function_exists('printRating')) { printRating(); }?>
    <?php
    if (function_exists('printCommentForm')) {
    ?>
    <?php printCommentForm(); ?>

    <?php
    }
    ?>
    </div> <!-- COMMENTS ACABA-->
    </div> <!-- MAIN ACABA-->
    </div> <!-- CORPO ACABA -->
  • OK!
    I was really call it twice :)
    Have you some ideia about the search box that dont show in my computer when using IE? Thanks once more, and sorry for my mistakes :)
    Merry Christmas to all!
  • `<?php if (getOption('Allow_search')) { printSearchForm(''); } ?>` Have you enabled the theme option "allow search"?
    And I dont know nothing about PHP
    It is inevitable that you will need to learn something about programing (and PHP) if you wish to customize your inallation beyond what setting options can do for your.
Sign In or Register to comment.