Highslide 4 SMF Version 0.8.1
By Spuds (http://custom.simplemachines.org/mods/index.php?action=search;author=11359)
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2518)
LicenseThis modification is released under a BSD license, a copy of it with its provisions is included with the package.
IntroductionThis modification adds the highslide lightbox effect to images and attachments in your post.
===
Highslide JS is licensed under a Creative Commons Attribution-Non Commercial 2.5 License. This means you must get the author's permission and a commerical license to use Highslide JS on a commercial or governmental website, web application or SaaS project. Highslide (http://highslide.com/#licence)
Featureso Expands a thumbnail (attachment or in-line image) in to a full-size image in a picture frame when clicked
o Auto size images to fit browser window, with option to expand to full size with scrollbars
o Slideshow for images on page, grouping by topic or by individual messages in the topic
o Prev/Next with arrow keys
o Works for thumbnails from Postimage, Imageshack, Photobucket, iPicture, Radikal, Keep4u, Xs and Fotosik.
o Auto attaches to all images and optionally attachments. Can override an image from sliding by using the alt="ns" option to prevent specified images from highsliding, use it as [img alt="ns"]your image[/img]
There are many admin settings available with this mod, go to admin - configuration - modification settings - Highslide
o Disable/enable the mod
o Disable/enable the use of Coral CDN as JS/CSS source
o Disable/enable fade In/Out transition in Galleries
o Disable/enable Highslide credits
o Disable/enable Highslide on attachments
o Enable the slideshow feature, includes attachments and post images
o Smart slideshow option allowing each message in a post to have its own slideshow
o Provide similiar highslide effects on Aeva Gallery
o Expanded images to center of page or in place
o Define slideshow delay in seconds (0-10)
o Define graphical or mac style text boxes for slideshow controls
o Define the sideshow control bar location
o Define the frame style around the highslide image
o Define how dark to make the background page when highsliding an image
o Define the source for the text in the heading
o Define the source for the text in the caption
o Define how dark to make the background in the heading and caption area
o Define the location for the caption
o Define the location for the footer
o Disable/enable hiding the heading, caption and slide controls on mouse out
o Define the size and style of the slide controls
InstallationSimply install the package to install this modification on the SMF Default Curve theme.
Manual edits may be required for other themes.
This mod is compatible with SMF 2.0 only.
SupportPlease use the HS4SMF modification thread for support with this modification.
Changelog0.8.1 - 22 January 2012o ! Fixed minor compatibility issue with ILA
o ! Some more code cleanup, still needs more :'/
0.8 - 6 January 2012o + Updated highslide to 4.1.13
o + Moved HS language strings to language file from js files
o + Moved hs4smf language strings to own file instead of modifications.language
o + Added option to count highslide views in a message as a gallery view
o + Added license BSD 2 clause
o ! Fixed error with captionOverlay opacity
o ! Small updates to options panel layout
o ! Some code cleanup, needs more :X
0.7 - 21 March 2011o + Minor updates for 2.0 Gold
o ! fixed issue where aeva links were being hidden in a portal block
o ! fixed issue where the aspect ratio was being changed when the aeva option was enabled
o + Improved the caption logic, it will now show the aeva caption text when available on a gallery image and show the caption as defined in the admin panel for other images (attachments, in line image, etc).
Congrats! Nice mod :)
Agreed with Jblaze, good job!
Nice mod.
.
.
Does not work with the images hosted on imageshack.us
Error log:
Quotehttp://***/index.php?action=Error404
8: Undefined variable: sourcedir
File: /home/***/www/Sources/Subs.php
Line: 2465
File Subs.php, Line 2465:
$success = (include_once $sourcedir . '/hs4smf-Subs.php');
Quotehttp://***/index.php?/topic,3.0.html
8: Undefined index: hs4smf_slideshowdelay
File: /home/***/www/Sources/hs4smf-Subs.php
Line: 500
another error (error log)
---------------
index.php?action=profile;area=showposts;u=20314
2: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/hs4smf-Subs.php' for inclusion (include_path='.:/usr/local/php-5.2.13/lib/php')
Fichier: /home/site2455/web/www/forum/Sources/Subs.php
Ligne: 2432
-------------
------------------
index.php?action=profile;area=showposts;u=20314
2: include_once(/hs4smf-Subs.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory
Fichier: /home/site2455/web/www/forum/Sources/Subs.php
Ligne: 2432
-------------------
any idea please ?
There's a missing inclusion of $sourcedir into scope in the function.
Quote from: Arantor on May 02, 2010, 06:41:04 AM
There's a missing inclusion of $sourcedir into scope in the function.
any fix ??? ;)
The mod author will have to fix it - I'm just throwing in a comment as to where to look - I haven't even seen the code of the mod but can tell you that's the root cause.
For a quick fix, find this on ./Sources/Subs.php:
if((empty($cache_id) || substr($cache_id, 0, 3) != 'sig') && $context['current_action'] != 'stats' && $context['current_action'] != 'post' && $context['current_action'] != 'jseditor') {
if (!function_exists('hs4smf')) {
Add after:
global $sourcedir;
Thanks for the detailed bug reports ...
I've updated the mod to v0.3 and this should take care of the Undefined variable: sourcedir / include file failure and prevent the one error log issue of Undefined index: hs4smf_slideshowdelay. There are probably a couple of more of those undefined errors that I'll get fixed but wanted to get the update to fix the sourcedir issue out.
big thx arantor, Yağız and spuds ;) ;)
Downloading and trying...
how remove greu border from image in messages ? O:)
Quoteerror:
Error: The stylesheet http://www.foromilestone.com.ar.nyud.net/Themes/default/hs4smf/highslide.css was not loaded because its MIME type, "text/html", is not "text/css".
Source File: http://www.foromilestone.com.ar/foro-vip/propuestas-de-mejora-para-el-foro/new/?topicseen#new
Line: 0
any ideas on this?
www.foromilestone.com.ar
.nyud.net/Themes/default/hs4smf/highslide.css
Quote from: luismanson on May 05, 2010, 05:20:47 PM
error:
Error: The stylesheet http://www.foromilestone.com.ar.nyud.net/Themes/default/hs4smf/highslide.css was not loaded because its MIME type, "text/html", is not "text/css".
Source File: http://www.foromilestone.com.ar/foro-vip/propuestas-de-mejora-para-el-foro/new/?topicseen#new
Line: 0
any ideas on this?
www.foromilestone.com.ar.nyud.net/Themes/default/hs4smf/highslide.css
I have not seen that one before, and the file is identified as type="text/css" in the html file. It really seems like this may be a server issue, i.e., you need to set your server .htaccess file to give .css files the text/css mime type. I don't know why it would complain for this and not other stylesheets other than the directory it is served from.
Does highslide work as expected on those pages?
Also try turning off the Use Coral CDN as JS/CSS source in the options, could be one of their servers is mis-configured.
Quote from: Am' on May 05, 2010, 01:56:24 PM
how remove greu border from image in messages ? O:)
You will need to edit the highslide.css file in the Themes/default/hs4smf directory. In that file, near the top, you will see:
.highslide img {
border: 2px solid silver;
}
change the 2px to 0px and save the file.
i can not reproduce this error :|
it might be something related to the CDN as you say, or maybe something in that specific post
This mod would be great to adapt it to SMF 1.1.11. This is more customizable than the current one for that version.
I tried it without problems on my local test forum SMF 2 RC3, but the forum is in use on the Internet is SMF 1.1.11.
I would like to upgrade to SMF 2, but unfortunately there are several important mods that I like and use much in SMF 1.1.11 that do not work in version 2. That's the only thing that stops me.
Spuds, how do I install this function on other pages?
I want to use with my Ultimate Profile (theres a gallery embedded: http://www.tigrelog.com.br/index.php?action=profile;u=2296), is it possible? It's using CSS or PHP?
I'm sure its possible ...
The basic way Highslide works is to take an image tag and wrap with with a link to the full sized image or in html: <a class="highslide" onclick="return hs.expand(this)" href="link to full size image"><img src="link to thumbnail" /></a>
Then you also need to make sure the highslide css, javascirpt library and javascript init scripts are loaded in the page. The mod has an add footer / header function that you should be able to use.
Ok, thank you. Perhaps another time, hehehe..
Now, is there any "hack" I could use on BB code to avoid some images to have the grey border and highslide function? Like "img rel=nohighslide" or something?
is there a screenshot for this ?
Quote from: Sakae on May 13, 2010, 01:17:29 AM
Ok, thank you. Perhaps another time, hehehe..
Now, is there any "hack" I could use on BB code to avoid some images to have the grey border and highslide function? Like "img rel=nohighslide" or something?
Not right now, I could add something in the next update though, I'll add it to the list
Thank you.
If you need a start on this, AEVA mod has a "noembbed" function (used as BB code) integrated, when you don't want to convert a youtube URL in embedded code.
any feature for zooom images ? :p
Quote from: uniz5410 on May 01, 2010, 07:45:52 PM
Nice mod.
.
.
Does not work with the images hosted on imageshack.us
I quote this. Does ImageShack forbidden hotlinks or something?
Hi,
Firstly, I am totally new to all this.
Great mod!
I have managed to install the SA Facebook Connect Mod and a few other mods on a custom theme and got HS4SMF to also work with my custom theme, however when I add:
// HS4SMF enable footer
if (isset($modSettings['hs4smf_enabled'])) {
if (!function_exists('hs4smf')) {
global $sourcedir;
$success = (include_once $sourcedir . '/hs4smf-Subs.php');
if ($success)
echo hs4smf_prepare_footer();
}
else
echo hs4smf_prepare_footer();
}
I find that all of the text gets larger.
Can someone point me where I need to edit to stop this from happening?
If I remove the above code from the index.template.php text returns to normal correct size.
Thanks :)
The code is probably fine, its where you place it in the index template file that is important. Did you place that code in the template_html_below function?
Quote from: Sakae on May 14, 2010, 08:14:29 PM
Quote from: uniz5410 on May 01, 2010, 07:45:52 PM
Nice mod.
.
.
Does not work with the images hosted on imageshack.us
I quote this. Does ImageShack forbidden hotlinks or something?
Could you provide a couple of example links so I can check on this ... I have a testcase for imageshack and it works so there must be a variation that I'm missing.
Nevermind, I tested with thumbnail code of Imageshack, and it's working.
I was saying with Imageshack direct img code, using only tag "img", that is resized with SMF integrated function.
You can check both examples here:
http://www.tigrelog.com.br/index.php?topic=5896
I love this mod, but I'm trying to use it in conjunction with AEVA Media. It doesn't seem to work properly with images that have an URL like http://www.company.org/MGalleryItem.php?id=2 Any idea how I can get this to work together?
Quote from: Spuds on May 13, 2010, 06:14:56 PM
Quote from: Sakae on May 13, 2010, 01:17:29 AM
Ok, thank you. Perhaps another time, hehehe..
Now, is there any "hack" I could use on BB code to avoid some images to have the grey border and highslide function? Like "img rel=nohighslide" or something?
Not right now, I could add something in the next update though, I'll add it to the list
I think this is definitly a must! While I was adding blocks to SimplePortal in BBC editor, I just figured the images just got "Highslide", then I tried to figure a way around. Had to switch to HTML but really, that should be in the next update or so. In example if you add something like a logo at top of your post, you wouldn't want it to get the highslide effect and those borders etc..
Spuds, don't get me wrong! This is an amazing mod but I think this feature is like the last block of stone completing a pyramid.
I have installed this great mod and it works very well on the default theme but not on the theme I'm using (Blue Steel curve variant)
I can't find what code I need to add and where to put it....would one of you smart people help me out please! :-[
Disregard previous post I figured it out.... :-[ Forgive me I'm old and terrified of messing with code
Error..
1. Adapt Database add_settings.php
2. Execute Modification ./Sources/Admin.php Test successful
3. Execute Modification ./Sources/Subs.php Test successful
4. Execute Modification E:/HostingSpaces\Derby\derbhotjobs.com\wwwroot\Themes\default/Display.template.php Test successful
5. Execute Modification E:/HostingSpaces\Derby\derbhotjobs.com\wwwroot\Themes\default/index.template.php Test successful
6. Execute Modification ./Sources/ManageSettings.php Test failed
1. Add After ./Sources/ManageSettings.php Test successful
2. Add After ./Sources/ManageSettings.php Test failed
3. Add Before ./Sources/ManageSettings.php Test successful
7. Execute Modification E:/HostingSpaces\Derby\derbhotjobs.com\wwwroot\Themes\default/languages/Modifications.english.php Test successful
8. Execute Modification E:/HostingSpaces\Derby\derbhotjobs.com\wwwroot\Themes\default/languages/Modifications.english-utf8.php Test successful
9. Extract File ./Sources/hs4smf-Subs.php
10. Extract Tree E:/HostingSpaces\Derby\derbhotjobs.com\wwwroot\Themes\default/hs4smf
Quote from: derby on June 07, 2010, 03:06:50 PM
Error..
1. Adapt Database add_settings.php
2. Execute Modification ./Sources/Admin.php Test successful
3. Execute Modification ./Sources/Subs.php Test successful
4. Execute Modification E:/HostingSpaces\Derby\derbhotjobs.com\wwwroot\Themes\default/Display.template.php Test successful
5. Execute Modification E:/HostingSpaces\Derby\derbhotjobs.com\wwwroot\Themes\default/index.template.php Test successful
6. Execute Modification ./Sources/ManageSettings.php Test failed
1. Add After ./Sources/ManageSettings.php Test successful
2. Add After ./Sources/ManageSettings.php Test failed
3. Add Before ./Sources/ManageSettings.php Test successful
7. Execute Modification E:/HostingSpaces\Derby\derbhotjobs.com\wwwroot\Themes\default/languages/Modifications.english.php Test successful
8. Execute Modification E:/HostingSpaces\Derby\derbhotjobs.com\wwwroot\Themes\default/languages/Modifications.english-utf8.php Test successful
9. Extract File ./Sources/hs4smf-Subs.php
10. Extract Tree E:/HostingSpaces\Derby\derbhotjobs.com\wwwroot\Themes\default/hs4smf
I would say that you have a mod that changed ManageSettings.php so the installer can't find the correct area to insert its changes. What mods do you have installed?
Quote from: Phoestre on June 06, 2010, 06:59:59 AM
Quote from: Spuds on May 13, 2010, 06:14:56 PM
Quote from: Sakae on May 13, 2010, 01:17:29 AM
Ok, thank you. Perhaps another time, hehehe..
Now, is there any "hack" I could use on BB code to avoid some images to have the grey border and highslide function? Like "img rel=nohighslide" or something?
Not right now, I could add something in the next update though, I'll add it to the list
I think this is definitly a must! While I was adding blocks to SimplePortal in BBC editor, I just figured the images just got "Highslide", then I tried to figure a way around. Had to switch to HTML but really, that should be in the next update or so. In example if you add something like a logo at top of your post, you wouldn't want it to get the highslide effect and those borders etc..
Spuds, don't get me wrong! This is an amazing mod but I think this feature is like the last block of stone completing a pyramid.
Thats a very good suggestion, I'll add that in the next revision.
I'm getting error on install
managesettings.php test failed.
using 2.0 RC3
Excellent mod, thank you.
I'm getting an undefined error though (not affecting functionality, but it's a pain to keep clearing the error log lol)
Quote
8: Undefined index: hs4smf_slideshowcontrols
File: /path/to/forum/Sources/hs4smf-Subs.php
Any ideas?
Quote from: Scott S on June 11, 2010, 03:57:54 PM
Excellent mod, thank you.
I'm getting an undefined error though (not affecting functionality, but it's a pain to keep clearing the error log lol)
Quote
8: Undefined index: hs4smf_slideshowcontrols
File: /path/to/forum/Sources/hs4smf-Subs.php
Any ideas?
I hear you on the logs .... sorry about that .... Does the error log show which line is throwing the error? I think I know where it is occurring based on the index but what to be sure before I post a change.
Quote from: Spuds on June 11, 2010, 10:25:29 PM
I hear you on the logs .... sorry about that .... Does the error log show which line is throwing the error? I think I know where it is occurring based on the index but what to be sure before I post a change.
Afraid not. That's all it says.
Any suggestions will be gratefully received!
Try the following and lets see if it makes things better:
find:
$footer .= ($modSettings['hs4smf_slideshowcontrols'] == 0) ? 'hs.wrapperClassName = \'outer-glow \';' . "\n" : 'hs.wrapperClassName = \'outer-glow dark\';' . "\n";
replace with:
$footer .= (!isset($modSettings['hs4smf_slideshowcontrols'])) ? 'hs.wrapperClassName = \'outer-glow \';' . "\n" : 'hs.wrapperClassName = \'outer-glow dark\';' . "\n";
That seems to have done the trick, thanks Spuds :)
Quote from: Salkiri on June 03, 2010, 07:49:54 PM
I love this mod, but I'm trying to use it in conjunction with AEVA Media. It doesn't seem to work properly with images that have an URL like http://www.company.org/MGalleryItem.php?id=2 Any idea how I can get this to work together?
Anyone?
Quote from: Salkiri on June 03, 2010, 07:49:54 PM
I love this mod, but I'm trying to use it in conjunction with AEVA Media. It doesn't seem to work properly with images that have an URL like http://www.company.org/MGalleryItem.php?id=2 Any idea how I can get this to work together?
Sorry, I missed this when it was first posted ...
Where/how are you calling MGalleryItem? Generally its used as the direct link to an image or direct embed code and does not call SMF or its functions (ie its used to show an image from the media gallery on another site altogether) so I'm not sure how highslide work work in that instance.
So the direct link that would be used in the post would be would be like http://www.company.org/MGalleryItem.php?id=41 so you would use a tag like:
[img]http://www.black-company.org/MGalleryItem.php?id=41[/img]
It shows the image correctly, but instead of opening the highslide, it just opens the image in the same window.
OK now I understand .... I'll take a look into what might be going on and see if there is a fix.
thx, that would be great. and great mod btw!
OK .... Here is what I believe is occurring.
Using the AEVA direct link, as you have shown, is a link to the full sized image and that is what displays in the post, at least on the quick test that I did on my test forum. Since its already a full sized image there is nothing to highslide since its already expanded (granted it could be even larger but restricted to the post max setting). If you have a link where this is different please let me have it so I can see it in action.
Some options we could explore are to use thumb option (ie the id=xx;thumb) on the direct link tag and I could make an update to expand that. I could also look for img tags optional width / height attributes but I'm less keen on that idea.
Anyway let me know.
Hey,
Just installed this mod on a new SMF 2.0 RC3 forum with Aeva & WoW - World of Warcraft Tooltips. Getting 3 errors on install that don't seem to be affecting functionality but I figured they should be noted.
Type of error: General
http://*****/forum/index.php?action=admin;area=packages;sa=install2;package=HS4SMF_0.3.zip;pid=02: Invalid argument supplied for foreach()File: /home/*****/public_html/forum/Sources/DbPackages-mysql.php
Line: 194
Type of error: Undefined
http://*****/forum/index.php?action=admin;area=packages;sa=install2;package=HS4SMF_0.3.zip;pid=08: Undefined index: indexesFile: /home/*****/public_html/forum/Packages/temp/add_settings.php
Line: 228
Type of error: Undefined
http://*****/forum/index.php?action=admin;area=packages;sa=install2;package=HS4SMF_0.3.zip;pid=08: Use of undefined constant value - assumed 'value'File: /home/*****/public_html/forum/Packages/temp/add_settings.php
Line: 16
If you uninstall the modification and leave the MySQL entry for it then try to reinstall I receive many more errors (don't have them at the moment as I cleared my log).
Also Imageshack images are not working for me either, using a direct link to the image simply opens the image itself rather than in a Highslide box.
P.S.
Pretty sure this is purely a problem with the browser but Highslide doesn't seem to be working in Chrome, when I click an image i get the border for Highslide but nothing in it.
*UPDATE*
It seems that the problem with Highslide not working in Chrome is because of a plugin for Chrome that blocks advertisements also breaks Highslide. Easy fix is to either remove the plugin or whitelist any websites that you visit with Highslide on them.
Specifically for AdThwart (the plugin I am using) if you right click the icon for it and go to options then go to the "General" tab then uncheck "Experimental: Block some ads before they load".
Hi. I have installed this plugin, but when i click on the image, it just writes "Loading..." and nothing happens... For infinite time amount. When you click on the text loading, it disappears. I've enabled the plugin at options, haven't configured anything else.
That usually means that the JavaScript (highslide) is not loading correctly. Do you have a link that I can look at to see if I can determine what might be occurring in your instance? Also is this the default theme?
Yes, of course. I have a fresh installation, testing everything out at the moment. :)
Here you are: http://ekstaze.co.cc/test/forum/index.php?topic=1.0. And yea, i'm using the default theme, until i get everything working, then i can determine, which plugins will need modifications for the new theme.
Okay, website is up again. Please check it out.
Quote from: Axodious on July 06, 2010, 01:00:25 PM
Also Imageshack images are not working for me either, using a direct link to the image simply opens the image itself rather than in a Highslide box.
In hs4smf-Subs.php change
if (stripos($image['domain_url'], 'imageshack') !== false && preg_match('~(.*?)(?:\.th\.|)(png|gif|jp(e)?g|bmp)$~is' . ($context['utf8'] ? 'u' : ''), $image[4], $out)) {
$out = $out[1] . '.' . $out[2];
to
if (stripos($image['domain_url'], 'imageshack') !== false && preg_match('~(.*?)\.(?:th|)(png|gif|jp(e)?g|bmp)$~is' . ($context['utf8'] ? 'u' : ''), $image[4], $out)) {
$out = $out[1] . '.' . $out[2];
Temp fix
Quote from: frozenas on July 25, 2010, 10:50:20 PM
Yes, of course. I have a fresh installation, testing everything out at the moment. :)
Here you are: http://ekstaze.co.cc/test/forum/index.php?topic=1.0. And yea, i'm using the default theme, until i get everything working, then i can determine, which plugins will need modifications for the new theme.
Okay, website is up again. Please check it out.
Took a quick look, the main highslide javascript is not being loaded in to the page so the on-click event that is associated with the image can't fire. Since its not the default theme did you get any errors when you installed the mod (I'm assuming you did install it into this theme)? The index.template.php file in your theme needs to have the following in it.
// HS4SMF enable footer
if (!empty($modSettings['hs4smf_enabled'])) {
if (!function_exists('hs4smf')) {
global $sourcedir;
$success = (include_once $sourcedir . '/hs4smf-Subs.php');
if ($success)
echo hs4smf_prepare_footer();
}
else
echo hs4smf_prepare_footer();
}
in the default theme the above is insterted after this section
function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
Quote from: Sabre™ on July 26, 2010, 03:15:46 AM
In hs4smf-Subs.php change
if (stripos($image['domain_url'], 'imageshack') !== false && preg_match('~(.*?)\.(?:th|)(png|gif|jp(e)?g|bmp)$~is' . ($context['utf8'] ? 'u' : ''), $image[4], $out)) {
$out = $out[1] . '.' . $out[2];
Temp fix
Thank you very much for the updated regex ... have not looked at imageshack but did the link style change or was the old regex just a bit weak ...
Quote from: Spuds on July 26, 2010, 08:58:27 AM
Quote from: frozenas on July 25, 2010, 10:50:20 PM
Yes, of course. I have a fresh installation, testing everything out at the moment. :)
Here you are: http://ekstaze.co.cc/test/forum/index.php?topic=1.0. And yea, i'm using the default theme, until i get everything working, then i can determine, which plugins will need modifications for the new theme.
Okay, website is up again. Please check it out.
Took a quick look, the main highslide javascript is not being loaded in to the page so the on-click event that is associated with the image can't fire. Since its not the default theme did you get any errors when you installed the mod (I'm assuming you did install it into this theme)? The index.template.php file in your theme needs to have the following in it.
// HS4SMF enable footer
if (!empty($modSettings['hs4smf_enabled'])) {
if (!function_exists('hs4smf')) {
global $sourcedir;
$success = (include_once $sourcedir . '/hs4smf-Subs.php');
if ($success)
echo hs4smf_prepare_footer();
}
else
echo hs4smf_prepare_footer();
}
in the default theme the above is insterted after this section
function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
Oh, you must've hit the moment, where i switched the themes for around 10 minutes for another plugin.
Anyway, it is the default theme it is not working on. And that thing wasn't added to the index.template.php file in the default theme too, although the installation haven't any errors.
I have added this big column after global $context, $settings, $options, $scripturl, $txt, $modSettings;, so no everything in my website became oversized and it is still not working. :/ Won't remove it, in case you want to check it. I will have a question in these forums, also i have to set up joomla as a new installation website, moving from e107... So yea, i'm not in a rush about the plugin.
Now all the site says is database error ....
Eh, i'm editing the site by hand now, it's in maintenance mode. Maybe i'll get less errors that way. ALthough, i cannot find some files to edit. I will post, if i get any anyway...
Quote from: Spuds on July 26, 2010, 09:00:19 AM
... did the link style change or was the old regex just a bit weak ...
I'm not too sure if it had changed, as I hadn't looked at it before, but saw why the original string wasn't working.
Good job on this mod mate, it's a standard feature for me now.
Thanks :)
Quote from: Sabre™ on July 26, 2010, 03:15:46 AM
Quote from: Axodious on July 06, 2010, 01:00:25 PM
Also Imageshack images are not working for me either, using a direct link to the image simply opens the image itself rather than in a Highslide box.
In hs4smf-Subs.php change
if (stripos($image['domain_url'], 'imageshack') !== false && preg_match('~(.*?)(?:\.th\.|)(png|gif|jp(e)?g|bmp)$~is' . ($context['utf8'] ? 'u' : ''), $image[4], $out)) {
$out = $out[1] . '.' . $out[2];
to
if (stripos($image['domain_url'], 'imageshack') !== false && preg_match('~(.*?)\.(?:th|)(png|gif|jp(e)?g|bmp)$~is' . ($context['utf8'] ? 'u' : ''), $image[4], $out)) {
$out = $out[1] . '.' . $out[2];
Temp fix
the bug is fixed, but when I click on an image it does not zoom
any solution for that please ?
i tested this image :
[URL=http://img651.imageshack.us/i/28295439.jpg/][IMG]http://img651.imageshack.us/img651/7214/28295439.th.jpg[/img][/URL]
Good good mod.
Is there a way to implemented Simple Image Upload to viewer th in full size with Highslide?
Link to mod for SIU http://custom.simplemachines.org/mods/index.php?mod=1669 (also works in SMF 2.0 RC3)
This is an example of code generated by SIU
[url=http://www.postimage.org/image.php?v=TsQ9hw0]
[img]http://s2.postimage.org/Q9hw0.jpg[/img][/url]
Thanks
I should be able to add in support for that, but I'm still a few weeks away from being able to do any work on this mod due to travels. So stay tuned ;)
Hey Spuds,
Thanks a lot for creating this mod. It's exactly what I have been looking for, for a while now!
I am getting the follow error when installing:
3. Execute Modification ./Sources/Subs.php Test failed
1. Add After ./Sources/Subs.php Test failed
2. Add Before ./Sources/Subs.php Test successful
I didn't go through with the install since I don't want to break anything. Is there a quick fix to this?
I'm also using the following addons:
Aeva ~ Auto-Embed Video & Audio
InLine Attachments
TinyPortal
WoW - World of Warcraft Tooltips
And this is on a custom theme.
Thanks in advance!
I know its compatible with a couple of those mods .... what the error means is that the package is looking for a line in subs.php and is unable to find it, probably because another mod changed or moved the line .... its a common problem with multiple mods.
So ... if you install the mod you will have manually go in to subs.php and look for the line
// Cache the output if it took some time...
and add after that ....
// HS4SMF, call the highslide function on this message, but not on signature, stats or when in the editor
if((empty($cache_id) || substr($cache_id, 0, 3) != 'sig') && $context['current_action'] != 'stats' && $context['current_action'] != 'post' && $context['current_action'] != 'jseditor') {
if (!function_exists('hs4smf')) {
global $sourcedir;
$success = (include_once $sourcedir . '/hs4smf-Subs.php');
if ($success)
hs4smf($message, $cache_id);
}
else
hs4smf($message, $cache_id);
}
and then when you uninstall the mod you will have remove that same section by hand as well ....
if you want attach your subs php file so I can see why its not finding that line so I can try and make the package installer better.
Thanks for the prompt response! Very much appreciated!
Attached is my subs.php
I am getting these errors. Can anybody help?
Type of error: General
http://forum/index.php?pretty;board=teste1;topic=teste.msg13
2: Invalid argument supplied for foreach()
Arquivo: /.../Sources/hs4smf-Subs.php
Linha: 493
Type of error: Undefined
http://forum/index.php?pretty;board=teste;topic=teste.msg13
8: Undefined index: hs4smf_slideshow_group
Arquivo: /.../Sources/hs4smf-Subs.php
Linha: 493
I've uploaded a new version of the mod to the site ... the changes are as follows"
0.4 - 03 September 2010
o ! fixed some undefined error log entrys
o ! updated the database install program to fix init values and remove table dependency
o ! fixed imageshack error (thanks Sabre™)
o + added beta support for Postimage (Simple Image Upload) hosted images
o + added alt="ns" option to prevent specified images from highsliding, use it as [img alt="ns"]your image[/img]
Remember to uninstall the old version prior to installing this one.
Quote from: javi712 on September 01, 2010, 12:28:36 PM
Thanks for the prompt response! Very much appreciated!
Attached is my subs.php
:-[ If was my own mod causing the problem DOH ... To fix this you will need to un-install the ILA MOD and install the new 1.07 version which adds support for HS4SMF. Then install the the version of this mod as well. Both have some nice updates ...
Hardcoded text... (http://www.simplemachines.org/community/index.php?topic=357757.0)
Quote from: hs4smf-Subs.php$footer.= "hs.lang.number = 'Image %1 of %2';\n";
Quote from: ManageSettings.phparray('select','hs4smf_slideshownumbers', array(
'0' => "none",
'1' => "In Heading",
'2' => "In Caption",
)),
array('select','hs4smf_slideshowcontrollocation', array(
'1' => "Above",
'4' => "Top left",
'5' => "Top center",
'6' => "Top right",
'7' => "Bottom left",
'8' => "Bottom center",
'9' => "Bottom right",
'10' => "Below",
)),
'',
array('select','hs4smf_appearance', array(
'1' => "Highslide rounded-white",
'2' => "Polaroid Outline + Shadow",
'3' => "Borderless",
'4' => "Dark Outer-Glow",
'5' => "Plain and Simple",
'6' => "Dark and Glossy",
'7' => "Dark borderless, floating-caption")),
array('select', 'hs4smf_dimmingopacity', array(
'1' => "0% , No Dimming",
'2' => "10%",
'3' => "20%",
'4' => "30%",
'5' => "40%",
'6' => "50%",
'7' => "60%",
'8' => "70%",
'9' => "80%",
'10' => "90%",
'11' => "100%, full black")),
'',
array('select', 'hs4smf_headingsource', array(
'0' => "none",
'1' => "Image Title",
'2' => "Image Alt",
'3' => "Link Title",
'4' => "Post Subject")),
array('select', 'hs4smf_headingposition', array(
'0' => "none",
'1' => "Above image",
'2' => "Overlayed on top",)),
array('select', 'hs4smf_captionsource', array(
'0' => "none",
'1' => "Image Title",
'2' => "Image Alt",
'3' => "Link Title",
'4' => "Post Subject")),
array('select', 'hs4smf_captionposition', array(
'0' => "none",
'1' => "Below image",
'2' => "Overlayed on bottom",)),
array('select', 'hs4smf_sourceopacity', array(
'1' => "0% , No Dimming",
'2' => "10%",
'3' => "20%",
'4' => "30%",
'5' => "40%",
'6' => "50%",
'7' => "60%",
'8' => "70%",
'9' => "80%",
'10' => "90%",
'11' => "100%, full black")),
Well you know it is a mod for a release candidate, i was waiting for smf2 to go gold to update that :P
I'll look to pull those into a language file, or maybe go for a tooth extraction, not sure which will be more fun !
I am trying to add another option for the caption, but I am out of luck.
The option would be the attachment name. Shouldn't 'this.a.name' work?
Never mind. Source for the text in the caption set to image alt does the trick. :-[
Ok I've uploaded a new version with the language edits, but since I did not want to release a new version that really offered no changes I added some!
Changelog
0.5 - 05 September 2010
o + moved admin menu items to language strings
o + enabled small and large dark graphic controls
o + added hide slideshow controls on mouse out
o + added ability to set window background color
o + added x,y nudge so you can tweak the slideshow controls position
o + improved logic for handling how/where controls appear when in header/footer or overlayed.
o ! if no text is found for heading or caption a blank will be inserted to maintain formatting (captioneval and headingeval)
highslide not worked on this image :
[img]http://img291.imageshack.us/img291/7461/sanstitre2zt.jpg[/img]
confirmed ... I'll get a 0.5a out in a few mins ....
0.5a has been uploaded ... this should fix the imageshack issues folks were having with both thumbs and full images. Give it a try!
thx
this not work :
[img]http://a.imageshack.us/img828/3141/92265225.jpg[/img]
someone can confirm that ?
Works fine for me .... You do realize that's a full sized image and that highslide will not make it a thumbnail for you.
I have my image max set to 300 x 300, so instead, I changed the img array to 'before' => '[img width=300 height=300]',
Its a rough hack, but works, and is globally forced lol :P
That would do it :)
In the example the link could be posted with a width attribute like [img width=150]http://a.imageshack.us/img828/3141/92265225.jpg[/img]
and he would get a thumbnail ... or just post the thumbnail image that is provided from imageshack to begin with.
If you post an imageshack thumbnail the mod will figure out what the full sized image is for a given thumbnail but it does not put in a thumbnail when someone posts a full sized image .... I suppose I could make that an option in the future.
I having a problem when setting IE8 to compatibility mode.
Error comes from this line:
if (hs.addSlideshow) hs.addSlideshow({slideshowGroup: '12',interval: 5000,repeat: true,useControls: true,fixedControls: 'fit',overlayOptions: {opacity: .80,position: 'bottom center',offsetX: 0,offsetY: 20,hideOnMouseOut: true,},});
At the end where it reads "hideOnMouseOut: true,"
Message: Expected identifier, string or number
I have changed the following lines ( ) and now it works in IE8 compatibility mode. I did not check other browsers.
before
$footer .= (isset($modSettings['hs4smf_slideshowmouse']) && !empty($modSettings['hs4smf_slideshowmouse'])) ? 'hideOnMouseOut: true,' : 'hideOnMouseOut: false,';
$footer .= "},";
$footer .= "});\n";
after
$footer .= (isset($modSettings['hs4smf_slideshowmouse']) && !empty($modSettings['hs4smf_slideshowmouse'])) ? 'hideOnMouseOut: true' : 'hideOnMouseOut: false';
$footer .= "}";
$footer .= "});\n";
Please note the commas.
QuoteI having a problem when setting IE8 to compatibility mode.
Error comes from this line:
if (HS.add Slideshow) HS.add Slideshow({slide showGroup: '12',interval: 5000,repeat: true,useControls: true,fixedControls: 'fit',overlayOptions: {opacity: .80,position: 'bottom center',offsets: 0,offset: 20,hedonist: true,},});
At the end where it reads "hideOnMouseOut: true,"
Message: Expected identifier, string or number
Thanks for the report :) have to ask why you were running with show all JavaScript errors set to on? What was strange is that with setting off ever thing worked as expected but with it on it showed what ie7 considered a syntax error and I guess then disabled the script ....
I made the changes and uploaded a .5b version, tested in ie6,7,8 ff 3,4
Quote from: Spuds on September 11, 2010, 12:35:19 PM
QuoteI having a problem when setting IE8 to compatibility mode.
Error comes from this line:
if (HS.add Slideshow) HS.add Slideshow({slide showGroup: '12',interval: 5000,repeat: true,useControls: true,fixedControls: 'fit',overlayOptions: {opacity: .80,position: 'bottom center',offsets: 0,offset: 20,hedonist: true,},});
At the end where it reads "hedonist: true,"
Message: Expected identifier, string or number
Thanks for the report :) have to ask why you were running with show all JavaScript errors set to on? What was strange is that with setting off ever thing worked as expected but with it on it showed what ie7 considered a syntax error and I guess then disabled the script ....
I made the changes and uploaded a .5b version, tested in ie6,7,8 ff 3,4
I don't recall changing that setting.
BTW, why the heck "hideOnMouseOut: true" was changed to "hedonist: true" ??!??!
Thats pretty strange, all I did was a copy/paste in to a quote block .... Ah now I see good old spell check !
Hi!
I am using Outline theme ( Dziner studio ), and when I click on picture it just open it in another window.
Slider is working fine in default theme.
Is there something I can do about that?
Thanks.
When you install the package, there is an option section towards the bottom of the screen in a section called Install in Other Themes. You need to expand that and allow the modifications to be installed in the outline theme ** IF ** it will install without error from the package manager. If it shows an error then you will need to manually install it.
I did not see that option. Sorry!
It is working great now :).
Great ... glad you were able to get it working!
Does this mod also handle HTML in a pop up?
http://highslide.com/tutorial#highslide-html
Quote from: droz928 on September 17, 2010, 07:51:23 PM
Does this mod also handle HTML in a pop up?
http://highslide.com/tutorial#highslide-html
No and it would take some new bbc code to wrap the html inside like a code block, not sure how else you would embed html inside of a message ....
Hmmm ok might look into doing that than. Thank you!
I believe there is a [html][/html] tag that you might be able to add a type=hs in to, then if you find that tag and type highslide it vs display it in line like the code tag does.
Would i need to modify the higslide.js for it? The tutorials says something about a configuration setting
The library that I have with the mod was created with the following options, default +slideshow +positioning +transitions +viewport +thumbstrip +packed You would need to go to highslide Configurator and add in whatever html support for whatever functionality you are trying to add.
Excellent mod...
Hi, again!
I installed mod: SMF Bay PRO.
Uploaded item pictures ( on auctions ) are opening in another window.
Is there a way to apply Highslide 4 options to these pictures, and how to do that?
Thanks!
I took a very quick look at that mod, it uses its own image handling functions and not SMF's. Nothing I can do via this mod, its the SMF Bay mod that would need to be made aware of other image handling functions and call them when available.
OK, thanks.
same problems (console firefox) :
Erreur : missing ; before statement
Fichier Source : http://www.site.com/forum/communication-et-multimedia/cr-de-la-seance-d%27entrainement-de-l%27equipe-espoir/
Ligne : 807, Colonne : 17
Code Source :
hs.captionText = 'CR de la séance d'entrainement de l'équipe espoir du 07.10.10'
Quotehs.captionText = 'CR de la séance d'entrainement de l'équipe espoir du 07.10.10'
Thanks for the report ... I can't get to the site you referenced in your post, however I believe the problem is in the hs4smf-Subs.php Open up that file and go to lin 344, it should be
$footer .= 'hs.captionText = \'' . $temp . "'\n";
replace with
$footer .= 'hs.captionText = \'' . $temp . "';\n";
See if that clears up the console ...
it does not work, always error
I think the apostrophe is not escaped ... as on other subjects, no problem
well with all the possible permutations of how you might have set up the mod options and not being able to view a site where the the problem exists I can't really help .... :(
EDIT:
Am' was able to provide me access to see the issue first hand, looks like a couple of contributing factors were at work (mainly special characters in a subject breaking the javascript) .... I released an .5d version to clean those issues up.
I cant get this to work. I'm using 2.0 rc3. I have downloads pro installed but vb has given us an option to not use his hightslide now in his last update, I requested it as I thought that was what was making this mod not work.
I also have aeva lite installled but nothing else I can think of that would conflict with it.
Downloads pro is based off the forum so images I upload there should use it shouldnt they?
QuoteI have downloads pro installed
I have no way to test that mod to see what it is doing, vb will have to help in that regard as I can't test what I don't have :(. HS4SMF runs at the end of page loads and looks for attachments and img tags in a page and modifies the html so that highslide is attached to those items. If you can provide me a page to view then maybe I can see what is happening.
Full Aeva also has its version of highslide but hs4smf and aeva do co-exist but there are some issues. Its best to always install aeva and then hs4smf , and if you update aeva you should uninstall and re-install hs4smf as it hooks in to one of aeva files to help with compatibility.
Excelent mod, ..
In RC3 was amazing for my site.. but .. :'( now please in RC4 please please
Quote from: kaitenkid on November 03, 2010, 12:29:19 PM
Excelent mod, ..
In RC3 was amazing for my site.. but .. :'( now please in RC4 please please
You package version 'e' is now available for RC4 users only ....
I got this error and believe this is the problem for 2.0RC4:
Execute Modification ./Themes/core/Display.template.php Test failed
1. Replace ./Themes/core/Display.template.php Test failed
I don't think the core theme will be in the final release, as such I did not do any work to have the mod install in that theme. If you want to use core you will have to manually add in the changes to the display template file.
Hi Spuds,
I've previously used the other Highslide Inage Viewer mod with SMF 2 RC2&3 but as it's not been updated for a while and will not install in RC4 - even using RC2 emulation - I've decided to switch to yours. It works very well with no problems installing on RC4. Many thanks.
Like some others, I also use the SMF Gallery and neither the original HSIV or you're mod works directly with it.
There was a use fix given for HSIV that allowed full functionality of the Highslide facility in the Gallery which consisted of the following changes to Themes/Default/Gallery2.template.php
Find:
// Show the pictures
$rowlevel = 0;
$styleclass = 'windowbg';
$image_count = $context['gallery_image_count'];
if ($image_count == 0)
{
echo '
<tr class="' . $styleclass . '">
<td colspan="4" align="center"><b>',$txt['gallery_nopicsincategory'],'</b></td>
</tr>
';
}
foreach($context['gallery_image_list'] as $row)
{
if ($rowlevel == 0)
echo '<tr class="' . $styleclass . '">';
echo '<td align="center"><a href="' . $scripturl . '?action=gallery;sa=view;pic=' . $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 />';
echo '<span class="smalltext">' . $txt['gallery_text_views'] . $row['views'] . '<br />';
Replace with:
// Show the pictures
$rowlevel = 0;
$styleclass = 'windowbg';
$image_count = $context['gallery_image_count'];
if ($image_count == 0)
{
echo '
<tr class="' . $styleclass . '">
<td colspan="4" align="center"><b>',$txt['gallery_nopicsincategory'],'</b></td>
</tr>
';
}
foreach($context['gallery_image_list'] as $row)
{
if ($rowlevel == 0)
echo '<tr class="' . $styleclass . '">';
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>';
This almost makes your mod fully compatible with SMF gallery. I now get the magnifier over the images in the gallery but when clicked they open as an enlarged image on the page rather than in the typical highslide box.
Could I ask you to tell me how to modify this code so that I can integrate your mod correctly into SMF gallery.
Attached is the original Gallery2.template.php if it helps.
Many thanks
Chas
Chas,
hs4smf does not use the "Unobtrusive" format of highslide, so you should just be able to replace the
rel="highslide"
in your modified code with
Quoteonclick="return hs.expand(this)"
Give that a try and let me know, I'm not really familiar with SMF Gallery so if that does not work I'll do some further digging around.
Quote from: Spuds on December 05, 2010, 07:42:16 PM
Chas,
hs4smf does not use the "Unobtrusive" format of highslide, so you should just be able to replace the
rel="highslide"
in your modified code with
Quoteonclick="return hs.expand(this)"
Give that a try and let me know, I'm not really familiar with SMF Gallery so if that does not work I'll do some further digging around.
Thanks Spuds, great, that fixes the highlight box effect. The only other issue is that I don't get the slideshow buttons at the top but can use the left and right arrow keys. I did with the previous version. I have "use Slideshow" enabled and in posts where there are multiple attachments, the slideshow feature works fine.
Any ideas?
Chas
QuoteI don't get the slideshow buttons
You can try one thing, after that I'd need to see a sample page to know for sure .... change the onclick event to be
onclick="return hs.expand(this, { slideshowGroup: 'fullgroup' })"
- or -
onclick="return hs.expand(this, { slideshowGroup: 'group1' })"
we need to tie in the control bar overlay via a slidegroup and I'm not sure what is being generated without seeing it ....
Thanks for the suggestions Spuds but either of those changes result in a parse error:
Quote from: parse errorParse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/nas05l/f/fiftyplusforum.co.uk/user/htdocs/forum/Themes/default/Gallery2.template.php on line 198
Attached is a screenshot which shows how an expanded image looks.
If you need to join the forum to see for yourself, please PM me and I'll send you a login.
Sorry about that, forgot that was inside of an echo .... anyway lets go back to the start ....
find:
// Show the pictures
$rowlevel = 0;
$styleclass = 'windowbg';
$image_count = $context['gallery_image_count'];
if ($image_count == 0)
{
echo '
<tr class="' . $styleclass . '">
<td colspan="' . $maxrowlevel . '" align="center"><b>',$txt['gallery_nopicsincategory'],'</b></td>
</tr>
';
}
foreach($context['gallery_image_list'] as $row)
{
if ($rowlevel == 0)
echo '<tr class="' . $styleclass . '">';
echo '<td align="center"><a href="' . $scripturl . '?action=gallery;sa=view;pic=' . $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 />';
replace with:
// Show the pictures
$rowlevel = 0;
$styleclass = 'windowbg';
$image_count = $context['gallery_image_count'];
if ($image_count == 0)
{
echo '
<tr class="' . $styleclass . '">
<td colspan="' . $maxrowlevel . '" align="center"><b>',$txt['gallery_nopicsincategory'],'</b></td>
</tr>
';
}
if (!isset($settings['hs4smf_slideshow']) && $image_count > 1) {
$settings['hs4smf_slideshow'] = 1;
$settings['hs4smf_slideshow_group']['fullgroup'] = $image_count;
$settings['hs4smf_img_count'] = $image_count;
}
foreach($context['gallery_image_list'] as $row)
{
if ($rowlevel == 0)
echo '<tr class="' . $styleclass . '">';
echo '<td align="center"><a href="' . $modSettings['gallery_url'] . $row['filename'] . '" class="highslide" onclick="return hs.expand(this, { slideshowGroup: \'fullgroup\' })">
<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>' . '" title="' . $row['title'] . '" /></a><br />';
that should set up the gallery to use the slide controls you have chosen in the admin panel, including image counts (if enabled) and picture title in the caption / heading if enabled.
Note the original code you supplied had removed the view count and also removed the start of the smalltext span for the image information (left the ending span in place) ... not sure that was intentional or not but I put it back to look like what was supplied with the gallery and not have the html error.
Hi Spuds,
Thanks again for taking the time to try and sort this issue out, I/we really appreciate it.
I have applied the fix and it's brought the image title back to the image when the mouse cursor is hovered over it but no slideshow controls other than the left and right arrow keys. See attached.
It's not a ball buster as the functionality is there but some members like to see buttons ;)
Chas,
Yup after I typed in that response I remembered that I forgot one step :-[
find:
function template_image_listing()
{
global $scripturl, $txt, $context, $modSettings, $id_member;
replace with:
function template_image_listing()
{
global $scripturl, $txt, $context, $modSettings, $id_member, $settings;
Brilliant :D
Thanks Spuds, you've made a lot of people very happy.
Kind regards
Chas
Thank you very much! Highslide 4 SMF just installed perfectly on RC4.
Looks very nice and is working quite well with Aeva 1.4c.
thanks,
Lou :)
Hi all,
I just installed HS4SMF on RC4, only theres 1 problem .... when i click the photo it stays loading the photo but nothing else happends?
Thanks
Are you using a custom theme or the standard curve theme? Just loading generally means that not all of the javascript bits have been loaded.
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
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.
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.
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.
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.
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. ;)
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
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.
How do I get this mod to do everything shown on this (http://highslide.com/) example page ?
I mean stuff like thumbnails and stuff? please help me out as I'm trying to create a wallpaper library?
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!
great mod, thanks for making it
Quote from: agent47 on January 11, 2011, 05:17:16 AM
How do I get this mod to do everything shown on this (http://highslide.com/) 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.
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.
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 (http://highslide.com/) 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?
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
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?
I use Core ;) .
One last question:
If i install this mode manually (without package installer only manualy edit all files)it should work?
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
Now it is working well in core :laugh: :laugh:
In the Estalia (http://custom.simplemachines.org/themes/index.php?lemma=2198)
theme has a problem with the display.template.php but i think it is the theme fault.
Dude. You never gave an answer to my post? :(
Oh the joys of editing, it didn't get noticed as a result...
Quote from: agent47 on January 14, 2011, 09:32:47 AM
Dude. You never gave an answer to my post? :(
Are you referring to this part of your post? I missed that when you did the Edit :(
QuoteEDIT: 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?
I think it would be best to ask in the Aeva mod thread, and I'd search it first in case someone already did just what you are asking.
Hey, i was wondering, does this mod resize images in [img] tags in normal posts to fit the post area?
Everything else seems to be working 100% but it won't resize images that aren't attachments (2.0 RC4) running the Inferno theme
Quote from: GolfWizard on February 16, 2011, 02:03:47 PM
Hey, i was wondering, does this mod resize images in [img] tags in normal posts to fit the post area?
Everything else seems to be working 100% but it won't resize images that aren't attachments (2.0 RC4) running the Inferno theme
The size of posted pictures in [
IMG] tags is governed by Admin >> Config >> Features & Options >> Layout
Max width of posted pictures (0 = disable) >> 770 < My values
Max height of posted pictures (0 = disable) >> 600 < My values
When posted they are restricted to this size and HS4SMF will expand them if they are larger.
Excellent mod but I'm getting an undefined error though, not affecting functionality but a lot of errors appears in the error log
Citar
8: Undefined variable: out
File: /hs4smf-Subs.php
Lines 172 & 173
This lines:
171// update the anchor link and tag with the fixed image
172 $image['a_tag'] = str_replace($image['a_link'], $out, $image['a_tag']);
173 $image['a_link'] = $out;
174 return $image;
175 }
Any ideas?
Means its having a problem with one of the image sites links (imageshack, photobucket, etc). Do you have a web page I could see where the error occurs. I need to see which image site is being used and how the link is constructed.
can see it here, sorry for my English translated by google;)
http://www.solott.com/foros/index.php?action=forum
thanks for your time!
Could you point me to a page topic that has images on it that are known to throw the error? It should be in the error log as to which page view generated the error.
BTW .... Nice site ... I have a whole bunch of RC stuff myself ...
sorry, in this pages appears the error, and the images are uploaded to postimage.org
http://www.solott.com/foros/index.php?topic=2426.0
http://www.solott.com/foros/index.php?topic=5111.0
If you ever want to do some racing with RC, you know where to find me;)
Thanks again for your help!
Hi Spudz,
You very kindly helped me with the issue I had with SMF Gallery lite integration and it's still working well... except, I've just found a small issue. If, in Gallery I select the "My Images" page, the HS magnifier does not appear. All other pages and albums show the magnifier works fine.
I'm happy to give you a logon to our forum via PM if you need it.
Thanks
Chas
@carajo -- have not had a chance to look yet but will ! And who knows maybe someday I'll take you up on that RC offer :D
@Chas Large --- please pm me an id so I can take a look ... I've seen this issue before with Aeva and its an incompatibility with the way highslide overlays the magnifier image and certain css constructs that create rounded corners on images. Don't know if its the same problem or not but will take a look.
i just installed this mod .. enabled it.. but i cant see any changes.. i posted some new pictures but i cant see any change..
http://www.amigozone.com/atif-fan-club/share-all-pix-of-atif-aslam-!!!!!/new/#new
Edit: Sorry i got it working finally
but my website is taking too much time loading the page..??
it takes ages loading this js http://www.amigozone.com.nyud.net/Themes/default/hs4smf/highslide.js
what to do??
plus photos on this particular page are not working in highslide??
http://www.amigozone.com/fashion/new-sherwani-designs-for-men
waiting for reply :)
Quotebut my website is taking too much time loading the page..??
Turn off the "Use Coral CDN as JS/CSS source " option in the highslide control panel ...
Unfortunately that sometimes helps or hurts .. in this case its greatly delaying the page load. Due to the way highslide is licensed there is not a nice google code alternative fpr a CDN so I attempted to use Coral but its not all that great ATM.
I have not had a chance to look at the images yet.
QuoteExcellent mod but I'm getting an undefined error though, not affecting functionality but a lot of errors appears in the error log
Citar
8: Undefined variable: out
File: /hs4smf-Subs.php
Lines 172 & 173
seems to have been solved by adding ,$out in line 136 of hs4smf-Subs.php
136 global $context, $out;
No errors in log, and mod working perfect!.
Quote from: carajo on February 23, 2011, 02:52:46 PM
QuoteExcellent mod but I'm getting an undefined error though, not affecting functionality but a lot of errors appears in the error log
Citar
8: Undefined variable: out
File: /hs4smf-Subs.php
Lines 172 & 173
seems to have been solved by adding ,$out in line 136 of hs4smf-Subs.php
136 global $context, $out;
No errors in log, and mod working perfect!.
Finally got some time to look at this one ...postimage.org requires some special processing which will not work on all hosts.
When its working correctly you should be able to click on a postimage.org thumbnail and have it expand in place, when its not working it should default back to opening a new window/tab to show the large image. I actually found two bugs, one you were not experiencing, one you were. I'll have those fixed in the next update.
Regarding your fix, instead of adding $out to the global line, you should just be able to add a line with $out = ''; after the current global line.
problems after upgraded to the newest version
in aeva media, whenever i click on an image
an extra control pad will pop up on top left corner
the numbers of extra control pad equal to the number of images i click
see attachment 11
images that used to be sliding now no longer slides
(some images do some images dont, even when they all hosted by the same image host)
see attachment 22
What happens if you don't enable the Aeva option in the hs4smf mod panel? If its still wrong with that option off please attach your Aeva-Subs.php file so I can take a look.
alright if i disable the aeva option the 1st problem gone
btw i use aeva 2.1 commercial ver
but the second problem is still there
Quotealright if i disable the aeva option the 1st problem gone
btw i use aeva 2.1 commercial ver
Me to, so thats what I did testing on ... if you attach your Aeva-Subs.php file I can see if for some reason this mod did not get installed correctly, it makes a couple of edits to that file so Aeva and hs4smf play nice together.
Quotebut the second problem is still there
I went to your site and looked at a post with the image you attached and when I clicked on it highslided for me. So if you are you still having the problem, if so could you post a link where I can take a look, maybe I looked at the wrong post.
QuoteI went to your site and looked at a post with the image you attached and when I clicked on it highslided for me. So if you are you still having the problem, if so could you post a link where I can take a look, maybe I looked at the wrong post.
bcuz i switched back to 0.5e
QuoteMe to, so thats what I did testing on ... if you attach your Aeva-Subs.php file I can see if for some reason this mod did not get installed correctly, it makes a couple of edits to that file so Aeva and hs4smf play nice together.
here, with 0.5e installed
additional information: when i install 0.6 i didn't get any errornvm i just uninstalled 0.5e and re-installed 0.6 so u can take a look
i reattached the sub file with 0.6 installed
also to my second question:
here is a link to a post with photobucket image that doesnt slide
http://kumakuni.com/index.php?topic=2545.0
here is a link that does
http://kumakuni.com/index.php?topic=2536.0
additional info: i just found out that all the non-sliding images are located in child boards
Thanks ... I'll start to dig through this in the AM and get it fixed.
Here is a new file for you to test, I was able to reproduce some of the errors you were seeing and found a couple of things which were like likely problem .... Just replace the hs4smf-Subs.php file in your sources directory with this one and let me know what you find.
tested... still producing the same errors
Please post the exact [img tag as is in that post
[img width=102 height=160]http://i282.photobucket.com/albums/kk241/Eudemon_Randy/A11821-7.jpg[/img]
again, all the images in child board won't slide
maybe something has to do with message.template?
and still aeva is doing those extra pop ups
do u have these errors, or is it just me?
tested in default theme, got the same problems
Strange ... just tried that on my test forum and it expanded just as it should with that IMG link ... don't know what else to tell you to try at this point :-X
I've re-attached the file in the previous post in case I attached the wrong one last time, don't know what else to try
O:) oh it's working now with ur re-attached file
both errors fixed
it didn't work bcuz i used the wrong one u attached
anyways, good job man
:D awesome .... I must have uploaded the original file or something, it should also work (oh please) correctly with Aeva as well ...
yea, the aeva problem is fixed too
but unfortunately i found a new bug regarding to aeva
the images are not resized with respective width and height
all the images in aeva are little too wide
Thank you for making this amazing mod. It is working great except for one problem. When I attach an image that is scaled by its height, highslide (or smf) is creating the right size thumbnail (by height) but its displaying the thumbnail stretched by the width. I have been setting the max height to 50000 so that it only scales by width but it is making for some very long thumbnails. Any way to fix this?
Aside from that there is one modification I would like to do to this mod but I need help. I would like the images to clickable twice for full zoom rather than to close the image. Here is the example:
http://www.roadrash.no/hs-support/example-expand-twice.htm
I have added:
// Expand the extra large image when clicking the expanded image
hs.Expander.prototype.onImageClick = function() {
if (this.custom) {
hs.expand(this.content, { src: this.custom.large, allowSizeReduction: false });
return false;
}
};
and
hs.registerOverlay({
html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
position: 'top right',
fade: 2 // fading the semi-transparent overlay looks bad in IE
});
but I also need to change the image links to come out like this:
<a href="images/009.jpg" class="highslide" onclick="return hs.expand(this, null, {large: 'images/009.large.jpg'})">
<img src="images/009.thumb.jpg" alt="Highslide JS"
title="Click to enlarge" height="120" width="120" /></a>
I'm assuming I need to edit the onclick tag and anchor link part of hs4smf-subs.php but I'm not sure what to change it to to get the desired results.
Please help me!
add:
I forgot to mention that I'm using highslide-full.js rather than highslide.js.
I spuds...
I want to kindly ask you if you can advise how to implement this great mod to work in SMF Gallery.
This mod is really fantastic and I have aksed thi developer of SMF Gallery if they you implement af this functionallity but they replied negative.
So I thought that you might have the ability to advice how and where to change.
Quote from: henrik1782 on March 11, 2011, 09:07:10 AM
I want to kindly ask you if you can advise how to implement this great mod to work in SMF Gallery.
I had posted a couple of changes you can make to SMF Gallery to work with HS4SMF, gives some of the functionality. Those updates are
http://www.simplemachines.org/community/index.php?topic=379200.msg2874646#msg2874646
and
http://www.simplemachines.org/community/index.php?topic=379200.msg2875060#msg2875060
Give those a try and see if it gives you what you want.
Appreciate ...
Just what I was looking for... thanks
Quote from: Eudemon369 on March 01, 2011, 08:12:53 PM
yea, the aeva problem is fixed too
but unfortunately i found a new bug regarding to aeva
the images are not resized with respective width and height
all the images in aeva are little too wide
Somehow I missed this bug report :-[ ..... I've attached an updated hs4smf-Subs.php file that should fix the aspect ration issue you are seeing in aeva when the aeva option is set in hs4smf.
Quote from: Spuds on March 15, 2011, 10:52:09 AM
Somehow I missed this bug report :-[ ..... I've attached an updated hs4smf-Subs.php file that should fix the aspect ration issue you are seeing in aeva when the aeva option is set in hs4smf.
yeah, good thing u found it
i was wondering why u ignored me for days :P
>:( :(
I have no idea what makes you mad and sad ....
are this fixed files included in installation package?
Quote from: Spuds on March 16, 2011, 03:41:36 PM
I have no idea what makes you mad and sad ....
same here
i laughed when i saw this
Quote from: Leniek on March 17, 2011, 12:52:47 PM
are this fixed files included in installation package?
Not yet, but you safely overwrite the hs4.php in your sources directory with the one a couple of posts above this one (it will not affect uninstalling the mod at all).
Quote from: Eudemon369 on March 17, 2011, 03:57:34 PM
Quote from: Spuds on March 16, 2011, 03:41:36 PM
I have no idea what makes you mad and sad ....
same here
i laughed when i saw this
Glad it was not just me :D Hopefully they will provide more information.
thank you for your very beautiful mod. Installed and officially used as my standard feature.
spuds i need ur help
i got this sliding code from tinyportal
// Configurable Graphics block
// for use with TinyPortal 1.0 Beta5
// for use with Aeva multimedia mod for SMF
// by BlueSteel 18th April 2010
// @TinyPortal : http://www.tinyportal.co.uk/index.php?topic=32504.0
// Scrolling Options - on/off direction, speed, delay
// Item display options Random/Newest, number of item to display,selectable albums
// Marquee script Variables
$marq_offon = 1; // 0=off 1=on
$marq_behavior = "scroll"; // what should marquee do "scroll"
$marq_direction = "up"; // "left" , "right" , "up", "down"
$marq_height = "500px"; // size of viewable block area
$marq_scrolldelay = 10; // delay iteritions
$marq_scrollamount = 1; // how many pixels to scroll block each iteration
$marq_onmouseover = "this.stop()"; // what to do on mouseover
$marq_onmouseout = "this.start()"; // what to do on mouseout
// Aeva script variables
// - Gets items : array aeva_getMediaItems(int start, int limit, string sort, bool all_albums, array albums, string custom)
$aeva_start = 1; // where item number to start at
$aeva_limit = 30; // maximum number of items to display
$aeva_sort = 'm.time_added DESC'; // sort see Aeva-Subs.php for values I use 'RAND()' or 'm.time_added DESC' DESC or ASC for sorting order
$aeva_all_albums = true; // all albums .. true or false
$aeva_albums = array(); // for a single album put eg: array(10) for an array of albums eg: array(3,5,7) for all albums eg:array()
$aeva_custom ='m.id_media'; // aeva custom string
// - Creates HTML for viewing items : string aeva_listItems(array items, bool in_album = false, string align, int per_line)
$aeva_in_album = false; // unknown paramiter .. set to false by default for now
$aeva_align = 'center'; // allign items 'left' 'center' 'right'
$aeva_per_line = 1; // number of colums to display at once eg: 1 for single .. 3 for 3 items accross
global $sourcedir;
require_once($sourcedir . '/Aeva-Subs.php');
// -------------------------------------
// Don't edit anything below this line
// -------------------------------------
// Start marquee routine if set to do so
if ($marq_offon == 1){
echo '<marquee behavior=',$marq_behavior,' direction=',$marq_direction,' height=',$marq_height,' scrolldelay=',$marq_scrolldelay,' scrollamount=',$marq_scrollamount,' onmouseover=',$marq_onmouseover,' onmouseout=',$marq_onmouseout,' >';
}
// end marquee routine
// start actual block to be displayed
echo '<div style="width: 100% height:',$marq_height,'; overflow: hidden;">';
echo aeva_listItems(aeva_getMediaItems($aeva_start,$aeva_limit,$aeva_sort,$aeva_all_albums,$aeva_albums,$aeva_custom),$aeva_in_album,$aeva_align,$aeva_per_line);
echo '</div>';
// end actual block to be displayed
//start marquee routine
if ($marq_offon == 1){
echo'</marquee>';
} //end scrolling routine
and then i applied it to my portal block
it's sliding fine but when i click on it, and pops up highslide
the buttons ("zoom" "detail") are there but it's not showing
it looks like they are overlapped by something, how do i fix it?
u can check it on my site: www.kumakuni.com (right side first block)
thx
Humm ... Off the top of my head its probably one of two things
1) The caption text color in the hs4smf admin panel is set to white FFFFFF
-or-
add this to the end of the highslide.css file (themes/default/hs4smf/highslide.css) and see if that fixes the issue
.highslide-caption {
display: none;
border-top: none;
font-size: 1em;
color: black;
padding: 5px;
background-color: white;
}
If neither of those work then I'll need to do some more thinking.
tried, doesn't work
let me show an example just to make it clear
22222 is screenshot of the view in media
11111 is when click it on the block
the link is there, as i can click it, but just not showing
Yup I understand what you are saying ... I can see the links in the html they are just not showing ... that's why I thought
a) foreground / background colors might the same (white) or
b) a missing css class.
I just went to the site and don't see the css edit, so I guess you tried it (cleared your cache) and it did not work? If so try it again but remove the display: none; ... Highslide should do this when it loads but since the slideshow is built with Aeva we just need to to fully work with hs4smf.
I'll add this to my test site to see if I can reproduce the problem to give you a better answer.
alright thx
and yeah, i tried the codes it didn't work so i removed it..
OK here is the deal, I forgot that I had intentionally hidden those items ! The reason was when you are using smg tags and have enabled the hs4smf caption/heading text, then you can end up with overlapped text in the caption which looks bad.
I can probably put some additional checking in this area of the code, need to think about as there is no straight forward way to do this, to many options.
Anyway for this case, in hs4smf-Subs file find around line 1113
var slideOptions = { slideshowGroup: \'aeva\', align: \'center\', useControls: false, transitions: [\'expand\', \'crossfade\'], fadeInOut:true, captionOverlay: {opacity:0}, headingOverlay: {opacity:0} };
and replace it with
var slideOptions = { slideshowGroup: \'aeva\', align: \'center\', useControls: false, transitions: [\'expand\', \'crossfade\'], fadeInOut:true };
thx, that fixed it
btw the sliding codes, is it possible to change them to
display 2 images or some pixels of stuff and then start sliding
instead of start sliding from nothing (or when the block is blank)
Quote from: Eudemon369 on March 20, 2011, 05:35:38 PM
thx, that fixed it
btw the sliding codes, is it possible to change them to
display 2 images or some pixels of stuff and then start sliding
instead of start sliding from nothing (or when the block is blank)
Glad that worked ...
Had some time to think about this and I'm going to attach a test version of the hs4smf-Subs.php file. This version attempts to honor the title/description that aeva places in the hidden div but still apply hs4smf styling to aeva slides.
When used in a message for example an smg tag will slide and show the aeva information even when you have set hs4smf caption to show the message subject. If you also have an attachment in that same message it will show the message subject for that attachment caption while the aeva image will still show whatever aeva set up for it. They will both be part of the same slideshow if you have that option set.
Not sure on the transition item your asking about, I don't think highslide has any option for that.
// Configurable Graphics block
// for use with TinyPortal 1.0 Beta5
// for use with Aeva multimedia mod for SMF
// by BlueSteel 18th April 2010
// @TinyPortal : http://www.tinyportal.co.uk/index.php?topic=32504.0
// Scrolling Options - on/off direction, speed, delay
// Item display options Random/Newest, number of item to display,selectable albums
// Marquee script Variables
$marq_offon = 1; // 0=off 1=on
$marq_behavior = "scroll"; // what should marquee do "scroll"
$marq_direction = "up"; // "left" , "right" , "up", "down"
$marq_height = "500px"; // size of viewable block area
$marq_scrolldelay = 10; // delay iteritions
$marq_scrollamount = 2; // how many pixels to scroll block each iteration
$marq_onmouseover = "this.stop()"; // what to do on mouseover
$marq_onmouseout = "this.start()"; // what to do on mouseout
// Aeva script variables
// - Gets items : array aeva_getMediaItems(int start, int limit, string sort, bool all_albums, array albums, string custom)
$aeva_start = 0; // where item number to start at
$aeva_limit = 30; // maximum number of items to display
$aeva_sort = 'RAND()'; // sort see Aeva-Subs.php for values I use 'RAND()' or 'm.time_added DESC' DESC or ASC for sorting order
$aeva_all_albums = true; // all albums .. true or false
$aeva_albums = array(); // for a single album put eg: array(10) for an array of albums eg: array(3,5,7) for all albums eg:array()
$aeva_custom ='m.id_media'; // aeva custom string
// - Creates HTML for viewing items : string aeva_listItems(array items, bool in_album = false, string align, int per_line)
$aeva_in_album = false; // unknown paramiter .. set to false by default for now
$aeva_align = 'center'; // allign items 'left' 'center' 'right'
$aeva_per_line = 1; // number of colums to display at once eg: 1 for single .. 3 for 3 items accross
global $sourcedir;
require_once($sourcedir . '/Aeva-Subs.php');
// -------------------------------------
// Don't edit anything below this line
// -------------------------------------
// Start marquee routine if set to do so
if ($marq_offon == 1){
echo '<marquee behavior=',$marq_behavior,' direction=',$marq_direction,' height=',$marq_height,' scrolldelay=',$marq_scrolldelay,' scrollamount=',$marq_scrollamount,' onmouseover=',$marq_onmouseover,' onmouseout=',$marq_onmouseout,' >';
}
// end marquee routine
// start actual block to be displayed
echo '<div style="width: 100% height:',$marq_height,'; overflow: hidden;">';
echo aeva_listItems(aeva_getMediaItems($aeva_start,$aeva_limit,$aeva_sort,$aeva_all_albums,$aeva_albums,$aeva_custom),$aeva_in_album,$aeva_align,$aeva_per_line);
echo '</div>';
// end actual block to be displayed
//start marquee routine
if ($marq_offon == 1){
echo'</marquee>';
} //end scrolling routine
i'm talking about this code, it starts when the block is empty
and then the first image started to sliding up
but i want it to show 2 images on the block and then start sliding up the 3rd one
just asking if u have any idea, or i will try to contact the author
and thx for the hs code changes spuds, ur a great help
btw i think by applying the same effect of ur mod to aeva fixed the counting problem ::)
Quote from: Eudemon369 on March 20, 2011, 06:08:17 PM
i'm talking about this code, it starts when the block is empty
and then the first image started to sliding up
but i want it to show 2 images on the block and then start sliding up the 3rd one
I don't believe you can do that with this block of code ... Its basically just using a standard HTML Marquee command, to do what you want would require some more advanced code I believe.
Quote
btw i think by applying the same effect of ur mod to aeva fixed the counting problem ::)
Are you referring to aeva not increasing the image view counter when its clicked (highslided) in a message / portal block?
QuoteI don't believe you can do that with this block of code ... Its basically just using a standard HTML Marquee command, to do what you want would require some more advanced code I believe.
ok, i will try to reach the author
QuoteAre you referring to aeva not increasing the image view counter when its clicked (highslided) in a message / portal block?
yea, it used to count only when the image is not in the user's cache
so it won't count any click after that from the same user
but now it's counting for every click, which is a good thing
yeeeeh, 0.7 is out :P
hi, first of all thank you for this great mod, love it!
everything is working great only thing is that i'm getting this error in the log:
http://mysite.com/index.php?action=admin;area=logs;sa=errorlog;desc
8: Undefined index: hs4smf_headingsource
File: /home/mysite/public_html/Sources/hs4smf-Subs.php
Line: 737
how can i fix this? :-\
QuoteFile: /home/mysite/public_html/Sources/hs4smf-Subs.php
Line: 737
Try the following ... in hs4smf-Subs.php
$oheader = (($modSettings['hs4smf_slideshownumbers'] == 1) || ($modSettings['hs4smf_headingsource'] != 0 && $modSettings['hs4smf_headingposition'] == 1));
$ocaption = (($modSettings['hs4smf_slideshownumbers'] == 2) || ($modSettings['hs4smf_captionsource'] != 0 && $modSettings['hs4smf_captionposition'] == 1));
$oheader = (($modSettings['hs4smf_slideshownumbers'] == 1) || (!empty($modSettings['hs4smf_headingsource']) && $modSettings['hs4smf_headingposition'] == 1));
$ocaption = (($modSettings['hs4smf_slideshownumbers'] == 2) || (!empty($modSettings['hs4smf_captionsource']) && $modSettings['hs4smf_captionposition'] == 1));
yes! that fixed it, many thanks spuds :D
hey, spuds
do u think it is possible to
show highslide and load image at the same time?
instead of wait til it finished loading and then HS pops up (for aeva)
for example:
http://kumakuni.com/index.php?action=media;sa=album;in=9
i have got some big images, try to click on one, and then click "view larger size"
i want it to pop up hs and load from top to bottom at the same time
just like when u open a big image on a new tab
also how do i disable automatic re-size to fit screen function?
thx
^^^ that's a great idea
i use to preload certain images on certain pages of websites i make, like:
<body onload="MM_preloadImages('images/loadThis.png','images/loadThat.png')">
with this js script:
function MM_preloadImages() {
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
but i wouldn't even know where to start on how to add that to the mod lol :P
I have a problem of the controls not showing up. I have sideshow enabled, and have played with the other settings.
I think the issue may be related to my custom Display.template.php file. I have 2 instances of if ($attachment['is_image'])
{
if ($attachment['thumbnail']['has_thumb'] && !empty($modSettings['hs4smf_enabled']) && !empty($modSettings['hs4smf_enableonattachments']))
{
$settings['hs4smf_img_count'] = (isset($settings['hs4smf_img_count'])) ? $settings['hs4smf_img_count'] + 1 : 1;
$slidegroup = hs4smf_get_slidegroup($message['id']);
echo '
<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" class="highslide" onclick="return hs.expand(this, ' . $slidegroup . ')"><img src="', $attachment['thumbnail']['href'], '" alt="' , $attachment['name'] , '" id="thumb_', $attachment['id'], '" border="0" /></a><br />';
}
elseif ($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'], '" border="0" /></a><br />';
else
echo '
<img src="' . $attachment['href'] . ';image" alt="" width="' . $attachment['width'] . '" height="' . $attachment['height'] . '" border="0" /><br />';
}
Reason for that is my first post has a different layout than replies. There is a slot of this code for the first post, and a slot for replies. Anyway to fix this?
Make the code distinct so the first slot doesn't exactly match?
NVM, I figured it out.
After looking at the install.xml, I realized this was missing from the display template:
// HS4SMF decide which slidegroup the attacments belong in
if (isset($modSettings['hs4smf_enableonattachments']) && isset($modSettings['hs4smf_enabled']))
hs4smf_track_slidegroup($message['id']);
I don't know why it didn't show as an error on install. It's All better now...
My stand on loading pictures ..
Can you help me?
http://www.wibisa.nl/forum/index.php
I went to the site and all the images seemed to be sliding as expected ... are you still experiencing a problem?
Quote from: Spuds on April 03, 2011, 09:21:37 AM
I went to the site and all the images seemed to be sliding as expected ... are you still experiencing a problem?
No the problem is fixed.
Thanx ;)
Problem not fixed.
Well for starters there is another version of highslide installed that is not from this mod so I'm not surprised that its not fixed.
Ok thanx
I removed the other version but no changes.
Two more things.
<script type="text/javascript" src="http://www.wibisa.nl/forum/Themes/default/hs4smf/language/highslide.dutch-utf8.js"></script>
This file does not exist ... remove the -utf8 or take the dutch language file and make a utf8 one as well.
hs.graphicsDir = 'http://www.wibisa.nl/forum/Themes/default/hs4smf/graphics/';
This directory does not appear to exist or is empty ... I pointed it back to my site instead and everything worked.
A lot of those animated images are large so it still takes a bit of time to slide them to the front (until they are fully loaded that is), but fix the above and it should work.
Please can i sent it to you?
I don`t now what to do. :(
The first problem is solved I think.
But the graphics folder is not empty, I have seen.
Make sure "Use Coral CDN as JS/CSS source" is not checked in the highslide admin panel ...
Quote from: Spuds on April 07, 2011, 09:48:22 PM
Make sure "Use Coral CDN as JS/CSS source" is not checked in the highslide admin panel ...
Nothings changes :(
I've looked again, and for the final time as well ......
1) Once again you have multiple highslide library's installed as I already stated above, this could cause problems
2) Once again this directory 'http://www.wibisa.nl/forum/Themes/default/hs4smf/graphics/'
is your problem. For example lets get one of the images from that directory and see we get back:
QuoteThe image "http://www.wibisa.nl/forum/Themes/default/hs4smf/graphics/close.png" cannot be displayed because it contains errors.
So maybe the files are there but all zero length, or you uploaded them in ascii instead of binary, or other like permissions? Also make sure the graphics/outlines directory is in there and its files are also OK. I tried to get one of those and it failed as well.
QuoteThe image "http://www.wibisa.nl/forum/Themes/default/hs4smf/graphics/outlines/beveled.png" cannot be displayed because it contains errors.
Again I took your site source and removed the extra highslide scripts, and then changed item 2 above line to point at my test sites graphics directory and everything worked as expected.
I've put back a backup and now it's okay.
Thanks for your support.
the pictures works fine..shows a magnifying glass over the picture, and pops up in a box.
but in my admin section: configuration > modificaction settings > highslide..
I get this:
Fatal error: Cannot redeclare modifyhs4smfsettings() (previously declared in /home/capion/public_html/bfmaw/clanen/Sources/ManageSettings.php:2159)
in /home/capion/public_html/bfmaw/clanen/Sources/ManageSettings.php on line 2398
Can I please get a hint, or maybe a solution to this problem?
Sounds like you installed it twice .... or uninstalled and it only partially un-installed and then you reinstalled ....
That specific error means in the file sources/ManageSettings.php you will find the function modifyhs4smfsettings twice ... you will need to remove one of those (actually the first one you find).
You will also probably want to check the other files that the mod changes as there could be duplicate code in those as well depending on how the duplication occurred to begin with.
Thank You for the hint.
I have made it work...but look at this...
I // disabled this line:
'hs4smf' => 'Modifyhs4smfsettings',
in "ManageSettings.php"
but then there was only "highslide" as a menu-name, which just activated the next function; some show-joindate-mod I have..
then I ENabled the previously mentioned line again..and ..yeahaa.. everything works.
:o
( BTW, same thing just happened for me in the "Let ME google that for You - mod" / LMGTFY )
anyway.. Thanks for a really nice mod!!
hello spuds
is it possible to turn off highslide for specific images
for example i use simple portal, and i can use image tags on the block title
but HS turns it into a slide-able object
also when open a large image
is it possible to open HS first and then load the image pixel by pixel just like when u open it with a browser window
for example a gallery item: http://kumakuni.com/index.php?action=media;sa=item;in=900
open HS first and load pixel by pixel instead of load completely and then open
and how do i disable auto-resize to fix screen?
Quote from: Eudemon369 on April 24, 2011, 05:56:20 PM
hello spuds
is it possible to turn off highslide for specific images
for example i use simple portal, and i can use image tags on the block title
but HS turns it into a slide-able object
You should be able to use
[img alt="ns"]your image[/img]
the alt="ns" should tell the mod to ignore that image
Quote
also when open a large image
is it possible to open HS first and then load the image pixel by pixel just like when u open it with a browser window
for example a gallery item: http://kumakuni.com/index.php?action=media;sa=item;in=900
open HS first and load pixel by pixel instead of load completely and then open
and how do i disable auto-resize to fix screen?
Not sure if you can do that with highslide, might have to ask on the highslide site.
I believe the auto-resize can be turned off by adding
$footer .= 'hs.allowSizeReduction = false;' . "\n";
to the javascript. Open up hs4smf-Subs.php and add that after this line
$footer .= 'hs.padToMinWidth = true;' . "\n";
Quotethe alt="ns" should tell the mod to ignore that image
works, thx
QuoteI believe the auto-resize can be turned off by adding
that works, but only for the images in post
media still re-sizes it
Quotemedia still re-sizes it
You can try adding that line to the media section as well ... in hs4smf-Subs.php in the aeva_initGallery_hs4smf function
$lightbox .= ' ' . hs4smf_caption_text();
$lightbox .= 'hs.padToMinWidth = true;' . "\n";
Edit: I have not found anything that allows for the viewing of the image as its loading.
One thing to consider if you are concerned about image loading speed (for the media area) you can consider changing this hs.numberOfImagesToPreload = 0; to hs.numberOfImagesToPreload = 3; (the default from highslide is 5).
That line is in the aeva_initLightbox function inside of Aeva-Subs-Vital.php I'm not sure why the preload is disabled in the media library but I'm sure there is a good reason ... so if you change that line be watchful for problems.
thank you spuds, i'll test it when i get home
thank you again for ur great mod and support
Error, help please.
1. Adapt Database add_settings.php
2. Execute Code add_remove_hooks.php
3. Execute Modification ./Themes/default/index.template.php Test successful
4. Execute Modification ./Sources/Subs.php Test failed
1. Add Before ./Sources/Subs.php Test failed
5. Execute Modification ./Themes/default/Post.template.php Test failed
1. Add After ./Themes/default/Post.template.php Test failed
6. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
7. Execute Modification ./Themes/default/languages/Modifications.greek.php Skipping file
8. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
9. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
10. Extract File ./Sources/hs4smf-Subs.php
11. Extract Tree ./Themes/default/hs4smf
Still no support for smf 1.1.x? There aren't that many alternatives so a port would be convenient.
Uhhh, need help...
I just setup SMF 2.0 Gold on my testdomain. Everything fine...
I installed the newest version without any problems
It doesn't work on a attachments (see http://aida32-inventory.netboom.de/smf/index.php?topic=246.0)
Still "Loading" appears in the picture - nothing else...
Did I miss sth.?
Greets inti31
Make sure that the directory hs4smf exists under Themes/default and that all of the files and sub directories + files are present in there.
hs4smf
|-language
|-graphics
|-outlines
The package manager tends to mess up on that on some systems.
The files are in the package file itself, if any are missing then you will need to FTP them to your site and place them in the hs4smf directory.
I found out myself by checking the content of that package.
During the installation process the folder graphics with its subfolders and files are not created, also the language dir.
I've done it and it works - see link above
NICE and cool!
cheers inti31
"Auto size images to fit browser window"
How to enable this?
Should be enabled by default ... What that means is that if an image that is to large to fit in the browser window it is shrunk to fit in the highslide lightbox with the option to still view it full size. However an image that is smaller than the browser window is not scaled up.
Oh, my.
I thought it has a feature to resize posted image in the post.
i big problem with imasgeshack, all picture they disappeared, deinstaled but the problem persist.
Hey,
great MOD,
in hs4smf-Subs.php line 746 replace
$footer .= "hs.lang.number = '" . $txt['hs4smf_image'] . " %1 - %2';\n";
with
$footer .= "hs.lang.number;\n";
to get language specific name of "number".
Is there any way of making it ignore certain images? I use SimplePortal and have a bunch of small images in the sideblocks for graphics, which the mod makes into "highslide pictures".
** Edit: Read the answer in a previous post.
[img alt="ns"]your image[/img]
Thanks for a nice mod :)
Quote from: helike13 on June 20, 2011, 04:07:34 AM
"Auto size images to fit browser window"
How to enable this?
I'm having the same problem.
http://theanimeclub.co.za/Forum/index.php/topic,2.new.html#new
Is there a way to enter a maximum width for the re-sizer to kick in? Some of us have very wide forums so the image would come out huge. I want a max width of 600px or so, not a ratio of the browser window or forum width.
Fantastic mod, thank you for your job.
Is there any way to apply it with a tag? Ex:
[highslide]image.jpg[/highslide]
Thank you, bye!
Quote from: tiruri on July 08, 2011, 03:35:19 PM
Fantastic mod, thank you for your job.
Is there any way to apply it with a tag? Ex:
[highslide]image.jpg[/highslide]
Thank you, bye!
http://custom.simplemachines.org/mods/index.php?mod=2517
The above mod does exactly that.
Quote from: MiY4Gi on July 08, 2011, 03:42:03 PM
Quote from: tiruri on July 08, 2011, 03:35:19 PM
Fantastic mod, thank you for your job.
Is there any way to apply it with a tag? Ex:
[highslide]image.jpg[/highslide]
Thank you, bye!
http://custom.simplemachines.org/mods/index.php?mod=2517
The above mod does exactly that.
I know but it doesn't work the same way... the other mod loads the full image but do not click on it, and makes the scrolling slow down while charging the images.
Sorry for my bad english and thanks for your reply.
I'm not sure what you mean. Here's a demo of Highslide BBCode and Image Viewer on my forum: http://theanimeclub.co.za/index.php/topic,2.msg53.html
Quote from: MiY4Gi on July 08, 2011, 04:33:59 PM
I'm not sure what you mean. Here's a demo of Highslide BBCode and Image Viewer on my forum: http://theanimeclub.co.za/index.php/topic,2.msg53.html
Ok, I sent you a PM
Quote from: tiruri on July 08, 2011, 03:35:19 PM
Fantastic mod, thank you for your job.
Is there any way to apply it with a tag? Ex:
[highslide]image.jpg[/highslide]
Thank you, bye!
No not really.
This mod takes the approach of attach itself to all images, be they attachments, aeva gallery, or bbc img tags (from sites it can decode). It will skip avatars, icons and stuff like that. If there was an img that you did not want to highslide then you just use the alt=ns option like this [img alt="ns"]your image[/img]
Quote from: Spuds on July 08, 2011, 06:27:39 PM
If there was an img that you did not want to highslide then you just use the alt=ns option like this [img alt="ns"]your image[/img]
THX for the information - I didn't know that. That trick works fine :)
Weird I had an older version of highslide on 2.0 seemed to work, I put 0.7a up and it doesn't workj, no error on install and I checked the files to make sure they are all there, they are. Site is here
Edit: Disregard I got it working problem with a file I had to overwrite because of another package
Nice Mod
Thanks
In what database table are the settings for this mod stored?
Even though I selected NOT to have the background dim, and NOT to have the images expand to the page center, it still does it anyway. So I want to see if the settings are really being changed, when I change them in the admin interface.
They are in your settings table ....
I can't get the thing to come right. In the settings db table, "enlarge to center" is 0, which I assume means it's disabled, yet it still enlarges to the center of the page. I didn't do that at the start, but after installing some mods it started happening. I've re-installed it 4 times already, and the 4th time I made sure the code was removed from the relevant files. It might be my theme that's causing the problem, but I don't know. The mod installs fine, without any problems, and edits my custom theme during installation, as expected. That's not the only problem though. My page also dims when an image is enlarged even though I've disabled dimming.
Which files contain the code that control the dimming and centering?
I'm running 2.0 Gold, with the Ambassador theme, and here's the mods I got installed:
1. Highslide 4 SMF 0.7a [ Uninstall ]
2. Aeva Media 1.4w [ Uninstall ]
3. vBulletin Style Meta Tags 1.1 [ Uninstall ]
4. Quote and code like vb4 1.0 [ Uninstall ]
5. Google +1 1.0 [ Uninstall ]
6. Previous and Next Topic Enhancement 1.0 [ Uninstall ]
7. Member NotePad 2.0.2 [ Uninstall ]
8. Drafts 1.1.1 [ Uninstall ]
9. Copyright & Footer Links 3.2 [ Uninstall ]
10. Topics Filter 3.2 [ Uninstall ]
11. PortaMx 1.4 1.4 [ Uninstall ]
12. Remove Message Icon 1.1.1 [ Uninstall ]
13. Add GooglePlus to Posts 1.0 [ Uninstall ]
14. Forum Firewall 1.1.3 [ Uninstall ]
15. H1 Tags in link tree 1.1 [ Uninstall ]
16. Bad Behavior mod 1.5.3 [ Uninstall ]
17. Add And Remove Buttons 0.4 [ Uninstall ]
18. Simple .htaccess Cache Mod 2.6 [ Uninstall ]
19. SMF Quiz 1.0.8 beta4 [ Uninstall ]
20. Started By Column 1.4 [ Uninstall ]
21. Hide Signatures from Guests 2.0 [ Uninstall ]
22. Hide Avatars from Guests 2.0 [ Uninstall ]
23. Boilerplates for posts 3.0 [ Uninstall ]
24. Button 1 Menu Extender for 6 custom buttons mod 1.0 [ Uninstall ]
25. Ad Managment 3.0.1 [ Uninstall ]
26. Additional Home page Title | S-Ace 3.3 [ Uninstall ]
27. Bookmarks 2.3 [ Uninstall ]
28. SMF Trader System 1.6 [ Uninstall ]
29. Hide User Names from Guests 1.1 [ Uninstall ]
30. 6 Custom buttons / tabs with Sub Menus (4) 0.5 [ Uninstall ]
31. Sitemap 2.2.0 [ Uninstall ]
32. Caps_Lock_Detection_on_Login 1.1.0.1 [ Uninstall ]
33. Vote polls with points 0.1.1 [ Uninstall ]
34. NoFollow All Links 1.2.1 [ Uninstall ]
35. SMF Topic Prefix Mod 1.2.2 [ Uninstall ]
36. Facebook_Like v.2.0 2.0 [ Uninstall ]
Aeva I installed a few mins ago, so that's not the cause of the problem. Any ideas?
I went to the site in your profile and it looks like the theme you are using includes highslide or one of those other mods does. Anyway At the top of the page it has
hs.fadeInOut = true;
hs.dimmingOpacity = 0.3;
hs.showCredits = false;
hs.transitionDuration = 500;
hs.restoreDuration = 250;
hs.transitions = ["expand", "crossfade"];
hs.enableKeyListener = false;
hs.zIndexCounter = 10001;
hs.align = "center";
None of that is from this mod or Aeva, but as you can see it enables center and fade ....
Quote from: Spuds on August 08, 2011, 05:01:04 PM
I went to the site in your profile and it looks like the theme you are using includes highslide or one of those other mods does. Anyway At the top of the page it has
hs.fadeInOut = true;
hs.dimmingOpacity = 0.3;
hs.showCredits = false;
hs.transitionDuration = 500;
hs.restoreDuration = 250;
hs.transitions = ["expand", "crossfade"];
hs.enableKeyListener = false;
hs.zIndexCounter = 10001;
hs.align = "center";
None of that is from this mod or Aeva, but as you can see it enables center and fade ....
Mm, it could be PortaMx's built in highslide. I'll have a look. Thanks.
Edit: Yep, it was PortaMx. I disabled PortaMx's highslide "globally" (i.e. on the entire site). I should have done that from the beginning.
Also, to disable hs4smf from a particular image, would it be possible to use different bbcode in place of alt="ns"? Alt is used for giving images their keywords, and it's important for seo.
hem, seems I cant make this mode automatically resize image in post
is there a setting I need to pay attention? :o
my member add image on their post with size is too huge, and the image out from post area to the left :-\
see on my attachment, even after I install and activate this mod and change some setting, the picture wont resize ???
regards,
Quote from: gisfreak on August 09, 2011, 09:21:05 AM
hem, seems I cant make this mode automatically resize image in post
is there a setting I need to pay attention? :o
my member add image on their post with size is too huge, and the image out from post area to the left :-\
see on my attachment, even after I install and activate this mod and change some setting, the picture wont resize ???
regards,
Go to:
Admin > Features and Options > Layout
Find:
Max width of posted pictures >
Max height of posted pictures >
Enter the maximum size of images before they should be resized.
it wont work ???
maybe I miss something here :-\
i want picture that embed with [img] tag automatically resize fit with the post area :)
Quote from: gisfreak on August 09, 2011, 11:02:44 AM
it wont work ???
maybe I miss something here :-\
i want picture that embed with [img] tag automatically resize fit with the post area :)
You using SMF 2.0? What other mods do you have installed? Custom theme?
Have you tried re-installing it?
Quote from: MiY4Gi on August 09, 2011, 11:11:13 AM
You using SMF 2.0? What other mods do you have installed? Custom theme?
Have you tried re-installing it?
yap, using version 2
my mod :
1. Yet Another Global Announcements Mod 2.7.4
2. Spoiler Tag 0.7.2a
3. Google Analytics Code 1.4
4. Ad Managment 3.0.1
5. Karma Buttons 1.1
6. Stop Spammer 2.3.9
7. Hide Tag Special 3.0
8. Highslide 4 SMF 0.7a
9. reCAPTCHA for SMF 0.9.8a
10. PortaMx 1.4 1.4
11. SMFPacks Shoutbox 1.0.3
12. Google +1 Topics 1.0
13. httpBL 2.5.1
and using custom themes by antechinus, here :
http://custom.simplemachines.org/themes/index.php?lemma=2428
any clue mate ? :D
Try disabling PortaMx's highslide function globally in the PortaMx in the PortaMx Settings Manager. There seems to be a conflict between that feature and the HS4SMF mod.
is highslide from portamx have same function with this mod? like auto resizing
i just disable portamx function and reinstalling mod, and no luck , wew
Quote from: gisfreak on August 09, 2011, 01:08:36 PM
is highslide from portamx have same function with this mod? like auto resizing
i just disable portamx function and reinstalling mod, and no luck , wew
Yes, PortaMx has a similar function, but they are not the same.
Did the mod install successfully into your custom theme?
What is the URL of the post in your forum where this occurs. It would be useful to see the problem for ourselves.
Quote from: gisfreak on August 09, 2011, 09:21:05 AM
hem, seems I cant make this mode automatically resize image in post
is there a setting I need to pay attention? :o
my member add image on their post with size is too huge, and the image out from post area to the left :-\
see on my attachment, even after I install and activate this mod and change some setting, the picture wont resize ???
regards,
As MiY4Gi said you need to set the max image width and height in the admin settings ... What this does is when a member adds an image to a post it will add the width and height attributes e.g. [img width=xxx ..... this mod will then expand that image to a larger size.
I don't think that changing that setting will go back and change existing posts, you will need to edit that post yourself by adding in the width and height settings to the img tag.
ah, so image that have been posted before the mod and the setting implemented are not affected? is it correct?
regards,
Yes. However, that's not to say that your problem has been fixed. You'll need to edit the post with the large image and change the [img] tag to [img width=300 height=300], then see if that solved your problem.
yeah MiY4Gi, it works, as I insert those size, my picture now resize
thanx all
I didn't have any errors installing this and it works on the default theme. But it won't work in my custom theme. I clicked the check mark to include my theme.
Nevermind I started a new theme from the default and replaced all the files with the ones from my custom theme. For some reason it magically started working. Great mod!
This used to work great for me, all of a sudden I have run into problems, if I uninstall I get a database query error and it kills my forum, the problem is with subs.php. So I replace my subs.php to get my forum going again, then reinstall, I get no errors on the install. Then it doesn't work, on uninstall, there are errors with subs.php again...
The code that says test failed
// Cache the output if it took some time...
// HS4SMF, call the highslide function on this message, but not on signature, stats or when in the editor
if((empty($cache_id) || substr($cache_id, 0, 3) != 'sig') && $context['current_action'] != 'stats' && $context['current_action'] != 'post' && $context['current_action'] != 'jseditor')
hs4smf($message, $cache_id);
Any ideas?
Edit: I manually edited the subs.php line, it would now uninstall without errors, but it still won't work, clicking on attachments opens the image in a new browser windows.
Edit: OK disregard, I wasn't checking to modify the theme on install, I have it working now 100%, thanks for the awesome mod.
so, it is working again
i've tried the highslide 4smf mod, but it's not working in my installation.
i have manual edits in my custom themes, i tried to reset my settings and repost an image to test but still no good. i have adk portal and aeva installed. i have installed the mod for the default theme and my custom theme.
anyone?
finally! i got it working....
great mod... but i have some ideas... how could i use this mod to show a gallery?
for instance, i've posted a five image in a post. i wanted to display that 5 images in a span or arranged horizontally. and the image should be resized to thumbnail view, according to the size i want to implement.
Quote from: cosmicxxx on September 15, 2011, 03:34:25 AM
finally! i got it working....
great mod... but i have some ideas... how could i use this mod to show a gallery?
for instance, i've posted a five image in a post. i wanted to display that 5 images in a span or arranged horizontally. and the image should be resized to thumbnail view, according to the size i want to implement.
If you got it working, then it would be nice if you could say how you fixed it.
I've installed highslide bbcode too... and it worked!
i don't know how really... since im not a coder and i dont know how to debug... but i know trial and error.
in my case... i tried to remove again the highslide bbcode, and then HS4SMF stops working again. installed highsliede bbcode, and HS4SMF works again....
i'ts just like that...
So, to make the HS4SMF mod work, you need to have both the Highslide BBCode mod and the HS4SMF mods installed?
Sounds like either the installation of the 2 mods were in conflict, or the one mod supplies some of the code needed by the other (which I think is unlikely).
I guess if you're happy with the outcome then it's fine, but just remember, that problem could come back to haunt you at a later stage. It's never a good idea to ignore a problem that magically fixed itself.
as you see... no one replied to my message, when i mentioned that my installation was not working.
both mode works together flawlessly, as of now. in my screen shots, two images bbcoded with [hs] and the other two coded with [img].
what's more amazing is... slideshow works...
Quote from: MiY4Gi on September 15, 2011, 11:28:42 AM
Quote from: cosmicxxx on September 15, 2011, 03:34:25 AM
finally! i got it working....
great mod... but i have some ideas... how could i use this mod to show a gallery?
for instance, i've posted a five image in a post. i wanted to display that 5 images in a span or arranged horizontally. and the image should be resized to thumbnail view, according to the size i want to implement.
If you got it working, then it would be nice if you could say how you fixed it.
i've tested my installation again... with hs4smf and highslide bbcode and viewer mod co-existing in my test site.
when i use [hs] tag without x and y sizes, it does not work.... but if i put [hs width=xpx height=ypx] it works
Quote from: cosmicxxx on September 17, 2011, 01:32:51 AM
when i use [hs] tag without x and y sizes, it does not work.... but if i put [hs width=xpx height=ypx] it works
Well, that
is how the mods are supposed to work. You
must enter the width and height. At least with the hs4smf mod the width and height gets entered automatically based on your image resizing settings.
lol... yeah
I have this message :
Fatal error: Call to undefined function hs4smf() in /homez.466/fmanthol/www/Sources/Subs.php on line 2591
It's this code :
// HS4SMF, call the highslide function on this message, but not on signature, stats or when in the editor
if((empty($cache_id) || substr($cache_id, 0, 3) != 'sig') && $context['current_action'] != 'stats' && $context['current_action'] != 'post' && $context['current_action'] != 'jseditor')
hs4smf($message, $cache_id);
I'm using SMF V 2.0.1
Did the mod install without any errors?
Attempt to uninstall it. Does the uninstaller give you any errors?
I realise the manual installation because the automatic doesn't work.
The newest file is only a file. It isn't a zip file, when you download it, it just says download "file". Please change to a zip file so we can use it in our package set up. thanks
Quote from: hotwheels on September 29, 2011, 09:05:32 PM
The newest file is only a file. It isn't a zip file, when you download it, it just says download "file". Please change to a zip file so we can use it in our package set up. thanks
Its a bug on the mod site, just add a .zip to what you downloaded. I renamed the file on the site (no spaces in the name) so it will download correctly from now on.
Hi,
I have the same problem with : HS4SMF_0.7a_for_2.0.zip, a bug in Subs.php (when i'm install) just in this part :
QuoteTrouver: [Sélectionner]
// Cache the output if it took some time...
if (isset($cache_key, $cache_t) && array_sum(explode(' ', microtime())) - array_sum(explode(' ', $cache_t)) > 0.05)
cache_put_data($cache_key, $message, 240);
Ajouter après: [Sélectionner]
// HS4SMF, call the highslide function on this message, but not on signature, stats or when in the editor
if((empty($cache_id) || substr($cache_id, 0, 3) != 'sig') && $context['current_action'] != 'stats' && $context['current_action'] != 'post' && $context['current_action'] != 'jseditor')
hs4smf($message, $cache_id);
Mod in my SMF 2.0.11. SMF 2.0.1 Update 1.0
2. Justify BBCode 2.3.2
3. Highslide 4 SMF 0.7a 4. Board-color-and-icons 1.1
5. Simple Audio Video Embedder 2.0.1
6. Users Online Today 2.0
7. Align text with Smiley 1.2
8. Simple Imageshack Upload Box 1.0
9. Default Avatar 1.1.1
Where is the problem ? :o
(sorry for my english)
To morrow is an other day ! 8)
Hi,
No problem, the install is OK - I'm a bonobo !
Just install Subs.php ; this part manualy.
QuoteTrouver: [Sélectionner]
// Cache the output if it took some time...
if (isset($cache_key, $cache_t) && array_sum(explode(' ', microtime())) - array_sum(explode(' ', $cache_t)) > 0.05)
cache_put_data($cache_key, $message, 240);
Ajouter après: [Sélectionner]
// HS4SMF, call the highslide function on this message, but not on signature, stats or when in the editor
if((empty($cache_id) || substr($cache_id, 0, 3) != 'sig') && $context['current_action'] != 'stats' && $context['current_action'] != 'post' && $context['current_action'] != 'jseditor')
hs4smf($message, $cache_id);
To be forgiven, here is the French translation for "language.xml" and "language-utf8.xml"
language.xml (English + French)Quote
<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>spuds:HS4SMF</id>
<file name="$languagedir/Modifications.english.php">
<operation>
<search position="end" />
<add><![CDATA[
//Begin HS4SMF changes
$txt['hs4smf_none'] = 'none';
$txt['hs4smf_inheading'] = 'In Heading ';
$txt['hs4smf_incaption'] = 'In Caption';
$txt['hs4smf_above'] = 'Above';
$txt['hs4smf_below'] = 'Below';
$txt['hs4smf_top'] = 'Top';
$txt['hs4smf_center'] = 'center';
$txt['hs4smf_right'] = 'right';
$txt['hs4smf_left'] = 'left';
$txt['hs4smf_bottom'] = 'Bottom';
$txt['hs4smf_image'] = 'Image';
$txt['hs4smf_text'] = 'Text Control ';
$txt['hs4smf_largew'] = 'Large White Control ';
$txt['hs4smf_smallw'] = 'Small White Control';
$txt['hs4smf_largeb'] = 'Large Black Control ';
$txt['hs4smf_overlayedon'] = 'Overlayed on';
$txt['hs4smf_hrw'] = 'Highslide rounded-white';
$txt['hs4smf_pos'] = 'Polaroid Outline + Shadow';
$txt['hs4smf_borderless'] = 'Borderless';
$txt['hs4smf_dog'] = 'Dark Outer-Glow';
$txt['hs4smf_pas'] = 'Plain and Simple';
$txt['hs4smf_dag'] = 'Dark and Glossy';
$txt['hs4smf_dbf'] = 'Dark borderless, floating-caption';
$txt['hs4smf_nodimming'] = 'No dimming';
$txt['hs4smf_00'] = '0%';
$txt['hs4smf_10'] = '10%';
$txt['hs4smf_20'] = '20%';
$txt['hs4smf_30'] = '30%';
$txt['hs4smf_40'] = '40%';
$txt['hs4smf_50'] = '50%';
$txt['hs4smf_60'] = '60%';
$txt['hs4smf_70'] = '70%';
$txt['hs4smf_80'] = '80%';
$txt['hs4smf_90'] = '90%';
$txt['hs4smf_100'] = '100%';
$txt['hs4smf_fullblack'] = 'Full black';
$txt['hs4smf_imagetitle'] = 'Image Title';
$txt['hs4smf_imagealt'] = 'Image Alt';
$txt['hs4smf_linktitle'] = 'Link Title';
$txt['hs4smf_postsubject'] = 'Post Subject';
$txt['mods_cat_modifications_hs4smf'] = 'Highslide';
$txt['hs4smf'] = 'Highslide 4 SMF';
$txt['hs4smf_desc'] = 'This modification allows you to enable the highslide lightbox effect to images and attachments in your forum.';
$txt['hs4smf_title'] = 'Highslide 4 SMF';
$txt['hs4smf_enabled'] = 'Enable the Highslide 4 SMF Modification.<br /><br />Highslide JS is licensed under a Creative Commons Attribution-Non Commercial 2.5 License. This means you must get the author\'s permission to use Highslide JS on commercial websites.<br /><br />Enabling highslide means that you are agreeing to the <a href=http://highslide.com/#licence>Highslide License</a> terms';
$txt['hs4smf_enablecoral'] = 'Use Coral CDN as JS/CSS source';
$txt['hs4smf_enablegalleryfade'] = 'Enable Fade In/Out transition';
$txt['hs4smf_enablecredits'] = 'Enable Highslide Credits';
$txt['hs4smf_enableonattachments'] = 'Enable Highslide on Attachments';
$txt['hs4smf_slideshowcontrols'] = 'Use graphical slideshow controls';
$txt['hs4smf_slideshowmouse'] = 'Hide slideshow controls on mouse out';
$txt['hs4smf_slidebackgroundcolor'] = 'Overall background color for the slide frame (6 digit hex)';
$txt['hs4smf_slideshowcontrollocation'] = 'Location for the slideshow controls';
$txt['hs4smf_enablecenter'] = 'Align expanded images to center of page';
$txt['hs4smf_enableflash'] = 'Enable highslide on flash files';
$txt['hs4smf_endableslideshow'] = 'Enable Slideshow feature';
$txt['hs4smf_slideshowdelay'] = 'Delay between slides in seconds (0-10)';
$txt['hs4smf_nudgex'] = 'Adjust the slideshow control position right/left';
$txt['hs4smf_nudgey'] = 'Adjust the slideshow control position up/down';
$txt['hs4smf_slideshowrepeat'] = 'Loop Slideshow';
$txt['hs4smf_slideshowgrouping'] = 'Enable smart slideshow grouping (image grouping by message instead of topic)';
$txt['hs4smf_appearance'] = 'Define how the frame around the highslided image appears';
$txt['hs4smf_dimmingopacity'] = 'How dark to make the background page when highsliding an image';
$txt['hs4smf_headingsource'] = 'Source for the text in the heading';
$txt['hs4smf_captionsource'] = 'Source for the text in the caption';
$txt['hs4smf_sourceopacity'] = 'How dark to make the background in the heading and caption area';
$txt['hs4smf_captionposition'] = 'Location for the caption';
$txt['hs4smf_headingposition'] = 'Location for the heading';
$txt['hs4smf_sourcemouse'] = 'Hide heading and caption on mouse out';
$txt['hs4smf_slideshownumbers'] = 'Show Image x of y in the slideshow';
$txt['hs4smf_slidecontrolsalways'] = 'Always show slide control (even on single images)';
$txt['hs4smf_aeva_format'] = 'Add additional settings in the Aeva Gallery to provide similar lightbox formatting';
//End HS4SMF changes
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.french.php">
<operation>
<search position="end" />
<add><![CDATA[
//Begin HS4SMF changes
$txt['hs4smf_none'] = 'aucun(e)';
$txt['hs4smf_inheading'] = 'Dans la rubrique ';
$txt['hs4smf_incaption'] = 'En Légende';
$txt['hs4smf_above'] = 'Au-dessus';
$txt['hs4smf_below'] = 'Ci-dessous';
$txt['hs4smf_top'] = 'Haut';
$txt['hs4smf_center'] = 'centre';
$txt['hs4smf_right'] = 'droit';
$txt['hs4smf_left'] = 'gauche';
$txt['hs4smf_bottom'] = 'Bas';
$txt['hs4smf_image'] = 'Image';
$txt['hs4smf_text'] = 'Contrôle du texte ';
$txt['hs4smf_largew'] = 'Contrôle du Blanc (grand) ';
$txt['hs4smf_smallw'] = 'Contrôle du Blanc (petit)';
$txt['hs4smf_largeb'] = 'Contrôle du Noir (grand) ';
$txt['hs4smf_overlayedon'] = 'Superposé sur';
$txt['hs4smf_hrw'] = 'Diapositive arrondi-blanc';
$txt['hs4smf_pos'] = 'Esquisse Polaroid + Ombre';
$txt['hs4smf_borderless'] = 'Sans Bordure';
$txt['hs4smf_dog'] = 'Lueur extérieure foncée';
$txt['hs4smf_pas'] = 'Clair et simple';
$txt['hs4smf_dag'] = 'Sombre et brillant';
$txt['hs4smf_dbf'] = 'Sombre sans bordure, légende flottante';
$txt['hs4smf_nodimming'] = 'Aucune atténuation';
$txt['hs4smf_00'] = '0%';
$txt['hs4smf_10'] = '10%';
$txt['hs4smf_20'] = '20%';
$txt['hs4smf_30'] = '30%';
$txt['hs4smf_40'] = '40%';
$txt['hs4smf_50'] = '50%';
$txt['hs4smf_60'] = '60%';
$txt['hs4smf_70'] = '70%';
$txt['hs4smf_80'] = '80%';
$txt['hs4smf_90'] = '90%';
$txt['hs4smf_100'] = '100%';
$txt['hs4smf_fullblack'] = 'Complètement Noir';
$txt['hs4smf_imagetitle'] = 'Titre de l\'image';
$txt['hs4smf_imagealt'] = 'Image Alternative';
$txt['hs4smf_linktitle'] = 'Titre du lien';
$txt['hs4smf_postsubject'] = 'Sujet du message';
$txt['mods_cat_modifications_hs4smf'] = 'Highslide';
$txt['hs4smf'] = 'Highslide 4 SMF';
$txt['hs4smf_desc'] = 'Cette modification vous permet d\'activer l\'effet lightbox highslide d\'images et les pièces jointes dans votre forum.';
$txt['hs4smf_title'] = 'Highslide 4 SMF';
$txt['hs4smf_enabled'] = 'Activer Highslide 4 SMF Modification.<br /><br />Highslide JS est distribué sous licence Creative Commons Attribution-Non Commercial 2.5 License. Cela signifie que vous devez obtenir la permission de l\'auteur pour utiliser Highslide JS sur des sites commerciaux.<br /><br />L\'activation de Highslide signifie que vous acceptez les termes de la <a href=http://highslide.com/#licence>License Highslide</a>';
$txt['hs4smf_enablecoral'] = 'Utiliser Coral CDN comme JS / CSS sources';
$txt['hs4smf_enablegalleryfade'] = 'Activer transition fondue In/Out';
$txt['hs4smf_enablecredits'] = 'Activer les crédits Highslide';
$txt['hs4smf_enableonattachments'] = 'Activer Highslide sur les pièces jointes';
$txt['hs4smf_slideshowcontrols'] = 'Utiliser les commandes graphiques du diaporama';
$txt['hs4smf_slideshowmouse'] = 'Masquer les commandes du diaporama quand la souris est en dehors';
$txt['hs4smf_slidebackgroundcolor'] = 'Couleur de fond global pour le cadre de diapositives (6 chiffre hexadécimal)';
$txt['hs4smf_slideshowcontrollocation'] = 'Emplacement des commandes du diaporama';
$txt['hs4smf_enablecenter'] = 'Aligner les images élargies au centre de la page';
$txt['hs4smf_enableflash'] = 'Activer Highslide sur des fichiers flash';
$txt['hs4smf_endableslideshow'] = 'Activer la fonction diaporama';
$txt['hs4smf_slideshowdelay'] = 'Délai en secondes entre les diapositives (0-10)';
$txt['hs4smf_nudgex'] = 'Ajuster la position de la commande du diaporama droite/gauche';
$txt['hs4smf_nudgey'] = 'Ajuster la position de la commande du diaporama haut/bas';
$txt['hs4smf_slideshowrepeat'] = 'Diaporama en boucle';
$txt['hs4smf_slideshowgrouping'] = 'Activer regroupement intelligent du diaporama (regroupement d\'image par message au lieu de sujet)';
$txt['hs4smf_appearance'] = 'Définir comment apparaît le cadre autour de l\'image dans Highslide';
$txt['hs4smf_dimmingopacity'] = 'Comment faire pour rendre la page de fond sombre quand une image glisse';
$txt['hs4smf_headingsource'] = 'Source du texte pour le titre';
$txt['hs4smf_captionsource'] = 'Source du texte pour la légende';
$txt['hs4smf_sourceopacity'] = 'Comment faire pour rendre la page de fond sombre pour le titre et la zone de légende';
$txt['hs4smf_captionposition'] = 'Emplacement de la légende';
$txt['hs4smf_headingposition'] = 'Emplacement du titre';
$txt['hs4smf_sourcemouse'] = 'Masquer le titre et la légende quand la souris est en dehors';
$txt['hs4smf_slideshownumbers'] = 'Voir l\'image x de y dans le diaporama';
$txt['hs4smf_slidecontrolsalways'] = 'Toujours afficher la commande des diapo (même sur des images simples)';
$txt['hs4smf_aeva_format'] = 'Ajouter des paramètres supplémentaires dans Aeva Gallery pour fournir un formatage de visionneuse similaire';
//End HS4SMF changes
]]></add>
</operation>
</file>
</modification>
language-utf8.xml (English + French)Quote
<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>spuds:ILA</id>
<file name="$languagedir/Modifications.english-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
//Begin HS4SMF changes
$txt['hs4smf_none'] = 'none';
$txt['hs4smf_inheading'] = 'In Heading ';
$txt['hs4smf_incaption'] = 'In Caption';
$txt['hs4smf_above'] = 'Above';
$txt['hs4smf_below'] = 'Below';
$txt['hs4smf_top'] = 'Top';
$txt['hs4smf_center'] = 'center';
$txt['hs4smf_right'] = 'right';
$txt['hs4smf_left'] = 'left';
$txt['hs4smf_bottom'] = 'Bottom';
$txt['hs4smf_image'] = 'Image';
$txt['hs4smf_text'] = 'Text Control ';
$txt['hs4smf_largew'] = 'Large White Control ';
$txt['hs4smf_smallw'] = 'Small White Control';
$txt['hs4smf_largeb'] = 'Large Black Control ';
$txt['hs4smf_overlayedon'] = 'Overlayed on';
$txt['hs4smf_hrw'] = 'Highslide rounded-white';
$txt['hs4smf_pos'] = 'Polaroid Outline + Shadow';
$txt['hs4smf_borderless'] = 'Borderless';
$txt['hs4smf_dog'] = 'Dark Outer-Glow';
$txt['hs4smf_pas'] = 'Plain and Simple';
$txt['hs4smf_dag'] = 'Dark and Glossy';
$txt['hs4smf_dbf'] = 'Dark borderless, floating-caption';
$txt['hs4smf_nodimming'] = 'No dimming';
$txt['hs4smf_00'] = '0%';
$txt['hs4smf_10'] = '10%';
$txt['hs4smf_20'] = '20%';
$txt['hs4smf_30'] = '30%';
$txt['hs4smf_40'] = '40%';
$txt['hs4smf_50'] = '50%';
$txt['hs4smf_60'] = '60%';
$txt['hs4smf_70'] = '70%';
$txt['hs4smf_80'] = '80%';
$txt['hs4smf_90'] = '90%';
$txt['hs4smf_100'] = '100%';
$txt['hs4smf_fullblack'] = 'Full black';
$txt['hs4smf_imagetitle'] = 'Image Title';
$txt['hs4smf_imagealt'] = 'Image Alt';
$txt['hs4smf_linktitle'] = 'Link Title';
$txt['hs4smf_postsubject'] = 'Post Subject';
$txt['mods_cat_modifications_hs4smf'] = 'Highslide';
$txt['hs4smf'] = 'Highslide 4 SMF';
$txt['hs4smf_desc'] = 'This modification allows you to enable the highslide lightbox effect to images and attachments in your forum.';
$txt['hs4smf_title'] = 'Highslide 4 SMF';
$txt['hs4smf_enabled'] = 'Enable the Highslide 4 SMF Modification.<br /><br />Highslide JS is licensed under a Creative Commons Attribution-Non Commercial 2.5 License. This means you must get the author\'s permission to use Highslide JS on commercial websites.<br /><br />Enabling highslide means that you are agreeing to the <a href=http://highslide.com/#licence>Highslide License</a> terms';
$txt['hs4smf_enablecoral'] = 'Use Coral CDN as JS/CSS source';
$txt['hs4smf_enablegalleryfade'] = 'Enable Fade In/Out transition';
$txt['hs4smf_enablecredits'] = 'Enable Highslide Credits';
$txt['hs4smf_enableonattachments'] = 'Enable Highslide on Attachments';
$txt['hs4smf_slideshowcontrols'] = 'Use graphical slideshow controls';
$txt['hs4smf_slideshowmouse'] = 'Hide slideshow controls on mouse out';
$txt['hs4smf_slidebackgroundcolor'] = 'Overall background color for the slide frame (6 digit hex)';
$txt['hs4smf_slideshowcontrollocation'] = 'Location for the slideshow controls';
$txt['hs4smf_enablecenter'] = 'Align expanded images to center of page';
$txt['hs4smf_enableflash'] = 'Enable highslide on flash files';
$txt['hs4smf_endableslideshow'] = 'Enable Slideshow feature';
$txt['hs4smf_slideshowdelay'] = 'Delay between slides in seconds (0-10)';
$txt['hs4smf_nudgex'] = 'Adjust the slideshow control position right/left';
$txt['hs4smf_nudgey'] = 'Adjust the slideshow control position up/down';
$txt['hs4smf_slideshowrepeat'] = 'Loop Slideshow';
$txt['hs4smf_slideshowgrouping'] = 'Enable smart slideshow grouping (image grouping by message instead of topic)';
$txt['hs4smf_appearance'] = 'Define how the frame around the highslided image appears';
$txt['hs4smf_dimmingopacity'] = 'How dark to make the background page when highsliding an image';
$txt['hs4smf_headingsource'] = 'Source for the text in the heading';
$txt['hs4smf_captionsource'] = 'Source for the text in the caption';
$txt['hs4smf_sourceopacity'] = 'How dark to make the background in the heading and caption area';
$txt['hs4smf_captionposition'] = 'Location for the caption';
$txt['hs4smf_headingposition'] = 'Location for the heading';
$txt['hs4smf_sourcemouse'] = 'Hide heading and caption on mouse out';
$txt['hs4smf_slideshownumbers'] = 'Show Image x of y in the slideshow';
$txt['hs4smf_slidecontrolsalways'] = 'Always show slide control (even on single images)';
$txt['hs4smf_aeva_format'] = 'Add additional settings in the Aeva Gallery to provide similar lightbox formatting';
//End HS4SMF changes
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.french-utf8.php">
<operation>
<search position="end" />
<add><![CDATA[
//Begin HS4SMF changes
$txt['hs4smf_none'] = 'aucun(e)';
$txt['hs4smf_inheading'] = 'Dans la rubrique ';
$txt['hs4smf_incaption'] = 'En Légende';
$txt['hs4smf_above'] = 'Au-dessus';
$txt['hs4smf_below'] = 'Ci-dessous';
$txt['hs4smf_top'] = 'Haut';
$txt['hs4smf_center'] = 'centre';
$txt['hs4smf_right'] = 'droit';
$txt['hs4smf_left'] = 'gauche';
$txt['hs4smf_bottom'] = 'Bas';
$txt['hs4smf_image'] = 'Image';
$txt['hs4smf_text'] = 'Contrôle du texte ';
$txt['hs4smf_largew'] = 'Contrôle du Blanc (grand) ';
$txt['hs4smf_smallw'] = 'Contrôle du Blanc (petit)';
$txt['hs4smf_largeb'] = 'Contrôle du Noir (grand) ';
$txt['hs4smf_overlayedon'] = 'Superposé sur';
$txt['hs4smf_hrw'] = 'Diapositive arrondi-blanc';
$txt['hs4smf_pos'] = 'Esquisse Polaroid + Ombre';
$txt['hs4smf_borderless'] = 'Sans Bordure';
$txt['hs4smf_dog'] = 'Lueur extérieure foncée';
$txt['hs4smf_pas'] = 'Clair et simple';
$txt['hs4smf_dag'] = 'Sombre et brillant';
$txt['hs4smf_dbf'] = 'Sombre sans bordure, légende flottante';
$txt['hs4smf_nodimming'] = 'Aucune atténuation';
$txt['hs4smf_00'] = '0%';
$txt['hs4smf_10'] = '10%';
$txt['hs4smf_20'] = '20%';
$txt['hs4smf_30'] = '30%';
$txt['hs4smf_40'] = '40%';
$txt['hs4smf_50'] = '50%';
$txt['hs4smf_60'] = '60%';
$txt['hs4smf_70'] = '70%';
$txt['hs4smf_80'] = '80%';
$txt['hs4smf_90'] = '90%';
$txt['hs4smf_100'] = '100%';
$txt['hs4smf_fullblack'] = 'Complètement Noir';
$txt['hs4smf_imagetitle'] = 'Titre de l\'image';
$txt['hs4smf_imagealt'] = 'Image Alternative';
$txt['hs4smf_linktitle'] = 'Titre du lien';
$txt['hs4smf_postsubject'] = 'Sujet du message';
$txt['mods_cat_modifications_hs4smf'] = 'Highslide';
$txt['hs4smf'] = 'Highslide 4 SMF';
$txt['hs4smf_desc'] = 'Cette modification vous permet d\'activer l\'effet lightbox highslide d\'images et les pièces jointes dans votre forum.';
$txt['hs4smf_title'] = 'Highslide 4 SMF';
$txt['hs4smf_enabled'] = 'Activer Highslide 4 SMF Modification.<br /><br />Highslide JS est distribué sous licence Creative Commons Attribution-Non Commercial 2.5 License. Cela signifie que vous devez obtenir la permission de l\'auteur pour utiliser Highslide JS sur des sites commerciaux.<br /><br />L\'activation de Highslide signifie que vous acceptez les termes de la <a href=http://highslide.com/#licence>License Highslide</a>';
$txt['hs4smf_enablecoral'] = 'Utiliser Coral CDN comme JS / CSS sources';
$txt['hs4smf_enablegalleryfade'] = 'Activer transition fondue In/Out';
$txt['hs4smf_enablecredits'] = 'Activer les crédits Highslide';
$txt['hs4smf_enableonattachments'] = 'Activer Highslide sur les pièces jointes';
$txt['hs4smf_slideshowcontrols'] = 'Utiliser les commandes graphiques du diaporama';
$txt['hs4smf_slideshowmouse'] = 'Masquer les commandes du diaporama quand la souris est en dehors';
$txt['hs4smf_slidebackgroundcolor'] = 'Couleur de fond global pour le cadre de diapositives (6 chiffre hexadécimal)';
$txt['hs4smf_slideshowcontrollocation'] = 'Emplacement des commandes du diaporama';
$txt['hs4smf_enablecenter'] = 'Aligner les images élargies au centre de la page';
$txt['hs4smf_enableflash'] = 'Activer Highslide sur des fichiers flash';
$txt['hs4smf_endableslideshow'] = 'Activer la fonction diaporama';
$txt['hs4smf_slideshowdelay'] = 'Délai en secondes entre les diapositives (0-10)';
$txt['hs4smf_nudgex'] = 'Ajuster la position de la commande du diaporama droite/gauche';
$txt['hs4smf_nudgey'] = 'Ajuster la position de la commande du diaporama haut/bas';
$txt['hs4smf_slideshowrepeat'] = 'Diaporama en boucle';
$txt['hs4smf_slideshowgrouping'] = 'Activer regroupement intelligent du diaporama (regroupement d\'image par message au lieu de sujet)';
$txt['hs4smf_appearance'] = 'Définir comment apparaît le cadre autour de l\'image dans Highslide';
$txt['hs4smf_dimmingopacity'] = 'Comment faire pour rendre la page de fond sombre quand une image glisse';
$txt['hs4smf_headingsource'] = 'Source du texte pour le titre';
$txt['hs4smf_captionsource'] = 'Source du texte pour la légende';
$txt['hs4smf_sourceopacity'] = 'Comment faire pour rendre la page de fond sombre pour le titre et la zone de légende';
$txt['hs4smf_captionposition'] = 'Emplacement de la légende';
$txt['hs4smf_headingposition'] = 'Emplacement du titre';
$txt['hs4smf_sourcemouse'] = 'Masquer le titre et la légende quand la souris est en dehors';
$txt['hs4smf_slideshownumbers'] = 'Voir l\'image x de y dans le diaporama';
$txt['hs4smf_slidecontrolsalways'] = 'Toujours afficher la commande des diapo (même sur des images simples)';
$txt['hs4smf_aeva_format'] = 'Ajouter des paramètres supplémentaires dans Aeva Gallery pour fournir un formatage de visionneuse similaire';
//End HS4SMF changes
]]></add>
</operation>
</file>
</modification>
These modifications were tested and they are OK on my admin-forum.
Best regards
Merci beaucoup ;)
hello again...
just want to ask if i how to change the code tag? i want to use my own code tag... for example is, [pic] [/pic]
and then add the code tag button in the bbc code tag buttons in post menu
This mod installed with out any problems, however, this mod does not work, even on the default theme.
All attached images don't work with highslide, same for [img] url's.
BTW yes, it is enabled in Admin > Modification Settings > Highslide
Including "Enable Highslide on Attachments" is ticked
hmmm.
Make sure the highslide directory and its sub directories were created and that the files were installed in them. Sometimes the package manager does not expand that directory fully, or expands it but does not put in all the files.
Yeah, there is a problem with the site.
I have installed this mod in my test site and it woks 100%, both are 2.0.1.
So, I have a huge job of backing up my members and topics etc and forget the settings.
I will be installing 2.0.1 and import the database over, see how that goes.
Sorry for my previous post :-[
-- Edit --
Problem is now fixed, It is now working 100% on both sites ;)
Did you Enable the Highslide 4 SMF Modification.Management--> Configuration-->Modification settings-->Highslide
Edit Highslide works only when images are uploaded using Image Post, Imageshack, Photobucket, iPicture, Radikal, Keep4u, Xs and Fotosik.
Also installed this Mod in the basic/core theme
the add before add after edits in subs.php cause a template error message on mine could some 1 take a look at my subs.php and maybe add the edits thanks
subs.php attached
tried this myself only error on install is the add before add after on subs.php
been trying all afternoon to get this 2 work could some 1 have a look at my above subs.php file attached because i just carnt figure out why im getting a parse error when i do the edits.
any one ?
Quote from: TheCodfather on October 24, 2011, 01:55:03 PM
any one ?
I just had a look and cannot see why the parser is not finding the two search strings.
However, providing we are talking about the HS4SMF_0.7a_for_2.0.zip download package, I edited the before/after string in for you. Personally I would have made the package installer fit the subs.php file, but as the search operation should be working imho, here's your edited subs.php file
thnks shambles will report back shortly if it works
getting exactly same error when i edited my subs.php just carnt figure out why im getting this error even when u have tried also to do the edits.
Fatal error: Call to undefined function hs4smf() in /public_html/Sources/Subs.php on line 2446
any one willing to take a look ?
The file I attached is post-edit, ie I applied the edits for you. To make use of that you would have to use package manager to apply the mod and accept the error message shown with your original subs.php;
then you'd go in and upload the new subs.php that I provided.
oh okay thanks ill try it mate thanks
thanks shambles its working many many thanks for all your help.
Installed through package manager on modified .css core theme. Seemed to install perfect and I have enabled it and several options and it has no affect on the images from photobucket or any other source. realhomemadeturbo.com/forum
either the hs4smf-Subs.php file did not get extracted to your sources directory or more likely the edits to the themes index file did not happen.
open you index.template.php file and see if this section is in there
// HS4SMF enable footer
if (!empty($modSettings['hs4smf_enabled']) && empty($context['uninstalling'])) {
if (!function_exists('hs4smf')) {
global $sourcedir;
include_once $sourcedir . '/hs4smf-Subs.php';
}
echo hs4smf_prepare_footer();
}
it should be right after this line
global $context, $settings, $options, $scripturl, $txt, $modSettings;
http://www.realhomemadeturbo.com/forum/index.php/topic,15961.msg192537.html#new
It does the lightbox now only when I click on the image but its not resizing. Is this the way its suppose to work? I edited the php file and the sources directory did not have the addremovehooks or the hs4smf.php files. Possibly more is missing?
Well its resizing when you click on it so you can see the entire image and then zoom inside the lightbox to full size etc.
To prevent what you have going on, go to admin -> features & options -> layout and set some values in
Max width of posted pictures
Max height of posted pictures
try something small (320 x 240 or 640 x 480 or whatever works with your layout), the image will be constrained to those dimensions and then when you click on it you will be able to expand it in the lightbox.
I installed it and everything showed green however when I go into admin>mods> the Highslide mod shows no name but is clickable. I click in and all I see are boxes and drop down menues which are centered and blank without any names to explain what they are.
That means the language strings did not get installed in to your modifications.english.php (or english-utf8) file. You will need to go to the themes->default->languages directory and add the text stings to that file, at the end just before the ?> at the end of that file.
You can also get to this file from your admin panel admin_>configuration->themes and layout->modify themes. Then select the default curve theme and navigate to languages directory and select the modifications.english file ... then add in the missing strings as above and save.
The txt strings can be found in the package in the languages.xml file.
Manual Installation of Mods (http://wiki.simplemachines.org/smf/Manual_installation_of_mods) will also help explain this.
Hey dude.... may i post here any problem regarding Modification....>>>??
Quote from: admirable on November 10, 2011, 01:28:09 PM
Hey dude.... may i post here any problem regarding Modification....>>>??
If it has to do with this mod, yes. If not then just find the right board here and post it in the proper location to get help easier and quicker
I quite often get this general warning when images from postimage.org get "high slided"
http://www.i30ownersclub.com/forum/index.php?/topic,528.0.html
2: file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: Filename cannot be empty
File: /home/********/public_html/forum/Sources/hs4smf-Subs.php
Line: 221
It's no real biggie and doesn't seem to disrupt my forum, but I'd like to stop the message appearing in the Admin error log.
Here are the lines of code producing the warning:
elseif (stripos($image['domain_url'], 'postimage') !== false)
{
// postimage.org appears to set the full image name based on the user agent, different agents generate different image names ...
$out = $image[2];
ini_set('user_agent', $_SERVER['HTTP_USER_AGENT']);
$page = file_get_contents($image[2]);
Not being a php coder (but I do code in assembler/machine code) would something akin to the following relieve me of the error from file-get-contents (ie, is the syntax correct)?
elseif (stripos($image['domain_url'], 'postimage') !== false)
{
// postimage.org appears to set the full image name based on the user agent, different agents generate different image names ...
$out = $image[2];
ini_set('user_agent', $_SERVER['HTTP_USER_AGENT']);
// only read the file if the name isn't blank
if ($image[2] !== "")
$page = file_get_contents($image[2]);
Thanks for reading :)
I'll have to take a look as to why its getting a blank image, but in the meantime you can just do
elseif (stripos($image['domain_url'], 'postimage') !== false)
elseif (stripos($image['domain_url'], 'postimage') !== false && !empty($image[2]))
should stop the errors for you
Quote from: Spuds on November 13, 2011, 01:45:38 PM
I'll have to take a look as to why its getting a blank image, but in the meantime you can just do
elseif (stripos($image['domain_url'], 'postimage') !== false)
elseif (stripos($image['domain_url'], 'postimage') !== false && !empty($image[2]))
should stop the errors for you
Thanks for the improved code ;D
I'm not too concerned that postimage often returns non-conformant images, as it doesn't affect much (as far as I can see), but I do appreciate your swift reply.
Did I mention it's an awesome mod?
There, I just did 8)
I searched the topic, but was able to find a solution. :)
I installed your mod and it works great and I like it, but there is a little problem with some posted images
As you can see in this post: http://forum.arsenie.net/index.php/topic,11381.msg245690.html#msg245690
1 image opens in Highslide, the other image in a white page, but I don't know why :(
Its because the first image is named highslide.jpg so its tricking the code in to thinking the image has already been prepared to slide .....
You can open the hs4smf-Subs.php file in the sources directory and find
if (stripos($str, "highslide") == false && stripos($str, "onclick") === false)
and replace it with
if (stripos($str, '"highslide') === false && stripos($str, 'onclick="') === false)
Also consider not using the coral CDN setting in hs4smf, I wish that service was more reliable but I often find it causes more problems than it solves.
Thanks it solve the problem :D but there seems to be a problem with radikal.ru :(
When you scroll a bit down in the topic you can see images posted by a member which are loaded
up on radikal.ru and those images open in a white page too :(
http://forum.arsenie.net/index.php/topic,11381.msg245570.html#msg245570
Thats funny .. its a bmp image, I did not know anyone still used that crappy format :)
same file as before ... change
if (preg_match('~href=[\'"][^"\']+\.(?:gif|jpe|jpg|jpeg|png)~i', $str))
to
if (preg_match('~href=[\'"][^"\']+\.(?:gif|jpe|jpg|jpeg|png|bmp)~i', $str))
Quote from: Spuds on November 14, 2011, 02:32:30 PM
Thats funny .. its a bmp image, I did not know anyone still used that crappy format :)
same file as before ... change
if (preg_match('~href=[\'"][^"\']+\.(?:gif|jpe|jpg|jpeg|png)~i', $str))
to
if (preg_match('~href=[\'"][^"\']+\.(?:gif|jpe|jpg|jpeg|png|bmp)~i', $str))
Didn't you know, fools never dies? ;)
Thanks for your fast help! :D
Hi Spuds. Thanks for your earlier assistance regarding getting rid of the "empty file" message.
I strongly suspect postimage.org is at fault again, for this error which crops up from time to time:
2: file_get_contents(http://www.postimage.org/image.php?v=gxrjs_9) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.1 503 Service Temporarily Unavailable
File: /home/********/public_html/forum/Sources/hs4smf-Subs.php
Line: 221
I'm getting this logged half a dozen times every hour or so, probably because there are half a dozen postimage.org links in one of the threads being reported.
As before, quite willing to simply ignore this, unless you think a bit of "ignore" code could be added...?
Thanks
Well I don't normally recommend this since, its really a poor practice, but in this case somewhat unavoidable due to the way that service works or did when I first wrote this mod some time ago
find
Quote$page = file_get_contents($image[2]);
replace with
Quote$page = @file_get_contents($image[2]);
that little '@' should supress the error mesasge, which in this case was the postimage site was either down or swamped ...
Quote from: Spuds on November 15, 2011, 09:43:58 AM
Well I don't normally recommend this since, its really a poor practice, but in this case somewhat unavoidable due to the way that service works or did when I first wrote this mod some time ago...
I'm also not into bad coding practices, but if it alleviates the problems extracting from that site then I'm all for it.
Thanks :)
One more question :-[
In the settings for highslide is this to read
QuoteAdd additional settings in the Aeva Gallery to provide similar lightbox formatting
I've mark this but for some reasons it doesn't show any effect on the gallery.
I'm using Avea Media 2.10, could this be the reason?
Its fine with Aeva 2.1 or should be .... you need to make sure you have enabled highslide in your aeva settings first.
That setting in hs4smf only attempts to make the style of the lightbox the "similar", but it does not enable it in the gallery.
Quote from: Spuds on November 15, 2011, 08:05:34 PM
Its fine with Aeva 2.1 or should be .... you need to make sure you have enabled highslide in your aeva settings first.
That setting in hs4smf only attempts to make the style of the lightbox the "similar", but it does not enable it in the gallery.
Ah ok, because in the gallery is it the style far away of what I use in the forum itself, but that's ok :D
Did you install Aeva after HS4SMF, if so then it will not work and you would have to uninstall hs4smf and then reinstall it for it to affect Aeva. If not then I don't know.
I installed HS4SMF after I installed Aeva, but don't worry, it isn't that big problem. ;) I got the idea it would look nice to get the same effect in the Gallery as in the forum, the dark background when an image open, but it's ok :D
First of all, thanks for this great mod, brilliant job, it makes an amazing difference on the style of the forums.
Everything its working fine for me, no problem at all, but what i wanted to know:
-Is it possible to remove the highlight/border box around images? On this specific image is not a big deal, but on other images (just letters or signatures) it becomes kind of ugly.
Pic with example.
(http://img59.imageshack.us/img59/9330/exemplem.png)
Thanks for you time and my best regards
I'm not sure why its doing that, must be a css conflict with the highslide CSS file and the theme you are using. Is it only on the icons, the mod should be leaving those alone anyway? Very strange, but the way to fix should be to edit the highslide.css file in the hs4smf directory in your themes directory.
From a quick look there is a highslide img{border:2px solid silver} you can try changing the 2 to a 0 and see if that clears it, but there could be other img items in there that are causing the conflict. If you give me a link then I can tell for sure.
I installed this plugin and it had no effect, didn't work at all......
Hi,
Newbie here who has a question about how this excellent mod interacts with themes other than the SMF default. I've just changed our theme to Epic (by Crip) and images attached to posts are no longer opening in their own pop out window. I've had to disable the attachments option in Admin as a result. If I revert to the SMF default theme this problem goes away. Highslide still works just fine in our Aeva gallery, by the way.
Is there a setting that I need to change to make them interact properly, or do I have to do something with the themes code? Any thoughts would be appreciated. Here is a link to a post on our forum that has an attached image.
http://www.gwentdetecting.co.uk/index.php?topic=5949.msg64578#msg64578 (http://www.gwentdetecting.co.uk/index.php?topic=5949.msg64578#msg64578)
Thank you kindly.
When you install the mod, you will see an option to install it in other themes *IF* those themes are already installed.
If you install a theme after the mod it will not work and you will have to manually install the theme edits yourself. Manual Installation of Mods (http://wiki.simplemachines.org/smf/Manual_installation_of_mods) look for the edits to .template files in this case.
Now the caveat, even if you have other theme installed to start with, there is no guarantee that the mod will install correctly in those other themes, it all depends on how different it is from the default.
Great mod, thank You! 8)
Would there actually be a way to close the Highslided Image when mouse-clicking anywhere on the screen outside the highslided image?
Quote from: funkythemunky on January 26, 2012, 03:16:37 PM
Great mod, thank You! 8)
Would there actually be a way to close the Highslided Image when mouse-clicking anywhere on the screen outside the highslided image?
It should do that now, at least it does on mine.
I do have to click onto the highslided image to make it go small again. ;-) Somewhat strange isn´t it? *scratches chin*
Can I disable the mod function only in particular images when the modification is installed or the exceptions aren't possible?
For example, I'll write a message include several pictures but in some of them I don't wanna highslide possibility and that gray border.
Thanks in advance.
If there was an img that you did not want to highslide then you just use the alt=ns option like this [img alt="ns"]http://your image[/img]
Thank you very much. What a simple solution :).
Hello! I'm using this mod and is working just great!
But I'm looking for the way to add a little twist to the code, since I also have this mod: http://custom.simplemachines.org/mods/index.php?mod=2295 I'm trying to find the way to disable h4smf just for the attachments when a Guest is browsing the site. Is this possible?
Can you point me where to see so maybe I can do it my self ;)
Regards!
In the hs4smf-Subs.php file
find
global $context, $modSettings, $settings;
// Mod or BBC disabled?
if (empty($modSettings['hs4smf_enabled']) || empty($modSettings['enableBBC']))
return;
replace with
global $context, $modSettings, $settings, $user_info;
// Mod or BBC disabled?
if (empty($modSettings['hs4smf_enabled']) || empty($modSettings['enableBBC']) || $user_info['is_guest'])
return;
will turn it off for guest (attachments, images, etc)
im constantly getting this error in my other site, in cpanel error log
File does not exist: /home/kumakun1/public_html/****/highslide, referer: http://*****
i know the recent versions don't make a highslide folder
but could it be something from old install, any particular file, lines can you think of?
As you noted this mod makes a hs4smf folder and places the highslide files it uses in there (to avoid conflicts), so its not one of its directories.
Since those are in your cpanel error log, it could be anything that uses highslide, such as Aeva for example. Errors in the cpanel could be nothing more than a bot trying to access the files that are off limits, someone hot linking and not being allowed or a missing file, or other ......
was wondering if it was from an old installation of this mod, if that is not the case then never mind
i never installed any other mod that uses hs in my other child, in fact i barely install any
now it reminds me
probably some codes i modified in the theme, since i just duplicated the theme from my main site and remove some conflict lines
i will take a look on that, sry to bother you
Great mod, which works perfectly on our Photo forum!
One question though: when there are more photos in a post then only the first photo is correctly centered. All other subsequent photos are aligned to the right side of the largest photo that was shown.
It goes wrong here: http:// www .pentaxian.nl/index.php?action=pages (remove spaces). Just click on the first picture and continue to the next pictures.
A solution would be great; thank you for your support!
in the hs4smf-Subs.php file in your sources directory:
$footer .= "fixedControls: 'fit',";
$footer .= "fixedControls: false,";
Thats one of the few settings I don't think I have in the admin panel ... basically now when you go in to slideshow mode it keeps the slide navigation controls in the same spot for easy navigation instead of the absolute centering of the slide. Allowing the controls to move will allow the slide to center, so change the line above to what I have given you.
Thank you! I will modify the code and check back here to let you know how it worked.
The centering modification worked perfectly, thank you! :D
Spuds,
Refering to http://www.simplemachines.org/community/index.php?topic=376767.300
I'd performed a clean start ...
Installed ILA 1.21 no problem.
But when I try to install HS4SMF, failes at subs.php (add after) step.
So I continued installation, and modified subs.php according to parse, afterwards ..
I again got 500 internal server errors ..
possiblities are :
-my editor fulls me. ( notepad++ being used more then several times with no prob. (encode in utf8 without rom selected as always) maybe keyboard is adding nulls, I dont know ..
-some files in the dir has file permissions other then 644 in the mod like 755 (mostly happens ) seen in other mods and rejected by hosting firm.
-something wrong in my system that is revoked by this installation...
My subs.php before mod is attached .
Can you pls guide me ..
I can provide login details via PM if requested ...
Sorry for my poor english! :)
How do I get this mod to work with images that has no ending?
Like: lh6.googleusercontent.com/-xBpMcXJX8CM/TzlowH3PuII/AAAAAAAAAH4/mhlEz848khw/s816/13.02.12+-+1 (just paste the URL in your browser, the forum says its nonactive :| )
or: foro.cemzoo.com/picture.php?albumid=6123&pictureid=78481 (just paste the URL in your browser, the forum says its nonactive :| )
And with this mod installed, my forum won't resize large images anymore if the imagefile has no ending :(
Otherwise it's a really great mod! :D
Hello Spud! I have a problem/question
See, I have problems viewing attachemtns that have full size in the post (using ILA), see here: http://www.forosperuanos.net/zona-de-trafico/desahogate-v-2/msg83549/#msg83549
The only image that can be load in the highslide is the one in miniature, but the one that is in full size is not showed in the highslide.
Any ideas why?
Quote from: distante on February 15, 2012, 02:02:35 PM
Hello Spud! I have a problem/question
See, I have problems viewing attachemtns that have full size in the post (using ILA), see here: http://www.forosperuanos.net/zona-de-trafico/desahogate-v-2/msg83549/#msg83549
The only image that can be load in the highslide is the one in miniature, but the one that is in full size is not showed in the highslide.
Any ideas why?
Thats just the way that it works with ILA ... since the image is already fullsize it does not attach the highslide click event to the image since clicking it would only show the same thing as what you already have. You could always use the size attribute of the attac bbc to make the image smaller, and it would then (i think) highslide.
There's no tweek that I can do to ILA so the highslide work allways?
Because I have a floating menu (well I managed to be a drop up/down menu) and this sometimes hide some part of the big images (specially for lowers monitor resolutions)
thanks :)
OK, I've found what my mistake is :
While applying the mod, I got parisng errors in subs.php but there are 2 modifications and only "add after" one fails.
So I pressed enter and modifed only the failing part of the subs.php and failed with 500 internal errors ...
When I trace back what is wrong, I've noticed that "add before" part is alos not applied to subs.php consiquently failed.
So I manually applied add before and after statements to subs.php and hs4smf is working as designed.
Glad you were able to figure it out :)
The editing of the source files is problematic due to mod conflicts as you have found. Its notably troublesome in the high use files like subs.php and display.php where mods often need to edit the same areas. The hooks added in 2.0 were a help in preventing this and in a future 2.1 there will be more to help further reduce this problem.
How about my question Spuds, theres no way?
Hey Spuds.
Can we disable this mod to be affected on images in posts - i mean about images posted via img tag, and use this mod only in attachments?
Thanks in advice. :)
Quote from: Dzonny on February 23, 2012, 03:23:54 PM
Hey Spuds.
Can we disable this mod to be affected on images in posts - i mean about images posted via img tag, and use this mod only in attachments?
Thanks in advice. :)
I've never even thought of that usage mode :) ... The mod is geared towards the images with attachment support ... not the other way around if that makes sense.
I've not tried this, but maybe this will short circuit it the correct way, in hs4smf-Subs.php
// init some thangs
$context['hs4smf_img_count'] = 0;
// init some thangs
$context['hs4smf_img_count'] = 0;return;
Thanks Spuds, that actually works like a charm :)
Spuds, I have a problem with some topics, that I'm not quite sure the reason.
see, here: http://www.desadaptados.net/television/homero-simpson-y-sus-apariencias!/ the Highslide isn't working, but here it is:
http://www.desadaptados.net/zona-de-trafico/gifs-chistosos-curiosos-estupidos-o-demas/
I was looking in my Cpanel 404 error log, and saw that in the first topic, there's an error looking for the zoomin.cur :
http://www.desadaptados.net/television/homero-simpson-y-sus-apariencias!/highslide/graphics/zoomin.cur
Do you know why is this happen?
Thanks
I just went to both links and for me everything worked ... the one page with the 45+ images took a long time to load, but once it did everything worked as expected for my.
if he could enlarge(zoom) in the smf gallery - compatible mods ?
Quote from: Spuds on March 10, 2012, 08:59:45 PM
I just went to both links and for me everything worked ... the one page with the 45+ images took a long time to load, but once it did everything worked as expected for my.
Extrange, could be a browser thing? I use crhome, I enter in "private mode" so there's no old cached files, and don't worked, always send the to the full picture instead of high slide them (in the Homer Simpson topic)
When I looked at that page in chome, I get an "Uncaught SyntaxError: Unexpected identifier" (3 times) ... something to do with a facebook like onclick event from another mod.
Grrr, facebook SDK is always screwing with all the others javascript, well thanks anyway, I just saw that works ok in IE :(
Hi Spuds,
will this mod work with Flickr thumbnails?
Regards..,
Currently I don't think it will .... not sure how a Flickr link looks (so that the mod could find the fullsize image to expand)
Quote from: Spuds on March 31, 2012, 09:24:34 AM
Currently I don't think it will .... not sure how a Flickr link looks (so that the mod could find the fullsize image to expand)
Hi Spuds,
thanks for replying.
If this helps, below are two img links for the same photo from my own Flickr stream.
The first is the address for the Thumbnail and the second is the address for the Original image.
<img src="http://farm8.staticflickr.com/7177/6935446545_3b8391bd51_t.jpg" width="100" height="74">
<img src="http://farm8.staticflickr.com/7177/6935446545_7c2d60ff03_o.jpg" width="2304" height="1704">
I am wondering, can the links be hardcoded or will that not really work?
Regards..,
I don't see a way to quickly figure out the original link (what we need) when given the thumbnail link. Most sites just change a couple of characters so you just have to add/remove/change a thumbnail link to get the full sized link.
In the case above ... given
http://farm8.staticflickr.com/7177/6935446545_3b8391bd51_t.jpg
we would need to figure out how to get
http://farm8.staticflickr.com/7177/6935446545_7c2d60ff03_o.jpg
unfortunately the hash changed, so I don't see how to get 7c2d60ff03_o.jpg given 3b8391bd51_t.jpg .... if it was just changing the _t to an _o we would be set .... the best I can see doing is a link to the large image, but not the original .... which does use the same hash ... e.g. link it to http://farm8.staticflickr.com/7177/6935446545_3b8391bd51_b.jpg
which is a good sized image to highslide
Quote from: Spuds on March 31, 2012, 12:28:18 PM
I don't see a way to quickly figure out the original link (what we need) when given the thumbnail link. Most sites just change a couple of characters so you just have to add/remove/change a thumbnail link to get the full sized link.
In the case above ... given
http://farm8.staticflickr.com/7177/6935446545_3b8391bd51_t.jpg
we would need to figure out how to get
http://farm8.staticflickr.com/7177/6935446545_7c2d60ff03_o.jpg
unfortunately the hash changed, so I don't see how to get 7c2d60ff03_o.jpg given 3b8391bd51_t.jpg .... if it was just changing the _t to an _o we would be set .... the best I can see doing is a link to the large image, but not the original .... which does use the same hash ... e.g. link it to http://farm8.staticflickr.com/7177/6935446545_3b8391bd51_b.jpg
which is a good sized image to highslide
Cheers Spuds for looking at this
I never spotted the hash change on the original size.
A link to the large size would indeed be perfectly suitable.
Regards..,
Hi Spuds,
I have been looking into getting this working for my Flickr images and have made some headway but now I am a little stuck.
Line 45 of hs4smf-Subs.php I added 'flickr' to the array of $image_hosters
then under the 'function hs4smf_fix_link($image)'
I added:
elseif (stripos($image['domain_url'], 'flickr') !== false && preg_match('~(.*?)\.(?:t\.|)(png|gif|jp(e)?g|bmp)$~is' . ($context['utf8'] ? 'u' : ''), $image[4], $out))
from copying the photobucket code.
An example hash for a Flickr image is:
318968374d_t.jpg - for the thumbnail
318968374d_b.jpg - for the large image.
I understand that the above code would strip off the 't' from the has but how do I then get it to output the new link with it adding the 'b' in the place of the 't'?
I appreciate you help.
Regards..,
MT
got any instruction on use it outside of smf system?
for example i create a php page that uses ssi.php
Quote from: Spuds on April 02, 2012, 07:47:35 PM
Quote from: MadTogger on April 02, 2012, 03:00:32 PM
Hi Spuds,
I have been looking into getting this working for my Flickr images and have made some headway but now I am a little stuck.
Try the attached version ... it should work with a _t style link (inside IMG tags of course)
Quote from: Eudemon on April 02, 2012, 05:30:03 PM
got any instruction on use it outside of smf system?
for example i create a php page that uses ssi.php
Sorry no :(
Thanks Spuds, I'll take a look at the file. ;)
Hi Spuds,
OK, I installed the mod without any problems.
I am now trying to test the use of the mod with Flickr images but cannot get my head around what I am supposed to post on a thread as the initial img link.
Flickr gives two options for the image code, see below:
BB Code version;
[url=http://www.flickr.com/photos/kjevans/6893415958/][img]http://farm8.staticflickr.com/7197/6893415958_ac6be76985_t.jpg[/img][/url]
[url=http://www.flickr.com/photos/kjevans/6893415958/]SWMEE2012 - 006[/url] by [url=http://www.flickr.com/people/kjevans/]MadTogger[/url], on Flickr
HTML version;
<a href="http://www.flickr.com/photos/kjevans/6893415958/" title="SWMEE2012 - 006 by MadTogger, on Flickr"><img src="http://farm8.staticflickr.com/7197/6893415958_ac6be76985_t.jpg" width="100" height="74" alt="SWMEE2012 - 006"></a>
both of which displays the image thumbnail and links it to the actual images page on Flickr.
Now if I use the BBCode version on my page, it shows the thumbnail correctly but upon clicking the image I am just taken to the images own page on Flickr, no Highslide lightbox appears.
To be able to use the HTML version on my forum I have to wrap the code in [html][/html] tags but get exactly the same result as with the BBCode version.
I have Enabled the Highslide MOD.
What exactly should I be posting to get the image to display and work with Highslide?
Regards..,
The updates in that copy should work if you post it as [img]http://farm8.staticflickr.com/7197/6893415958_ac6be76985_t.jpg[/img] which is just the thumbnail ... from that it figures out the location of the large image and highslides that.
I'll look at the full bbc you posted to see if it can use that as well, but for now it only needs the img thumbnail
Quote from: Spuds on April 02, 2012, 07:47:35 PM
Quote from: Eudemon on April 02, 2012, 05:30:03 PM
got any instruction on use it outside of smf system?
for example i create a php page that uses ssi.php
Sorry no :(
ok :(
in case there is a misunderstand, i meant to make the images on that page have highslide
and the highslide settings are inherited from the mod setting
if you alrdy got what i meant then just ignore this
Quote from: Spuds on April 03, 2012, 10:46:56 AM
The updates in that copy should work if you post it as [img]http://farm8.staticflickr.com/7197/6893415958_ac6be76985_t.jpg[/img] which is just the thumbnail ... from that it figures out the location of the large image and highslides that.
I'll look at the full bbc you posted to see if it can use that as well, but for now it only needs the img thumbnail
Cheers Spuds, got it working now. Super MOD thanks. ;D
Regards..,
MT
Hi Spuds,
sorry to bother you again.
The MOD works great with both the BB Code & HTML code versions of the image link from Flickr, although there is something I would like to add.
When using the BB Code, due to it's limitations, there is no way to display the image caption, however it is displayed as a link back to the originating Flickr page under the Thumbnail in the post. To me though, this does not look very tidy.
If I use the HTML version of Flickr's image code, I can get the caption to display on the slideout and this does not have the messy text below the Thumbnail image, but due to Flickr's T&C each image has to have a link back to the image's originating page.
Is it at all possible to make the caption a clickable link to the image's homepage on Flickr?
Kind regards..,
MT
So just noticed this error, it came from modifying a post which had no images btw..
http://www.uofreeshards.net/index.php?action=post;msg=***;topic=**.**
Apply Filter: Only show the errors with the same message
8: Undefined index: hs4smf_img_count
Apply Filter: Only show the errors from this file
File: /***/Sources/hs4smf-Subs.php
Line: 292
I'm having troubles on my forum.
A few times a day i'm getting this error:
Fatal error: Out of memory (allocated 7077888) (tried to allocate 79 bytes) in /var/www/vhosts/bimmerboard.be/httpdocs/forum/Sources/Load.php(217) : runtime-created function on line 4
Fatal error: Out of memory (allocated 6029312) (tried to allocate 122880 bytes) in /var/www/vhosts/bimmerboard.be/httpdocs/forum/Sources/Load.php(2153) : eval()'d code on line 127
Fatal error: Out of memory (allocated 4718592) (tried to allocate 122880 bytes) in /var/www/vhosts/bimmerboard.be/httpdocs/forum/Sources/hs4smf-Subs.php on line 848
The last line shows it has something to do with the HS4SMF file. Does anyone knows a solution to this problem?
Forgive my ignorance...
I have an ARCADE SHOUTOUT mod that shouts arcade scores to my shoutbox. It includes images. These images all have borders around them now that I've installed highslide. I would like to add the alt="ns" option to the mod to prevent this behavior.
How does the "alt="ns"" option work in HTML? I tried the following line with zero luck:
Original line:
$trophy = ' <img src="'. $boardurl.'/Themes/default/images/arc_icons/'. $position .'.gif" alt="" title="Trophy" />';
I just tried to add the ns to the existing alt...
$trophy = ' <img src="'. $boardurl.'/Themes/default/images/arc_icons/'. $position .'.gif" alt="ns" title="Trophy" />';
That did nothing for me.
Any suggestions would be great. Thanks!
As a follow up...
The issue 1 response above has been rectified. The Illori at the Unofficial SMF Help Forum (www.smfhelp.org) was able to help me out. Thanks Illori!
http://smfhelp.org/index.php?topic=32.msg303#msg303
Quote from: Iomega0318 on April 23, 2012, 01:10:08 AM
So just noticed this error, it came from modifying a post which had no images btw..
I understand the error and can mask it, but I'd like to be able to replicate first ... please let me know what your settings are in the mods control panel and some details of the post that caused the error (how many messages / pages / images / etc) a link would be good.
QuoteI'm having troubles on my forum.
A few times a day i'm getting this error:
Thats an out of memory error, the mod does not even ask for more memory so this is something else with your setup. You will need to increase your PHP memory limit, check with your host on how to do that and if you can.
QuoteThe issue 1 response above has been rectified.
Cool
Quote from: Spuds on May 07, 2012, 04:17:48 PM
Quote from: Iomega0318 on April 23, 2012, 01:10:08 AM
So just noticed this error, it came from modifying a post which had no images btw..
I understand the error and can mask it, but I'd like to be able to replicate first ... please let me know what your settings are in the mods control panel and some details of the post that caused the error (how many messages / pages / images / etc) a link would be good
To be honest not sure what caused the error, it doesn't happen all the time sometimes it even shows the error occurs on the index.php.. The topic in question has 21 posts, 2 pages, 2 images on the first page, and 5 on the second.. but the post I was modifying has no images..
Here are the settings I have set for the mod:
(http://img.honorshard.com/hs-settings.gif)
**EDIT**
Ok I was having trouble replicating it but found the post I initially got the error on, you wont be able to see it since it's under a test section and registered users can't even see it.. but here is the code I was playing around with when I got the message if you put it into a post and click preview you should get an error for it..
Removed
Was playing around with some index php scripts and trying to add them into an iframe..
**EDIT TWO**
Hmm.. nope it's something in the thread.. tried a fresh topic and got no error.. soooo.. go ahead and register on my forum and I will give you access to the thread causing the error so you can check it.. I have to warn you though the thread is a complete mess :)
**EDIT THREE**
After some further investigation I believe I know why it's tossing an error, I use the Inline Attachments mod and have images that show inline in one of the posts instead of in the attachment area, when I modify any of the messages on that page I get an error showing that topic, however if I modify that message specifically and click preview I get the error for that message ONLY not the topic..
**Confirmed, went to another topic with one post and one image attached but inline and went to modify/preview and got the error, this one is public so here is the link:
http://www.uofreeshards.net/index.php?topic=85.0
Strange indeed ....
I set up my test site with just those two mods, and duplicated the posts you linked to ... no errors :(
I'm guessing that it might have something to do with another mod and/or the custom theme that you are using and where the slideshow tracking code is being called.
You can mask the error by doing this in the hs4smf-Subs.php file in the sources directory:
function hs4smf_track_slidegroup($id_msg)
{
// sets the array key if it has not been set or updates the key if already set and the new value is greater
global $modSettings, $context;
function hs4smf_track_slidegroup($id_msg)
{
// sets the array key if it has not been set or updates the key if already set and the new value is greater
global $modSettings, $context;
// this should not happen, but here we find ourselfs
$context['hs4smf_img_count'] = isset($context['hs4smf_img_count']) ? $context['hs4smf_img_count'] : 0;
Any way possible to prevent this mod from "breaking" SMF Quiz? With this (awesome) mod installed, SMF Quiz will not call up actual questions... remove the mod and it works fine?!
Thanks!
Quote from: Spuds on May 10, 2012, 05:26:24 PM
Strange indeed ....
I set up my test site with just those two mods, and duplicated the posts you linked to ... no errors :(
I'm guessing that it might have something to do with another mod and/or the custom theme that you are using and where the slideshow tracking code is being called.
You can mask the error by doing this in the hs4smf-Subs.php file in the sources directory:
function hs4smf_track_slidegroup($id_msg)
{
// sets the array key if it has not been set or updates the key if already set and the new value is greater
global $modSettings, $context;
function hs4smf_track_slidegroup($id_msg)
{
// sets the array key if it has not been set or updates the key if already set and the new value is greater
global $modSettings, $context;
// this should not happen, but here we find ourselfs
$context['hs4smf_img_count'] = isset($context['hs4smf_img_count']) ? $context['hs4smf_img_count'] : 0;
I have a file and an image uploaded to the post, in the post I added this:
[attach=1]
[attachimg=2]
Then once posted I modify it and click preview, thats when the error occurs..
I might have to get you my mod because my version shows up as InLine Attachments 1.11, but anyways the fix you provided at least keeps my error log free lol..
**EDIT**
Here is the one I use:
http://custom.simplemachines.org/mods/index.php?mod=2481
and according to him he has made edits since 1.11 to work with your mod... soooooooo.. this was all my fault for not updating it even though it was supposed to notify me on updates LOL.. so I updated my mod but left your fix in so haven't tested it yet..
**EDIT TWO**
Ok removed your fix and tried the same way to replicate the error and got nothing.. so your mod works flawlessly now with the ILA update! Woot! Sorry for all the hassle I put you through lol but thank you so much for your help!
Fatal error: Call to undefined function hs4smf() in /home/u953745372/public_html/Sources/Subs.php on line 2422
the attached file
I have users that I can't seem to get it through there head when posting images to use either upper case or lower case [img] tags. Not to mix them in a post.
When there mixed upper and lower the image resizing is broken on most of the photos in that post.
Is there a way the maybe add a edit to the highslides mod so it works well with mixed [img] tags?
Thanks in advance.
10 pieces to a topic you add a picture is only the first one. I wonder why?
Quote from: azretl on June 13, 2012, 11:56:32 AM
Fatal error: Call to undefined function hs4smf() in /home/u953745372/public_html/Sources/Subs.php on line 2422
the attached file
hs4smf is anoter mod
Quote from: digger on June 13, 2012, 03:31:02 PM
Quote from: azretl on June 13, 2012, 11:56:32 AM
Fatal error: Call to undefined function hs4smf() in /home/u953745372/public_html/Sources/Subs.php on line 2422
the attached file
hs4smf is anoter mod
First ignore digger, he's been delusional and can't remember which thread is which, I'm just glad he did it before me :P
You need to make sure that the file hs4smf-Subs.php is in /home/u953745372/public_html/Sources, if its not you need to extract it from the zip package and add it there. There may be other missing files, this is generally caused by a permissions issue on the server where it can't create the new files.
QuoteI have users that I can't seem to get it through there head when posting images to use either upper case or lower case [img] tags. Not to mix them in a post.
Ban them !!! :) ... I'll take a look and see what can be done.
Quote10 pieces to a topic you add a picture is only the first one. I wonder why?
24 beers in a case, 24 hours in a day, I wonder why?
Quote from: Spuds on June 13, 2012, 09:21:17 PM
First ignore digger, he's been delusional and can't remember which thread is which, I'm just glad he did it before me :P
:-X
Quote from: Spuds on June 13, 2012, 09:21:17 PM
QuoteI have users that I can't seem to get it through there head when posting images to use either upper case or lower case [img] tags. Not to mix them in a post.
Ban them !!! :) ... I'll take a look and see what can be done.
Theres a few I would like to ban. LOL
Thanks Spuds for checking into this when you get time.
Hi, nice mod.
One question i have and maybe i am doing something wrong:
i use this mod together with the Simple Image Upload mod, which loads pictures into postimage and integrates the thumbnail the url to the picture in the field.
Those are not highsliding. I guess because the image tag is within an url tag?
Would be cool if you can tell me what i can do there as i think it is very nice for the user to upload pictures like that and then have a highsliding thumbnail automatically embedded.
Great mod!
I have only a little question:
Highslide 4 SMF open all image in forum also little icons etc, it is possible to open only those of a certain size or format?
Thank You very much
:)
Hi,
I installed a theme of Blocwebdesign, called coral.
My forum: www.ionizationx.com
The mod works on the standard themes but not on this one.
And yes, i have installed it for all themes.
What can be the problem?
Thanks in advance!
Steve
Quote from: Spuds on April 02, 2012, 07:47:35 PM
Quote from: MadTogger on April 02, 2012, 03:00:32 PM
Hi Spuds,
I have been looking into getting this working for my Flickr images and have made some headway but now I am a little stuck.
Try the attached version ... it should work with a _t style link (inside IMG tags of course)
Quote from: Eudemon on April 02, 2012, 05:30:03 PM
got any instruction on use it outside of smf system?
for example i create a php page that uses ssi.php
Sorry no :(
Hi Spuds,
I need to call on your expertise again, this time setting the MOD to use Picasa links.
Here is an example thumbnail link:
https://lh6.googleusercontent.com/-pZqx1CVQ1CY/UFXDCYirwkI/AAAAAAAABo4/bZvMLyyOJ7Y/s144/Novice-001.jpg
And here is the full version link:
https://lh6.googleusercontent.com/-pZqx1CVQ1CY/UFXDCYirwkI/AAAAAAAABo4/bZvMLyyOJ7Y/s800/Novice-001.jpg
I can see the hash this time for the thumbnail is s144 & for the large image is s800, unfortunately this is contained within the URL and not just before the image extension.
How could the hs4smf-Subs.php file be altered to accomodate this change?
Kind regards..,
Hi Spuds,
I figured it out now, the coding for 'ggpht' in the hs4smf-Subs.php file is extremely similar to what I needed, so I played around with it until I got what I wanted.
Here what I did:
find:
$image_hosters = array('imageshack', 'photobucket', 'ipicture', 'radikal', 'keep4u', 'fotosik', 'xs', 'postimage', 'ggpht');
replace with:
$image_hosters = array('imageshack', 'photobucket', 'ipicture', 'radikal', 'keep4u', 'fotosik', 'xs', 'postimage', 'ggpht', 'googleusercontent');
find:
elseif (stripos($image['domain_url'], 'ggpht') !== false && preg_match('~(.*?)/(?:s\d{3,4}|)/([^/]*?)\.(png|gif|jp(e)?g|bmp)$~is' . ($context['utf8'] ? 'u' : ''), $image[4], $out))
$out = $out[1] . '/' . $out[2] . '.' . $out[3];
add after:
elseif (stripos($image['domain_url'], 'googleusercontent') !== false && preg_match('~(.*?)/(?:s\d{3,4}|)/([^/]*?)\.(png|gif|jp(e)?g|bmp)$~is' . ($context['utf8'] ? 'u' : ''), $image[4], $out))
$out = $out[1] . '/s800/' . $out[2] . '.' . $out[3];
Now I can post images onto my forum using Picasa Image links and they flyout to the large size - s800.
The only thing that I can't figure is how can I limit the flyout to only images that are the 's144' size because at the moment whatever size format I choose to post the images in i.e.
s144, s288, s400, s640 and even s800 itself all produce the flyout lightbox.
Regards..,
Futher to my last post I have narrowed down the issue slightly.
I changed this line:
elseif (stripos($image['domain_url'], 'googleusercontent') !== false && preg_match('~(.*?)/(?:s\d{3,4}|)/([^/]*?)\.(png|gif|jp(e)?g|bmp)$~is' . ($context['utf8'] ? 'u' : ''), $image[4], $out))
$out = $out[1] . '/s800/' . $out[2] . '.' . $out[3];
To this:
elseif (stripos($image['domain_url'], 'googleusercontent') !== false && preg_match('~(.*?)/(?:s144|)/([^/]*?)\.(png|gif|jp(e)?g|bmp)$~is' . ($context['utf8'] ? 'u' : ''), $image[4], $out))
$out = $out[1] . '/s800/' . $out[2] . '.' . $out[3];
now the only the thumbnail image 's144' gets expanded in the lightbox to the large size 's800'.
There is still a small issue though because through testing this I placed an image with a size greater then 's144' i.e. an 's400' and although it did not expand to the 's800' size, it still appeared in the lightbox, albeit still at 's400' size.
I am trying to limit the use of the lightbox in this case to only the 's144' size image, I want all other images to do nothing.
Hope this further information helps.
Regards..,
Sorry all,
just after my last post I searched through the hs4smf-Sub.php file looking for something that would point me in the direction for solving the issues of all image sizes being shown in lightbox.
Here is what I found.
find:
// As long as we have images to work on
foreach ($images as $image)
{
// not on the smileys, avatars, alt="ns" or img tags from attachments, icons etc ... primarily to find smileys since they are IN the
// message, next is the NS override, the rest should not happen but .....
if (stripos($image['img_tag'], 'class="smiley"'))
continue;
elseif (stripos($image['img_tag'], 'alt=""ns""'))
continue;
elseif (stripos($image['img_tag'], 'type=avatar'))
continue;
elseif (stripos($image['img_tag'], 'class="icon"'))
continue;
elseif (stripos($image['img_tag'], $modSettings['smileys_url']))
continue;
elseif (stripos($image['img_tag'], 'index.php?action=dlattach;'))
continue;
elseif (stripos($image['img_tag'], $settings['images_url']))
continue;
replace with:
// As long as we have images to work on
foreach ($images as $image)
{
// not on the smileys, avatars, alt="ns" or img tags from attachments, icons etc ... primarily to find smileys since they are IN the
// message, next is the NS override, the rest should not happen but .....
if (stripos($image['img_tag'], 'class="smiley"'))
continue;
elseif (stripos($image['img_tag'], 'alt=""ns""'))
continue;
elseif (stripos($image['img_tag'], 'type=avatar'))
continue;
elseif (stripos($image['img_tag'], 'class="icon"'))
continue;
elseif (stripos($image['img_tag'], $modSettings['smileys_url']))
continue;
elseif (stripos($image['img_tag'], 'index.php?action=dlattach;'))
continue;
elseif (stripos($image['img_tag'], $settings['images_url']))
continue;
elseif (stripos($image['img_tag'], 's288'))
continue;
elseif (stripos($image['img_tag'], 's400'))
continue;
elseif (stripos($image['img_tag'], 's640'))
continue;
elseif (stripos($image['img_tag'], 's800'))
continue;
this now limits the use of the lightbox to only 's144' size images posted from Picasa.
Very happy now that I have solved this myself.
Regards..,
I like the modification a LOT, but now I had to disable it.
It slowed my forum down, (a lot).
See the original search of the problem here: http://www.simplemachines.org/community/index.php?topic=486559.40
Now with the HS4SMF disabled, the forum doesn't look up anymore. CPU usage is now only 5% instead of 90-100% before.
Any suggestion what could cause this?
Did you try to disable option "Use Coral CDN as JS/CSS source"?
Quote from: Bugo on January 04, 2013, 06:38:45 AM
Did you try to disable option "Use Coral CDN as JS/CSS source"?
It was off.
HEllo
Will this mod be developed to be compatible with SMF 2.0.3?
Hi. Thanks for this great mod, I don't know what would I doing without this.
A little late for an answer on this question, but yes, this mod is working even at 2.0.4 that I use, with custom theme.
I have a question about this mod too.
I have noticed that in some forums, sites or blogs, you can use similar sliding mod to see the pictures, but the difference is that that has a nice future. When you move to the next picture, it doesn't need to push an arrow to do that, you just push at the right of the left of the picture and it moves next or back, as it would doing with the arrows.
How can we do this with your mod? Is there any way to change some code and fix this?
I feel that the 3 types of closing the picture is not necessary, as you could have use the above future with the "push at right/left of picture for next/previous " function, instead of "click to close image".
Is this easy to change it?
It would be very handy future :)
Awesome mod and work perfectly. Just a little thing.
How can i disable it from quote images ?
(http://i.imgur.com/Wc9aZ43.png)
Hi again. Is this override feature is working just in bbcode ? I added alt=''ns'' in picture's html but didn't effect. Is there a way to use it html ?
Can override an image from sliding by using the alt="ns" option to prevent specified images from highsliding, use it as [img alt="ns"]your image[/img]
nice mod, works pretty smoothly..
only problem having so far is it doesnt like dynamic images like the first one in this thread
http://velorooms.com/2013-giro-d'italia/will-ivan-basso-top-5/msg94965/#msg94965
Quote
only problem having so far is it doesnt like dynamic images like the first one in this thread
That's showing as a jpeg. Did you expect it to dance...?
Quote from: Shambles on May 01, 2013, 04:58:00 PM
Quote
only problem having so far is it doesnt like dynamic images like the first one in this thread
That's showing as a jpeg. Did you expect it to dance...?
in that its not opening in hs, but as a page with image on it..