MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completely customizable, expandable and suitable for all needs.
A2Hosting
Moderators: Moderators
Forum RSS feedReply
Help in a block
AuthorText
slashado
Donator

Posts: 323
Contributes: 350

Gender: _MALE_
Online: No

Version: 4.0.1
Country: Brasil
Languages: Português, Inglês (via Google), e todas as outras (via google)
Date: 27/11/2009 20:07
Help in a block
#post22679
Site url: http://www.mscriacoes.com.br
MemHT version: 4.0.1
Hosting OS: Linux
PHP and MySQL versions: 5.x
Installed addons/scripts: Various
Error/Problem:

Hello Member, Friends of the community ...
I'm trying to create another block to the Gallery, this one for a slide show of images from and I'm using the block SlideShow fellow community here.

The point is that I can not make the block_gallery.php displays all the images that call. See what I did:
code
        global $dblink;
       
        echo '<LINK href="js/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/s3Slider.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
     
        $('
#slider1').s3Slider({
            timeOut: 4000
        });
    });
</script>
<div id="slider1">
        <ul id="slider1Content">';

        $ccolor = "#FFFFFF"; //#FFFFFF
       
        //Mude o i.category=c.24 para a ID do album a ser apresentado no Slider

        if ($resultg = $dblink->get_list("SELECT * FROM memht_gallery_images ORDER BY RAND() LIMIT 5")) {
                foreach ($resultg as $rowg) {
                        $ititle = outCode($rowg['
title']);
                        $iimgfile = outCode($rowg['
imgfile']);
                        $ithumb = outCode($rowg['
thumb']);
                        $iattachfile = outCode($rowg['
attachfile']);
                        $idescription = outCode($rowg['
description']);
       
                        echo "<div align='
center' style='padding:4px 0;'><table style='padding: 2px; background-color:{$ccolor};'><tr><td><li class='slider1Image'>
                <a href='
index.php?page=gallery&op=showGallery&id=1&title=".mem_urlencode($ititle)."' title='$ititle'><img src='pages/gallery/gallery/$iimgfile' width='584' height='263' border='0' title="$ititle" alt="$ititle"></a>
                <span class='
left'><strong><a href='index.php?page=gallery&op=showGallery&id=1&title=".mem_urlencode($ititle)."' title='$ititle'>$ititle</a></strong><br />$idescription ...</span></li></td></tr></table>";
                               
                        if ($iattachfile!="") {
                                echo "<div><a href="$iattachfile" title="header=["._ATTACHMENT_."] body=[$iattachfile]"><img src='
pages/gallery/images/attachment.gif' border='0' alt='Attachment'></a></div>";
                        }
                        echo "</div>\n";
                }
        } else {
                echo "<div id='
errorText' align='center'><b>"._EMPTY_."</b></div>";
        }
echo '
</ul>
</div>';


OK, that worked until the problem is that instead of making slide with 5 images uploaded in the Gallery, is always the same image, even without displaying the slideshow to work 5 records, you insert the slide, it is displaying only 1. What can I do to allow that displays all the images? Tried repetitions field but did not work!
Help me?
..::MS Criações::.. - Criação e Hospedagem de Websites!
..::Memht BRASIL::.. - Comunidade brasileira do MemHT!
Soon, Virtual Store with Modules and Templates for MemHT!
Eager for MemHT 5
Delete Edit Quote
 
Reply
Tags Cloud
Twitter updates...
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.107.179.231

Username
Password
MemHT Wiki
Language
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo