• Welcome to Simple Machines Community Forum. Please login or sign up.
November 29, 2021, 04:47:27 PM

News:

SMF 2.1 RC4 has been released! Try it out and help us test! :) Read more.


Highslide Image Viewer

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

Previous topic - Next topic

fun4us

I found a solution for the Problem.

i figured out - login as admin works fine. There is a symbol on the right side - to edit posts, if this is shown the design is ok. So i always show a symbol as workarround.

Display.template.php

change
echo $message['can_modify'] ? '
<img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" title="' . $txt['modify_msg'] . '" class="modifybutton" id="modify_button_' . $message['id'] . '" style="cursor: ' . ($context['browser']['is_ie5'] || $context['browser']['is_ie5.5'] ? 'hand' : 'pointer') . '; display: none;" onclick="oQuickModify.modifyMsg(\'' . $message['id'] . '\', \'' . $context['session_id'] . '\')" />' : '';


to something like this

echo $message['can_modify'] ? '
<img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" title="' . $txt['modify_msg'] . '" class="modifybutton" id="modify_button_' . $message['id'] . '" style="cursor: ' . ($context['browser']['is_ie5'] || $context['browser']['is_ie5.5'] ? 'hand' : 'pointer') . '; display: none;" onclick="oQuickModify.modifyMsg(\'' . $message['id'] . '\', \'' . $context['session_id'] . '\')" />' : '<img src="icons/someicon.gif" class="modifybutton">';


difference

<img src="icons/someicon.gif" class="modifybutton">

Best regards
Stefan

aw06

October 17, 2009, 09:50:38 PM #381 Last Edit: October 17, 2009, 10:01:01 PM by aw06
Hi ... when i install this mod i cannot load my forums index page and i get this error ..

QuoteFatal error: Call to undefined function: str_ireplace() in /home/xxxxx/public_html/forum/Sources/Subs.php on line 3793

Any Ideas ??

Also .. is their a Admin panel for this mod ?? or once installed it just works ??
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

digger

Quote from: aw06 on October 17, 2009, 09:50:38 PM
Hi ... when i install this mod i cannot load my forums index page and i get this error ..

QuoteFatal error: Call to undefined function: str_ireplace() in /home/xxxxx/public_html/forum/Sources/Subs.php on line 3793

Any Ideas ??
If you use ancient and unsupported php4, replace str_ireplace with str_replace.

Quote
Also .. is their a Admin panel for this mod ?? or once installed it just works ??
There is no Admin panel.

skullmonkey

October 18, 2009, 08:36:55 AM #383 Last Edit: October 18, 2009, 11:15:37 AM by skullmonkey
When I click, LOADING start working and nothing happened.
Fix?

S@

aw06

Quote from: digger on October 18, 2009, 07:27:22 AM
Quote from: aw06 on October 17, 2009, 09:50:38 PM
Hi ... when i install this mod i cannot load my forums index page and i get this error ..

QuoteFatal error: Call to undefined function: str_ireplace() in /home/xxxxx/public_html/forum/Sources/Subs.php on line 3793

Any Ideas ??
If you use ancient and unsupported php4, replace str_ireplace with str_replace.

Very Strange as I'm using PHP version 5.2.5 , i did the edits and it's working now...
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

skullmonkey

The LOADING... problem... someone has it?

G

aw06

Quote from: skullmonkey on October 18, 2009, 04:34:59 PM
The LOADING... problem... someone has it?

G

make sure you copy the Highslide folder into your custom theme folder...
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

digger

Quote from: skullmonkey on October 18, 2009, 04:34:59 PM
The LOADING... problem... someone has it?

G

Copy highslide directory into your theme directory.

aw06

October 18, 2009, 05:09:41 PM #388 Last Edit: October 18, 2009, 05:16:13 PM by aw06
Quote from: digger on October 09, 2008, 08:13:46 PM
Quote from: baijianpeng on October 09, 2008, 07:34:43 PM
OK, I had completed the Chinese language translation for this HighSlide Image Viewer Mod.

I copied my translated language files to the /highslide folder, but it did not work.

Maybe you will realease a new version which can call these language files?

I uploaded 1.0 RC4 version.
New version try to call language file with name equally current user's profile language (highslide.language_name.js). For guests uses default forum language.

this is not working for me ... I'm using language file highslide.english-utf8.js no matter what I change the tool tips to is does not change ??

should the file be in the Highslide folder ?? or should i put it in themes/languages ??
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

digger

Quote from: aw06 on October 18, 2009, 05:09:41 PM
this is not working for me ... I'm using language file highslide.english-utf8.js no matter what I change the tool tips to is does not change ??

should the file be in the Highslide folder ?? or should i put it in themes/languages ??

New language file should be in the Highslide folder, where other languages is.

aw06

Quote from: digger on October 18, 2009, 05:19:01 PM
Quote from: aw06 on October 18, 2009, 05:09:41 PM
this is not working for me ... I'm using language file highslide.english-utf8.js no matter what I change the tool tips to is does not change ??

should the file be in the Highslide folder ?? or should i put it in themes/languages ??

New language file should be in the Highslide folder, where other languages is.

Ok doesn't work .... i change tool tips in highslide.english-utf8.js and highslide.english.js and it has no effect  ::)
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

digger

Quote from: aw06 on October 18, 2009, 05:22:07 PM
Quote from: digger on October 18, 2009, 05:19:01 PM
Quote from: aw06 on October 18, 2009, 05:09:41 PM
this is not working for me ... I'm using language file highslide.english-utf8.js no matter what I change the tool tips to is does not change ??

should the file be in the Highslide folder ?? or should i put it in themes/languages ??

New language file should be in the Highslide folder, where other languages is.

Ok doesn't work .... i change tool tips in highslide.english-utf8.js and highslide.english.js and it has no effect  ::)

As guest I see your forum use /forum/Themes/default/Highslide/highslide.english-utf8.js. Did you change this file?

aw06

Quote from: digger on October 18, 2009, 05:33:26 PM
Quote from: aw06 on October 18, 2009, 05:22:07 PM
Quote from: digger on October 18, 2009, 05:19:01 PM
Quote from: aw06 on October 18, 2009, 05:09:41 PM
this is not working for me ... I'm using language file highslide.english-utf8.js no matter what I change the tool tips to is does not change ??

should the file be in the Highslide folder ?? or should i put it in themes/languages ??

New language file should be in the Highslide folder, where other languages is.

Ok doesn't work .... i change tool tips in highslide.english-utf8.js and highslide.english.js and it has no effect  ::)

As guest I see your forum use /forum/Themes/default/Highslide/highslide.english-utf8.js. Did you change this file?

.. ohhhhhhhh, it's using the folder from the default theme .. tought it would be using the folder from my custom theme folder .. thanks ... working now
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

aw06

October 18, 2009, 06:08:47 PM #393 Last Edit: October 18, 2009, 06:12:21 PM by aw06
Any idea how i can implement this feature ??

Floating thumbstrip to the right
http://highslide.com/examples/gallery-floating-thumbs.html
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

digger

Quote from: aw06 on October 18, 2009, 06:08:47 PM
Any idea how i can implement this feature ??

Floating thumbstrip to the right
http://highslide.com/examples/gallery-floating-thumbs.html

Highslide Image Viewer 2 will have this feature.

aw06

Can i not just add this code to index.template
// Add the slideshow providing the controlbar and the thumbstrip
hs.addSlideshow({
//slideshowGroup: 'group1',
interval: 5000,
repeat: false,
useControls: true,
fixedControls: 'fit',
overlayOptions: {
position: 'top right',
offsetX: 200,
offsetY: -65
},
thumbstrip: {
position: 'rightpanel',
mode: 'float',
relativeTo: 'expander',
width: '210px'
}
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

digger

Quote from: aw06 on October 18, 2009, 06:13:01 PM
Can i not just add this code to index.template

You can try if you have some knowledge of SMF, php and js.

aw06

Doesn't work .. guess more code needs to go elsewhere...

When is Highslide Image Viewer 2 set to release ?
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

digger

Quote from: aw06 on October 18, 2009, 06:30:55 PM
Doesn't work .. guess more code needs to go elsewhere...

When is Highslide Image Viewer 2 set to release ?

After public release of SMF2 RC2.
My be earlier.

aw06

Kool, will be on the lookout ... it will still work on SMF 1.1.10 right ?
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Advertisement: