Log in | Register | Lost password

Bottom
slideshow on Pagesetter page
  • Posted: 19.10.2007, 20:08
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    what I want to do: having changing pictures from a directory a background of a Pagesetter page
    this should be no problem in Pagesetter with some work on the template and embedding an iframe with a Mediashare slideshow
    anyway I have to make some new Mediashare template or strip some existing from all the controls etc. to the naked images
    which template shall I take as base? and can I call the function with "&tpl=xxx"?
  • Posted: 19.10.2007, 21:56
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Here are some starts for you:

    Embed a mediashare gallery anywhere on the site:

    Code

    <div ><!--[ pnmodfunc modname=mediashare func=list key=$keyname tpl=profile order=modified orderdir=desc pageSize=50]--></div>

    This will insert a div with a row of image thumbnails...
    NOTE: Read this thread as it will explain "pageSize=50" http://www.elfi…pic&topic=3483

    You will then need a new mediashare template. Here's mine-it's called "mediashare_user_profile.html" and it simply displays the thumbnails. Whe clicked the lightbox feature is enacted to show the full image.

    Code

    <!--[include file=mediashare_include_lightbox.html]-->

    <!--[foreach from=$items item=item]-->

    <a href="<!--[mediashare_mediaUrl src=originalRef mediaItem=$item.media]-->" rel="lightbox" title="<!--[$item.media.title]-->">

    <!--[mediashare_mediaItem src=$item.media.thumbnailRef title=$item.media.title mediaHandler=$item.media.mediaHandler isThumbnail="1" id="media-`$item.media.id`" class="thumbnail" ]--></a>

    <!--[/foreach]-->


    As far as having rotating background images from a mediashare gallery there might be an easier way to get them... perhaps you should look at the way the random image block is created and use that as an example for building your own smarty plugin to retrieve a random image and output it as a variable. You could then use that variable (an image) on the page...
  • Posted: 20.10.2007, 16:29
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    thanks RemShowdown for your suggestions but what I really need are rotating images
    what I have succeeded until now is to embed the mediashare slideshow into pagesetter pages
    as I see there are 2 templates: mediashare_user_slideshow.html and slideshow.html
    I have now to strip those template(s) from all but the bare pictures
    if anybody could give me some hints it would be a great help otherwise I would have to experiment step by step

Template courtesy of Designs By Darren.