News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Highslide 4 SMF

Started by Spuds, May 01, 2010, 01:03:29 PM

Previous topic - Next topic

wiecher

My stand on loading pictures ..
Can you help me?

http://www.wibisa.nl/forum/index.php


Spuds

I went to the site and all the images seemed to be sliding as expected ... are you still experiencing a problem?

wiecher

Quote from: Spuds on April 03, 2011, 09:21:37 AM
I went to the site and all the images seemed to be sliding as expected ... are you still experiencing a problem?

No the problem is fixed.
Thanx  ;)

wiecher


Spuds

Well for starters there is another version of highslide installed that is not from this mod so I'm not surprised that its not fixed.

wiecher

Ok thanx
I removed the other version but no changes.

Spuds

Two more things.

<script type="text/javascript" src="http://www.wibisa.nl/forum/Themes/default/hs4smf/language/highslide.dutch-utf8.js"></script>This file does not exist ... remove the -utf8 or take the dutch language file and make a utf8 one as well.

hs.graphicsDir = 'http://www.wibisa.nl/forum/Themes/default/hs4smf/graphics/';
This directory does not appear to exist or is empty ... I pointed it back to my site instead and everything worked.

A lot of those animated images are large so it still takes a bit of time to slide them to the front (until they are fully loaded that is), but fix the above and it should work.

wiecher

#207
Please can i sent it to you?
I don`t now what to do.  :(

The first problem is solved I think.
But the graphics folder is not empty, I have seen.

Spuds

Make sure "Use Coral CDN as JS/CSS source" is not checked in the highslide admin panel ...

wiecher

Quote from: Spuds on April 07, 2011, 09:48:22 PM
Make sure "Use Coral CDN as JS/CSS source" is not checked in the highslide admin panel ...

Nothings changes  :(

Spuds

I've looked again, and for the final time as well ......

1) Once again you have multiple highslide library's installed as I already stated above, this could cause problems
2) Once again this directory 'http://www.wibisa.nl/forum/Themes/default/hs4smf/graphics/'is your problem.  For example lets get one of the images from that directory and see we get back:

QuoteThe image "http://www.wibisa.nl/forum/Themes/default/hs4smf/graphics/close.png" cannot be displayed because it contains errors.

So maybe the files are there but all zero length, or you uploaded them in ascii instead of binary, or other like permissions?  Also make sure the graphics/outlines directory is in there and its files are also OK.  I tried to get one of those and it failed as well.

QuoteThe image "http://www.wibisa.nl/forum/Themes/default/hs4smf/graphics/outlines/beveled.png" cannot be displayed because it contains errors.

Again I took your site source and removed the extra highslide scripts, and then changed item 2 above line to point at my test sites graphics directory and everything worked as expected.

wiecher

I've put back a backup and now it's okay.
Thanks for your support.

Capion

the pictures works fine..shows a magnifying glass over the picture, and pops up in a box.

but in my admin section: configuration > modificaction settings > highslide..
I get this:

Fatal error: Cannot redeclare modifyhs4smfsettings() (previously declared in /home/capion/public_html/bfmaw/clanen/Sources/ManageSettings.php:2159)
in /home/capion/public_html/bfmaw/clanen/Sources/ManageSettings.php on line 2398


Can I please get a hint, or maybe a solution to this problem?
*if it works, dont fix it*

Spuds

Sounds like you installed it twice .... or uninstalled and it only partially un-installed and then you reinstalled  ....

That specific error means in the file sources/ManageSettings.php you will find the function modifyhs4smfsettings twice ... you will need to remove one of those (actually the first one you find).

You will also probably want to check the other files that the mod changes as there could be duplicate code in those as well depending on how the duplication occurred to begin with.


Capion

#214
Thank You for the hint.
I have made it work...but look at this...
I // disabled this line:
'hs4smf' => 'Modifyhs4smfsettings',
in "ManageSettings.php"
but then there was only "highslide" as a menu-name, which just activated the next function; some show-joindate-mod I have..

then I ENabled the previously mentioned line again..and ..yeahaa.. everything works.
:o

( BTW, same thing just happened for me in the "Let ME google that for You - mod" / LMGTFY )

anyway.. Thanks for a really nice mod!!
*if it works, dont fix it*

Eudemon

hello spuds

is it possible to turn off highslide for specific images
for example i use simple portal, and i can use image tags on the block title
but HS turns it into a slide-able object

also when open a large image
is it possible to open HS first and then load the image pixel by pixel just like when u open it with a browser window
for example a gallery item: http://kumakuni.com/index.php?action=media;sa=item;in=900
open HS first and load pixel by pixel instead of load completely and then open
and how do i disable auto-resize to fix screen?

Spuds

Quote from: Eudemon369 on April 24, 2011, 05:56:20 PM
hello spuds

is it possible to turn off highslide for specific images
for example i use simple portal, and i can use image tags on the block title
but HS turns it into a slide-able object
You should be able to use
[img alt="ns"]your image[/img] the alt="ns" should tell the mod to ignore that image

Quote
also when open a large image
is it possible to open HS first and then load the image pixel by pixel just like when u open it with a browser window
for example a gallery item: http://kumakuni.com/index.php?action=media;sa=item;in=900
open HS first and load pixel by pixel instead of load completely and then open
and how do i disable auto-resize to fix screen?
Not sure if you can do that with highslide, might have to ask on the highslide site. 

I believe the auto-resize can be turned off by adding
$footer .= 'hs.allowSizeReduction = false;' . "\n"; to the javascript.  Open up hs4smf-Subs.php and add that after this line
$footer .= 'hs.padToMinWidth = true;' . "\n";

Eudemon

Quotethe alt="ns" should tell the mod to ignore that image

works, thx

QuoteI believe the auto-resize can be turned off by adding
that works, but only for the images in post
media still re-sizes it

Spuds

#218
Quotemedia still re-sizes it
You can try adding that line to the media section as well ... in hs4smf-Subs.php in the aeva_initGallery_hs4smf function

Code (find) Select

$lightbox .= ' ' . hs4smf_caption_text();


Code (before) Select

$lightbox .= 'hs.padToMinWidth = true;' . "\n";


Edit:  I have not found anything that allows for the viewing of the image as its loading. 

One thing to consider if you are concerned about image loading speed (for the media area) you can consider changing this hs.numberOfImagesToPreload = 0; to hs.numberOfImagesToPreload = 3; (the default from highslide is 5).
That line is in the aeva_initLightbox function inside of Aeva-Subs-Vital.php   I'm not sure why the preload is disabled in the media library but I'm sure there is a good reason ...  so if you change that line be watchful for problems.




Eudemon

#219
thank you spuds, i'll test it when i get home

thank you again for ur great mod and support

Advertisement: