News:

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

Main Menu

Highslide Image Viewer

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

Previous topic - Next topic

dembow


dj_pont

#301
хз что и как конечно, но в первый момент полёг топик дальше картинки с ошибкой, неизвестная функция str_ireplace, после замены на просто replace полёг весь форум с ошибкой Parse error: syntax error, unexpected T_STRING, expecting ')' in /test/Forum/Sources/Subs.php on line 3606

Это конечно теоритически понятно, что походу у меня трабла с функцией ireplace, хотя раньше вроде пахала, но без неё реально как-то?)

digger

Quote from: dj_pont on May 31, 2009, 07:39:34 PM
хз что и как конечно, но в первый момент полёг топик дальше картинки с ошибкой, неизвестная функция str_ireplace, после замены на просто replace полёг весь форум с ошибкой Parse error: syntax error, unexpected T_STRING, expecting ')' in /test/Forum/Sources/Subs.php on line 3606

Это конечно теоритически понятно, что походу у меня трабла с функцией ireplace, хотя раньше вроде пахала, но без неё реально как-то?)

http://www.simplemachines.ru/index.php/topic,4221.0.html

ianus

Greetings!

You are very quick indeed.

So, Version 1.2.

First I have to mention, that this mod uninstall/install without any problems, even on my, meanwhile tortured, test board.

Highslide is working when:
URL = fullsize image / imageLINK = thumbnail.

Link is working when:
URL = external page / imageLINK = image from external page (amazon or imagehoster)

Note: (only to avoid misunderstandings and false bug-notifications)
It seems that this is only working for the posts which are written after install of 1.2
So, it is working, but not for posts written before 1.2. – even if I modify and save or embed a new image to an old post.


Long story short. It seems, that this mod now will handles image-links as links while embed images are still heightslide(ed).
Very nice! Really impressive work!

digger

Quote from: ianus on June 01, 2009, 05:31:00 AM
Note: (only to avoid misunderstandings and false bug-notifications)
It seems that this is only working for the posts which are written after install of 1.2
So, it is working, but not for posts written before 1.2. – even if I modify and save or embed a new image to an old post.

It's impossible :)
Link to example please.

ianus

If I haven't try it myself...

Example:
This thread was created with 1.1. / Image embed - Testthread

Very first image was embed in the post with 1.1
Second image (same code) after uninstall 1.1 and install 1.2.
Both open image in a new window.

This post (same thread) was written after install of 1.2. / Re: Image embed - Testthread V 1.2

Second picture.
Same code like in the first post.
Will open the link and not the image.


digger

Yes, I see there is another problem with links

Quote from: ianus on June 01, 2009, 09:25:08 AM
Example:
This thread was created with 1.1. / Image embed - Testthread
copy this post into the new one and you will see the same results.

If the same image embed in a several different links in one post, may be a strange result.
Will be thinking about it.

ianus

Quote from: digger on June 01, 2009, 09:51:00 AM
copy this post into the new one and you will see the same results.

;) This way I have created the second post.

But as mentioned, my board is not well kept. I want to switch servers and offer some new mods to pleasure my members. So see which mod us useful, I have (un-) installed a lot of them in the last few days. Additionally I have made changes to some core files.

Like you said here, it's nearly impossible that the same link change his behavior depending on the  posttime. I think, that your mod will work perfect (with older threads) after I clean up my files.

sibling chris

OK - first thanks for the mod

Unfortunately I can;t get it to work at all

I am using SMF 1.1.9, TP 1.0 beta 4 with the Phobos theme

I installed to defult theme via package provided and then manually edited phobos as described on the page


I feel like I am skirting round the issue - I've read lots of things but still nothing seems to fit my situation

First of all - I am not 100% certain my conversion from mamboboard has worked correctly. All my post attachments exist and I can click on them and download them but thumnails in the posts NEVER show.

I have however tested highslide by uploading a new image. The image does appear on the post, but I believe it is HTML resized and there is infact no thumbnail......hence when the following code in Display.template.php is executed the line changed by the highslide mod it not being used (see below its alwys do the ELSE part)


echo '
<div style="overflow: auto; width: 100%;">';
foreach ($message['attachment'] as $attachment)
{
if ($attachment['is_image'])
{
if ($attachment['thumbnail']['has_thumb'])
echo '
                        <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>';
else
echo '
<img src="' . $attachment['href'] . ';image" alt="" width="' . $attachment['width'] . '" height="' . $attachment['height'] . '" border="0" /><br />';
}







Any ideas how I can fix this, where can I make it so uploaded images get thumbnails created?
why is this not happening by default?
cna I regenerate thumnails for existing images?

thanks in advance

sibling chris

also I checked the attachments table in the database

all images including the new ones are set to attachment type 0 and ID_THUMB=0

???  ::)

sibling chris

AHHH....ok, user error!

I did not realise that this only works on images of a certain size, because i appears thumnails are only generated for images of a certain size

so I guess I need to work out how to tweak this elsewhere and of course my conversion issue is nothing to do with the mod either!


www.SergioMora.net

#311
OK Where are the settings for this in the DEFUALT theme?

I can not find anything.

Never mind, this is working now

YES!

I love it!
If and when I can help someone, I will. My information might not be accurate, so if anyone corrects me if I am wrong, I shall not be offended.

Enders

Can you remove highslides from signatures?

Chas Large

Hi Digger,

Just wanted to say thanks for an excellent mod and instructions to add it to the Gallery Mod as well. It installed on 1.1.9 perfectly. I modded the DilberMC theme template and Gallery and all is working great.

Thank you from me and all our forum members.

Chas
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

ElectricSquid

#314
Quote
You can modify SMF Gallery to work with Highslide mod. (Tested with SMF Gallery 1.9.3)

Does anyone have a copy of the SMF Gallery 1.9.3 zip package?
It's no longer listed on the mod site, and Highslide Image Viewer no longer works correctly with the newer SMF Gallery 2.0.5

I also need the older version for the TinyPortal Block mod that works with it. No-one seems to know if the updated Gallery will work with the old block code either.

Thanks.

ElectricSquid

Cool, I have SMF Gallery 1.9.4 up and running with Highslide Image Viewer taking care of ONLY resizing the image when a user chooses to view the pic. Not the thumbnails in the category page, just the single pic page.
(The Gallery page where users can leave comments and such)
(This is the ONLY thing on my site Highslide does, nCode handles posts and replies, GD module through the admin settings handles attachments)

Some special code hacking was needed to get it to work, but I got it.

So here's the question, how do I tell highslide to give the user a larger size image when the user clicks the thumbnail? (because of my usage, the thumbnail is 580px wide) I need Highslide to open up the image to 1020px wide when clicked. Basically fill the screen with it.

I'm sure this is a small setting somewhere, but after hours of hacking code, I'm too burnt out to find it.

Please help.
Thanks!!

ElectricSquid

#316
I figured it out with the use of this page...
http://highslide.com/ref/

in index.template.php where the Highslide code is added to the upper part of the template, add...
hs.usebox = "true";
hs.width = "1024";

You'll see where to add it. There are other controls there in the mod code that look similar.
hs.usebox tells the mod to use a controlled size box to contain the image when expanded.
hs.width tells the usebox how wide to be. ( for 1024px wide, use "1024" not "1024px" )

There are many other controls we can add too. They are listed on the Highslide reference page.
http://highslide.com/ref/
For in depth info on each control, click "example" to the right.

erlend_sh

Using the latest Highslide mod 1.2 on an SMF 1.1.9 forum I help administrate, a user reported an odd fatal error, saying:
QuoteFatal error: Call to undefined function: str_ireplace() in /home/jmonke2/public_html/jmeforum/Sources/Subs.php on line 3738
The error applied to only 3 or so boards. These boards however are probably the most image-heavy ones, so there's a clear connection here, but I can't figure out what to do if I want to keep using the highslide mod on the forum.

digger

Quote from: erlend_sh on June 21, 2009, 11:51:48 AM
Using the latest Highslide mod 1.2 on an SMF 1.1.9 forum I help administrate, a user reported an odd fatal error, saying:
QuoteFatal error: Call to undefined function: str_ireplace() in /home/jmonke2/public_html/jmeforum/Sources/Subs.php on line 3738
The error applied to only 3 or so boards. These boards however are probably the most image-heavy ones, so there's a clear connection here, but I can't figure out what to do if I want to keep using the highslide mod on the forum.

Replace str_ireplace with str_replace

avf

#319
Pretty excited to use on my forum 1.1.9 and installed it however there is no change in the images displayed...no thumbnails ..nothing still the same as before.

Is there an issue with this version.

Advertisement: