Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - redhead_tn

Pages: [1]
1
Is there an uploading tool / hack / mod / plugin for publishing photos from a mac?  (like the windows XP registry settings that allow you to publish from explorer?)

2
Mods & Plugins (Releases & Support) / Re: Flash Slideshow
« on: May 17, 2005, 11:41:47 PM »
Excellent!  I've been wanting a decent slideshow option for my 4images installations -- and this works perfectly.  I thought I would post a quickie instructions for a successful installation (it works in both IE and Firefox). 

(1)   Download the files from VANO.  http://gallery.vano.org/file67dl

(2)   Extract the zip file.

(3)   Upload flashshow.php, slideshow4.fla, and slideshow4.swf to your root 4images folder.

(4)   Upload flash.html to your templates folder.

(5)   Open categories.php (found in your root 4images folder).   Find

Code: [Select]
$site_template->register_vars("thumbnails", $thumbnails);
unset($thumbnails);

Add the following code ABOVE that. 

Code: [Select]
//-----------------------------------------------------
//--- Slideshow Additiions BEGINS-------------------------------------
//-----------------------------------------------------

$flashshow_url = $site_sess->url(ROOT_PATH."flashshow.php?action=flashshow&".URL_CAT_ID."=".$cat_id);
$flashshow_button = "<A HREF=\"#\" onClick=\"window.open('".$flashshow_url."','_blank','toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=640, height=480');return(false)\">View Slideshow of Images</a>";


$site_template->register_vars(array(
  "flashshow_url" => $flashshow_url,
  "flashshow_button" => $flashshow_button
  ));
 
  //-----------------------------------------------------
//--- Slideshow Additions END -------------------------------------
//-----------------------------------------------------

(6) Save the changes and upload your new categories.php.

(7) Open main.php (found in lang folder).  At the end, right before ?> add this:

Code: [Select]
//-----------------------------------------------------
//--- Slideshow -------------------------------------
//-----------------------------------------------------
$lang['slideshow'] = "Slideshow";

( 8 ) Save and upload your new main.php

(9)   Open categories.html (found in templates)

Where you want the Slideshow link to appear - add the following code:

Code: [Select]
{flashshow_button}

(10)  Save and upload your new categories.html

That's it!  It works perfectly -- no problems whatsover in any of the browsers I tested it in. 

3
worked "right out the box" ... thanks

using with 4images 1.7

4
Mods & Plugins (Releases & Support) / Re: [Mod] Slideshow
« on: March 16, 2005, 09:40:47 PM »
Anyone still working on this? 

I'm trying to use this with 4images 1.7

and I get this error -- it's related to the categories.php mods, when I remove those -- no error (but of course the slideshow doesn't work either).

Code: [Select]
Parse error: parse error, unexpected '}' in /home/students/public_html/photos/categories.php on line 58

the changed code in categories.php looks like this:

Code: [Select]
//-----------------------------------------------------
//--- Show Categories ---------------------------------
//-----------------------------------------------------
if (!check_permission("auth_upload", $cat_id)) {
  $upload_url = "";
  $upload_button = "<img src=\"".get_gallery_image("upload_off.gif")."\" border=\"0\" alt=\"\" />";
}
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=\"\" /></a>";
}


//-----------------------------------------------------
//--- Begin SlideShow Change -------------------------------------
//-----------------------------------------------------
$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=\"\" /></a>";

}
 $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
));

//-----------------------------------------------------
//--- End SlideShow Change -------------------------------------
//-----------------------------------------------------

unset($random_cat_image);

//-----------------------------------------------------
//--- Show Images -------------------------------------
//-----------------------------------------------------

Pages: [1]