News:

Wondering if this will always be free?  See why free is better.

Main Menu

Highslide 4 SMF

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

Previous topic - Next topic

Spuds

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.

Sakae

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?
http://www.tigrelog.com.br
l: simple p: machines

SAFAD

is there a screenshot for this ?
Best Regards
Sadaoui "SAFAD" Abderrahim - Lead Developer @ Electron Inc.

Spuds

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

Sakae

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.
http://www.tigrelog.com.br
l: simple p: machines

Am'

any feature for zooom images ? :p
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Sakae

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?
http://www.tigrelog.com.br
l: simple p: machines

knyght

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 :)

Spuds

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?

Spuds

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.

Sakae

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
http://www.tigrelog.com.br
l: simple p: machines

Salkiri

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 [nofollow]  Any idea how I can get this to work together?

Phoestre

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.

SMF 2.0RC3 + SimplePortal
Custom Theme + Latin5 Turkish
Ubuntu Lucid

Oscworth

#33
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!   :-[

Sim Racing,  nearly as good as the real thing but much safer & cheaper

Oscworth

Disregard previous post I figured it out.... :-[   Forgive me I'm old and terrified of messing with code
Sim Racing,  nearly as good as the real thing but much safer & cheaper

derby

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
LATEST JOB VACANCIES



www.derbhotjobs.com

Spuds

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.

ajrl

I'm getting error on install
managesettings.php test failed.
using 2.0 RC3

Scott S

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?

Spuds

#39
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.


Advertisement: