Highslide Image Viewer

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

Previous topic - Next topic

digger

Quote from: ssabo on October 16, 2008, 11:05:34 PM
I have tried installing this mod several times and still get the same error message.  Could someone please give me some sort of idea where I may have gone wrong.

First I am using the Theme "Helios_Multi", so I manually edited the files using Highslide Image Viewer – Installation Instructions for 1.1.6

./Sources/Subs.php
./Themes/Helios_Multi/index.template.php
./Themes/Helios_Multi/Display.template.php


I then moved the included directory "Highslide" to "./Themes/Helios_Multi".

After editing the files as soon as I click on anything in the SMF Forum, I get the following error message.

Parse error: parse error in /home/tlcc/public/htdocs/forum/Sources/Subs.php on line 3576

Fatal error: Call to undefined function: writelog() in /home/tlcc/public/htdocs/forum/index.php on line 171


Any help you could give would be most appreciated, I really would like to use this mod  :D
Attach your changed Subs.php. 

jmil

Quote from: digger on October 16, 2008, 06:55:58 PM
Quote from: jmil on October 16, 2008, 04:23:27 PM
YEA - It WORKS!!!! Thanks Digger - Now the Dumb Question - Can this be modified to work with the SMF Gallery??

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

in Gallery.template.php
find four places looks like this code (there may be some differences like alt='')

echo '<td align="center"><a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '">
<img ' . ($GD_Installed == true ?  'src="' . $modSettings['gallery_url'] . $row['thumbfilename'] . '" ' : 'src="' . $modSettings['gallery_url'] . $row['filename'] . '" height="78" width="120" ')  . ' border="0" alt="" /></a><br />';

and replace with

echo '<td align="center"><a href="' . $modSettings['gallery_url'] . $row['filename'] . '" class="highslide" rel="highslide">
<img ' . ($GD_Installed == true ?  'src="' . $modSettings['gallery_url'] . $row['thumbfilename'] . '" ' : 'src="' . $modSettings['gallery_url'] . $row['filename'] . '" height="78" width="120" ')  . ' border="0" alt="' .  '<a href=\'' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '\'>[Detail]</a>' . '" /></a><br />';
echo '<div class="highslide-heading">' , @$context['gallery_cat_name'] , '</div>';


Demo here http://simple-machines.ru/index.php?action=gallery;cat=1

Works Absolutly Perfectly - I only found 3 (Not 4) similar pieces of code so I only changed those 3.
This is a very cool Mod especially for the Gallery!!! My members have multiple categories with 50+ pictures each and they LOVE this mod!

Nice Job DIgger! You got talent!

ssabo

Quote from: digger on October 17, 2008, 04:55:16 AM
Quote from: ssabo on October 16, 2008, 11:05:34 PM
I have tried installing this mod several times and still get the same error message.  Could someone please give me some sort of idea where I may have gone wrong.

First I am using the Theme "Helios_Multi", so I manually edited the files using Highslide Image Viewer – Installation Instructions for 1.1.6

./Sources/Subs.php
./Themes/Helios_Multi/index.template.php
./Themes/Helios_Multi/Display.template.php


I then moved the included directory "Highslide" to "./Themes/Helios_Multi".

After editing the files as soon as I click on anything in the SMF Forum, I get the following error message.

Parse error: parse error in /home/tlcc/public/htdocs/forum/Sources/Subs.php on line 3576

Fatal error: Call to undefined function: writelog() in /home/tlcc/public/htdocs/forum/index.php on line 171


Any help you could give would be most appreciated, I really would like to use this mod  :D
Attach your changed Subs.php.

Here is my Sub.php attached.....thanks for your help.

digger

Quote from: ssabo on October 17, 2008, 09:35:42 AM
Quote from: digger on October 17, 2008, 04:55:16 AM
Quote from: ssabo on October 16, 2008, 11:05:34 PM
I have tried installing this mod several times and still get the same error message.  Could someone please give me some sort of idea where I may have gone wrong.

First I am using the Theme "Helios_Multi", so I manually edited the files using Highslide Image Viewer – Installation Instructions for 1.1.6

./Sources/Subs.php
./Themes/Helios_Multi/index.template.php
./Themes/Helios_Multi/Display.template.php


I then moved the included directory "Highslide" to "./Themes/Helios_Multi".

After editing the files as soon as I click on anything in the SMF Forum, I get the following error message.

Parse error: parse error in /home/tlcc/public/htdocs/forum/Sources/Subs.php on line 3576

Fatal error: Call to undefined function: writelog() in /home/tlcc/public/htdocs/forum/index.php on line 171


Any help you could give would be most appreciated, I really would like to use this mod  :D
Attach your changed Subs.php.

Here is my Subs.php attached.....thanks for your help.
Looks strange.

You don't need manual modify Subs.php. Remove your changes.
Just install mod and edit index.template.php and
Display.template.php in your custom theme directory.

Final60

Works a treat on my custom theme, many thanks.

ssabo

Quote from: digger on October 17, 2008, 05:55:06 PM
Quote from: ssabo on October 17, 2008, 09:35:42 AM
Quote from: digger on October 17, 2008, 04:55:16 AM
Quote from: ssabo on October 16, 2008, 11:05:34 PM
I have tried installing this mod several times and still get the same error message.  Could someone please give me some sort of idea where I may have gone wrong.

First I am using the Theme "Helios_Multi", so I manually edited the files using Highslide Image Viewer – Installation Instructions for 1.1.6

./Sources/Subs.php
./Themes/Helios_Multi/index.template.php
./Themes/Helios_Multi/Display.template.php


I then moved the included directory "Highslide" to "./Themes/Helios_Multi".

After editing the files as soon as I click on anything in the SMF Forum, I get the following error message.

Parse error: parse error in /home/tlcc/public/htdocs/forum/Sources/Subs.php on line 3576

Fatal error: Call to undefined function: writelog() in /home/tlcc/public/htdocs/forum/index.php on line 171


Any help you could give would be most appreciated, I really would like to use this mod  :D
Attach your changed Subs.php.

Here is my Subs.php attached.....thanks for your help.
Looks strange.

You don't need manual modify Subs.php. Remove your changes.
Just install mod and edit index.template.php and
Display.template.php in your custom theme directory.

Well digger I appreciate the effort, but still no go  :'(

I left the Sub.php as it was originally; edited both the "index.template.php" and "Didplay.template.php" in my custom theme directory.

I changed the attachments in the admin so it places attached pics as a thumbnail under the posts.  But when I test place a pic in a post and then click on it, it just opens up as it's original size in another browser window???

I had been running a IPB for 8 years and when I say I never had problems, it is not an exaggeration. I have manually edited hundreds of files; always do my backups, never had any problems.  But for some reason I really am having fits with SMF  :(

Oh, and I also tried the "package installer" it then said "Highslider" was successfully installed.  Went to the forum and tried clicking on a thumbnail.....nothing, just went to a new browser window to show the larger pic.

Any other thoughts on what to try?

digger


AlenNS

Is it possible to add some watermark to this mod?

digger

Quote from: AlenNS on October 18, 2008, 08:22:15 AM
Is it possible to add some watermark to this mod?

You can add text link on images.

In index.template.php find

hs.creditsText = "";
hs.creditsHref = "";
hs.creditsTitle = "";

and insert your text, url and title

AlenNS

Yes, but it only write link on the picture, but I would like to write link of my forum on the picture and when it's downloaded to stay there.

With this method it doesn's write link on the picture.

ssabo


locau

Quote from: Tanks on October 15, 2008, 02:45:20 AM
maybe


hs.dimmingOpacity = 0.75;


should actually be


hs.dimmingOpacity = "0.75";



Just a thought :) don't know if im right ! - but now it is working on my forum after i made that change ;)

I did try that but still no luck.

I wonder, it is possible to place an watermark using highslide ? (Either for attachments or linked images)

digger

Quote from: AlenNS on October 18, 2008, 09:06:29 AM
Yes, but it only write link on the picture, but I would like to write link of my forum on the picture and when it's downloaded to stay there.

With this method it doesn's write link on the picture.

I have another my mod specially for Watermark.
It's still beta version and not published yet.
Demo here http://simple-machines.ru/index.php?topic=3

locau

Quote from: digger on October 18, 2008, 02:24:14 PM
Quote from: AlenNS on October 18, 2008, 09:06:29 AM
Yes, but it only write link on the picture, but I would like to write link of my forum on the picture and when it's downloaded to stay there.

With this method it doesn's write link on the picture.

I have another my mod specially for Watermark.
It's still beta version and not published yet.
Demo here http://simple-machines.ru/index.php?topic=3

i've registered on .ru forum but i never get the confirmation email for my account in order to acess the topic.

zrotzel

Hello.  I just installed this mod, and did all the manual configs needed.  Is this mod supposed to auto re size images?  If so, it is not. 

digger

Quote from: zrotzel on October 21, 2008, 04:02:54 PM
Hello.  I just installed this mod, and did all the manual configs needed.  Is this mod supposed to auto re size images?  If so, it is not.

* Autoresize full-size image for browser window

zrotzel

Turns out it is working.  Is there a way to remove the the image link on the bottom of the picture?  I am using RC7.

digger

Quote from: zrotzel on October 21, 2008, 08:47:37 PM
Is there a way to remove the the image link on the bottom of the picture?  I am using RC7.
remove from Subs.php

$b[5] = str_replace('alt=""', 'alt="' . $b[2] . '"', $b[5]); // Add filename to caption

zrotzel

Its working great!!  Thanks for your help and quick responses!!

Ratz

Hi digger,

Is it possible to make Highslide Viewer work along with another mod called "Attachment Layout 1.3"?

Both mods change some of the same strings of code in Display.template.php so when one is installed the other can't be. Well, at least, not using the package installer. I'm hoping there might be a way to do it manually but I haven't been lucky enough to trip on that yet.

Thanks for any help or suggestions.
Ratz

Advertisement: