News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Highslide Image Viewer

Started by digger, October 07, 2008, 09:37:35 PM

Previous topic - Next topic

fals

Quote from: Ratz on October 22, 2008, 06:34:58 PM
Is it possible to make Highslide Viewer work along with another mod called "Attachment Layout 1.3"?
No problem, tjeck out my forum http://www.fg-forum.dk/smf/index.php?topic=25035.0

My Display.template.php around the "Show the images"

   //show the images
   foreach ($message['attachment'] as $attachment)
   {
    if ($attachment['is_image'])
    {
     if ($attachment['thumbnail']['has_thumb'])
     {
      echo '
         <a href="', $attachment['href'], ';image" class="highslide" rel="highslide" id="link_', $attachment['id'], '"  target="_blank"><img style="margin:2px;" src="', $attachment['thumbnail']['href'], '" align="middle" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><div class="highslide-heading">' , $message['subject'] , '</div>';
     }
     else
     {
      echo '
         <a href="', $attachment['href'], ';image" class="highslide" rel="highslide" id="link_', $attachment['id'], '"  target="_blank"><img  src="' . $attachment['href'] . ';image"  align="middle" alt="" width="' . $attachment['width'] . '" height="' . $attachment['height'] . '" border="0" /><div class="highslide-heading">' , $message['subject'] , '</div></a>';
     }
    }
   }






500fan.dk - SMF 2.0 ~ custom theme
ls-forum.dk - SMF 2.0.2 ~ custom theme and custom iPhone theme

AlenNS

Is there any way I could put Watermark on all pictures on my forum with HS mod?

Ratz

#122
Quote from: fals on October 23, 2008, 09:18:35 AM
Quote from: Ratz on October 22, 2008, 06:34:58 PM
Is it possible to make Highslide Viewer work along with another mod called "Attachment Layout 1.3"?
No problem, tjeck out my forum hxxp:www.fg-forum.dk/smf/index.php?topic=25035.0 [nonactive]

My Display.template.php around the "Show the images"

Thanks fals. I'll give it a go.... WOW! that was just way too easy. I knew it had to be something like that but I was making it way more complicated for myself that it needed to be. I'm php challenged obviously.

Thanks again for the fix and the lesson.
Ratz

digger

Quote from: AlenNS on October 23, 2008, 09:20:35 AM
Is there any way I could put Watermark on all pictures on my forum with HS mod?
No

AlenNS


jdizine

#125
For some reason I see this in some posts:


I deleted the mod that I had just installed "Highslide Image Viewer" and it got rid of some of the double texts but not all.
Any help???
Could I just reupload the default theme "Core" and it get rid of all of the mod?
EDIT: I just reupped the affected files and it got fixed.



jayc7176

#126
WOW!!! i ve been looking for something like this for a long time.
It is very nicely Done overall !works great.  many many  Thanks mate. !

2 suggestions - is its possible maybe put the String to remove - Pic address from the bottom in the First post

Also add the support for smf gallery code there as well all on one page :)  will help many folks :)

thnx for your contributions to the community again :)

@fals 
hey mate what did u do - to make the attatchments show up that big? many thanks ..
I cannot teach anybody anything, I can only make them think -  Socrates™ 469 BC

SMF- 1.1.5

fals

Quote from: jayc7176 on November 01, 2008, 10:28:17 AM
@fals 
hey mate what did u do - to make the attatchments show up that big? many thanks ..
Do you mean the size of the attachment thumbnail or the highslide popup?
Thumbnail size: Admin - Attachments and Avatars - Attachments and Avatars

I havent done anything about the highslide size, its all automatic






500fan.dk - SMF 2.0 ~ custom theme
ls-forum.dk - SMF 2.0.2 ~ custom theme and custom iPhone theme

jayc7176

Thnx for the reply.. Fals.. i changed the Size @ admin and then attatchments & Avatars .. works great :)

I cannot teach anybody anything, I can only make them think -  Socrates™ 469 BC

SMF- 1.1.5

Sabre™

I kept getting a 404 error stating that  highslide.english.js  could not be found.
But there is no such file anyway ???

Queried sql expecting the result to show me where the original error is located, but no, it showed the exact same error.

Do you know why it is calling for this file that doesnt exist?
I temporarily fixed the issue by making a duplicate of highslide.js and renaming it.
Any advice/info would be greatly appreciated.

Thanks :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Neons

#130
Any directions on how to make this work with SMF Media Gallery?
A direct link from the media gallery looks like this:
http://chanzi.be/MGalleryItem.php?id=83
I can PM you account info for the site if needed

EDIT: Where are the admin options? :/

ziddy123

Quote from: neon401 on November 03, 2008, 03:59:38 PM
Any directions on how to make this work with SMF Media Gallery?
A direct link from the media gallery looks like this:
http://chanzi.be/MGalleryItem.php?id=83 [nofollow]
I can PM you account info for the site if needed

EDIT: Where are the admin options? :/

This would be amazing.  Its what I'm looking for also.

digger

Quote from: neon401 on November 03, 2008, 03:59:38 PM
Any directions on how to make this work with SMF Media Gallery?
I will try to do something.
Quote
EDIT: Where are the admin options? :/
Will be in a next version.

Neons

Quote from: digger on November 03, 2008, 05:29:53 PM
Quote from: neon401 on November 03, 2008, 03:59:38 PM
Any directions on how to make this work with SMF Media Gallery?
I will try to do something.
Quote
EDIT: Where are the admin options? :/
Will be in a next version.

Wonderful, thank you very much :)

ziddy123

Quote from: digger on November 03, 2008, 05:29:53 PM
Quote from: neon401 on November 03, 2008, 03:59:38 PM
Any directions on how to make this work with SMF Media Gallery?
I will try to do something.
Quote
EDIT: Where are the admin options? :/
Will be in a next version.

Hey for update.  How Media works if you want to post a thumb or a preview is you add ;preview or ;thumb at the end of the line.  So with previous example would be:
[img]http://chanzi.be/MGalleryItem.php?id=83;preview[/img]
[img]http://chanzi.be/MGalleryItem.php?id=83;thumb[/img]


Hope that helps.  With these two mods working together be a dream.

ziddy123

For integrating Highslide with SMF Gallery Lite, there was a problem.

Since there is no title in the category view, became impossible to click on the picture to view its info and stuff.  Here is a modifcation.

It Displays the title of the Image under the thumbnail and can be clicked to view its info.

echo '<td align="center"><a href="' . $modSettings['gallery_url'] . $row['filename'] . '" class="highslide" rel="highslide">
<img ' . ($GD_Installed == true ?  'src="' . $modSettings['gallery_url'] . $row['thumbfilename'] . '" ' : 'src="' . $modSettings['gallery_url'] . $row['filename'] . '" height="78" width="120" ')  . ' border="0" alt="' .  '<a href=\'' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '\'>[Detail]</a>' . '" /></a><br />';
echo '<div class="highslide-heading">' , @$context['gallery_cat_name'] , '</div>';
echo '<span class="smalltext"><a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '">' . $row['title'] . '</a><br />';


Hope that helps some people

Neons


jayc7176

thanks for this great Mod Digger and all your hard work keeping it updated :) One of my Fav Mods!
I cannot teach anybody anything, I can only make them think -  Socrates™ 469 BC

SMF- 1.1.5

digger

Quote from: neon401 on November 09, 2008, 06:54:51 PM
Quote from: digger on November 03, 2008, 05:29:53 PM
Quote from: neon401 on November 03, 2008, 03:59:38 PM
Any directions on how to make this work with SMF Media Gallery?
I will try to do something.
Any progress on this?  :)

http://custom.simplemachines.org/mods/index.php?mod=1365
Main Features (New v1.5 features are marked in red)
...
Highslide animated transitions with per-album settings

Neons

Quote from: digger on November 14, 2008, 03:13:12 PM
Quote from: neon401 on November 09, 2008, 06:54:51 PM
Quote from: digger on November 03, 2008, 05:29:53 PM
Quote from: neon401 on November 03, 2008, 03:59:38 PM
Any directions on how to make this work with SMF Media Gallery?
I will try to do something.
Any progress on this?  :)

http://custom.simplemachines.org/mods/index.php?mod=1365
Main Features (New v1.5 features are marked in red)
...
Highslide animated transitions with per-album settings
SMF Media Gallerys Highslide only works inside the gallery itself :(

Advertisement: