News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Highslide 4 SMF

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

Previous topic - Next topic

Baekcity

#120
Thx for the fast response,

I'am using Default Theme - Curve and 4 other themes like: DarkmodernRC4, outline_20rc4, x-mas_20rc4 and smfdivision theme.

Also added all checkboxes for those themes when i installed Highslide.

This is 1 of the errors i get in my log after installing it or using it:

------------------

http://www.xxxx.com/visforum/index.php?action=admin;area=packages;sa=install2;package=HS4SMF_0.5e_RC4.zip;pid=0 [nofollow]

2: copy(/usr/xxxx/xxxx/domains/xxxx.com/public_html/visforum/Themes/default/hs4smf/language/highslide.turkish.js) [<a href='function.copy'>function.copy</a>]: failed to open stream: Not a directory

Bestand: /usr/xxxx/xxxx/domains/xxxx.com/public_html/visforum/Sources/Subs-Package.php
Regel: 1689

Thx.

Spuds

The install process must have given some errors if it could not write the files.  Sounds like general directory permission problems, usually when that happens the install program will tell you it needs ftp access so it can write the files.   Either you need to update the directory permissions, give ftp access to the install program, or copy the files manually to your install.

Chas Large

Hi Spuds,

Quick question. is it deliberate that there are no controls above an image when there is only one image in a post? whereas if there are two or more all the images in a post they all have controls. I would have liked to see the Move and Expand controls at least on all images.

Thanks

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.

Spuds

Quoteis it deliberate that there are no controls above an image when there is only one image in a post?
Yes, it does not present the slideshow control if there is only one image in the group.

QuoteI would have liked to see the Move and Expand controls at least on all images
I thought on a single image the standard expand icon shows up on hover, its that box with outward arrows on the 4 corners.  It should overlay on the right bottom of the image. 

I suppose I could add an option to force the control to show up even on a single image.


Chas Large

Quote from: Spuds on December 16, 2010, 10:25:35 AM
Quoteis it deliberate that there are no controls above an image when there is only one image in a post?
Yes, it does not present the slideshow control if there is only one image in the group.

QuoteI would have liked to see the Move and Expand controls at least on all images
I thought on a single image the standard expand icon shows up on hover, its that box with outward arrows on the 4 corners.  It should overlay on the right bottom of the image. 

I suppose I could add an option to force the control to show up even on a single image.
You're right, the expand icon is there on hover over, I just hadn't noticed it on the image I was viewing. No need to tweak the mod unless there is public demand but I would prefer it. ;)
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.

Jack_the_ripper

Hi !

I've got a little problem:
I installed this mode without any problem but is isn't working.

Than i try to uninstall but ther is an error:

./Sources/ManageSettings.php Failed test
  1. Csere ./Sources/ManageSettings.php Failed test

If i change the managesettings manually and upload it the test again failed.

Somebody have got a sollution?

Thanks
Jack   


Spuds

QuoteIf i change the managesettings manually and upload it the test again failed.
If I understand this correctly you manually removed the changes that the mod made to the Manage Settings File and then re-uploaded that to the server.  If this is so then you can ignore the uninstall error for that file since there is no longer anything for it to uninstall in that file.

agent47

How do I get this mod to do everything shown on this example page ?
I mean stuff like thumbnails and stuff? please help me out as I'm trying to create a wallpaper library?

PortaMx is probably the best SMF portal!

Jack_the_ripper

Quote from: Spuds on January 10, 2011, 09:43:28 AM
QuoteIf i change the managesettings manually and upload it the test again failed.
If I understand this correctly you manually removed the changes that the mod made to the Manage Settings File and then re-uploaded that to the server.  If this is so then you can ignore the uninstall error for that file since there is no longer anything for it to uninstall in that file.

I removed all component manually and i try to install again.
See attachment!

impreza

great mod, thanks for making it
Portal ToTemat.pl - Filmy i Artykuły

Spuds

Quote from: agent47 on January 11, 2011, 05:17:16 AM
How do I get this mod to do everything shown on this example page ?
I mean stuff like thumbnails and stuff? please help me out as I'm trying to create a wallpaper library?
If you are asking how to have the thumbnails in with the text then you are going to need a gallery like aeva which gives you the option to have images or albums in with your text.  Aeva also has a highslide lib but it does not have all the options that this highslide specific mod does, they do however coexist. 

You could also try this in combination with my ILA mod which allows the attachment thumbs to be in with the text but you don't have the control over the attachment images like you get with a gallery. 

There are also so download mods which might work ... I'd start with something that is going to give you the page layout you want and then worry about how to slide the images.

Spuds

Quote from: Jack_the_ripper on January 11, 2011, 06:30:36 AM
I removed all component manually and i try to install again.
See attachment!
Those errors are telling you that those extra themes don't have the same template  layout as default curve theme and as such the package manager can't figure out where to make the edits. 

Thats where you come in and will have manually make edits to get those themes to work.  From the looks of it its just the first edit to display.template.php which is the section that displays the attachments under the posts.  This line of code looks like this in curve:

if ($attachment['is_image'])
{
if ($attachment['thumbnail']['has_thumb'])
echo '
<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" /></a><br />';
else
echo '
<img src="' . $attachment['href'] . ';image" alt="" width="' . $attachment['width'] . '" height="' . $attachment['height'] . '"/><br />';
}


in core, and likely in those other themes, you will find this almost identical block of code, the difference in core for example is does not the two extra spacing tabs in those echo statements and core will have border="0" with those image tags.  Almost meaningless deltas but enough to throw the package manger off.  Just find that block and replace it with the new block of code that comes with this package.

agent47

#132
Quote from: Spuds on January 11, 2011, 09:12:52 AM
Quote from: agent47 on January 11, 2011, 05:17:16 AM
How do I get this mod to do everything shown on this example page ?
I mean stuff like thumbnails and stuff? please help me out as I'm trying to create a wallpaper library?
If you are asking how to have the thumbnails in with the text then you are going to need a gallery like aeva which gives you the option to have images or albums in with your text.  Aeva also has a highslide lib but it does not have all the options that this highslide specific mod does, they do however coexist. 

You could also try this in combination with my ILA mod which allows the attachment thumbs to be in with the text but you don't have the control over the attachment images like you get with a gallery. 

There are also so download mods which might work ... I'd start with something that is going to give you the page layout you want and then worry about how to slide the images.
Hey man... Thanks for responding..
I got Aeva and this mod installed. My site runs on TinyPortals which enables users to append php blocks. Anyways my initial question how do I implement this library. Say I wanted to create a library via a php/html block, could you like show me the code on how this is done please?

http://www.superheroalliance.net is my site btw

EDIT: Nevermind. I read through your post a couple of times and managed to get it working... Thanks alot buddy. Sexy mod btw :)

EDIT: Say I simply wanted to display the last 10 images of a particular album (say album No. 1) on the homepage, would it be possible to do that within a php/html block? If so; would you please be kind enough to share the code?

PortaMx is probably the best SMF portal!

Jack_the_ripper

#133
Quote from: Spuds on January 11, 2011, 09:35:30 AM
Quote from: Jack_the_ripper on January 11, 2011, 06:30:36 AM
I removed all component manually and i try to install again.
See attachment!
Those errors are telling you that those extra themes don't have the same template  layout as default curve theme and as such the package manager can't figure out where to make the edits. 

Thats where you come in and will have manually make edits to get those themes to work.  From the looks of it its just the first edit to display.template.php which is the section that displays the attachments under the posts.  This line of code looks like this in curve:

if ($attachment['is_image'])
{
if ($attachment['thumbnail']['has_thumb'])
echo '
<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" /></a><br />';
else
echo '
<img src="' . $attachment['href'] . ';image" alt="" width="' . $attachment['width'] . '" height="' . $attachment['height'] . '"/><br />';
}


in core, and likely in those other themes, you will find this almost identical block of code, the difference in core for example is does not the two extra spacing tabs in those echo statements and core will have border="0" with those image tags.  Almost meaningless deltas but enough to throw the package manger off.  Just find that block and replace it with the new block of code that comes with this package.

I replace this new code and after i upload the diplay.template.php i try to use package installer and install the mode but again error. :-[

I found something :
If i download rc3 version and i edit the theme_info torc4.
After i try to install there something.See attachments

Spuds

You pretty well lost me in what you did ....

Anyway don't think I can't explain it any better than I already did.  The mod makes theme edits, if the theme you are using does not have the same code layout as CURVE (and CORE does not)  it will fail and you will have to manually edit the theme after you install the mod.  In the next release I guess I'll add Core support, does anyone use that?

Jack_the_ripper

I use Core  ;) .

One last question:
If i install this mode manually (without package installer only manualy edit all files)it should work?

Spuds

#136
QuoteI use Core  ;) .
Doh!

For those who don't mind doing a little testing, here is a copy of V0.6 of the HS4SMF mod ... it has the following changes/updates.

o + Will now install in the Core theme as well as Curve (RC4)
o + Added ability to always show slideshow controls on images (Single image controls)
o + Smart slideshow grouping (by message) improved, now all images in a post will be part of the smart slideshow (attachments, images or Aeva gallery).  Images in signature are excluded.
o + Improved Aeva gallery interaction to provide similar Highslide effects as defined in the HS4SMF admin panel.
o + Goggle Picasa thumbnails in the form of http://lh3.ggpht.com/xyz/abc/123/987/s144/xyz.jpg will Highslide
o + Certain other image sites (imageshack) will Highslide from just the thumbnail image, the full link/image is no longer  required.
o + Updated to HS V4.1.9

Jack_the_ripper

Now it is working well in core  :laugh: :laugh:

In the Estalia
theme has a problem with the display.template.php but i think it is the theme fault.

agent47

Dude. You never gave an answer to my post? :(

PortaMx is probably the best SMF portal!

Arantor

Oh the joys of editing, it didn't get noticed as a result...
Holder of controversial views, all of which my own.


Advertisement: