News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Highslide Image Viewer

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

Previous topic - Next topic

alpheus

#560
Hello digger. I installed this mod as manually. There is not a mistake but nothing change! My version is 1.1.13! It is working only with attachments images? Not working with images which are in the message area?

Biology Forums

On linked images in posts, is there a way of disabling the URL link shown at the bottom of the image? I'm using 1.1.14.

OMGPeace

#562
For those that won't to use this with 2.0.1.   you just need to make 2 file changers .


download the 1.6 zip file  http://custom.simplemachines.org/mods/index.php?mod=1450  open it up and open this file package-info.xml

find this 
<install for="1.1 - 1.1.99, 2.0 RC2"">
replace with this
<install for="1.1 - 1.1.99, 2.0.1"">
find this
<uninstall for="1.1 - 1.1.99, 2.0 RC2"> 
replace with this
<uninstall for="1.1 - 1.1.99, 2.0.1"> 




<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<name>Highslide Image Viewer</name>
<id>digger:Highslide</id>
<type>modification</type>
<version>1.6</version>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<install for="1.1 - 1.1.99, 2.0.1">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<require-dir name="Highslide" destination="$themedir" />
<modification>install.xml</modification>
</install>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<uninstall for="1.1 - 1.1.99, 2.0 RC2">?>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<modification reverse="true">install.xml</modification>
<remove-dir name="$themedir/Highslide" />
</uninstall>
</package-info>



Then re-zip upload and install it, it will then say failed on this file Display.template.php

go to your  /Themes/default/Display.template.php edit


find this
<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" /></a><br />';


replace with this
<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" class="highslide" rel="highslide"><img src="', $attachment['thumbnail']['href'], '" alt="' , $attachment['name'] , '" id="thumb_', $attachment['id'], '" border="0" /></a><br /><div class="highslide-heading">' , $context['subject'] , '</div>';

and it should work! well it did for me hope it helps some one else.


cheers peace.



alienwebguy

Remove the credits for Highslide Image Viewer in SMF 2.0.1 by adding (hs.showCredits = false;) without quotes after (hs.graphicsDir = 'highslide/graphics/';) in /Sources/load.php, line 1619.


Abhay Trivedi

No support left?
I want two features added to it??
Scubix Tech Forum [nofollow] for Windows Phone 7 , Windows 8 and Windows for PC Stuff.

digger

Quote from: Abhay Trivedi on May 09, 2012, 06:34:59 AM
No support left?
I want two features added to it??
What features you want?

Abhay Trivedi

Quote from: digger on May 09, 2012, 08:55:08 AM
Quote from: Abhay Trivedi on May 09, 2012, 06:34:59 AM
No support left?
I want two features added to it??
What features you want?
1. when opening an image the background should go dark so that it looks decent. Just like Fancybox 4 SMF
2. There should be a download button so that the users can download the image on their pc's. [Useful for Wallpapers forum.]
3. The most Important one is that the images should be resized to a smaller size so that it does not look ugly or atleast to the size of browser windows.

Thanks for replying. :)
Scubix Tech Forum [nofollow] for Windows Phone 7 , Windows 8 and Windows for PC Stuff.

digger

Quote from: Abhay Trivedi on May 14, 2012, 08:25:48 AM
Quote
What features you want?
1. when opening an image the background should go dark so that it looks decent. Just like Fancybox 4 SMF
2. There should be a download button so that the users can download the image on their pc's. [Useful for Wallpapers forum.]
After a while I'll make a new version and add to it these options.

Quote
3. The most Important one is that the images should be resized to a smaller size so that it does not look ugly or atleast to the size of browser windows.
Mod already resize all images to a smaller size. What feature did you mean?

Abhay Trivedi

ohk sorry
the resize option is already there but this mod does not work on my forum.
it shows various errors.
:(
http://forum.scubix.com [nofollow]
lagusta theme by DS
Scubix Tech Forum [nofollow] for Windows Phone 7 , Windows 8 and Windows for PC Stuff.

Burke ♞ Knight

Any chance of an update that will install on SMF 2.0.2?

I get:
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.

kat

I just replied in your other topic. :)

Srinib



digger


kerbob

Hey Guys,
I installed this mod on 2.0.5 and it works great.
However, after installing, I get a lot of these errors:

2: preg_match_all(): Unknown modifier 'b'
File: /home4/bobrekus/public_html/Sources/Subs.php
Line: 4444

Line 4444 of Subs.php is as follows:
      if(preg_match_all('~(<a href="([^"]*?)"(?:[^>]*?)>|)(<img src="((?!'. preg_quote($modSettings['smileys_url'], '#') .').*?)"(?:[^>]*?)>)(?:</a>|)~ism'.($context['utf8'] ? 'u' : ''), $message, $images, PREG_SET_ORDER))

Anyone have any idea? I'm not familiar with the preg_match_all function and that looks like an ugly regex! :O

kerbob

Any ideas folks?  I still have the error flooding my logs.  This is an excellent mod so I'd love to be able to fix this.

Arantor

I'd assume preg_quote($modSettings['smileys_url'], '#') should be preg_quote($modSettings['smileys_url'], '~')

kerbob

Arantor for the win! +1 +1.. that fixed it!

mackes

Quote from: digger on October 08, 2008, 04:15:17 PM
Quote from: puppeter on October 08, 2008, 04:11:16 PM
Im using custom theme... what should i do to make it work?
http://custom.simplemachines.org/mods/index.php?mod=1450
Manual Install Instructions for SMF x.x

Great mod. I tried this for Theme Ostara but it does not seems to work, any hints?

Thks

sneakers

Hello,
I tried to install this mod. Unfortunately, when I installed it I got this error:

QuoteFatal error: Call to undefined function highslide_images() in /home/user/domains/domain.com/public_html/forum/Sources/Subs.php on line 2566


My subs.php is attached.


Thanks!

Advertisement: