• [Mod] Slideshow 4 0 5 1
Currently:  

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

0 Members and 1 Guest are viewing this topic.

Offline Fugaziman

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • http://www.1024x768wallpapers.com
Here's the answer
« Reply #60 on: May 17, 2003, 06:23:38 PM »
I think this will do it...

Make a backup copy of  ./templates/your_templates/slideshow.html
Edit your ./templates/your_templates/slideshow.html

You want to remove several items...
{random_cat_image} - This bit show your random Image
{user_box} - shows the login box
{category_dropdown_form} - show the drop down list box
{setperpage_dropdown_form} - shows images per page drop down list box

If you remove these it should clean up your page as requested.
Just be careful when removing these that the format of your page doesn't change to much. Do one thing at a time and check. You may need to play with your html to get it set out as you want it.

Hope that helps
Fugaziman
Please take time to visit us at ...
http://www.1024x768wallpapers.com
And don't forget to leave a comment or message.

Offline redhead_tn

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [Mod] Slideshow
« Reply #61 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 -------------------------------------
//-----------------------------------------------------

Offline DirtyCycloN

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [Mod] Slideshow
« Reply #62 on: March 24, 2005, 08:17:12 PM »
jo ich hab den gleichen fehler bei 4images 1.71 ... wäre kewl wenn jemand den code daran anpassen könnte ... thx

Offline theolbap

  • Full Member
  • ***
  • Posts: 118
  • Search Google "AH"
    • View Profile
Re: [Mod] Slideshow
« Reply #63 on: September 07, 2006, 12:18:57 AM »
plase help

An unexpected error occured. Please try again later.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /www/docs/ahmira.com.ar/public_html/includes/db_mysql.php on line 116

 :x

zaine68

  • Guest
Re: [Mod] Slideshow
« Reply #64 on: November 15, 2006, 09:45:58 PM »
I dont suppose any one has the image zip file some where do they that they can post please?

I'm just trying to get this mod programmed in and get a blank slideshow page so far but will keep looking. If i cant solve it then i'll come back and ask for help.

Cheers in advance.

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: [Mod] Slideshow
« Reply #65 on: January 07, 2007, 11:18:13 AM »
Hi,

have integrate the slideshow in the lightbox and works fine.

One question:
At the moment it is only possble to view the slideshow when i was logged in

Is it possible to view the slideshow when i was logged out  :?:
Search the lightbox images over the user_id

Link like :
www.my-domain.de/slideshow.php?action=slideshowlightbox&user_id=1

Thanks for your help...



cu
Kurt

Offline rangitoto

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [Mod] Slideshow
« Reply #66 on: February 14, 2007, 09:08:01 PM »
GERMAN:
---------------------------------------------------------------------
Hallo zusammen

Ich habe mir die Slideshow 2 (1.3) installiert (4images 1.7.3).

Die Anweisungen habe ich genau befolgt und nochmals kontrolliert.
Nach der Installation war meine 4images-Galerie nicht mehr abrufbar (leerer Bildschirm).

Ich habe nun alles rückgängig gemacht, leider komme ich nicht mehr auf die Site.....
Slideshow ist nun nicht mehr meine 1. Priorität...ich hätte einfach gerne meine Galerie zurück!!

Irgendwelche Ideen???? 
Danke!


ENGLISH:
---------------------------------------------------------------------
Hi all
I've installed slideshow 2 (1.3) for 4images (1.7.3).

I made all necessary settings precisely.
After install I wasn't able to connect to my gallery (empty screen).

I've rebuilt all scripts and settings, but still no contact to my site....
Slideshow isn't my first priority now...I just want my old gallery back!!

Any ideas????
Thanks!

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: [Mod] Slideshow
« Reply #67 on: February 28, 2007, 02:54:09 PM »
Hallo,

ein Link zur Page wäre vielleicht hilfreich.

Da laut deiner Aussage nach dem rebuild noch nichts läuft, musst du was übersehen haben.

Gruß
Kurt

Offline liberty

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [Mod] Slideshow
« Reply #68 on: August 12, 2009, 04:12:44 PM »
 :oops:
Hallo @all, vielleicht bin ich ja zu blöd, aber ich bekomme keine der Slideshows zum laufen.. :cry: :cry:

Gibt es irgendwo eine fertigen download, der nur in die verzeichnisse zu stellen ist und fertig?? Vielleicht ist ja auch ein user so nett und stellt mir die geänderten dateien zur verfügung. das wäre super geil.......



thx schon mal

rinaldos

  • Guest
Re: [Mod] Slideshow
« Reply #69 on: August 12, 2009, 05:06:31 PM »
Ich bin gerade an einer Slideshow dran. Die ersten Gehversuche kann man hier sehen. Ich werde diesen MOD mit einem von Rembrandt kombinieren, damit auch ein wenig Hintergrundgedudel abgespielt wird :-)

http://rinaldos.homeip.net/cat287.htm?l=deutsch

Gruß
Ingo

Offline liberty

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [Mod] Slideshow
« Reply #70 on: August 13, 2009, 03:07:30 AM »
@rinaldos

wie hast du das gemacht? so wie es in deinem Link ist, würde es mir absolut reichen. WIE GEHT DAS ???? kannst du mir das verraten? was muss ich wie ändern und oder hinzufügen?

Gruß liberty

Offline wasimkhan

  • Newbie
  • *
  • Posts: 14
    • View Profile
Error Repor
« Reply #71 on: September 25, 2010, 05:53:34 AM »
i Install but it gives me some error
DB Error: Bad SQL Query: 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, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id = 23 AND c.cat_id = i.cat_id ORDER BY image_name ASC LIMIT 0, 25
Unknown column 'i.user_id' in 'on clause'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in includes\db_mysql.php on line 116.

plz help me to solve this

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Re: [Mod] Slideshow
« Reply #72 on: October 01, 2010, 11:05:15 PM »
Try to change this

in /categories find:
$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 i.image_name" 
;



Replace:
$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
        FROM "
.IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c
        WHERE i.image_active = 1 AND i.cat_id = 
$cat_id AND c.cat_id = i.cat_id
        ORDER BY i.image_name"
;


This is good MOD. But i recommended to you try to use this: http://www.4homepages.de/forum/index.php?topic=26815.msg151191#msg151191
« Last Edit: October 01, 2010, 11:38:50 PM by MrAndrew »