• [Mod] Slideshow 4 0 5 1
Currently:  

Author Topic: [Mod] Slideshow  (Read 139946 times)

0 Members and 1 Guest are viewing this topic.

Offline Manfredpaul

  • Pre-Newbie
  • Posts: 2
    • View Profile
[Mod] Slideshow
« on: December 02, 2002, 09:44:52 AM »
Bei uns sind alle begeistert von dieser Galerie. was eigentlich nur fehlt, ist eine SLIDESHOW, wo man die Bilder der einzelenen Kategorien ablaufen lassen kann...
...gibt es so ein Modulhack? Oder weiß einer Rat, wie dies zu bewerkstelligen ist?

mfg
ManfredPaul

Offline Bastian_W

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
[Mod] Slideshow
« Reply #1 on: December 07, 2002, 02:17:31 PM »
Hm... währe ne Modifikation des Random Image... aber dann sicherlich nur mit Java-Script, da sich die Bilder ja immer ändern müssen... mit PHP geht das sicherlich nicht!

Hier mal ein Beispiel für eine Slightshow

In den Header:
Code: [Select]

<script>
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = '1.jpg'
Pic[1] = '2.jpg'
Pic[2] = '3.jpg'
Pic[3] = '4.jpg'
Pic[4] = '5.jpg'

// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
</script>



Das kommt nun in den Body Tag:  
Code: [Select]

<body onload="runSlideShow()">  



Folgenden Code packst du dahin, wo das Bild erscheinen soll:

Die Größe und die höhe sollten die Größe des Bildes haben (würde also heißen die Tumbs in deiner Gallerie sollen alle gleich groß sein, sonst werden die verzehrt)

Der Name der Grafik sollte der Name der ersten Grafikdatei im
 array Pic[] (siehe oben) haben!

Code: [Select]

<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="VU" height=150 width=150>
<img src="1.jpg" name='SlideShow' width=150 height=150></td>
</tr>
</table>


Ist alles nur mal eben so hingeschrieben... aber währe ja mal ein Anfang :-))
Nur tote Fische schwimmen mit dem Strom :-)

Bastian_W

Offline wishx

  • Newbie
  • *
  • Posts: 10
    • View Profile
Slideshow mod please?
« Reply #2 on: December 30, 2002, 08:10:55 AM »
Hello

I used to use Gallery 1.3.1, but recently switched to 4images. The only thing my users have complained about was that 4images doesn't have a "slideshow" option.

Is it possible for someone to create a mod for a slideshow (for categories, sub-cats, etc) for 4images?

Here's the code from Gallery's slideshow.php page (there is also a slideshow-low.php which is for a low-res sliseshow):

Code: [Select]
<?
/*
 * Gallery - a web based photo album viewer and editor
 * Copyright (C) 2000-2002 Bharat Mediratta
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
?>
<?
// Hack prevention.
if (!empty($HTTP_GET_VARS["GALLERY_BASEDIR"]) ||
                !empty($HTTP_POST_VARS["GALLERY_BASEDIR"]) ||
                !empty($HTTP_COOKIE_VARS["GALLERY_BASEDIR"])) {
        print "Security violation\n";
        exit;
}
?>
<? require($GALLERY_BASEDIR . "init.php"); ?>
<?
// Hack check
 
if ($gallery->session->albumName == "") {
        header("Location: albums.php");
        return;
}

if (!$gallery->user->canReadAlbum($gallery->album)) {
header("Location: " . makeAlbumUrl());
return;
}

if (!$gallery->album->isLoaded()) {
header("Location: " . makeAlbumUrl());
return;
}


// default settings ---
$defaultLoop = 0;
$defaultTransition = 0;
$defaultPause = 3;
$defaultFull = 0;

if (!slide_full) {
    $slide_full = $defaultFull;
}

$borderColor = $gallery->album->fields["bordercolor"];
$borderwidth = $gallery->album->fields["border"];
if (!strcmp($borderwidth, "off")) {
        $borderwidth = 1;
}
$bgcolor = $gallery->album->fields['bgcolor'];
$title = $gallery->album->fields["title"];
?>
<? if (!$GALLERY_EMBEDDED_INSIDE) { ?>
<head>
  <title>Slide Show for album :: <?= $gallery->album->fields["title"] ?></title>
  <?= getStyleSheetLink() ?>
  <style type="text/css">
<?
// the link colors have to be done here to override the style sheet
if ($gallery->album->fields["linkcolor"]) {
?>
    A:link, A:visited, A:active
      { color: <?= $gallery->album->fields[linkcolor] ?>; }
    A:hover
      { color: #ff6600; }
<?
}
if ($gallery->album->fields["bgcolor"]) {
        echo "BODY { background-color:".$gallery->album->fields[bgcolor]."; }";
}
if ($gallery->album->fields["background"]) {
        echo "BODY { background-image:url(".$gallery->album->fields[background]."); } ";
}
if ($gallery->album->fields["textcolor"]) {
        echo "BODY, TD {color:".$gallery->album->fields[textcolor]."; }";
        echo ".head {color:".$gallery->album->fields[textcolor]."; }";
        echo ".headbox {background-color:".$gallery->album->fields[bgcolor]."; }";
}
?>
  </style>

</head>

<body>
<? } ?>


  <script language="JavaScript" SRC="<? echo $gallery->app->photoAlbumURL ?>/js/client_sniff.js">
  </script>
<script language="JavaScript">
var timer;
var current_location = 1;
var next_location = 1;
var pics_loaded = 0;
var onoff = 0;
var direction = 1;
var timeout_value;
var images = new Array;
var photo_urls = new Array;
var photo_captions = new Array;
var transitionNames = new Array;
var transitions = new Array;
var current_transition = <?= $defaultTransition ?>;
var loop = <?= $defaultLoop ?>;
<?php

$numPhotos 
$gallery->album->numPhotos($gallery->user->canWriteToAlbum($gallery->album));
$numDisplayed 0

// Find the correct starting point, accounting for hidden photos
$index getNextPhoto(0);
$photo_count 0;
while (
$numDisplayed $numPhotos) { 
 
   $photo $gallery->album->getPhoto($index);
 
   $numDisplayed++;

 
   // Skip movies and nested albums
 
   if ($photo->isMovie() || $photo->isAlbumName) {
$index getNextPhoto($index);
continue;
 
   }

 
   $photo_count++;

 
   $photoURL $gallery->album->getPhotoPath($index$slide_full);

 
   // Now lets get the captions
 
   $caption $gallery->album->getCaption($index);

 
   /*
     * Remove unwanted Characters from the comments,
     * We don't use the array based form of str_replace
     * because it's not supported on older versions of PHP
     */
 
   $caption str_replace(";"" "$caption);
 
   $caption str_replace("\""" "$caption);
 
   $caption str_replace("\n"" "$caption);
 
   $caption str_replace("\r"" "$caption);

 
   // strip_tags takes out the html tags
 
   $caption strip_tags($caption);

 
   // Print out the entry for this image as Javascript
 
   print "photo_urls[$photo_count] = \"$photoURL\";\n";
 
   print "photo_captions[$photo_count] = \"$caption\";\n";

 
   // Go to the next photo
 
   $index getNextPhoto($index);
 
   $photosLeft--;
}

$transitionNames[] = 'Blend';
$transitions[] = 'progid:DXImageTransform.Microsoft.Fade(duration=1)';
$transitionNames[] = 'Blinds';
$transitions[] = 'progid:DXImageTransform.Microsoft.Blinds(Duration=1,bands=20)';
$transitionNames[] = 'Checkerboard';
$transitions[] = 'progid:DXImageTransform.Microsoft.Checkerboard(Duration=1,squaresX=20,squaresY=20)';
$transitionNames[] = 'Diagonal';
$transitions[] = 'progid:DXImageTransform.Microsoft.Strips(Duration=1,motion=rightdown)';
$transitionNames[] = 'Doors';
$transitions[] = 'progid:DXImageTransform.Microsoft.Barn(Duration=1,orientation=vertical)';
$transitionNames[] = 'Gradient';
$transitions[] = 'progid:DXImageTransform.Microsoft.GradientWipe(duration=1)';
$transitionNames[] = 'Iris';
$transitions[] = 'progid:DXImageTransform.Microsoft.Iris(Duration=1,motion=out)';
$transitionNames[] = 'Pinwheel';
$transitions[] = 'progid:DXImageTransform.Microsoft.Wheel(Duration=1,spokes=12)';
$transitionNames[] = 'Pixelate';
$transitions[] = 'progid:DXImageTransform.Microsoft.Pixelate(maxSquare=10,duration=1)';
$transitionNames[] = 'Radial';
$transitions[] = 'progid:DXImageTransform.Microsoft.RadialWipe(Duration=1,wipeStyle=clock)';
$transitionNames[] = 'Rain';
$transitions[] = 'progid:DXImageTransform.Microsoft.RandomBars(Duration=1,orientation=vertical)';
$transitionNames[] = 'Slide';
$transitions[] = 'progid:DXImageTransform.Microsoft.Slide(Duration=1,slideStyle=push)';
$transitionNames[] = 'Snow';
$transitions[] = 'progid:DXImageTransform.Microsoft.RandomDissolve(Duration=1,orientation=vertical)';
$transitionNames[] = 'Spiral';
$transitions[] = 'progid:DXImageTransform.Microsoft.Spiral(Duration=1,gridSizeX=40,gridSizeY=40)';
$transitionNames[] = 'Stretch';
$transitions[] = 'progid:DXImageTransform.Microsoft.Stretch(Duration=1,stretchStyle=push)';

$transitionNames[] = 'RANDOM!';
$transitions[] = 'special case';

$transitionCount sizeof($transitions) - 1;


$trans_i 0;
foreach (
$transitions as $definition) {
 
   print "transitions[$trans_i] = \"$definition\";\n";
 
   $trans_i++;

print 
"var transition_count = $transitionCount;\n";
?>

var photo_count = <?=$photo_count?>;

var slideShowLow = "<?= makeGalleryUrl('slideshow_low.php',
                           array('set_albumName' => $gallery->session->albumName)); ?>";

// Browser capabilities detection ---
// - assume only IE4+ and NAV6+ can do image resizing, others redirect to low
if (is_ie4up || is_nav6up) {
    //-- it's all good ---
} else {
    //-- any other browser we go low-tech ---
    document.location = slideShowLow;
}

// - IE5.5 and up can do the blending transition.
var browserCanBlend = (is_ie5_5up);

function stopOrStart() {
    if (onoff) {
stop();
    } else {
play();
    }
}

function toggleLoop() {
    if (loop) {
loop = 0;
    } else {
loop = 1;
    }
}

function changeElementText(id, newText) {
    element = document.getElementById(id);
    element.innerHTML = newText;
}

function stop() {
    changeElementText("stopOrStartText", "play");

    onoff = 0;
    status = "The slide show is stopped, Click [play] to resume.";
    clearTimeout(timer);

}

function play() {
    changeElementText("stopOrStartText", "stop");

    onoff = 1;
    status = "Slide show is running...";
    go_to_next_photo();
}

function changeDirection() {
    if (direction == 1) {
direction = -1;
changeElementText("changeDirText", "forward");
    } else {
direction = 1;
changeElementText("changeDirText", "reverse");
    }
    preload_next_photo();

}

function change_transition() {
    current_transition = document.TopForm.transitionType.selectedIndex;
}

function preload_complete() {
}

function reset_timer() {
    clearTimeout(timer);
    if (onoff) {
timeout_value = document.TopForm.time.options[document.TopForm.time.selectedIndex].value * 1000;
timer = setTimeout('go_to_next_photo()', timeout_value);
    }
}

function wait_for_current_photo() {

    /* Show the current photo */
    if (!show_current_photo()) {

/*
* The current photo isn't loaded yet.  Set a short timer just to wait
* until the current photo is loaded.
*/
status = "Picture is loading...(" + current_location + " of " + photo_count +
").  Please Wait..." ;
clearTimeout(timer);
timer = setTimeout('wait_for_current_photo()', 500);
return 0;
    } else {
status = "Slide show is running...";
preload_next_photo();
reset_timer();
    }
}

function go_to_next_photo() {
    /* Go to the next location */
    current_location = next_location;

    /* Show the current photo */
    if (!show_current_photo()) {
wait_for_current_photo();
return 0;
    }

    preload_next_photo();
    reset_timer();
}

function preload_next_photo() {
    
    /* Calculate the new next location */
    next_location = (parseInt(current_location) + parseInt(direction));
    if (next_location > photo_count) {
next_location = 1;
if (!loop) {
   stop();
}
    }
    if (next_location == 0) {
        next_location = photo_count;
if (!loop) {
   stop();
}
    }
    
    /* Preload the next photo */
    preload_photo(next_location);
}

function show_current_photo() {

    /*
     * If the current photo is not completely loaded don't display it.
     */
    if (!images[current_location] || !images[current_location].complete) {
preload_photo(current_location);
return 0;
    }
    
    /* transistion effects */
    if (browserCanBlend){
var do_transition;
if (current_transition == (transition_count)) {
   do_transition = Math.floor(Math.random() * transition_count);
} else {
   do_transition = current_transition;
}
document.images.slide.style.filter=transitions[do_transition];
document.images.slide.filters[0].Apply();
    }
    document.slide.src = images[current_location].src;
    setCaption(photo_captions[current_location]);

    if (browserCanBlend) {
document.images.slide.filters[0].Play();
    }

    return 1;
}

function preload_photo(index) {

    /* Load the next picture */
    if (pics_loaded < photo_count) {

/* not all the pics are loaded.  Is the next one loaded? */
if (!images[index]) {
   images[index] = new Image;
   images[index].onLoad = preload_complete();
   images[index].src = photo_urls[index];
   pics_loaded++;
}
    }
}

function setCaption(text) {
    changeElementText("caption", "[" + current_location + " of " + photo_count + "] " + text);
}

</Script>

<? includeHtmlWrap("slideshow.header"); ?>
<?
$imageDir = $gallery->app->photoAlbumURL."/images";
$pixelImage = "<img src=\"$imageDir/pixel_trans.gif\" width=\"1\" height=\"1\">";

?>
<form name="TopForm">
<?

#-- breadcrumb text ---
$breadCount = 0;
$breadtext[$breadCount] = "Album: <a href=\"" . makeAlbumUrl($gallery->session->albumName) .
      "\">" . $gallery->album->fields['title'] . "</a>";
$breadCount++;
$pAlbum = $gallery->album;
do {
  if (!strcmp($pAlbum->fields["returnto"], "no")) {
    break;
  }
  $pAlbumName = $pAlbum->fields['parentAlbumName'];
  if ($pAlbumName) {
    $pAlbum = new Album();
    $pAlbum->load($pAlbumName);
    $breadtext[$breadCount] = "Album: <a href=\"" . makeAlbumUrl($pAlbumName) .
      "\">" . $pAlbum->fields['title'] . "</a>";
  } else {
    //-- we're at the top! ---
    $breadtext[$breadCount] = "Gallery: <a href=\"" . makeGalleryUrl("albums.php") .
      "\">" . $gallery->app->galleryTitle . "</a>";
  }
  $breadCount++;
} while ($pAlbumName);

//-- we built the array backwards, so reverse it now ---
for ($i = count($breadtext) - 1; $i >= 0; $i--) {
    $breadcrumb["text"][] = $breadtext[$i];
}
$breadcrumb["bordercolor"] = $borderColor;
$breadcrumb["top"] = true;

include($GALLERY_BASEDIR . "layout/breadcrumb.inc");


$adminbox["commands"] = "<span class=\"admin\">";
$adminbox["commands"] .= " <a href=\"" . makeGalleryUrl("slideshow_low.php",
        array("set_albumName" => $gallery->session->albumName)) .
"\">[not working for you? try the low-tech]</a>";
$adminbox["commands"] .= "</span>";
$adminbox["text"] = "Slide Show";
$adminbox["bordercolor"] = $borderColor;
$adminbox["top"] = true;
include ($GALLERY_BASEDIR . "layout/adminbox.inc");

?>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="3" bgcolor="<?= $borderColor ?>"><?= $pixelImage ?></td>
  </tr>
  <tr>
    <td height="25" width="1" bgcolor="<?= $borderColor ?>"><?= $pixelImage ?></td>
    <td align="left" valign="middle">
    <span class=admin>

<?
echo " <a href='#' onClick='stopOrStart(); return false;'>[<span id='stopOrStartText'>stop</span>]</a>";
echo " <a href='#' onClick='changeDirection(); return false;'>[<span id='changeDirText'>reverse</span> direction]</a>";
if ($slide_full) {
    echo " <a href=\"" . makeGalleryUrl("slideshow.php",
        array("set_albumName" => $gallery->session->albumName)) . "\">[normal size]</a>";
} else {
    echo " <a href=\"" . makeGalleryUrl("slideshow.php",
        array("set_albumName" => $gallery->session->albumName, "slide_full" => 1))
        . "\">[full size]</a>";
}
echo "  ||";
?>

     Delay:
<?=
drawSelect("time", array(1 => "1 second",
2 => "2 second",
3 => "3 second",
4 => "4 second",
5 => "5 second",
10 => "10 second",
15 => "15 second",
30 => "30 second",
45 => "45 second",
60 => "60 second"),
  $defaultPause, // default value
  1, // select size
  array('onchange' => 'reset_timer()', 'style' => 'font-size=10px;' ));
?>
    <script language="Javascript">
    /* show the blend select if appropriate */
    if (browserCanBlend) {
document.write(' Transition: <?
   print ereg_replace("\n", ' ', drawSelect("transitionType",
$transitionNames,
$defaultTransition,
1,
array('onchange' => 'change_transition()', 'style' => 'font-size=10px;')));
?>');
    }
    
    </script>
     Loop:<input type="checkbox" name="loopCheck" <?= ($defaultLoop) ? "checked" : "" ?> onclick='toggleLoop();'>
    </span>
    </td>
    <td width="1" bgcolor="<?= $borderColor ?>"><?= $pixelImage ?></td>
  </tr>
  <tr>
    <td colspan="3" bgcolor="<?= $borderColor ?>"><?= $pixelImage ?></td>
  </tr>
</table>

<br>
<div align="center">

<?
if ($photo_count > 0) {
?>

<table width=1% border=0 cellspacing=0 cellpadding=0>
  <tr bgcolor="<?=$borderColor?>">
    <td colspan=3 height=<?=$borderwidth?>><?=$pixelImage?></td>
  </tr>
  <tr>
    <td bgcolor="<?=$borderColor?>" width=<?=$borderwidth?>><?=$pixelImage?></td>
    <script language="JavaScript">
    document.write("<td><img border=0 src="+photo_urls[1]+" name=slide></td>");
    </script>
    <td bgcolor="<?=$borderColor?>" width=<?=$borderwidth?>><?=$pixelImage?></td>
  </tr>
  <tr bgcolor="<?=$borderColor?>">
    <td colspan=3 height=<?=$borderwidth?>><?=$pixelImage?></td>
  </tr>
</table>
<br>

<script language="Javascript">
/* show the caption */
document.write("<div class='desc' id='caption'></div>");

/* Load the first picture */
setCaption(photo_captions[1]);
preload_photo(1);

/* Start the show. */
play();

</script>

<?
} else {
?>

<br><b>This album has no photos to show in a slide show.</b>
<br><br>
<span class="admin">
<a href="<?=makeGalleryUrl("view_album.php",
               array("set_albumName" => $gallery->session->albumName))?>">[back to album]</a>
</span>

<?
}
?>

</div>
</form>

<? includeHtmlWrap("slideshow.footer"); ?>

<? if (!$GALLERY_EMBEDDED_INSIDE) { ?>
</body>
</html>
<? } ?>
« Last Edit: August 13, 2005, 07:09:02 AM by V@no »

Offline wishx

  • Newbie
  • *
  • Posts: 10
    • View Profile
[Mod] Slideshow
« Reply #3 on: December 30, 2002, 08:10:58 PM »
Does anyone want to handle this mod? :)

Offline wishx

  • Newbie
  • *
  • Posts: 10
    • View Profile
Please help.
« Reply #4 on: January 05, 2003, 02:32:22 PM »
Can anyone help with this? Please?

Offline wishx

  • Newbie
  • *
  • Posts: 10
    • View Profile
[Mod] Slideshow
« Reply #5 on: January 18, 2003, 11:05:16 PM »
My users and those of a couple other webmaster I've spoken with using 4images have requested this feature often. Can someone please help us make a slideshow mod that works?

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
Re: Please help.
« Reply #6 on: January 19, 2003, 01:25:41 AM »
Quote from: wishx
Can anyone help with this? Please?


Just an idea... why don't you try to play with <meta http-equiv="refresh" content="5;URL=next_image_url"> ? Please don't ask me how, if it doesn't work - forget it  :)

Offline Fugaziman

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • http://www.1024x768wallpapers.com
Slide Show Mod
« Reply #7 on: January 20, 2003, 06:44:55 PM »
Quote
Okay sorry for the confusion but there are now 3 versions of this slideshow mod available for you to choose.

V1) This one uses the file system to return a list of available images for a slideshow. So no database queries for this

V2) Uses the 4images database to return a list of images for the slideshow
    (available here http://www.4homepages.de/forum/viewtopic.php?p=20676#20676)

V3) A modification on V2 that allows you to use the slideshow with members LIGHTBOX/Albums
   (available here (http://www.4homepages.de/forum/viewtopic.php?p=22293#22293)

The choice is yours.
See Later post by me for latest version. V2 Uses the 4images DB to produce the slide show rather than just a Directory/Folder listing.
Though I'd leave this post as it was as some of you may prefer a file listing slideshow rather than another call to the Database. V2 also allows each image in the slide show to be clicked on as a link to it's Detals page.


I've managed to get a slide show working on my test site if your interested  :)

Be warned this is a long post

The way I've set it to work is...
1) You must be logged in (Not a Guest)

Somebody asked me how to let all visitors use the slide show not just registered users. So if you want all visitors to be able to use the slide show then  change the script in the categories.php from ...
Code: [Select]
if ($user_info['user_level'] >= USER) {
  $slideshow_url = $site_sess->url(ROOT_PATH."slideshow.php?action=slideshow&amp;".URL_CAT_ID."=".$cat_id);
  $slideshow_button = " <a href=\"".$slideshow_url."\"><img src=\"".get_gallery_image("slideshow.gif")."\" border=\"0\" alt=\"".$lang['alt_slideshow']."\" /></a>";
}
else {
  $slideshow_button = " <img src=\"".get_gallery_image("slideshow_off.gif")."\" border=\"0\" alt=\"".$lang['alt_slideshow_off']."\" />";
}  

to

Code: [Select]

$slideshow_url = $site_sess->url(ROOT_PATH."slideshow.php?action=slideshow&amp;".URL_CAT_ID."=".$cat_id);
$slideshow_button = " <a href=\"".$slideshow_url."\"><img src=\"".get_gallery_image("slideshow.gif")."\" border=\"0\" alt=\"".$lang['alt_slideshow']."\" /></a>";


2) It's only available from the Categories page when Images are available.

Note I'm no PHP expert, in fact I've only started to use it since I got 4images (Great scripting by the way, just what I was looking for) so use it at your own risk. It also uses Javascipt and may not run correctly if you have other Javascript in your pages.

Functions include....
1) Play button
2) Stop button
3) Manual Forwards or Backward button
4) Manual First Image and Last image

So Here it is then....

*** Step 1  :arrow: *********************************************************************

1) Create a new PHP file called slideshow.php in the ROOT directory.
Here's my code...
Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: slideshow.php                                        *
 *        Copyright:                                   *
 *            Email:                                        *
 *              Web:                                *
 *    Scriptversion: 1.7                                                  *
 *                                                                        *
 *                                                                        *
 *************************************************************************/

$templates_used 'slideshow';
$main_template 'slideshow';

define('GET_CACHES'1);
define('ROOT_PATH''./');
define('MEDIA_DIR''data/media');
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');
$user_access get_permission();
include(
ROOT_PATH.'includes/page_header.php');


if (!
$cat_id || !isset($cat_cache[$cat_id]) || !check_permission("auth_viewcat"$cat_id)) {
 
 header("Location: ".$site_sess->url(ROOT_PATH."index.php""&"));
 
 exit;
}

if (
$action == "slideshow") {

$txt_clickstream "";
 
 if ($cat_id && isset($cat_cache[$cat_id])) {
 
   $txt_clickstream .= get_category_path($cat_id1).$config['category_separator'];
}
}

$slideshow_id $cat_id;
$slideshow_id MEDIA_DIR."/".$slideshow_id."/";
$main_template 'slideshow';
$file_array "";
$random_cat_image = (defined("SHOW_RANDOM_IMAGE") && SHOW_RANDOM_IMAGE == 0) ? "" get_random_image($cat_id);

$countit 0;
$file_array "theimage[0]=[' ','";
$mydir opendir($slideshow_id) ;
$exclude = array("mp3","php","gif") ;
while(
$fn readdir($mydir))

if (stristr($fn,$exclude[0]) ||stristr($fn,$exclude[1]) ||stristr($fn,$exclude[2]) || strlen($fn)< ) continue;
$countit $countit 1;
$file_array $file_array."".$slideshow_id."".$fn"',' ']; theimage[".$countit."]=[' ','";

}

closedir($mydir);

$file_array substr("$file_array"0, -19); 
if (
$countit == 0) {
$msg "There are no images available for the slideshow. Please try another category";
}

//echo "$file_array";

//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].$txt_clickstream."</span>";

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
 
 "file_array" => $file_array,
 
 "slideshow_id" => $slideshow_id,
 
 "random_cat_image" => $random_cat_image,
 
 "msg" => $msg,
 
 "countit" => $countit,
 
 "clickstream" => $clickstream,
 
 "lang_control_panel" => $lang['control_panel']
));

unset(
$random_cat_image);
unset(
$file_array);
unset (
$countit);

$site_template->print_template($site_template->parse_template($main_template));
include(
ROOT_PATH.'includes/page_footer.php');
?>


*** Step 2  :arrow: *********************************************************************

2) Create a template file called slideshow.html in your Template directory
Here's the code....
Code: [Select]
{header}

{if countit}
<script type="text/javascript" language="JavaScript1.2" src="./scripts/slide.js"></script>
<SCRIPT LANGUAGE="JavaScript">
theimage = new Array();
{file_array}
</SCRIPT>
{endif countit}

<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="bordercolor">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td class="tablebgcolor">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="navbar" height="23">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" width="50%">
<img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" /><font class="navtxt">{clickstream}</font>
</td>
</td>
<td align="right" width="50%">
<a href="{url_top_images}"><font class="navtxt">{lang_top_images}</font></a>&nbsp;
<a href="{url_new_images}"><font class="navtxt">{lang_new_images}</font></a>&nbsp;&nbsp;
</td>
</tr>
</table>
</td>
</tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150" class="row2" valign="top">
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="head2" height="20"><img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_registered_user}</td>
</tr>
<tr>
                  <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                  </tr>
                  <tr>
                  <td align="center" class="row1">{user_box} </td>
                  </tr>
                  <tr>
                  <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                  </tr>
                  </table>
{if random_cat_image}
                  <table width="150" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                  <td class="head2" height="20"> <img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_random_image}</td>
                  </tr>
                  <tr>
                  <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                  </tr>
                  <tr>
                  <td align="center" class="row1"><br />
{random_cat_image}
                  <br /><br />
                  </td>
                  </tr>
                  <tr>
                  <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                  </tr>
                  </table>
{endif random_cat_image}
                  <p align="center">
                  <?php
                    echo date
("d.m.Y, H:i"); 
  ?>

                  </p>

                  <br />
                 </td>
                 <td width="1" class="bordercolor" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                 <td width="18" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="18" height="18" /></td>
                 <td width="100%" valign="top"><br />
                  {if msg} <b> {msg} </b><br />
                    <br />
                    {endif msg}
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                  <td class="head1"><br>
{if countit}
<FORM NAME="slideshow">
<DIV ALIGN="CENTER">
<TABLE border=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR="black">
<TR>
<TD ALIGN=CENTER>
<TABLE border=0 CELLPADDING=2 CELLSPACING=1>
<TR>
<TD ALIGN=CENTER BGCOLOR="white">
<A HREF="#" onmouseover="this.href=theimage[i][2];return false"><SCRIPT>document.write('<IMG NAME="slideimage"  STYLE="filter:'+transtype+'('+transattributes+');" SRC="'+theimage[0][1]+'" BORDER=0>')</SCRIPT></A>
</TD>
</TR>
<TR>
<TD ALIGN=CENTER BGCOLOR="#DDDDDD">
<A HREF="javascript:slideImage(0);" onfocus="this.blur()"><IMG SRC="{template_url}/images/a1.jpg" WIDTH="30" HEIGHT="25" BORDER=0 ALT="To Start"></A>
<A HREF="javascript:slideImage(i-1);" onfocus="this.blur()"><IMG SRC="{template_url}/images/a2.jpg" WIDTH="30" HEIGHT="25" BORDER=0 ALT="Previous Image"></A>
<A HREF="javascript:slidePlay();" onfocus="this.blur()"><IMG SRC="{template_url}/images/a3.jpg" WIDTH="55" HEIGHT="25" BORDER=0 ALT="AutoPlay" NAME="imgPlay"></A>
<A HREF="javascript:slideImage(i+1);"onfocus="this.blur()"><IMG SRC="{template_url}/images/a5.jpg" WIDTH="30" HEIGHT="25" BORDER=0 ALT="Next Image"></A>
<A HREF="javascript:slideImage(theimage.length-1);"onfocus="this.blur()"><IMG SRC="{template_url}/images/a6.jpg" WIDTH="30" HEIGHT="25" BORDER=0 ALT="To End"></A>
<SCRIPT>imgStop=new Image().src='{template_url}/images/a4.jpg';</SCRIPT> </TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</DIV>
</FORM>
{endif countit}
</td>
                 </tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
<td> {category_dropdown_form}</td>
<td align="right">&nbsp;</td>
</tr>
        </table>
        <p>&nbsp;</p>
</td>
<td width="19" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="19" height="19" /></td>
</tr>
</table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
    </td>
  </tr>
</table>
{if countit}

<SCRIPT language="javascript">

with(document){
i=0,play=0,di=images,dl=links,form=slideshow,til=theimage.length
}

slideImage(0);
</SCRIPT>

{endif countit}
{footer}




*** Step 3  :arrow: *********************************************************************

3) Create a javascript file called slide.js in a ROOT/scripts directory

Here's the code...

Code: [Select]
// Configurable Variables
playspeed=5000;// The playspeed determines the delay for the "Play" button in ms
dotrans=1; // if value = 1 then there are transitions played in IE
transtype='blendTrans';// 'blendTrans' or 'revealtrans'
transattributes='duration=1,transition=23';// duration=seconds,transition=#<24
randomorder=0;
linksperline=4; // For the text links
playdiffernce=500; // The speed that the autplay speed is changed by
autostart=1;
preloadslides=0;

// Add extra functions between the brackets if you need other functions that require the onload
window.onload=function(){
if(window.preloadslides)preloadSlide();if(window.autostart)slidePlay();
}

// NS4 resize handler
window.onresize=function(){
if(document.layers)this.location=this.location;
}

function slideImage(num) {
// Required Script
i=num%til;if(i<0)i=til-1;
if(document.all&&dotrans==1)eval('di.slideimage.filters.'+transtype+'.apply()')
di.slideimage.src=theimage[i][1];
if(document.all&&dotrans==1)eval('di.slideimage.filters.'+transtype+'.play()')
// Plug-in handlers
if(form.theimages)form.theimages.selectedIndex = i;
if(form.slidebox)form.slidebox.value = theimage[i][0];
if(form.slidecount)form.slidecount.value = "Image "+(i+1)+" of "+til;
if(form.slidespeed)doSpeed(0);}

function slidePlay() {
if (!window.playing) {
slidePlaying(i+1);
if(form.play)form.play.value="   Stop   ";}
else {playing=clearTimeout(playing);
if(form.play)form.play.value="   Play   ";}
if(di.imgPlay){
setTimeout('di.imgPlay.src="'+imgStop+'"',1);imgStop=di.imgPlay.src}
}

function slidePlaying(num) {
playing=setTimeout('slidePlaying(i+1);slideImage(i+1);', playspeed);}

*** Step 4  :arrow: *********************************************************************

4) Okay you've created the new files now you need to update existing 4images files so be careful and make a backup of the files you edit first.

Make a backup copy of categories.php
Here's my code - If you've made changes to your categories.php before compare the to and add my changes.
Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: categories.php                                       *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7                                                  *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

$templates_used 'categories,category_bit,thumbnail_bit';
$main_template 'categories';

define('GET_CACHES'1);
define('ROOT_PATH''./');
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');
$user_access get_permission();
include(
ROOT_PATH.'includes/page_header.php');

if (!
$cat_id || !isset($cat_cache[$cat_id]) || !check_permission("auth_viewcat"$cat_id)) {
 
 header("Location: ".$site_sess->url(ROOT_PATH."index.php""&"));
 
 exit;
}

//-----------------------------------------------------
//--- Show Categories ---------------------------------
//-----------------------------------------------------
if (!check_permission("auth_upload"$cat_id)) {
 
 $upload_url "";
 
 $upload_button "<img src=\"".get_gallery_image("upload_off.gif")."\" border=\"0\" alt=\"".$lang['alt_upload_off']."\" />";
}
else {
 
 $upload_url $site_sess->url(ROOT_PATH."member.php?action=uploadform&amp;".URL_CAT_ID."=".$cat_id);
 
 $upload_button "<a href=\"".$upload_url."\"><img src=\"".get_gallery_image("upload.gif")."\" border=\"0\" alt=\"".$lang['alt_upload']."\" /></a>";
}


//-----------------------------------------------------
//--- Slide Show changes starts here          ---------
//-----------------------------------------------------

if ($user_info['user_level'] >= USER) {
 
 $slideshow_url $site_sess->url(ROOT_PATH."slideshow.php?action=slideshow&amp;".URL_CAT_ID."=".$cat_id);
 
 $slideshow_button " <a href=\"".$slideshow_url."\"><img src=\"".get_gallery_image("slideshow.gif")."\" border=\"0\" alt=\"".$lang['alt_slideshow']."\" /></a>";
}
else {
 
 $slideshow_button " <img src=\"".get_gallery_image("slideshow_off.gif")."\" border=\"0\" alt=\"".$lang['alt_slideshow_off']."\" />";
 

$num_rows_all 
= (isset($cat_cache[$cat_id]['num_images'])) ? $cat_cache[$cat_id]['num_images'] : 0;

 if (
$num_rows_all 0 {
 
 $random_cat_image = (defined("SHOW_RANDOM_IMAGE") && SHOW_RANDOM_IMAGE == 0) ? "" get_random_image($cat_id);
 
 $site_template->register_vars(array(
 
 "categories" => get_categories($cat_id),
 
 "cat_name" => htmlspecialchars($cat_cache[$cat_id]['cat_name']),
 
 "cat_description" => $cat_cache[$cat_id]['cat_description'],
 
 "cat_hits" => $cat_cache[$cat_id]['cat_hits'],
 
 "upload_url" => $upload_url,
 
 "upload_button" => $upload_button,
 
 "slideshow_url" => $slideshow_url,
 
 "slideshow_button" => $slideshow_button,
 
 "random_cat_image" => $random_cat_image
));
}
else {

$random_cat_image = (defined("SHOW_RANDOM_IMAGE") && SHOW_RANDOM_IMAGE == 0) ? "" get_random_image($cat_id);
$site_template->register_vars(array(
 
 "categories" => get_categories($cat_id),
 
 "cat_name" => htmlspecialchars($cat_cache[$cat_id]['cat_name']),
 
 "cat_description" => $cat_cache[$cat_id]['cat_description'],
 
 "cat_hits" => $cat_cache[$cat_id]['cat_hits'],
 
 "upload_url" => $upload_url,
 
 "upload_button" => $upload_button,
 
 "random_cat_image" => $random_cat_image
));
}
//-----------------------------------------------------
//--- Slide Show changes ends here            ---------
//-----------------------------------------------------
unset($random_cat_image);

//-----------------------------------------------------
//--- Show Images -------------------------------------
//-----------------------------------------------------
$num_rows_all = (isset($cat_cache[$cat_id]['num_images'])) ? $cat_cache[$cat_id]['num_images'] : 0;
$link_arg $site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id);

include(
ROOT_PATH.'includes/paging.php');
$getpaging = new Paging($page$perpage$num_rows_all$link_arg);
$offset $getpaging->get_offset();

$site_template->register_vars(array(
 
 "paging" => $getpaging->get_paging(),
 
 "paging_stats" => $getpaging->get_paging_stats()
));

$imgtable_width ceil((intval($config['image_table_width'])) / $config['image_cells']);
if ((
substr($config['image_table_width'], -1)) == "%") {
 
 $imgtable_width .= "%";
}

$additional_sql "";
if (!empty(
$additional_image_fields)) {
 
 foreach ($additional_image_fields as $key => $val) {
 
   $additional_sql .= ", i.".$key;
 
 }
}

$sql "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.""user_name").
        FROM "
.IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c 
        LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = i.user_id) 
        WHERE i.image_active = 1 AND i.cat_id = 
$cat_id AND c.cat_id = i.cat_id 
        ORDER BY "
.$config['image_order']." ".$config['image_sort'].
        LIMIT 
$offset$perpage";
$result $site_db->query($sql);
$num_rows $site_db->get_numrows($result);

if (!
$num_rows {
 
 $thumbnails "";
 
 $msg $lang['no_images'];
}
else {
 
 $thumbnails "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">\n";
 
 $count 0;
 
 $bgcounter 0;
 
 while ($image_row $site_db->fetch_array($result)){
 
   if ($count == 0) {
 
     $row_bg_number = ($bgcounter++ % == 0) ? 2;
 
     $thumbnails .= "<tr class=\"imagerow".$row_bg_number."\">\n";
 
   }
 
   $thumbnails .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n";

 
   show_image($image_row);
 
   $thumbnails .= $site_template->parse_template("thumbnail_bit");
 
   $thumbnails .= "\n</td>\n";

 
   $count++;
 
   if ($count == $config['image_cells']) {
 
     $thumbnails .= "</tr>\n";
 
     $count 0;
 
   }
 
 // end while

 
 if ($count 0 {
 
   $leftover = ($config['image_cells'] - $count);
 
   if ($leftover 0) {
 
     for ($i 0$i $leftover$i++){
 
       $thumbnails .= "<td width=\"".$imgtable_width."\">\n&nbsp;\n</td>\n";
 
     }
 
     $thumbnails .= "</tr>\n";
 
   }
 
 }
 
 $thumbnails .= "</table>\n";
//end else
$site_template->register_vars("thumbnails"$thumbnails);
unset(
$thumbnails);

//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].get_category_path($cat_id)."</span>";

//Update Category Hits
if ($user_info['user_level'] != ADMIN && $page == 1) {
 
 $sql "UPDATE ".CATEGORIES_TABLE.
          SET cat_hits = cat_hits + 1 
          WHERE cat_id = 
$cat_id";
 
 $site_db->query($sql);
}

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
 
 "msg" => $msg,
 
 "clickstream" => $clickstream
));

$site_template->print_template($site_template->parse_template($main_template));
include(
ROOT_PATH.'includes/page_footer.php');
?>

*** Step 5  :arrow: *********************************************************************
Make a copy of your template categories.html file
Edit categories.html and change this line
Code: [Select]
<td align="right" valign="bottom">{upload_button}</td>
to this
Code: [Select]
<td align="right" valign="bottom">{upload_button}{slideshow_button}</td>
*** Step 6  :arrow: *********************************************************************

If you use Alt tags on your buttons then make a copy of your language file main.pnp
and add the following lines...
Code: [Select]
$lang['alt_slideshow']     = "Click here for category Slide Show";
$lang['alt_slideshow_off']    = "You must be logged in to view Slide Show";

*** Step 7  :arrow: *********************************************************************

You need slideshow buttons for your controls and one similar to the upload button.
You can get a copy of the ones I use from:-

http://www.itwosolutions.com/temp_store/slideshow_images.zip

Place these images in the template_url/images directory.

*** That's it I think  :!: ***************************************************

I will try to answer any questions you have but I'm very busy so be patient if I can't get back to you quickly.
Good luck and remember to back up your files before making any changes.

Good luck  :wink:
Code: [Select]
Code: [Select]
Quote
« Last Edit: August 13, 2005, 07:09:34 AM by V@no »
Please take time to visit us at ...
http://www.1024x768wallpapers.com
And don't forget to leave a comment or message.

Offline wishx

  • Newbie
  • *
  • Posts: 10
    • View Profile
[Mod] Slideshow
« Reply #8 on: January 21, 2003, 03:46:24 AM »
Fugaziman: Thanks SO much for your initiative and assistance. Can you post a link to your gallery so I can see how it works first hand before undertaking my own editing process?

Thanks again!
WishX

Offline Fugaziman

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • http://www.1024x768wallpapers.com
[Mod] Slideshow
« Reply #9 on: January 21, 2003, 03:33:43 PM »
Hello WishX

You can get to my family website site at
http://www.newman.d2g.com/index.php

Just a note: I updated the script yesterday to handle categories with no images and to exclude certain file types eg. "php","mp3","gif"
These values are set in the slideshow.php

I have amended the code in my previous message.

Remember you have to be a registered user to use the slideshow.
Thanks
Please take time to visit us at ...
http://www.1024x768wallpapers.com
And don't forget to leave a comment or message.

Offline gato2k

  • Pre-Newbie
  • Posts: 7
    • View Profile
[Mod] Slideshow
« Reply #10 on: January 22, 2003, 07:52:25 AM »
Hi Fugaziman
I just visited ur gallery and see that there is a news archive and the gallery is organized by buttons instead of "/". Can you tell me which mod to do these?Thanks.

Offline Fugaziman

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • http://www.1024x768wallpapers.com
[Mod] Slideshow
« Reply #11 on: January 22, 2003, 03:53:33 PM »
Hello gato2k,

Have sent you a private message with the answers to your questions.

Thanks for visiting my site  8)
Please take time to visit us at ...
http://www.1024x768wallpapers.com
And don't forget to leave a comment or message.

Offline jengwen

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
    • http://www.jenrichardsphotography.com
move to other mod forum
« Reply #12 on: January 25, 2003, 06:30:13 PM »
Could someone move this mod to the other mod forum?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[Mod] Slideshow
« Reply #13 on: February 04, 2003, 05:29:53 AM »
have anyone tryed this mod?
well, I cant get it to work, I think there is one file is missing.
from template calls some slide_newman.php
did I miss something?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Maweryk

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
[Mod] Slideshow
« Reply #14 on: February 04, 2003, 12:36:52 PM »
Delete the line
Code: [Select]
<?php include&#40;"slide_newman.php"&#41;; ?>
and everything works fine.

CU

Markus