Advertisement:

Author Topic: Highslide Image Viewer  (Read 264178 times)

Offline digger

  • Sr. Member
  • ****
  • Posts: 741
  • Gender: Male
    • realdigger on GitHub
    • SMF Russian Community
Re: Highslide Image Viewer
« Reply #600 on: April 29, 2015, 10:45:04 AM »
Hey digger,

Would it be possible for you to share the edits needed to have this mod work on a few other pages..

I have asked dougiefresh about if he could make his Post and PM Inline Attachments mod do the same thing and would love to solve this little issue to tie everything together nicely..

I'm basically wondering if the highslide can work on the following pages:

index.php?action=profile;area=showposts
index.php?action=profile;area=unreadreplies
index.php?action=profile;area=unread

etc. ?


Currently when I click on the image (on these pages), to view the larger size I get directed to url of the image rather than the highslide taking over..

Many thanks!
Mod works on any forum pages. Image shold be attachment, IMG tag with width or IMG from supported image hosting.

Offline roshaoar

  • Jr. Member
  • **
  • Posts: 205
  • Gender: Male
Re: Highslide Image Viewer
« Reply #601 on: April 30, 2015, 05:36:36 PM »
Working fine for me on 2.0.10, as one of the first mods added. One question though - my server error logs are full of lines "File does not exist: (stuff)/htdocs/forums/zoomin.cur, referer: http://(domain)/forums/index.php?topic=3.0"

I tried removing zoomin from highslide.js but that changed the behaviour, so put it back. Any idea please what's causing this, and how I can possibly prevent these log entries?

Thank you for your time,

-Johan

Offline roshaoar

  • Jr. Member
  • **
  • Posts: 205
  • Gender: Male
Re: Highslide Image Viewer
« Reply #602 on: May 01, 2015, 07:17:48 AM »
Fyi - I solved it: copying zoomin.cur from /Highslide to the right directory seems to have stopped these errors. Looks like there's a path error in here somewhere and rather than fixing the error just copying it was a less intrusive fix.

Offline GenesisMUGEN

  • Semi-Newbie
  • *
  • Posts: 32
Re: Highslide Image Viewer
« Reply #603 on: September 29, 2015, 12:43:12 PM »
Instal this mod, and it works good.
There is only one problem.

When i click on an image, it opens in a nice pop up
But on the background, the image is big! like without resizing.

How to fix this?

See screen

I'm experiencing this problem. Is there something that needs to be edited or?

Offline Ned.net

  • Semi-Newbie
  • *
  • Posts: 27
  • Gender: Male
    • I can't fly, yet I tried
Re: Highslide Image Viewer
« Reply #604 on: March 29, 2016, 08:27:45 AM »
Hi guys,

First, I want to say that this mod is great. Thank you Digger for having made it.

Maybe what follows has already been answered, if so I apologize for asking again, but I tried to read the 31 (!) pages of posts about this mod, did some search, and didn't find my answer.

I wish to use it on a forum (2.11) which has no gallery, where I post many "howtos" to my users. In order to avoid hard reading posts due to wide screenshots all along them, this mod is exactly what I need. But it would be a great time saver for me to avoid typing
Code: [Select]
[url=http://.../big_image.jpg][img]http://.../small_image.jpg[/img][/url]each time I want to include a screenshot.

If I use img tag with lower width parameter to fake my previews I'm facing the same trouble as lifeguard81 mentionned in answer #587, and as GenesisMUGEN in answer #603.

Is there a way to configure the mod so it finds automatically the small (or big) images in a given folder ?
for example a using sub-folder named "preview" in the folder which contains my images ?

.../images/my_image.jpg (big size)
.../images/preview/my_image.jpg (small size)

Or maybe based on a naming rule for images in the same folder ? For example "my_image.jpg" and "my_image_preview.jpg" ?

It's no big deal for me generating the small images  but I'd relally like to simplify the integration code (even if width parameter of img tag would be the simplest solution).

TIA
no shame not knowing,
a lot not learning
------------------------
Il n'y a aucune honte à ne pas savoir
mais beaucoup à ne pas apprendre

Offline maxya

  • Newbie
  • *
  • Posts: 1
Re: Highslide Image Viewer
« Reply #605 on: November 10, 2017, 10:17:03 AM »
Hi all!
How to setup on SMF 2.0 RC5 ?
./Sources/Display.php
Not have this
Code: [Select]
$replace .= '
<a href="'. $attachment['href']. ';image" id="link_'. $attachment['id']. '" onclick="'. $attachment['thumbnail']['javascript'] .'"><img src="'. $attachment['thumbnail']['href']. '" alt="" id="thumb_'. $attachment['id']. '" border="0" /></a><br />';
and this
Code: [Select]
                    // thumbnail
                    $inlinedtext = '<a href="' . $attachment['href'] . ';image" id="link_' . $attachment['id'] . '" onclick="'. $attachment['thumbnail']['javascript']. '"><img src="'. $attachment['thumbnail']['href']. '" alt="" id="thumb_'. $attachment['id']. '" border="1" class="outsb" /></a>';

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,619
    • StoryBB/StoryBB on GitHub
Re: Highslide Image Viewer
« Reply #606 on: November 10, 2017, 10:20:02 AM »
You shouldn't be using RC5, you are massively insecure at this point.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Leszko

  • Semi-Newbie
  • *
  • Posts: 17
Re: Highslide Image Viewer
« Reply #607 on: September 28, 2018, 05:41:45 PM »
Instal this mod, and it works good.
There is only one problem.

When i click on an image, it opens in a nice pop up
But on the background, the image is big! like without resizing.

How to fix this?

See screen

I'm experiencing this problem. Is there something that needs to be edited or?

Me an my friend have the same problem.
Is there any solution to this. I use 2.0.15

Offline Leszko

  • Semi-Newbie
  • *
  • Posts: 17
Re: Highslide Image Viewer
« Reply #608 on: October 01, 2018, 09:57:09 AM »
Ok, I found the solution.
Find in index.template.php of your style this:

Code: [Select]
// Add a load event for the function above.
addLoadEvent(smc_toggleImageDimensions);

and do this:

Code: [Select]
// Add a load event for the function above.
/*addLoadEvent(smc_toggleImageDimensions);*/

That is all!  :)

Offline Leszko

  • Semi-Newbie
  • *
  • Posts: 17
Re: Highslide Image Viewer
« Reply #609 on: October 01, 2018, 10:00:17 AM »
Next and the last question.
How to make more space between buttons on the pop-up below to be more comfortable on mobile devices?

Exactly like on the version below:

Offline digger

  • Sr. Member
  • ****
  • Posts: 741
  • Gender: Male
    • realdigger on GitHub
    • SMF Russian Community
Re: Highslide Image Viewer
« Reply #610 on: October 06, 2018, 10:20:04 AM »
Next and the last question.
How to make more space between buttons on the pop-up below to be more comfortable on mobile devices?
This mod needs a major update. I will see it later.

Offline Leszko

  • Semi-Newbie
  • *
  • Posts: 17
Re: Highslide Image Viewer
« Reply #611 on: October 09, 2018, 05:11:58 PM »
Next and the last question.
How to make more space between buttons on the pop-up below to be more comfortable on mobile devices?
This mod needs a major update. I will see it later.
It would be great, but in the meantime I have done it in The way (image):

http://swietageometria.info/ao/di-2FVD.gif [nofollow]