Advertisement:

Author Topic: Highslide Image Viewer  (Read 271913 times)

Offline dembow

  • Jr. Member
  • **
  • Posts: 112
  • Gender: Male
Re: Highslide Image Viewer
« Reply #300 on: May 31, 2009, 06:40:34 PM »

May be. I will see.

thanks, i'll be waiting    ;D

Offline dj_pont

  • Newbie
  • *
  • Posts: 5
Re: Highslide Image Viewer
« Reply #301 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, хотя раньше вроде пахала, но без неё реально как-то?)
« Last Edit: May 31, 2009, 07:43:16 PM by dj_pont »

Offline digger

  • Sr. Member
  • ****
  • Posts: 787
  • Gender: Male
    • realdigger on GitHub
    • SMF Russian Community
Re: Highslide Image Viewer
« Reply #302 on: May 31, 2009, 07:48:38 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

Offline ianus

  • Jr. Member
  • **
  • Posts: 391
    • Firopolis
Re: Highslide Image Viewer
« Reply #303 on: June 01, 2009, 05:31:00 AM »
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!

Offline digger

  • Sr. Member
  • ****
  • Posts: 787
  • Gender: Male
    • realdigger on GitHub
    • SMF Russian Community
Re: Highslide Image Viewer
« Reply #304 on: June 01, 2009, 08:16:03 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.

Offline ianus

  • Jr. Member
  • **
  • Posts: 391
    • Firopolis
Re: Highslide Image Viewer
« Reply #305 on: June 01, 2009, 09:25:08 AM »
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.


Offline digger

  • Sr. Member
  • ****
  • Posts: 787
  • Gender: Male
    • realdigger on GitHub
    • SMF Russian Community
Re: Highslide Image Viewer
« Reply #306 on: June 01, 2009, 09:51:00 AM »
Yes, I see there is another problem with links

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.

Offline ianus

  • Jr. Member
  • **
  • Posts: 391
    • Firopolis
Re: Highslide Image Viewer
« Reply #307 on: June 01, 2009, 10:19:17 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

  • Guest
Re: Highslide Image Viewer
« Reply #308 on: June 01, 2009, 10:27:44 AM »
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)

Code: [Select]
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

  • Guest
Re: Highslide Image Viewer
« Reply #309 on: June 01, 2009, 10:30:35 AM »
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

  • Guest
Re: Highslide Image Viewer
« Reply #310 on: June 01, 2009, 10:44:23 AM »
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!


Offline www.SergioMora.net

  • Semi-Newbie
  • *
  • Posts: 61
Re: Highslide Image Viewer
« Reply #311 on: June 03, 2009, 10:13:43 AM »
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!
« Last Edit: June 03, 2009, 10:30:04 AM by www.SergioMora.net »
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.

Offline Enders

  • Jr. Member
  • **
  • Posts: 151
Re: Highslide Image Viewer
« Reply #312 on: June 06, 2009, 01:27:25 AM »
Can you remove highslides from signatures?

Offline Chas Large

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,115
  • Gender: Male
  • Running 2.0.xx on Apache.
    • chazzonjazz on Facebook
    • @https://twitter.com/ on Twitter
    • Chas Large's Site
Re: Highslide Image Viewer
« Reply #313 on: June 10, 2009, 04:55:17 PM »
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.

Offline ElectricSquid

  • Full Member
  • ***
  • Posts: 498
  • Gender: Male
  • Forging a forum with blood, sweat, and steel
    • RedneckFabrication.com ...rebuilding the world with Scrap Steel, Duct Tape, & Bailing Wire
Re: Highslide Image Viewer
« Reply #314 on: June 14, 2009, 10:42:23 PM »
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.
« Last Edit: June 28, 2009, 09:41:44 AM by ∑£ℓ¢†®¡¢ §ợų¡đ »

Offline ElectricSquid

  • Full Member
  • ***
  • Posts: 498
  • Gender: Male
  • Forging a forum with blood, sweat, and steel
    • RedneckFabrication.com ...rebuilding the world with Scrap Steel, Duct Tape, & Bailing Wire
Re: Highslide Image Viewer
« Reply #315 on: June 15, 2009, 01:36:50 PM »
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!!

Offline ElectricSquid

  • Full Member
  • ***
  • Posts: 498
  • Gender: Male
  • Forging a forum with blood, sweat, and steel
    • RedneckFabrication.com ...rebuilding the world with Scrap Steel, Duct Tape, & Bailing Wire
Re: Highslide Image Viewer
« Reply #316 on: June 16, 2009, 07:04:19 AM »
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.
« Last Edit: June 16, 2009, 07:07:35 AM by ∑£ℓ¢†®¡¢ §ợų¡đ »

Offline erlend_sh

  • Jr. Member
  • **
  • Posts: 307
  • Gender: Male
  • Lack of sleep is my drug
    • jMonkeyEngine
Re: Highslide Image Viewer
« Reply #317 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:
Quote
Fatal 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.

Offline digger

  • Sr. Member
  • ****
  • Posts: 787
  • Gender: Male
    • realdigger on GitHub
    • SMF Russian Community
Re: Highslide Image Viewer
« Reply #318 on: June 21, 2009, 01:32:58 PM »
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:
Quote
Fatal 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

Offline avf

  • Semi-Newbie
  • *
  • Posts: 79
Re: Highslide Image Viewer
« Reply #319 on: June 23, 2009, 05:14:36 PM »
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.
« Last Edit: June 23, 2009, 05:59:19 PM by avf »