Highslide Image Viewer

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

Previous topic - Next topic

NaaN NL

Yeah I know, but only if they are attached to the post or linked from imageshack. My visitors link images from different sites then imageshack.

I like to have "thumb" every picture that is linked "off-site" by default, so basicly anything that is linked off-site with the [img] tags.

Hope you understand what I it is I'm looking for

digger

Quote from: NaaN NL on December 08, 2008, 02:35:12 PM
Yeah I know, but only if they are attached to the post or linked from imageshack. My visitors link images from different sites then imageshack.

I like to have "thumb" every picture that is linked "off-site" by default, so basicly anything that is linked off-site with the [img] tags.

Hope you understand what I it is I'm looking for

There is no possibility for it.

NaaN NL

Ok, guess I'll have find another way , but thank you very much for the support 

shaitanfr

And if you comment  this line ?

        if(preg_match('~\.(png|gif|jp(e)?g|bmp)~is', $b[2]))



My english is bad but my Taylor is rich :)


digger

Quote from: shaitanfr on December 08, 2008, 03:56:24 PM
And if you comment  this line ?

        if(preg_match('~\.(png|gif|jp(e)?g|bmp)~is', $b[2]))

If you comment this line, will be troubles with bbc like
[url=some_http_link][img]image[/img][/url]

shaitanfr

Ok digger, thank you. And thank you for this great Mod.

I have a working solution but not clean. I use lightbox code inside Highslide and all links are ok.  ::)

digger

There's no reason for using highslide for all |IMG| tag. Some people want to insert fullsize images without any transformations.
Use [url=fullsize_image][img]thumbnail_image[/img][/url]

mikecentola

I have this working on my site, but I thought it would resize all pictures that were linked to the thread. It allows them to be clicked but it didn't resize them. I was hoping to eliminate the side-scrolling of large pictures with this mod. Any ideas?

yrral

I'm getting a template parse error after manually installing the mod... please help.

Template Parse Error!
There was a problem loading the /Themes/default/Display.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------


Parse error: syntax error, unexpected '<' in .../Themes/default/Display.template.php on line 481

472:
473:       // Now for the attachments, signature, ip logged, etc...
474:       echo '
475:                <tr>
476:                   <td valign="bottom" class="smalltext" width="85%">
477:                      <table width="100%" border="0" style="table-layout: fixed;"><tr>
478:                         <td colspan="2" class="smalltext" width="100%">';
479:
480:       // Assuming there are attachments
481: <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">' , $message['subject'] , '</div>';482:
483:                else
484:                   echo '
485:                            <img src="' . $attachment['href'] . ';image" alt="" width="' . $attachment['width'] . '" height="' . $attachment['height'] . '" border="0" /><br />';

digger

Quote from: yrral on December 21, 2008, 05:08:44 AM
481: <a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" class="highslide"

481: echo '<a href="'

Ravac

Very nice mod digger.

Can I somehow put this mod that only works on image in the Attachment. Why? because this mod puts a highlight and when pictures are placed with a host image [img]link picture[/img]

digger

Quote from: ravac on December 21, 2008, 04:31:19 PM
Very nice mod digger.

Can I somehow put this mod that only works on image in the Attachment. Why? because this mod puts a highlight and when pictures are placed with a host image [img]link picture[/img]

QuoteHow disable highslide for linked images.

In /Sources/Subs.php
find
// * Highslide mod
add before
/*
find
// Highslide mod *
add after
*/

recep34

#192
First thanks for the great mod.But it didnt work for my forum.
İ have edited manually the ferry themes related files moved to highslide folder to themes/ferrytheme folder and made an highslide.turkish.js file but it didnt work.İ think i did every thing true but it didnt work...

Forum url

http://forum.armedassault-turkiye.net/index.php/topic,910.0.html

and my subs.php,index.template.php and display.template.php files...
http://armatr.cybernetic-hosting.co.uk/dosyalar/aatr.rar

digger

Quote from: recep34 on December 22, 2008, 04:44:43 PM
İ have edited manually the ferry themes related files moved to highslide folder to themes/ferrytheme folder and made an highslide.turkish.js file
Highslide folder must be in /Themes/default

recep34

thanks digger ,now it works fine  :D and here is the turkish file,

highslide.turkish.js
// Turkish language strings
hs.lang = {
loadingText : "Yükleniyor...",
loadingTitle : "İptal etmek için tıklayın",
focusTitle : "Öne getirmek için tıklayın",
fullExpandTitle : "Gerçek boyutunda görüntüle",
creditsText : "<i>Highslide JS</i> tarafından güçlendirilmiştir",
creditsTitle : "Highslide JS anasayfasına git",
previousText : "Önceki",
nextText : "Sonraki",
moveText : "Sürükle",
closeText : "Kapat",
closeTitle : "Kapat (esc)",
resizeTitle : "Yeniden Boyutlandır",
playText : "Oynat",
playTitle : "Slayt gösterisi başlat (klavye boşluk)",
pauseText : "Durdur",
pauseTitle : "Slayt gösterisini durdur (klavye boşluk)",
previousTitle : "Önceki (klavye sol ok)",
nextTitle : "Sonraki (klavye sağ ok)",
moveTitle : "Sürükle",
fullExpandText : "Gerçek boyut",
number: "%2 Resminin %1 i",
restoreTitle : "Tıklayarak kapatabilir, farenizin sol tuşuna basılı tutarak sürükleyebilir, klavyenizin yön tuşları ile gezinebilirsiniz."
};

Pentaxian

Attached the dutch translation of highslide.english.js as requested.

digger


yrral

Quote from: digger on December 21, 2008, 02:14:33 PM
Quote from: yrral on December 21, 2008, 05:08:44 AM
481: <a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" class="highslide"

481: echo '<a href="'

Thanks digger... now I don't have any parse error BUT... It's still doesn't work.

I have SMF 1.1.7 TP.093 installed. I only have the Highslide Image Viewer and Simple Media Gallery mod installed in my system.

If I attached an image on the post it is working perfectly BUT if I add a link from an image hosting website (test with photobucket) it doesn't work. Am I missing something?... will it works only on photobucket and imageshack and other hosting site mentioned here? how about FLICKR??

I'd like every single posted image from any other website to be catched by highslide...

NON-WORKING
[IMG]http://i43.photobucket.com/albums/e364/larry_anda/th_IMG_3157.jpg[/IMG]

WORKING:
[URL=http://s43.photobucket.com/albums/e364/larry_anda/?action=view&current=IMG_3157.jpg][IMG]http://i43.photobucket.com/albums/e364/larry_anda/th_IMG_3157.jpg[/IMG][/URL]

Thanks for looking to my problem.

Nao 尚

Quote from: neon401 on November 15, 2008, 06:38:08 AM
SMF Media Gallerys Highslide only works inside the gallery itself :(
Lol, old posts, etc... Had never heard about this mod, sorry.
I don't even remember getting a single request for adding Highslide support outside the gallery pages. I thought it would be cool so I added it when I developed the [smg] tag. So basically, if you use the [smg] tag in a post, you'll get Highslide animations for it, whether or not this Highslide Image Viewer is installed/active. If you use the MGalleryItem.php links instead, you'll have to rely on Highslide Image Viewer.

The good question would be -- is it possible to have [smg] and Highslide Image Viewer sit both in a page together, without any conflict? Because I *do* rewrite the headers to add our own highslide.js stuff... Hmm!

I'm also thinking of adding Highslide support to Aeva in the future, oh that's going to be funny if there are three different highslide.js files loading per page ;)
Or maybe I could just check through the output buffer to see if "highslide.js" is already in it. That would be easier.

Oh, don't mind me, just talking to myself.
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Jakobwolff

is it a difficult mod to install?

i run 1.1.7 and Oxygen theme

should i manuel install? or install through admin?

Advertisement: