Highslide ver2.3
New version by Timos-Welt please check it here:Highslide ver3.03 (http://forum.coppermine-gallery.net/index.php/topic,36558.msg249466.html#msg249466)
Plugin:
=======
Use this plugin to directly show your full/intermediate image by click on thumbnails
It will display full/intermediate image under nice rounded boarder on current page
Licence:
=======
From original creator of highslide.js (http://vikjavev.no/highslide/) library (Torstein Hønsi)
Free for non-commercial use
$30 each domain for commercial sites
It means that if you are using this plugin for commercial site then you should pay 30$ for each Domain to Torstein Hønsi (http://vikjavev.no/highslide/#licence)
Install:
=======
- Unzip package to plugins folder and use plugin manager to install it
Features:
==========
v2.0 - 2006/09/27 - 5:10 GMT
- Has it's own Control panel on admin mode
- Option to set boredr style (4 new style added)
- Option to disable it under admin mode
- Option to add a link to intermadiate page (look to lang/english.php for changing the name of link)
- Multi-language
v2.1 - 2006/09/28 - 8:10 GMT
- Option to add close link to caption
- Option to select which image to show under slide (intermadiate / full)
- Option to select where should apply the plugin (index & meta albums / all pages)
- French language Added (Thanks to Pyap)
v2.2 - 2006/10/02 - 4:15 GMT
- Works with custom thumbnails
- Option to SEF compatibility
- Italian language Added (Thanks to lontano)
[Update]
v2.3 - 2006/10/15 - 07:45 GMT
New features:
=============
- Valid XHTML
- Option to add Title to caption
- Spanish language Added (Thanks to Quinti)
- Custom loading title ( could be set on lang file ) - suggested by Quinti
- Custom restore title ( could be set on lang file ) - suggested by Quinti
- Custom cancel loading title ( could be set on lang file )
- Better config !
Next release will have:
=======================
- Option to add more HTML code to caption
Fixes:
=======
- Some typos on lang file fixes
Known Issue:
=======
- Image view will not count
- Will not work if you have custom title on thumbnails!
Demo here (http://lab.kishmate.com/gallery144/index.php)
Hope you enjoy it...
Sami
Highslide ver3.04 (http://forum.coppermine-gallery.net/index.php/topic,36558.msg260115.html#msg260115)
Released By:Timos-Welt
[Edit GauGau 2010-03-05]
This plugin has been added to the subversion repository: http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.4.x/plugins/
It has been updated as well to reflect the version checking routines in the plugin manager that are meant to make sure that galleries don't break because of plugins installed that aren't meant for that particular version of the gallery.
Download: https://sourceforge.net/projects/coppermine/files/Plugins/1.4.x/cpg1.4.x_plugin_highslide_v3.5.zip/download
[/Edit]
Hi Sami,
I got the error message at the top of my gallery when I installed the plugin:
Quote
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of preg_match_all(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in C:\wamp\websites\takethu\plugins\highslide\codebase.php on line 166
Here's the code in question:
preg_match_all($exper, $html,&$matches,PREG_SET_ORDER);
foreach($matches as $match) {
$html = str_ireplace($match[0],'<a href="'.$match[2].$match[3].'" class="highslide" onclick="return hs.expand(this)">',$html);
}
Thanks.
try new one ;)
Annocement:
New version with bug fixed , released
Sami, when I click my thumbnails, I get a new (IE) window with the image (not the slide, same window effect).
Also, anything other than images, the links are broken. You can check my sample gallery in my profile.
Ron You have javascript conflict
Sorry but I can't find it under 6041 lines of code !
Man you have realy huge javascript file , I've never seen such file :o
[Edit:]
BTW make sure that you have upload all the files correctly
So, I guess I have to choose what I want, your plugin, or that custom theme, hm.. I want them both :'(
Thanks.
Yes your custom theme has a JS conflict with Highslide !
Sorry man
here is the prove ::)
http://gallery.rphmedia.net/?theme=classic
Yeah, I know, I changed the theme and the window portion started working.
It still doesn't like other file types. Just for info. Love the plugin !
Edit: Firefox doesn't like the script - just hangs on click.
It's working fine for me (with both IE & FF ) on your site!!!
what version of FF do you have?
Firefox Version 1.5.0.7
It's strange I use same version and it's working for me !!!
Also plugin only work with image file and if you click on a non-image file it just showing "loading" pic and nothing happen
Sami, what I did in my mod was use the function to determine if we're dealing with an image file. If yes, do the highslide thing. If not, do the usual thing.
Thanks Thu ,
I'll see what I can do :)
Here's what FF tells me.
Those are style error , some of those style are for IE and Some for Opera so FF did not reconize them
it's safe ... just ignore them
New version with fixed for non-image type thumbnail released
Quote from: Sami on September 24, 2006, 06:37:16 PM
New version with fixed for non-image type thumbnail released
Sami,
It seems to recognize Flash files now, but it still wants to apply effect to zip files and hangs. Haven't checked any other formats, though - movies, docs, etc....).
PS; Are you developing this further? - example, the option to navigate to the intermediate image page or adding descriptions, etc..., sort of like 'TranzDances' example? (http://forum.coppermine-gallery.net/index.php?topic=34360.msg170610#msg170610) And no rush or anything, I'm just wondering.
Quote from: rphMedia on September 26, 2006, 10:37:03 AM
It seems to recognize Flash files now, but it still wants to apply effect to zip files and hangs. Haven't checked any other formats, though - movies, docs, etc....).
I'll check that thanks for pointing that out :)
Quote from: rphMedia on September 26, 2006, 10:37:03 AM
PS; Are you developing this further? - example, the option to navigate to the intermediate image page or adding descriptions, etc..., sort of like 'TranzDances' example? (http://forum.coppermine-gallery.net/index.php?topic=34360.msg170610#msg170610) And no rush or anything, I'm just wondering.
Yes
I'll post new version to day with admin control panel and caption (link to intermadiate+file name ,etc...) options
Quote from: Sami on September 26, 2006, 11:04:30 AM
I'll post new version to day with admin control panel and caption (link to intermadiate+file name ,etc...) options
Fantastic ! Let me know if I can help in any way.
I still can't get it to work in
my Firefox browser for some reason, but this is definitely my problem, my end.
New version with Admin Control panel and new feature
check the first post for more ...
Works 'out of the box' :)
Still hangs at the non-image types (zips, and I even tried a movie/wmv). I don't know if it needs an exception list as much as an "image include" config of sort.
Looking forward to the new versions Sami, great work !
Thanks Ron for feedback
plugin will check the url of file so if it was started by album it will apply the Jscript and if it was started with images it will ignore it
You've custom thumbnail for those file and you store it under album folder , so plugin take it as a image file !
Do you have any idea for how should I check this , I've access to the url only (may be I should try is_image() function ;) )
Thanx again Sami for this new great Plugin ;D
Produce a pretty nice effect on my INDEX.PHP (here) (//http://).
But unfortunately, only on INDEX ! ???
No other page can produce HighSlide effect :-[ Here for exemple (http://www.pays-dignois.com/galerie/thumbnails.php?album=27).
I do'nt know why, maybe on THUMBNAILS Class !
There is no error message nowhere ???
PYAP
Sorry Pyap I can't find the problem on your thumbnails page but I'm sure it is because some customization that you have on that page
[Update]
I've found it ... I'll fix it ...soon ;)
Off Topic :
You are so Hot ,Don't burn your self !!!
Here is the quick fix for it until new release ;)
under codebase.php on line 284 replace this code:
$exper = '#<!-- BEGIN hs_thumb_cell_init -->\s*<a\s*href=\"(displayimage\.php\?album=.+cat=.+pos=.+)\">\s*<img\s*src=\"(.*?)thumb_(.*?)\"\s*class=\"(.*?)\"\s*width=\"(.*?)\"\s*height=\"(.*?)\"\s*border=\".*?\"\s*alt=\"(.*?)\"\s*title=\"(.*\n.*\n.*\n.*?)\"\s*/><!-- END hs_thumb_cell_init -->#i';
with this
$exper = '#<!-- BEGIN hs_thumb_cell_init -->\s*<a\s*href=\"(displayimage\.php\?.*)\">\s*<img\s*src=\"(.*?)thumb_(.*?)\"\s*class=\"(.*?)\"\s*width=\"(.*?)\"\s*height=\"(.*?)\"\s*border=\".*?\"\s*alt=\"(.*?)\"\s*title=\"(.*\n.*\n.*\n.*?)\"\s*/><!-- END hs_thumb_cell_init -->#i';
Hope it work for you ...
BTW thank you for feedback
Borzoo,
QuoteYou are so Hot ,Don't burn your self !!!
[OoT] ;D do'nt worry ! i'm OK ;) [/OoT]
Here's
FRENCH.PHP for HighSlide Plugin.
But around line 51 : '
Dispaly_Title_Caption'=>
It's "
Display" is'nt it ?
For French Users, copy this code, save as french.php indide /
plugins/hightslide/lang/
<?php
/**************************************************
Coppermine 1.4.x Plugin - HighSlide
*************************************************
Copyright (c) 2006 Borzoo Mossavari
Translate to French by PYAP
*************************************************
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
*************************************************
Skip Intermediate Page and show full page on the page
Based on Highslide JS @ http://vikjavev.no/highslide/
***************************************************/
if (!defined('IN_COPPERMINE')) { die('Not in Coppermine...'); }
// Lang setting for installation process
$lang_plugin_highslide_install = array(
'button_install'=> 'Installez',
'button_submit' => 'Envoyez',
'button_cancel' => 'Annulez',
'button_done' => 'Fait',
'cleanup_question' => 'Voulez-vous supprimer la Table MySQL correspondant au stockage de vos reglages ?',
'install_note' => 'Configurez ce plugin en utilisant la barre d Admin.', // Note about configuring plugin
'install_click' => 'Cliquez ce bouton pour installer le plugin.', // Message to install plugin
);
// Lang setting for Caption
$lang_plugin_highslide = array(
'detail' => 'Detail', // Lable of the link to intermadiate image
'close' => 'Fermez', // Lable of the close link
'title' => 'Titre', // Lable of the title
);
//Lang setting for configuration and admin panel
$lang_plugin_highslide_config = array(
'display_name' => 'HighSlide', // Display Name
'config_title' => 'Configurez HighSlide', // Title of the button on the gallery config menu
'config_button' => 'HighSlide', // Label of the button on the gallery config menu
'page_success' => 'Reglages Configuration a jour.', // Page success message
'page_failure' => 'IMPOSSIBLE de mettre a jour vos reglages !!!', // Page failure message
'version' => 'Ver 2.0', // HS 2.0
'pluginmanager' => 'Plugin Manager',
'expand_all' => 'Depliez tout',
'main_title' => 'HighSlide plugin Config',
'Style_of_border' => 'Style de Bordure : ',
'Disable_Admin_Mode'=> 'Ne pas demarrer le Plugin pendant le Mode Admin : ',
'Link_To_intermadiate'=> 'Liez vers les intermediaires :',
'Link_for_Closing'=> 'Lien pour fermer : ',
'Dispaly_Title_Caption'=> 'Affichez le Titre comme legende : ',
'Custom_HTML_Caption'=> 'HTML perso comme legende : ',
'Yes' => 'Oui',
'No' => 'Non',
'Wrob'=> 'Bord exterieur arrondi',
'W10b'=> 'Bord Blanc de 10px',
'Ogb'=> 'Bord exterieur diffu (glow)',
'Nob'=> 'Pas de bord exterieur',
'Nb'=> 'Pas de bord',
'note1' => 'Ces options ne sont pas encore disponibles !!!',
);
?>
Not try your quick fix yet !
PYAP
Borzoo,
I'd try your quick fix with success ;D
All Albums use HighSlide now (http://www.pays-dignois.com/galerie/thumbnails.php?album=2).
But finally, i prefer this plugin before the quick fix. Only because HighSlide do not count clicks at all !
Then in fact this first issue, was'nt an issue but a new request ;D
It would be nice to have this two possibility inside HighSlide Config ;)
PYAP
Thank you for lang file I'll add it to next version
I'll add a new option (apply to index only ) , would you translate it too ::)
and thanks for typo ;)
"apply to index only" ==> "Appliquez uniquement sur la page INDEX"
and maybe : "apply on all pages" ==>"Appliquez sur toutes les pages"
Thanx
PYAP
When I try to install the plugin, I get this:
Fatal error: hs_install(): Failed opening required 'plugins/highslide/include/init.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/endocent/public_html/2006/plugins/highslide/codebase.php on line 33
[edit]
I take the last reply back.
meanwhile, the plugin only seems to be working on the index page, not the album pages...
take a look at the fix that I posted 6 post before this post
http://forum.coppermine-gallery.net/index.php?topic=36558.msg172554#msg172554
Morning,
For French users only ;) (French Board (http://forum.coppermine-gallery.net/index.php?board=38.0))
http://forum.coppermine-gallery.net/index.php?topic=36733.0
Thanx again
PYAP
Hey Sami, very cool plugin. I had seen you were creating a plugin back in the Modifications/Add-Ons/Hacks board and kept looking there for it. Never thought to check out this board... duh... :P. I works great on most themes but as we come to expect about javascript there's a conflict with LightBox JS for the fullsize popup. Not a problem though as most people will only use one method (unless they're game for a lot of conflict issues! ;)).
My suggestion would be a setting in the control panel to toggle the popup to be either the intermediate or fullsize. I say this because some people have very large fullsize photos and it could take time loading them even though they are sized to fit the browser window. Also, people who want to sale photos (and we know there's lots of them from the paypal thread) will most likely watermark the fullsize image and make the intermediate image low resolution without a watermark. I do this because I want people to have an idea of what the actual photo looks like without the mark in the middle.
Thanks again.
Gizmo
Gizmo, Sami,
Quote
I say this because some people have very large fullsize photos and it could take time loading them even though they are sized to fit the browser window.
Real. I agree ;D
PYAP
@Gizmo : Thanks for suggestion
@Pyap : Thanks for translation and agreement ! ;)
@All: I'll release new version soon , then
New version with both Gizmo & Pyap sugestions applied , released (check the first post)
@Pyap:The french lang file is included , but I'm sure that you can translate it really better than Google ;)
Borzoo,
QuotePyap sugestions applied
Fine ! Thanx ;D
QuoteThe french lang file is included , but I'm sure that you can translate it really better than Google
Yes ! For sure ! But i'm not
Emile ZOLA or
Victor Hugo ;)
PYAP
All,
Well ???
I can'nt use this Plugin because my CPG had some video and some FLASH !
Then, those files are definitivly out if i use this plug !
There's no possibility to view those files.
Also, I apply this plugin only on my INDEX.PHP, not on all pages... sorry.
Is it a major issue ?
Or is this Plugin is for use only with PIX ? (jpg, gif, png) Yes, i know ;)
PYAP
Do you use custom thumbnail for non-image file?
As I see you are using default thumbnail for flash and video files So plugin will work with them!
check this:
http://www.pays-dignois.com/galerie/thumbnails.php?album=20
everyting is normal ;D
Borzoo,
Yes you 're right !
The no-pix files with custom thumbnail do'nt work !
But if i leave no-pix files with "defaut thumb_" it's possible to click and view those files ???
It's not the very best !
Most clearly, HighSlide look at VIDEO.JPG if i click on a link video/thumbnail with a custom thumb (named thumb_VIDEO.JPG), and can not open VIDEO.AVI !!
I can'nt, and do'nt want delete my custom Video-Thumbnails ???
How can us turn around this issue ?
PYAP
Sami,
Is this is a known issue, HighSlide do not work on thumbnails's film stripe ???
PYAP
Great plugin Sami!
Everything works perfect aside from what other are saying about non-image files that have a thumbnail associated with it. Is this fixable aside from removing the thumbnails and using the default thumbnail for non-image files?
My gallery is only for family and there are lots of videos that, without a thumbnail, would leave people searching.
Also, will there be a fix for view count?
Thanks!
Quote from: PYAP on September 29, 2006, 12:30:56 AM
I can'nt, and do'nt want delete my custom Video-Thumbnails ???
How can us turn around this issue ?
i'm working on that ... don't worry We find a way
Quote from: PYAP on September 29, 2006, 01:07:10 AM
Is this is a known issue, HighSlide do not work on thumbnails's film stripe ???
Actualy this is not an issue :)
Highslide is meant to show a simple slide (preview) of image without going to intermediate page and when user wants more detail s/he can see it under intermedaite page so plugin will not apply under intermediate page.
Quote from: Fabrian on September 29, 2006, 05:08:34 AM
Great plugin Sami!
Everything works perfect aside from what other are saying about non-image files that have a thumbnail associated with it. Is this fixable aside from removing the thumbnails and using the default thumbnail for non-image files?
My gallery is only for family and there are lots of videos that, without a thumbnail, would leave people searching.
Also, will there be a fix for view count?
Thanks!
Thank you fabrian
Yes if you remove the custom thumbnail for a file ,plugin will see that file and will show it as a regular non-image file (by going to intermediate page)
And about view count , I didn't check that yet but it would be a fix for it :)
Amazing plugin. Just a reply to tell my thanksfull.
Great Job !
great great great plugin Sami!
PS. Attached italian translation ;)
Thank you lontano :)
I'll add italian to the next version ...
Hi People
very good Sami
thanks
no run for me...
Galería Concello Sarria (http://www.fotosdesarria.com)
mmm...., i have the 1.4.9, i need any more?
thanks
greetings
Sorry you have SEF plugin installed and this plugin can't work with SEF installed
There is a chance to add SEF compatibilty to next version ;)
Sami, this is really a great plugin - once those above mentioned flaws have been ironed out I'd really love to see the plugin shipping with the next release.
To avoid conflicts with other JavaScript bits (as reported by rphMedia), you might consider renaming the functions and vars to something more unique (e.g. prefixing every var and function with cpgHighslide or something similar).
Anyway, as suggested: I really love this plugin.
Yes GauGau man and Sami man,
This plug is the greatest plug since past mounth is'nt it ? ( in visual cat and other maybe)
Some adjustments and it will be perfect at all :D
PYAP
@GauGau : Thank you for suggestions , I'll do my best ;) (New version comming this week)
@PYAP : Thanks man , you're supporting this plugin well :)
Actualy I should thank TranzNDance for suggesting (http://forum.coppermine-gallery.net/index.php?topic=34360.msg170610#msg170610) such a good JavaScript
Sami, thanks for continuing to build on this. It has so much potential but I didn't have the ability to do it myself. I must give credit to the person who posted about it here: http://www.lunarforums.com/forum/index.php?topic=35096
I downloaded the plugin again today so it has the admin option.
For the admin page, could you please remove the expanding feature? Since there's not much content, it would be nice that it all shows instead of requiring the click of Expand All. This was done for the config panel of mini-cms, so it's possible.
I was confused about the wording for "Apply to index & meta albums only". Should "only" be there? Does it mean that it doesn't work for regular album thumbnail pages?
I saw on the first post the list of known issues has something to do with custom thumbs. Does that have to do with non-image files? Have you used the is_image function, or whatever it is?
I can't see the plugin in action in my gallery, probably because of conflict with my code. Once the plugin is just what I want, I can undo the changes to my code. :)
Quote from: TranzNDance on October 01, 2006, 06:17:40 PM
For the admin page, could you please remove the expanding feature? Since there's not much content, it would be nice that it all shows instead of requiring the click of Expand All. This was done for the config panel of mini-cms, so it's possible.
Sure it can be removed , it's all the matter of laziness ::)
Quote from: TranzNDance on October 01, 2006, 06:17:40 PM
I was confused about the wording for "Apply to index & meta albums only". Should "only" be there? Does it mean that it doesn't work for regular album thumbnail pages?
oh,I see , you're right I should change the word maybe I should just create two radio button for this option with these lables
- Apply to index only
- Apply to whole gallery
Quote from: TranzNDance on October 01, 2006, 06:17:40 PM
I saw on the first post the list of known issues has something to do with custom thumbs. Does that have to do with non-image files? Have you used the is_image function, or whatever it is?
I can't see the plugin in action in my gallery, probably because of conflict with my code. Once the plugin is just what I want, I can undo the changes to my code. :)
Those are solved in next version , In fact they are already done (in my test bed) but I need to correct some typos and I'm going to add SEF compatibilty to it , but as I said those issue solved ;)
I'll post the new version soon ...
Quote from: rphMedia on September 24, 2006, 04:44:26 PM
Edit: Firefox doesn't like the script - just hangs on click.
This is just an update in case anyone else has problems with FF (probably rare).
I tried uninstalling/reinstalling FF, but that didn't fix my issue. I had to physically delete my "profile" folder that belonged to Firefox ... all is good now :)
Can't wait for the progression of this plugin. I'd love to make it work with the other mods I have ( the foliage theme, lightbox AND lightbox plus :) )
Great job Sami & TranzNDance !!
As GauGau suggested , I change the name of the all global variable and all function with adding a prefix (cpghs_) to them under main (Core) JavaScript so hopefullly there is no confilict ;)
New release is ready I'm just waiting for PYAP & lontano To put their new translations in package
Sami, if you want to post it (or send it to me directly), I have a bit of time, I can run it through a couple of my Galleries.
Hey all,
Transaltion FR done by PYAP
(sami's PM)
PYAP
New version released :)
@PYAP : Thank you for fast reply
@lontano : old italian lang file added to this pack , I'm waiting for your reply and thank you for tranlation
@rphMedia : Thanks man for suggestions , I hope it work on your custom theme
@Quinti : SEF compatibilty option added to this version but as I don't have SEF enabled , it's not tested , So i'm waiting for your confirmation
Hope you all enjoy this ... ;D
Sami,
On new install, i receive an error from line 68 in french.php
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in french.php on line 68
But my file had 66 lines ??? What'z the matter ?
PYAP
Sorry It was mine ;D
Package updated
Download it again,
Quote@lontano : old italian lang file added to this pack , I'm waiting for your reply and thank you for tranlation
here attached the updated file - thank you!
Quote from: Sami on October 02, 2006, 05:05:55 PM
@rphMedia : Thanks man for suggestions , I hope it work on your custom theme
OK Sami,
we're getting closer :)
For my sample gallery, I don't have a js theme, but I do have 'lightbox plus....'
Works in Firefox perfectly ??? --- It's respecting non-image types now :):)
IE wants to open a browser window (same window). ((I eventually would like it to be cross-browser friendly))
Have no idea what IE does that Firefox doesn't. More troubleshooting...
So plugin works withh FF and have issue with IE for you ?
Then try refresh with ctrl+f5 in case of cache issue
I wish it was that simple ;D
I have the plugin installed at http://gallery.rphmedia.net if you'd like to explore. Firefox is doing everything [correctly]. IE is missing something or ....
((I also tried it with the foliage theme (Gizmo's nice find) and your plugin fails miserably with that theme, but that's OK, I'd rather it work with the other visual mods))
I wish it would work with everything, but we can't have it all ;)
Still, good work Sami --------- take a break :)
Ron works for me in both FF and IE with classic theme , I'll check your default theme for JS conflict ...
btw it's better if you set the Slide should show on option to intermediate
Quote from: Sami on October 02, 2006, 11:31:49 PM
Ron works for me in both FF and IE with classic theme
I know, it works with classic theme because I don't have lightbox (plus) included with that theme.
I think I will bow out, because my problem is unique. Like I said, I would just like all these great mods to work together. I may be asking too much :-[
I had a little problem, though you should know as it's consistant.
I had two folders in the uploads directory that where missing underscores or dashes. Even though highslide was set to show intermediate, it would still expand into the the full size image as if it were set that way.. I renamed the folders that had missing characters and it was fine again (basically if there were any "%" in the link path).
I thought it was me, because I'm usually doing this stuff late at night half asleep and make silly mistakes, but I checked the problem and resolution thoroughly before I posted.
can you post a direct link to those pictures ?
I know that you rename those folders but I want to check the whole url
and would you tell me the old name of those folders ?
@rphMedia :
I find a solution for you ;) let's check it ...
open up your spica.js and comment out lines around 27 ~34 , final code should be like this
/*Array.prototype.indexOf = function(value,idx)
{
if (typeof(idx) != 'number') idx = 0;
else if (idx < 0) idx = this.length + idx;
for (var i=idx,n=this.length;i<n;i++)
if (this[i] === value) return i;
return -1;
}*/
I've no idea why IE reject HS plugin by setting this function but this way both lighbox plus and Highslide will work
Also check it with more browser for any other issue cause by commenting !
Getting even closer. Now Firefox doesn't like the scripts. IE works good, both js's !
Firefox complaint -
Error: Browser is not a constructor
Source File: http://gallery.rphmedia.net/themes/blackbirch/js/spica.js
Line: 51
Error: Event.register is not a function
Source File: http://gallery.rphmedia.net/themes/blackbirch/js/lightbox_plus.js
Line: 593
I wish I knew Javascript a little better. I know enough to get by :(
:)
The way you commenting that out is wrong
replace this:
if (!Array.prototype.indexOf)
/*{
Array.prototype.indexOf = function(value,idx)
{
if (typeof(idx) != 'number') idx = 0;
else if (idx < 0) idx = this.length + idx;
for (var i=idx,n=this.length;i<n;i++)
if (this[i] === value) return i;
return -1;
}
}*/
with this
if (!Array.prototype.indexOf)
{
/*Array.prototype.indexOf = function(value,idx)
{
if (typeof(idx) != 'number') idx = 0;
else if (idx < 0) idx = this.length + idx;
for (var i=idx,n=this.length;i<n;i++)
if (this[i] === value) return i;
return -1;
}*/
}
That did it Sami, you're a genius :)
Both, your Plugin and Gizmo's Lightbox mod works perfect in all of the standard themes ! I think it's an outstanding alternative for viewing the CPG's. So smooth and streamlined (and quiet, no annoying clicks).
Thanks ! & Keep Plugin ;D
Quote from: Sami on October 04, 2006, 04:08:56 PM
can you post a direct link to those pictures ?
I know that you rename those folders but I want to check the whole url
and would you tell me the old name of those folders ?
Look here: http://thefabhouse.com/testcpg (http://thefabhouse.com/testcpg)
The directory where the images sit were created, and then the pictures were batch added. I'm mentioning this because I noticed, when I looked at the path highslide was using for the image, in the directory that has spaces, the image filename is what I named it before I uploaded. In the directory that has no spaces, the image name has normal_ before the filename. So it seems when the directory name has spaces, cpg is not creating an intermediate file when adding the pictures to an album.
I'm pretty sure that the conflict is with the foliage theme.
Check here, it works good with the classic theme -
http://www.thefabhouse.com/testcpg/?theme=classic
Unless I'm missing something.
EDIT: OK, I do see what you're saying now, but this doesn't have anything to do with the Highslide Plugin. That is a weird occurance. "Could" be the server?
Quote from: rphMedia on October 04, 2006, 09:10:31 PM
Unless I'm missing something.
Yes. The default theme is set to Orange Sky anyway, I'm not sure why you're mentioning the foliage theme. You should only see two files, with and without spaces. Notice the expaned image...on my test gallery highslide is set to index only and not all images.
Quote from: rphMedia on October 04, 2006, 09:10:31 PM
I'm pretty sure that the conflict is with the foliage theme.
Check here, it works good with the classic theme -
http://www.thefabhouse.com/testcpg/?theme=classic
Unless I'm missing something.
EDIT: OK, I do see what you're saying now, but this doesn't have anything to do with the Highslide Plugin. That is a weird occurance. "Could" be the server?
I checked everything again, and I don't think it's server side, but I thought maybe with cpg. I checked what files exist in both directories (with spaces and without spaces) and all three files are there in both (orig file,thumb and normal). The problem I see is Highslide is choosing the full image for intermediate for the file in the "with spaces" directory and it's choosing the normal image for intermediate for the file in the "without spaces" directory.
I would merely recommend not using spaces or any special characters in directories or filenames. This is a long standing practice in order to avoid such problems. Highslide is doing what it's supposed to :)
Not trying to be difficult here at all.
Agreed. The problem originated out of sheer tired. I just wanted to bring it foward.
@rphMedia : Thank you for support ;)
@Fabrian : Thank you for reporting this :)
As you mention before this is space issue ,
- when you set the plugin for showing intermediate image it should check the intermadite image to be exist and cause you have space on the path the is_file() function couldn't see the intermediate image so plugin use fullsize image (blind choose, without checking for existance of fullsize)
I may have found a bug: images uploaded through XpPublish feature are not "highslided" from this plugin.
Have a try on this album (http://www.daviderenda.com/thumbnails.php?album=666) where, most of the images (the first ones) were uploaded from me in the office through XP, while other ones from home with either batch add or simple upload the last 7 ones in bottom page).
All images uploaded with XpPublish can be recognised as the url is something as .. /albums/wpw-2006xxxx/image.jpg
Lontano , I've checked that album , all those pictures have complex filename such as 2003.03.mont.st.michel.jpg
These filenames are not regular and plugin couldn't apply to this type of file , use a simpler filename (use _ instead of .)
yop, that's it; I've made a deeper search through the gallery and other images uploaded through XpPublish "highslides" - it's a matter of filenames ;-)
HI!
no..., no run with sef mod....
debug shows:
/plugins/highslide/include/init2.inc.php
* Warning line 21: mysql_free_result(): supplied argument is not a valid MySQL result resource
/plugins/highslide/codebase.php
* Notice line 164: Use of undefined constant admin_show - assumed 'admin_show'
* Notice line 164: Use of undefined constant admin_show - assumed 'admin_show'
/include/functions.inc.php
* Warning line 483: sprintf(): Too few arguments
* Warning line 483: sprintf(): Too few arguments
* Warning line 483: sprintf(): Too few arguments
* Warning line 483: sprintf(): Too few arguments
* Warning line 483: sprintf(): Too few arguments
Quote from: Sami on October 06, 2006, 05:10:54 PM
Lontano , I've checked that album , all those pictures have complex filename such as 2003.03.mont.st.michel.jpg
These filenames are not regular and plugin couldn't apply to this type of file , use a simpler filename (use _ instead of .)
Filenames as the one posted above should be fixed as per cpg1.4.8 or better. Subsequently, I guess that your gallery is outdated.
Not related to this plugin imo.
@Quinti:Those notices ,are not related to your sef issue
As I said before I didn't test sef compatibilty , guess I should test it now ! ::)
@gaugau:I think, maybe it's a XP publish bug
jej...sorry, i no view the admin button
wants run...but no..., shh, a litlle bit... look: http://www.fotosdesarria.com/ (http://www.fotosdesarria.com/)
Hi
take the Spanish translation
RUN!!
i haved other js scripts
run run
is great this plugin eh? :))
suggestions:
this lines in the .js
cpghs_restoreTitle : 'Clica para restaurar la foto',
cpghs_loadingText : 'Cargando...',
could be translated in lang.php?
_ _ _ _
in Readme.txt puts:
"Installation:
1.copy captcha folder to your plugins folder"
"captcha" instead of "HighSlide", jijji i'm now a contributor!!!, jejejejje
greetings and all the best :)
- So it's compatible with SEF ;)
- Thank you for translation
- I'll check those lines and will try to add them to lang file
Quote1.copy captcha folder to your plugins folder"
"captcha" instead of "HighSlide", jijji i'm now a contributor!!!, jejejejje
Copy/Paste typo.... :P
Hi!!
validating the higslide to XHTML 1.0:
if($HIGHSLIDESET[detail]==1 || $HIGHSLIDESET[close]==1){
$rep_str.='<ins><div class="highslide-caption" style="height:15px;"id=\'caption-for-'.$match[3].'\'>';
}
if($HIGHSLIDESET[detail]==1){ // add link to intermadiate
$rep_str.='<div onclick="location.href=\''.$match[1].'\'" class="highslide_dtails" style="float:left;" onmouseover="this.className=\'highslide_dtails_over\'" onmouseout="this.className=\'highslide_dtails\'">'.$lang_plugin_highslide['detail'].'</div>';
}
if($HIGHSLIDESET[close]==1){ // add link to intermadiate
$rep_str.='<div onclick="hs.cpghs_closeId(\''.$match[3].'\')" align="right" class="highslide_dtails" style="float:right;" onmouseover="this.className=\'highslide_dtails_over\'" onmouseout="this.className=\'highslide_dtails\'">'.$lang_plugin_highslide['close'].'</div>';
}
if($HIGHSLIDESET[detail]==1 || $HIGHSLIDESET[close]==1){
$rep_str.='</div></ins>';
Thank you Quinti ,
but that's not correct way,
Next release would be Valid XHTML 1.0 Transitional!
Hi Sami
yes, it's correct,
in your page is no correct because u have little photos and in the index, shows repeats images, and XHTML no admit (is no correct) repeat the same ID
but if you had only the last post, for example, will be valid.
refresh validator (http://validator.w3.org/check?uri=http%3A%2F%2Flab.kishmate.com%2Fgallery144%2Findex.php&charset=%28detect+automatically%29&doctype=Inline&verbose=1)
greetings!
I'm using future release on my gallery ;) , So you didn't see any error , the only error is for duplicate image (duplicate ID)
use attached codebase instead of yours , you'll see ;)
New release with New features, check the initial post for more (Valid XHTM, image title on caption & ....)
Hi
get the spanish translation in utf-8
thanks Bonzoo! ;)
My name is Borzoo , not bonzoo !
jej, oukis
Hi,
Being new here I would like to say - well done, great plugin!!
And add here my czech translation...
Any may be one question, which is perhaps a bit off topic, but still:
I want do display real title of the picture in the caption instead of filename, date, dimension and so on, perhaps some exif data would be useful...
Could you help??
Thank you for contribution,
You can add real title to caption by adding hook (thumb_data) to the codebase.php
Exif data needs custom sql query and will slow down your gallery
Sorry but I´am lost in code (honestly i do not understant it at all)
Could you be more specific how to add the title of the picture?
And I have 2 more ideas here:
1/ it is possible do display each picture right in the center of a screen?
2/ and what about to darken all the screen except the displayed picture?
Quote from: jidol on October 23, 2006, 02:51:55 PM
Sorry but I´am lost in code (honestly i do not understant it at all)
Could you be more specific how to add the title of the picture?
Sorry but I was , currently there isn't any documentation about how to code a plugin and if I want to be more specific then I should actualy code it ::)
but I'll check it and
maybe add it to next release
Quote from: jidol on October 23, 2006, 02:51:55 PM
1/ it is possible do display each picture right in the center of a screen?
2/ and what about to darken all the screen except the displayed picture?
Thease are Lightbox (MOD) (http://forum.coppermine-gallery.net/index.php?topic=35539.0) features
Hello
Can you tell me why I don't see the border (glow, 10px, white...).
Thanks :)
Post a link to your gallery ,I'll check it
Thanks
You have a French+javascript error ! ;)
change this line under plugins/highslide/lang/french.php
'restore_title' => 'Clic pour reconstituer l\'ongle du pouce ',// HS v2.3
to this
'restore_title' => 'Clic pour reconstituer l\\\'ongle du pouce ',// HS v2.3
Portuguese (Portugal) translation ! Is that all? Do i need to modify anything else in the script(s)?
No you don't need any modification ....
It seems to me that highslide doesn't work with lightbox. Highslide only works if i remove lightbox's javescripts from template.php . Is there a way to have both of them running at the same time?
You need to comment out some lines on lightbox jscript see this for more info:
http://forum.coppermine-gallery.net/index.php?topic=36558.msg174002#msg174002
when I comment out those lines then lightboxplus doesn't work on full size picture. Any ideas how to get both of them working ?
Post a link to your gallery please
Here is my gallery: http://www.tyzon.net/gallery/index.php
However, when I click on the thumbnails, the text 'Loading...' doesnt show, pls assist. Thanks in advance.
SAMI: www.naszezdjecia.com Firefox works great but not IE.
Nice plugin. Any time frame when the viewed count will go up with the views?
@tysoh: when I try your site with classic theme I can see the loadin animation and text try this:
http://www.tyzon.net/gallery/index.php?theme=classic
So the issue is custom theme , actually you may have a general css conflict , one of your style defenition overwrite on hs loading div and send it to semewhere else!
@strzelec4: Use attached spica.js instead of yours
Quote from: MarkP on December 03, 2006, 04:55:28 AM
Nice plugin. Any time frame when the viewed count will go up with the views?
Actually adding such a feature will give you some faik view count , cause
- User comes and click on a thumbnail , then HS pops out and the add a hit to view count
- Then user click on detail link and goes to displayimage.php and this will add another hit to view count
Any suggestion ?
Quote from: SamiActually adding such a feature will give you some faik view count , cause
- User comes and click on a thumbnail , then HS pops out and the add a hit to view count
- Then user click on detail link and goes to displayimage.php and this will add another hit to view count
Any suggestion ?
Disable the filmstrip in config, remove previous/next icon, disable the view count in displayimage.php for media displayed by HS
or
Integrate vote/comment/detail and all the other stuff in HS window and remove displayimage.php :)
BTW, view count is not suppose to work with IP? So even if I refresh or click many time on the same image, it only add 1 to the count (this behaviour is only for a certain period of time), HS or displayimage.php should do the same???
View count will increase if the corresponding page (displayimage.php) is being accessed and the corresponding database query is being triggered there. Highslide is JavaScript-driven - the query triggered by displayimage.php is never run, as the normal/full-size pic is directly embedded into the thumbnail page. That's why the view count is not increased. As suggested, it would be very complicated (or nearly impossible) to have the view counter increase with Highslide. You'd need to come up with a complex Ajax-driven query mechanism. I can fully understand that Sami will not look into this - after all, stats don't matter for most.
What about a counter just for HS view ?
There is a hope to add this option (not soon)
any suggestion?
The JavaScript bit still needs to interact with the server by running queries, so you'll have to add some Ajax magic, where you don't refresh the entire page, but only a section (could be done using a 1x1 pixel iframe for example) wehre you increase the counter.
Thank you GauGau ,
AJAX would be a good choice (I don't like old fashion iframe) , actually AJAX was my first option at first place
I need suggestion about loging info
I'm going to log these:
- User id
- User IP
- Picture id
Are these info enough ?
Then I should add a view count to Slides and make it clickable just for admin to see the log
I suggest not to create a separate counter, but use the counter mechanisms that already exist in the database.
Really a great mod. But I have a question. How to use this way of showing the photos instead of the pop up window when click on the thumbnails?
You can set Size of slide to full size image under highslide configuration and then edit your theme.php and remove pop up link under displayimage.php
Quote from: Sami on December 09, 2006, 05:55:38 AM
You can set Size of slide to full size image under highslide configuration and then edit your theme.php and remove pop up link under displayimage.php
What should I edit into the theme.php and which are the codes that I have to remove from displayimage.php ?
Cheers.
Copy this (moded) function to themes/your theme/theme.php
function theme_html_picture()
{
global $CONFIG, $CURRENT_PIC_DATA, $CURRENT_ALBUM_DATA, $USER;
global $album, $comment_date_fmt, $template_display_media;
global $lang_display_image_php, $lang_picinfo;
$pid = $CURRENT_PIC_DATA['pid'];
$pic_title = '';
if (!isset($USER['liv']) || !is_array($USER['liv'])) {
$USER['liv'] = array();
}
// Add 1 to hit counter
if (!USER_IS_ADMIN && !in_array($pid, $USER['liv']) && isset($_COOKIE[$CONFIG['cookie_name'] . '_data'])) {
add_hit($pid);
if (count($USER['liv']) > 4) array_shift($USER['liv']);
array_push($USER['liv'], $pid);
}
if($CONFIG['thumb_use']=='ht' && $CURRENT_PIC_DATA['pheight'] > $CONFIG['picture_width'] ){ // The wierd comparision is because only picture_width is stored
$condition = true;
}elseif($CONFIG['thumb_use']=='wd' && $CURRENT_PIC_DATA['pwidth'] > $CONFIG['picture_width']){
$condition = true;
}elseif($CONFIG['thumb_use']=='any' && max($CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight']) > $CONFIG['picture_width']){
$condition = true;
}else{
$condition = false;
}
if ($CURRENT_PIC_DATA['title'] != '') {
$pic_title .= $CURRENT_PIC_DATA['title'] . "\n";
}
if ($CURRENT_PIC_DATA['caption'] != '') {
$pic_title .= $CURRENT_PIC_DATA['caption'] . "\n";
}
if ($CURRENT_PIC_DATA['keywords'] != '') {
$pic_title .= $lang_picinfo['Keywords'] . ": " . $CURRENT_PIC_DATA['keywords'];
}
if (!$CURRENT_PIC_DATA['title'] && !$CURRENT_PIC_DATA['caption']) {
template_extract_block($template_display_media, 'img_desc');
} else {
if (!$CURRENT_PIC_DATA['title']) {
template_extract_block($template_display_media, 'title');
}
if (!$CURRENT_PIC_DATA['caption']) {
template_extract_block($template_display_media, 'caption');
}
}
$CURRENT_PIC_DATA['menu'] = html_picture_menu(); //((USER_ADMIN_MODE && $CURRENT_ALBUM_DATA['category'] == FIRST_USER_CAT + USER_ID) || ($CONFIG['users_can_edit_pics'] && $CURRENT_PIC_DATA['owner_id'] == USER_ID && USER_ID != 0) || GALLERY_ADMIN_MODE) ? html_picture_menu($pid) : '';
if ($CONFIG['make_intermediate'] && $condition ) {
$picture_url = get_pic_url($CURRENT_PIC_DATA, 'normal');
} else {
$picture_url = get_pic_url($CURRENT_PIC_DATA, 'fullsize');
}
$image_size = compute_img_size($CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight'], $CONFIG['picture_width']);
$pic_title = '';
$mime_content = cpg_get_type($CURRENT_PIC_DATA['filename']);
if ($mime_content['content']=='movie' || $mime_content['content']=='audio') {
if ($CURRENT_PIC_DATA['pwidth']==0 || $CURRENT_PIC_DATA['pheight']==0) {
$CURRENT_PIC_DATA['pwidth'] = 320; // Default width
// Set default height; if file is a movie
if ($mime_content['content']=='movie') {
$CURRENT_PIC_DATA['pheight'] = 240; // Default height
}
}
$ctrl_offset['mov']=15;
$ctrl_offset['wmv']=45;
$ctrl_offset['swf']=0;
$ctrl_offset['rm']=0;
$ctrl_offset_default=45;
$ctrl_height = (isset($ctrl_offset[$mime_content['extension']]))?($ctrl_offset[$mime_content['extension']]):$ctrl_offset_default;
$image_size['whole']='width="'.$CURRENT_PIC_DATA['pwidth'].'" height="'.($CURRENT_PIC_DATA['pheight']+$ctrl_height).'"';
}
if ($mime_content['content']=='image') {
if (isset($image_size['reduced'])) {
$winsizeX = $CURRENT_PIC_DATA['pwidth']+5; //the +'s are the mysterious FF and IE paddings
$winsizeY = $CURRENT_PIC_DATA['pheight']+3; //the +'s are the mysterious FF and IE paddings
//$pic_html = "<a href=\"dsfsdfsdfjavascript:;\" onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=$winsizeX,height=$winsizeY')\">"; //commented by Sami to disable popup link
$pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
$pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
//$pic_html .= "</a>\n";//commented by Sami to disable popup link
} else {
$pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" alt=\"\" /><br />\n";
}
} elseif ($mime_content['content']=='document') {
$pic_thumb_url = get_pic_url($CURRENT_PIC_DATA,'thumb');
$pic_html = "<a href=\"{$picture_url}\" target=\"_blank\" class=\"document_link\"><img src=\"".$pic_thumb_url."\" border=\"0\" class=\"image\" /></a>\n<br />";
} else {
$autostart = ($CONFIG['media_autostart']) ? ('true'):('false');
$players['WMP'] = array('id' => 'MediaPlayer',
'clsid' => 'classid="" ',
'codebase' => 'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" ',
'mime' => 'type="application/x-mplayer2" ',
);
$players['RMP'] = array('id' => 'RealPlayer',
'clsid' => 'classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" ',
'codebase' => '',
'mime' => 'type="audio/x-pn-realaudio-plugin" '
);
$players['QT'] = array('id' => 'QuickTime',
'clsid' => 'classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" ',
'codebase' => 'codebase="http://www.apple.com/qtactivex/qtplugin.cab" ',
'mime' => 'type="video/x-quicktime" '
);
$players['SWF'] = array('id' => 'SWFlash',
'clsid' => ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ',
'codebase' => 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ',
'mime' => 'type="application/x-shockwave-flash" '
);
$players['UNK'] = array('id' => 'DefaultPlayer',
'clsid' => '',
'codebase' => '',
'mime' => ''
);
if (isset($_COOKIE[$CONFIG['cookie_name'].'_'.$mime_content['extension'].'player'])) {
$user_player = $_COOKIE[$CONFIG['cookie_name'].'_'.$mime_content['extension'].'player'];
} else {
$user_player = $mime_content['player'];
}
// There isn't a player selected or user wants client-side control
if (!$user_player) {
$user_player = 'UNK';
}
$player = $players[$user_player];
$pic_html = '<object id="'.$player['id'].'" '.$player['clsid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';
$pic_html .= "<param name=\"autostart\" value=\"$autostart\" /><param name=\"src\" value=\"". $picture_url . "\" />";
$pic_html .= '<embed '.$image_size['whole'].' src="'. $picture_url . '" autostart="'.$autostart.'" '.$player['mime'].'></embed>';
$pic_html .= "</object><br />\n";
}
$CURRENT_PIC_DATA['html'] = $pic_html;
$CURRENT_PIC_DATA['header'] = '';
$CURRENT_PIC_DATA['footer'] = '';
$CURRENT_PIC_DATA = CPGPluginAPI::filter('file_data',$CURRENT_PIC_DATA);
$params = array('{CELL_HEIGHT}' => '100',
'{IMAGE}' => $CURRENT_PIC_DATA['header'].$CURRENT_PIC_DATA['html'].$CURRENT_PIC_DATA['footer'],
'{ADMIN_MENU}' => $CURRENT_PIC_DATA['menu'],
'{TITLE}' => bb_decode($CURRENT_PIC_DATA['title']),
'{CAPTION}' => bb_decode($CURRENT_PIC_DATA['caption']),
);
return template_eval($template_display_media, $params);
}
Sees that it doesnt work. Here is my theme.php file.
<?php
/*************************
Coppermine Photo Gallery
************************
Copyright (c) 2003-2006 Coppermine Dev Team
v1.1 originally written by Gregory DEMAR
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
********************************************
Coppermine version: 1.4.9
$Source$
$Revision: 3125 $
$Author: gaugau $
$Date: 2006-06-16 08:48:03 +0200 (Fr, 16 Jun 2006) $
**********************************************/
define('THEME_IS_XHTML10_TRANSITIONAL',1); // Remove this if you edit this template until
// you have validated it. See docs/theme.htm.
// HTML template for template sys_menu spacer
$template_sys_menu_spacer ='<img src="themes/water_drop/images/orange_carret.gif" width="8" height="8" border="0" alt="" />';
// HTML template for template sys_menu buttons
// {HREF_LNK}{HREF_TITLE}{HREF_TGT}{BLOCK_ID}{SPACER}
// addbutton($sys_menu_buttons,'{HOME_LNK}','{HOME_TITLE}','{HOME_TGT}','home',$template_sys_menu_spacer);
// addbutton($sys_menu_buttons,'{MY_GAL_LNK}','{MY_GAL_TITLE}','{MY_GAL_TGT}','my_gallery',$template_sys_menu_spacer);
// addbutton($sys_menu_buttons,'{MEMBERLIST_LNK}','{MEMBERLIST_TITLE}','{MEMBERLIST_TGT}','allow_memberlist',$template_sys_menu_spacer);
// addbutton($sys_menu_buttons,'{MY_PROF_LNK}','{MY_PROF_TITLE}','{MY_PROF_TGT}','my_profile',$template_sys_menu_spacer);
// addbutton($sys_menu_buttons,'{ADM_MODE_LNK}','{ADM_MODE_TITLE}','{ADM_MODE_TGT}','enter_admin_mode',$template_sys_menu_spacer);
// addbutton($sys_menu_buttons,'{USR_MODE_LNK}','{USR_MODE_TITLE}','{USR_MODE_TGT}','leave_admin_mode',$template_sys_menu_spacer);
// addbutton($sys_menu_buttons,'{UPL_PIC_LNK}','{UPL_PIC_TITLE}','{UPL_PIC_TGT}','upload_pic',$template_sys_menu_spacer);
// addbutton($sys_menu_buttons,'{REGISTER_LNK}','{REGISTER_TITLE}','{REGISTER_TGT}','register',$template_sys_menu_spacer);
// addbutton($sys_menu_buttons,'{FAQ_LNK}','{FAQ_TITLE}','{FAQ_TGT}','faq',$template_sys_menu_spacer);
// addbutton($sys_menu_buttons,'{LOGIN_LNK}','{LOGIN_TITLE}','{LOGIN_TGT}','login','');
// addbutton($sys_menu_buttons,'{LOGOUT_LNK}','{LOGOUT_TITLE}','{LOGOUT_TGT}','logout','');
// Login and Logout don't have a spacer as only one is shown, and either would be the last option.
// HTML template for intermediate image display
$template_display_media = <<<EOT
<tr>
<td align="center" class="display_media" nowrap="nowrap">
<table cellspacing="2" cellpadding="0" class="imageborder">
<tr>
<td align="center">
{IMAGE}
</td>
</tr>
<tr>
<td align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-0961475972968219";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "DD1414";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" cellspacing="2" cellpadding="0" class="tableb">
<tr>
<td align="center">
{ADMIN_MENU}
</td>
</tr>
</table>
<!-- BEGIN img_desc -->
<table cellpadding="0" cellspacing="0" class="tableb" width="100%">
<!-- BEGIN title -->
<tr>
<td class="tableb"><center><b>
{TITLE}
</b></center></td>
</tr>
<!-- END title -->
<!-- BEGIN caption -->
<tr>
<td class="tableb"><center>
{CAPTION}
</center></td>
</tr>
<!-- END caption -->
</table>
<!-- END img_desc -->
</td>
</tr>
EOT;
function theme_html_picture()
{
global $CONFIG, $CURRENT_PIC_DATA, $CURRENT_ALBUM_DATA, $USER;
global $album, $comment_date_fmt, $template_display_media;
global $lang_display_image_php, $lang_picinfo;
$pid = $CURRENT_PIC_DATA['pid'];
$pic_title = '';
if (!isset($USER['liv']) || !is_array($USER['liv'])) {
$USER['liv'] = array();
}
// Add 1 to hit counter
if (!USER_IS_ADMIN && !in_array($pid, $USER['liv']) && isset($_COOKIE[$CONFIG['cookie_name'] . '_data'])) {
add_hit($pid);
if (count($USER['liv']) > 4) array_shift($USER['liv']);
array_push($USER['liv'], $pid);
}
if($CONFIG['thumb_use']=='ht' && $CURRENT_PIC_DATA['pheight'] > $CONFIG['picture_width'] ){ // The wierd comparision is because only picture_width is stored
$condition = true;
}elseif($CONFIG['thumb_use']=='wd' && $CURRENT_PIC_DATA['pwidth'] > $CONFIG['picture_width']){
$condition = true;
}elseif($CONFIG['thumb_use']=='any' && max($CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight']) > $CONFIG['picture_width']){
$condition = true;
}else{
$condition = false;
}
if ($CURRENT_PIC_DATA['title'] != '') {
$pic_title .= $CURRENT_PIC_DATA['title'] . "\n";
}
if ($CURRENT_PIC_DATA['caption'] != '') {
$pic_title .= $CURRENT_PIC_DATA['caption'] . "\n";
}
if ($CURRENT_PIC_DATA['keywords'] != '') {
$pic_title .= $lang_picinfo['Keywords'] . ": " . $CURRENT_PIC_DATA['keywords'];
}
if (!$CURRENT_PIC_DATA['title'] && !$CURRENT_PIC_DATA['caption']) {
template_extract_block($template_display_media, 'img_desc');
} else {
if (!$CURRENT_PIC_DATA['title']) {
template_extract_block($template_display_media, 'title');
}
if (!$CURRENT_PIC_DATA['caption']) {
template_extract_block($template_display_media, 'caption');
}
}
$CURRENT_PIC_DATA['menu'] = html_picture_menu(); //((USER_ADMIN_MODE && $CURRENT_ALBUM_DATA['category'] == FIRST_USER_CAT + USER_ID) || ($CONFIG['users_can_edit_pics'] && $CURRENT_PIC_DATA['owner_id'] == USER_ID && USER_ID != 0) || GALLERY_ADMIN_MODE) ? html_picture_menu($pid) : '';
if ($CONFIG['make_intermediate'] && $condition ) {
$picture_url = get_pic_url($CURRENT_PIC_DATA, 'normal');
} else {
$picture_url = get_pic_url($CURRENT_PIC_DATA, 'fullsize');
}
$image_size = compute_img_size($CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight'], $CONFIG['picture_width']);
$pic_title = '';
$mime_content = cpg_get_type($CURRENT_PIC_DATA['filename']);
if ($mime_content['content']=='movie' || $mime_content['content']=='audio') {
if ($CURRENT_PIC_DATA['pwidth']==0 || $CURRENT_PIC_DATA['pheight']==0) {
$CURRENT_PIC_DATA['pwidth'] = 320; // Default width
// Set default height; if file is a movie
if ($mime_content['content']=='movie') {
$CURRENT_PIC_DATA['pheight'] = 240; // Default height
}
}
$ctrl_offset['mov']=15;
$ctrl_offset['wmv']=45;
$ctrl_offset['swf']=0;
$ctrl_offset['rm']=0;
$ctrl_offset_default=45;
$ctrl_height = (isset($ctrl_offset[$mime_content['extension']]))?($ctrl_offset[$mime_content['extension']]):$ctrl_offset_default;
$image_size['whole']='width="'.$CURRENT_PIC_DATA['pwidth'].'" height="'.($CURRENT_PIC_DATA['pheight']+$ctrl_height).'"';
}
if ($mime_content['content']=='image') {
if (isset($image_size['reduced'])) {
$winsizeX = $CURRENT_PIC_DATA['pwidth']+5; //the +'s are the mysterious FF and IE paddings
$winsizeY = $CURRENT_PIC_DATA['pheight']+3; //the +'s are the mysterious FF and IE paddings
//$pic_html = "<a href=\"dsfsdfsdfjavascript:;\" onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=$winsizeX,height=$winsizeY')\">"; //commented by Sami to disable popup link
$pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
$pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
//$pic_html .= "</a>\n";//commented by Sami to disable popup link
} else {
$pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" alt=\"\" /><br />\n";
}
} elseif ($mime_content['content']=='document') {
$pic_thumb_url = get_pic_url($CURRENT_PIC_DATA,'thumb');
$pic_html = "<a href=\"{$picture_url}\" target=\"_blank\" class=\"document_link\"><img src=\"".$pic_thumb_url."\" border=\"0\" class=\"image\" /></a>\n<br />";
} else {
$autostart = ($CONFIG['media_autostart']) ? ('true'):('false');
$players['WMP'] = array('id' => 'MediaPlayer',
'clsid' => 'classid="" ',
'codebase' => 'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" ',
'mime' => 'type="application/x-mplayer2" ',
);
$players['RMP'] = array('id' => 'RealPlayer',
'clsid' => 'classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" ',
'codebase' => '',
'mime' => 'type="audio/x-pn-realaudio-plugin" '
);
$players['QT'] = array('id' => 'QuickTime',
'clsid' => 'classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" ',
'codebase' => 'codebase="http://www.apple.com/qtactivex/qtplugin.cab" ',
'mime' => 'type="video/x-quicktime" '
);
$players['SWF'] = array('id' => 'SWFlash',
'clsid' => ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ',
'codebase' => 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ',
'mime' => 'type="application/x-shockwave-flash" '
);
$players['UNK'] = array('id' => 'DefaultPlayer',
'clsid' => '',
'codebase' => '',
'mime' => ''
);
if (isset($_COOKIE[$CONFIG['cookie_name'].'_'.$mime_content['extension'].'player'])) {
$user_player = $_COOKIE[$CONFIG['cookie_name'].'_'.$mime_content['extension'].'player'];
} else {
$user_player = $mime_content['player'];
}
// There isn't a player selected or user wants client-side control
if (!$user_player) {
$user_player = 'UNK';
}
$player = $players[$user_player];
$pic_html = '<object id="'.$player['id'].'" '.$player['clsid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';
$pic_html .= "<param name=\"autostart\" value=\"$autostart\" /><param name=\"src\" value=\"". $picture_url . "\" />";
$pic_html .= '<embed '.$image_size['whole'].' src="'. $picture_url . '" autostart="'.$autostart.'" '.$player['mime'].'></embed>';
$pic_html .= "</object><br />\n";
}
$CURRENT_PIC_DATA['html'] = $pic_html;
$CURRENT_PIC_DATA['header'] = '';
$CURRENT_PIC_DATA['footer'] = '';
$CURRENT_PIC_DATA = CPGPluginAPI::filter('file_data',$CURRENT_PIC_DATA);
$params = array('{CELL_HEIGHT}' => '100',
'{IMAGE}' => $CURRENT_PIC_DATA['header'].$CURRENT_PIC_DATA['html'].$CURRENT_PIC_DATA['footer'],
'{ADMIN_MENU}' => $CURRENT_PIC_DATA['menu'],
'{TITLE}' => bb_decode($CURRENT_PIC_DATA['title']),
'{CAPTION}' => bb_decode($CURRENT_PIC_DATA['caption']),
);
return template_eval($template_display_media, $params);
}
?>
It's working for me !
Your fullsize popup is disable now
you just need to install plugin
Yes the pop up function is disabled now, but the photos do not open with the highslide too. As I said I need instead of the popup this kind of new way that you did.
cheers.
Quote from: GizmoHey Sami, very cool plugin. I had seen you were creating a plugin back in the Modifications/Add-Ons/Hacks board and kept looking there for it. Never thought to check out this board... duh... Tongue. I works great on most themes but as we come to expect about javascript there's a conflict with LightBox JS for the fullsize popup. Not a problem though as most people will only use one method (unless they're game for a lot of conflict issues!
Quote from: strzelec4It seems to me that highslide doesn't work with lightbox. Highslide only works if i remove lightbox's javescripts from template.php . Is there a way to have both of them running at the same time?
I have a simple solution for this problem, please
take a look hereDemoSami, Great MOD! Thank you so much for writing it! Would it be possible to add some additional features like the left/right links (as well as with the arrows on the keyboard) in the next version? Thanks!
Thank you garibaldi for contribution ,
Quote
Sami, Great MOD! Thank you so much for writing it! Would it be possible to add some additional features like the left/right links (as well as with the arrows on the keyboard) in the next version? Thanks!
I'm working on a view count for next version so don't expect arrow keys feature soon ;)
Sure, no problem! Let me know if I can help!
Oh so close to getting this to work - but having a small prob.
Narrowed down a conflict to a style sheet of mine and the CPG {META} tag in the header of my template.html. The problem is that the words "Detail" and "Close" show up at the bottom of each thumbnail and when the thumbnail is clicked it doesn't open the way it should with this MOD. Can anyone recommend where to look for the problem?
Post a link to your gallery
Thanks, here you go:
[removed]
As you have very customized template plugin couldn't apply it's js and css file by it self so you need to add them manually !
openup themes/your theme/template.html
add this code before </head> tag
<link rel="stylesheet" href="plugins/highslide/include/highslide.css" type="text/css">
<script type="text/javascript" src="plugins/highslide/highslide.js"></script>
<style type="text/css">
.highslide {
cursor: url('plugins/highslide/graphics/zoomin.cur'), pointer;
outline: none;
}
.highslide-image {
cursor: pointer; /* opera */
cursor: url('plugins/highslide/graphics/zoomout.cur'), pointer;
border: 2px solid white;
}
.highslide-loading {
display: block;
color: white;
font-style: 'MS Sans Serif';
font-size: 9px;
font-weight: bold;
text-transform: uppercase;
text-decoration: none;
padding: 3px;
opacity: 0.60; /* w3c */
filter: alpha(opacity=60); /* ie */
border-top: 1px solid white;
border-bottom: 1px solid white;
background-color: black;
padding-left: 22px;
background-image: url('plugins/highslide/graphics/loader.gif');
background-repeat: no-repeat;
background-position: 3px 1px;
}
</style><script type="text/javascript">
hs.cpghs_graphicsDir = 'plugins/highslide/graphics/';
hs.cpghs_loadingText = 'Loading...';
hs.cpghs_loadingTitle = 'Click to cancel';
hs.cpghs_restoreTitle = 'Click to restore thumbnail';
hs.cpghs_outlineType = 'rounded-white';
window.onload = function() {
hs.cpghs_preloadImages();
}
</script>
and then add this to your body tag
onload="init();"
and after that, right after body tag put this div
<div id="highslide-container"></div>
I don't have my test bed so please test it and confirm ....
Oh its a beautiful thing!
Thanks so much for your thorough help with such a fantastic mod.
PS - Also appreciate your seeing my template as "very customized" - now that your mod is working my next task is to clean up what has become a bit overwhelming !!
I got a question to this plugin.
Does the view counter of every image still work?
P.S. Oh now I know sorry for this question.
I'm having a really bizarre error. All my galleries work great with this script, ie:
http://www.wiscollectorcar.com/coppermine/cpg132/thumbnails.php?album=147&page=1
However, I noticed that when I look at this gallery the script isn't working:
http://www.wiscollectorcar.com/coppermine/cpg132/thumbnails.php?album=146&page=1
When you click on a thumb it just goes to the normal intermediate picture page. As far as I can tell there is nothing special or different about this gallery. Why is this problem occuring?
@deejaymoni: This plugin does not effect on view count yet and view count of image will work as a normal
@Garibaldi: Your filename under album #147 is not regular you have blah. blah.ext instead of blah.ext and plugin only work on regular filename
here is the tip:
- Do not use space on your filename (*nix os couldn't work with this filename)
- Do not use special char. only _ is allowed
Extra dots in filenames has been fixed. You (Garibaldi) are using cpg1.4.8, which is outdated. It's mandatory to upgrade, most recent version currently is cpg1.4.10.
Thanks, I upgraded successfully but the files still wouldn't work. I then uploaded new versions of the files without the extra "." and it works fine now. Thanks for the help!
Sami,
i stumbled upon this plugin and i must say it is awesome!
I did not hesitate to add it to my personal CPG. Have to test it on my other CPG to see if it does work alongside the other list of plugins there ;)
Added dutch.php
Hein
I've installed your plug-in and love it - but also see some of GauGau's concerns about reaching CPG functions like comments and ratings.
I have tried to code these type of links within the intermediate popup window - but couldn't get them to work. Thought - someone sees thumbnail > opens intermediate picture popup > = great time to offer them comment and rating links.
Found the following original(?) code that also had navigation in Custom Overlays (see lower on their page)
http://vikjavev.no/highslide/#documentation (http://vikjavev.no/highslide/#documentation)
Can you tell me how, or can you provide code that will insert "Custom Overlays" with Comments & Ratings links to your mod?
Thanks for any help in advance!
Among "Detail" and "Close" I would like to see "Send as eCard" too.
Could this be done?
@Hein:Thank you so much for contribution , I'll add it to package
@Gephri: This is not easy , could be done with AJAX
You can add your custom overlays to codebase.php
@olti:I'll add this feature to next version
Thanks! :)
One thing I've noticed that keeps happening recently is that it takes quite a long time (10-15 seconds) to load an image after I click on the thumb... it just says Loading and finally the image pops up. Any ideas why this takes so long (I am on DSL). Here's my site:
http://www.wiscollectorcar.com/coppermine/cpg132/
Thanks
As you set fullsize pics for your slide it takes time to load that pic (for the first time) and this is normal
Quote from: Sami on December 25, 2006, 06:05:04 AM
As you set fullsize pics for your slide it takes time to load that pic (for the first time) and this is normal
I have mine set to Intermediate though, it still takes 10-20 seconds to load that which doesn't make any sense
Here's a follow-up on this full/intermediate sized picture problem. Here's my gallery:
http://photos.wiscollectorcar.com
I tried going to a picture and when the highslide came up I clicked view image, and it is definitely the large, fullsize image. This was when I had the plugin set to Intermediate. I then switched the plugin to full size and repeated this process, same result. Both times it is clearly loading the full-sized image but only displaying it in a much smaller area, thus making the load times very inefficient.
Any ideas?
Great plugin! It would be nice if it actually counts image views and have the abillity to rate pics from here. If that was possible, I wouldn't need the detail page of an image.
Hi
here the galician translation for High Slide
greetings
Discovered that IE shows the cpghs_creditsText at the very top of the intermediate image popup in highslide. However FireFox shows the text lower than at the top - as if there is a line break or something. Couldn't find a way to correct - any ideas?
Also, I have some rather small intermediate images and when they popup, the three words that I have in the cpghs_creditsText actually wraps into the center of the picture. Can you tell me how to set up "nowrap" for that part of the code?
Thanks for a great mod!
@Sami: I suggest reviewing the initial posting of this thread and adding a copyright notice to it: the underlying HighSlide.js (http://vikjavev.no/highslide/) library by Torstein Hønsi that is being used by your plugin doesn't come under GNU GPL - it's only free for non-commercial use. Professional use requires a $30 domain license. People who use your plugin need to be aware that the license applies to your plugin as well: if they use it on commercial sites, they need to pay the license fee to the author of the original JavaScript library.
Thank you GauGau for pointing that out,
It's Done
It doesnt work correctly in IE7, anyone can help with this? Which code to edit?
Love this mod -but have some rather small images in some galleries. Would like to set up a "NOWRAP" for the text on the bottom of the popup frame for intermediate images - can anyone tell me how?
You can set that in highslide.css ({gallery root}/plugins/highslide/include/highslide.css) , add your custom style to .highslide_dtails
Thanks for the help, but the 'close' text still wraps when a narrow thumbnail popsup.
Here's the code that controls that I would like to keep from wrapping:
if($HIGHSLIDESET[detail]){ // add link to intermadiate
$rep_str.='<div onclick="location.href=\''.$match[1].'\'" class="highslide_dtails" style="float:left;" onmouseover="this.className=\'highslide_dtails_over\'" onmouseout="this.className=\'highslide_dtails\'" >'.$lang_plugin_highslide['detail'].'</div>';
}
if($HIGHSLIDESET[close]){ // add link to close
$rep_str.='<div onclick="hs.cpghs_closeId(\''.$match[3].'\')" align="right" class="highslide_dtails" style="float:right;" onmouseover="this.className=\'highslide_dtails_over\'" onmouseout="this.className=\'highslide_dtails\'" >'.$lang_plugin_highslide['close'].'</div>';
}
if($HIGHSLIDESET[title]){ // add title to caption
$rep_str .= '<div align="center" class="thumb_caption" >'.$match[5].'</div>';
}
Maybe its as simple as putting nowrap in the right place, or adding <td nowrap></td>, or something else - but all I've tried just isnt fixing it.
thanks again for the help.
Hey Sami, just wondering if you're going to update this plugin as the author has updated a few versions.
I just got this plugin installed and really like it. I was wondering though, instead of launching the Highslide from the thumbnail, could it launch from the intermediate page? I know this is the reverse of what it's intended to do, but for my uses, I'd rather my viewers go from the thumbnail page to the intermediate page with all of it's features and quick load time. This is where most of them would stop and move on to the next image. Then if they want to see the full size pic, click on the intermediate view and launch the highslide view which would come up scaled, but would allow them to view it full size with scollbars etc. Also, could that initial highslide be larger?
Thanks,
Adam
Quote from: Fabrian on February 27, 2007, 02:44:00 AM
Hey Sami, just wondering if you're going to update this plugin as the author has updated a few versions.
I forgot..
http://vikjavev.no/highslide/changelog.php
Quote from: Fabrian on March 11, 2007, 07:46:22 AM
I forgot..
http://vikjavev.no/highslide/changelog.php
I've downloaded from above link and replaced highslide.js file from the plugin folder with the most recent one (unmodified), all seems to work properly. Can anybody confirm this is the right procedure, or other modifications to the code has to be done?
Yes it's working normally but if you want to use it on some custom theme then you should done some modification (there was some JS conflict)
I'll post new version soon ,
off topic:
I was away for a while and I'm back
My ISP block this site/forum ! I don't know why (they said government rules !!!) so I can't check this forum @ work
Hello, my english is very bad ::)
I inserted, marvelously the High Slide module with my gallery! Only unfortunately now the files are not any longer counted, only if one goes evenly on detail and sees the normal picture. Is there a solution there?
Dieter
Quote from: nfdieter on March 27, 2007, 10:30:14 AM
Hello, my english is very bad ::)
I inserted, marvelously the High Slide module with my gallery! Only unfortunately now the files are not any longer counted, only if one goes evenly on detail and sees the normal picture. Is there a solution there?
Dieter
Man, it's clearly advised in the announcement post (the first of this thread), did you not read it? ;-)
Apology, I read it, it could have been it a solution gives now.
Greeting Dieter
Sorry for my Question
Quote from: Sami on September 23, 2006, 05:10:47 PM
Known Issue:
=======
- Image view will not count
@nfdieter: as I already told you in your similar request on the German support board, it is mandatory to read this thread carefully before replying to it. Obviously, you failed to do so.
What you're requesting is a know issue (or missing feature if you want). There's no point in requesting it, as the author is already aware of the fact that it is missing. If there was an easy fix, he would have posted it in the first place.
If you can't live without the couter increasing, then don't use this plugin. There's no need to discuss this further.
hey guys.
my englisch isn´t realy good, but i try to make you understanding my problem.
is there a possibility to show arrows in the popup, so the users can directly jump to the next or previous picture?
i saw that feature on the author´s homepage http://vikjavev.no/highslide (http://vikjavev.no/highslide).
if there is a way to realize it, let me know it. it would be a very nice feature for me.
thanks
does nobody have an idea?
i don´t think so...
Quote from: bieme on April 04, 2007, 01:41:55 PM
does nobody have an idea?
i don´t think so...
Your not the patient kind are you ? Give it some time to have your question answered. It's all done by volunteers so do not expect 24/7 support.
What is the status of SEF compatibility for this plugin? I noticed that there is an option for it in the configuration, but when I enable it, it seems to just turn off the highslide hack and clicking on the thumbnail just brings up the intermediate picture page. Is this how it is supposed to work?
Thanks
sef_plugin should be enabled before using that feature
hi,
i have already a new problem:
i use the script.aculo.us (http://script.aculo.us) javascript library for a nice effect,
but it seems to overwrite the highslide script. so it doesn´t work anymore.
is there a possibility to safe the highslide.js
i have to load all the script.aculo.us scripts, because i don´t know exactly where my small code is located, wich is needed.
can anybody help me.
i know that this question isn´t very good situated in this forum
Quote from: Sami on April 06, 2007, 09:57:14 AM
sef_plugin should be enabled before using that feature
I have it enabled but it still just goes to the intermediate page
post a link to your gallery
My Gallery (http://www.wiscollectorcar.com/coppermine/cpg132) - I have disabled SEF on the plugin for now so that the gallery will still function as I want it to. Do you see anything obvious on there that would be in conflict? I am using Mehdi's Coppermine Bridge but I have disabled my Joomla SEF for the coppermine dir
Quote from: Garibaldi on April 07, 2007, 06:16:33 PM
My Gallery (http://www.wiscollectorcar.com/coppermine/cpg132) - I have disabled SEF on the plugin for now so that the gallery will still function as I want it to. Do you see anything obvious on there that would be in conflict? I am using Mehdi's Coppermine Bridge but I have disabled my Joomla SEF for the coppermine dir
I've got mysql error:
Coppermine critical error:
Unable to connect to database !
MySQL said: Can't connect to MySQL server on 'albums.wiscollectorcar.com' (4)
Quote from: Sami on April 07, 2007, 08:22:14 PM
I've got mysql error:
Coppermine critical error:
Unable to connect to database !
MySQL said: Can't connect to MySQL server on 'albums.wiscollectorcar.com' (4)
It works fine now, it must have been a hiccup
Plugin is working , as far as I see you are using SEF for coppermine too
I recently added a floating sidebar to my site on all pages for logged in users. This includes my coppermine pages. Unfortunately, with this new <div> the highslide plugin will not work, instead you're just taken to the image.
I'm using this code to create the menu:
<div id="mini-nav">
<a href="http://www.wiscollectorcar.com" title="Home"><img src="/images/icons/home.png" alt="Home" /></a>
<a href="http://www.wiscollectorcar.com/component/option,com_events/Itemid,88888907/" title="Calendar"><img src="/images/icons/calendar.png" alt="Calendar" /></a>
<a href="http://www.wiscollectorcar.com/forum/index.php" title="Forum"><img src="/images/icons/forum.png" alt="Forum" /></a></div>
And I added this to the header:
<style>
body > div#mini-nav {
position: fixed;
}
#mini-nav {
position:fixed;
right:10px;
top:20px;
width:20px;
background-color: white;
border: 1px solid #ccc;
padding: 3px;
line-height: 16px;
}
#mini-nav img {
padding-bottom: 5px;
}
img {
border: none;
}
/* fix IE6 */
#mini-nav{
position:fixed;
_position:absolute;
_top:expression(eval(document.body.scrollTop));
}
</style>
Why would this conflict? How can I fix it? You can log into the Photo Gallery to see the effects yourself by using the following information:
http://photos.wiscollectorcar.com
Username: testaccount
Password: test
Thanks!
Does this work with Iframe?
@Garibaldi: Sorry but it seems that you are using newer version of hs Jscript that has some sort of conflict ...
@Kenshino : it should
Quote from: Sami on April 22, 2007, 09:37:15 AM
@Garibaldi: Sorry but it seems that you are using newer version of hs Jscript that has some sort of conflict ...
@Kenshino : it should
@ Sami, I installed the version of the highslide script that you provided with this plugin, yet the problem still remains.
I have successfully installed Highslide, and it works great. However, the install from the plugin manager failed. Seems it couldn't create the highslide.config table, nor could it add the default entry to it. Even now, if I change configuration options, they don't get saved to the DB table. Thoughts? I have no DB issues with coppermine config changes, adding/editing albums, images, etc.
- Try to completely remove and re-install plugin (by using plugin manager)
- Post a link to your gallery
Now that I got it working, I'm a bit leery about having to do it over by hand again. Here is a link below. Could it be the default user that is used, or perhaps that I've upgraded CPG about 5 times (original DB files have cpg132 as prefixes)?
http://www.noizemag.com/coppermine
is there any way this plugin can be altered to open a preview/medium size picture just by moving the mouse over the thumbnail then removing it when the mouse is moved away, similar to the preview effect used on istockphoto's website
on the main page of the script (http://vikjavev.no/highslide/)
I see a example with two arrow (previous and next).
That will be include into the plugin one day ? :P
Hi All,
I installed the plugin and works perfectly for me but I would like to implement it on the filmstrip...
Any suggestions?? Im not a coder so I dont know how to do it.. ???
Help please!!
Thanks in advence and congratulations for this great work
@ ir803 : It's possible but you need to mod core function of highslide and then you should always preload main images you should ask this feature from main author (Torstein Hønsi (http://vikjavev.no/highslide/))
@Vincs : Yes you have those arrows at next version, actually I'm going to add all new feature of highslide.js to plugin and also I'm going to add view counter (AJAX base) option for those who want to count highslide view
@rubenix_bcn : Sorry but it's not related to this plugin
Actually this plugin comes to Skip intermediate page (read the title) and filmstrip is an intermediate page's content !
Quote from: Sami on June 07, 2007, 07:29:26 PM
@rubenix_bcn : Sorry but it's not related to this plugin
Actually this plugin comes to Skip intermediate page (read the title) and filmstrip is an intermediate page's content !
okey dokey!! I just wanted to add this because I have the link for intermediates activated ( to allow leaving comments ) and once in there would be nice to have hishslide for the pics in the filmstrip...
Anyway, thanks Sami for your quick reply...Im waiting for the new version with those arrows ;)
hey sami, i just installed this plugin and it's fantastic. no problems at all ... thanks for your hard work!!!! :)
Quote from: Sami on June 07, 2007, 07:29:26 PM
@Vincs : Yes you have those arrows at next version, actually I'm going to add all new feature of highslide.js to plugin and also I'm going to add view counter (AJAX base) option for those who want to count highslide view
the view counter is a great idea. i noticed that the "number of views" on my gallery doesn't increase when people only use the highslide to view the image ... which is a shame, cause it'd be nice to keep the number of views increasing ...
i'm looking forward to future upgrades.
thanks again
dave
And what about the next version ? I can't wait for it no more ;D ;D ;D
i love this plugin.
is there any way i could get the background to Dim when i open a highslide window? if someone could explain it to me that would be great!
my gallery is: www.bleedingshutter.com/models (http://www.bleedingshutter.com/models)
thanks
Quote from: Vincs on August 02, 2007, 01:09:45 PM
And what about the next version ? I can't wait for it no more ;D ;D ;D
I've ported last release of HS original Javascript to coppermine I've just need some time to add new feature to plugin
as always I've time issue
Quote from: dills84 on August 02, 2007, 05:20:59 PM
i love this plugin.
is there any way i could get the background to Dim when i open a highslide window? if someone could explain it to me that would be great!
my gallery is: www.bleedingshutter.com/models (http://www.bleedingshutter.com/models)
thanks
Not an exist feature , it can be done by adding a div and some css and a few lines of javascript ;)
Oh , You are using 1.4.10 which is known to have security issue
You
must upgrade to most recent version (currently 1.4.12) ASAP
Quote from: Sami on August 04, 2007, 06:45:19 AM
I've ported last release of HS original Javascript to coppermine I've just need some time to add new feature to plugin
as always I've time issue
Not an exist feature , it can be done by adding a div and some css and a few lines of javascript ;)
Oh , You are using 1.4.10 which is known to have security issue
You must upgrade to most recent version (currently 1.4.12) ASAP
thanks for the tip. maybe someday when im more proficient in Javascript i'll figure it out.
i'll have to do that upgrade soon. thanks!
Sami, thanks for making the plugin.
I can't use it however till it will be able to count hits... :'(
You mentioned it will be able to in the next version,
I hope this will be very soon... Eagerly awaiting...
I'm willing to send you something for your troubles too :)
If you are interested, my site is www.bombelman.com
CPM 1.4.12
Cheers !!
Quote from: bbm on August 10, 2007, 04:06:10 AM
I'm willing to send you something for your troubles too :)
If your willing to compensate, read the thread "We need your help (http://forum.coppermine-gallery.net/index.php?topic=14227.0)"
I'm going to release new version next week so you'll get what you want bbm
we're next week :D (don't ban me ::) )
Quote from: Vincs on August 17, 2007, 09:52:55 AM
we're next week :D (don't ban me ::) )
;) Don't forget friday afternoon, saturday and sunday. Patience is a virtue ;D
I'm so busy these days , sorry ...
I'll do my best ;)
Has anyone tweaked this great Mod so that when you exit the slideshow - it'll take you to the picture you exited on... not the beginning of the album?
Quote from: Gephri on August 21, 2007, 02:24:32 AM
Has anyone tweaked this great Mod so that when you exit the slideshow - it'll take you to the picture you exited on... not the beginning of the album?
I think you're twisting the slideshow and highslide plugin...
I have some problem about flash movie and selection menu. When my highslides window popup over on the top of my page. Flash movie will over this highslides popup. How I fix it. :'(
This is my page: http://www.chiangmai-luxuryhotels.com/gallery/index.php
Hi Tongutd,
You could try adding <param name="wmode" value="transparent"> to the flash file code.
Hi Everyone,
Has anyone figured out how to modify the highslide plugin (thanks for this great mod, Sami) so it has the same effect background effects as Lightbox2? I read the post about how the div and css needs to be modified plus a few lines of javascript but was wondering if anyone has succeeded in doing this and would post the specifics.
Any help is appreciated!
Quote from: daverad on August 30, 2007, 03:10:38 AM
Hi Everyone,
Has anyone figured out how to modify the highslide plugin (thanks for this great mod, Sami) so it has the same effect background effects as Lightbox2? I read the post about how the div and css needs to be modified plus a few lines of javascript but was wondering if anyone has succeeded in doing this and would post the specifics.
Any help is appreciated!
Thank you very much Daverad. It's quiet done for me!
Visit holiday photo gallery at http://www.chiangmai-luxuryhotels.com/gallery/
Hi,
Hi,
I upgraded to 1.4.12.
It turned out OK - the messages said OK when I ran the update.php.
I accessed my cpg pages - no problem.
Then I installed the Highslide plug-in.
I got a shock !
The next thing I knew was this message on a blank screen:
"Critical error
There was an error while processing a database query"
Now I can't access any cpg page at all - the same blank screen with the error message.
What happened? Pse help !!
http://coppermine-gallery.net/tutorial/debug_mode.php (http://coppermine-gallery.net/tutorial/debug_mode.php)
Hi,
I'm in debug mode now.
I see the debug info.
However, it contains my database password.
Is it safe for me to post the debug info here using a pseudonym for my database password?
Pse advise. Thanks.
Hi again,
I just noticed - the debug info can be accessed by going to my website.
Is there a security risk here?
Worried.
Post the info so i or a other supporter can take a look at it. Make sure to put *** in the places where you think database passwords are mentioned.
Hi Hein,
Here's the critical error message:
"While executing query "SELECT * FROM cpg148_highslide_config" on 0
mySQL error: Table *****.cpg148_highslide_config' doesn't exist"
(I have used "*****" to represent my database password.)
Immediately following this message, there's mention of the file: "File: /home/photogr1/public_html/include/functions.inc.php - Line: 249 "
Also, the debug info that follows:
USER:
------------------
Array
(
[ID] => 38a93fbde8bbbad25ce69026ba1284c4
[am] => 1
[lang] => english
[liv] => Array
(
[0] => 1512
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 0
[user_name] => Guest
[groups] => Array
(
[0] => 3
)
[group_quota] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 1
[can_post_comments] => 1
[can_upload_pictures] => 0
[can_create_albums] => 0
[pub_upl_need_approval] => 1
[priv_upl_need_approval] => 1
[upload_form_config] => 3
[num_file_upload] => 5
[num_URI_upload] => 3
[custom_user_upload] => 0
[disk_max] => 0
[disk_min] => 0
[ufc_max] => 3
[ufc_min] => 3
[has_admin_access] => 0
[group_name] => Guests
[can_see_all_albums] => 0
[group_id] => 3
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg148_filetypes; (0s)
[1] => select * from cpg148_plugins order by priority asc; (0s)
[2] => delete from `*****`.cpg148_sessions where time<1188620560 and remember=0; (0s)
[3] => delete from `*****`.cpg148_sessions where time<1187414560; (0s)
[4] => select user_id from `*****`.cpg148_sessions where session_id=md5("c1314f6216bec0106f042b43f954e1d2bcb8bea4b2a2ffef6400f82e0a963413"); (0s)
[5] => SELECT session_id FROM `*****`.cpg148_sessions WHERE session_id=MD5('15c1fbe15aca5bd04c456f4ff0e0543ebcb8bea4b2a2ffef6400f82e0a963413') (0s)
[6] => insert into `*****`.cpg148_sessions (session_id, user_id, time, remember) values ("858fbc0777b8c69e7a127cccc7955150", 0, "1188624160", 0); (0s)
[7] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg148_usergroups WHERE group_id in (3) (0s)
[8] => SELECT group_name FROM cpg148_usergroups WHERE group_id= 3 (0s)
[9] => update `*****`.cpg148_sessions set time='1188624160' where session_id=md5('15c1fbe15aca5bd04c456f4ff0e0543ebcb8bea4b2a2ffef6400f82e0a963413'); (0s)
[10] => SELECT * FROM cpg148_highslide_config (0s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
Page generated in 0.063 seconds - 11 queries in 0 seconds - Album set : ; Meta set: ;
Edit By Sami:
Put debug info to code block
Hi Hein,
The error message mentioned cpg148.
Could this indicate the source of the problem ?
I had upgraded to 1.4.12 and it worked fine until I installed the highslide plug-in.
Just a thought...
did you using highslide before upgrade or this is the first time that you are using plugin ?
Hi Sami,
I had uploaded Highslide, installed it, then uninstall, before I upgraded to cpg 1.4.12.
After upgrading to cpg 1.4.12, I tried to install the plugin again - and ran into the problem.
Okay then you didn't uninstall it properly at the first,
Use a mysql tool such as phpmyadmin and remove highslide_enable from XXX_config table of CPG
Hi Sami,
OK. I've removed the "highslide_enable" file from my ***_config table.
While doing this, I noticed that all my tables has the prefix cpg148.
Isn't this suppose to be cpg 1412 after upgrading?
After upgrading, I actually saw the "new" cpg files - I know because the theme colours were changed.
Isn't this an indication that the files were actually successfully uploaded?
Pse let me know what's next for me to do.
Thanks Sami for your help.
Your table prefix is fine , upgrade process doesn't need to change the table's prefix
Quote from: eka on September 01, 2007, 01:14:58 PM
After upgrading, I actually saw the "new" cpg files - I know because the theme colours were changed.
Isn't this an indication that the files were actually successfully uploaded?
if you were using a custom theme then yes , it means that you over write on your custom theme with original one that comes with CPG
Your next move would be
- Removing highslide from xxx_plugins table (by phpmyadmin)
- re-installing the plugin again
Hi Sami,
You are a god-send!.
I followed your instructions and am now able to access all my cpg files.
Thank you once again !!
Now, I gotta go back to Vuud - I have a problem with cpmfetch - the image on my html page won't upload after I upgraded.
Thankssssss....
Hi Sami,
I need help again.
I tried to reinstall the Highslide plugin via plugin manager.
A page appeared and said click button to install.
I did that and there was an error message.
When I tried to press "install" a second time, the same problem encountered earlier surfaced - there is this blank screen with the message:
"Critical error
There was an error while processing a database query"
What could be the problem?
- First of all give me a link to your gallery
- Enable debug mode so you could see the actual DB error
Hi Sami,
Here's the link to my website: http://www.photograffs.com
(hope I understood what you mean).
Here's the debug info:
"USER:
------------------
Array
(
[ID] => bc9c093262d726da656ddd2b1723978d
[am] => 1
[lang] => english
[liv] => Array
(
[0] => 1686
[1] => 1682
[2] => 1684
[3] => 1542
[4] => 1535
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_name] => photogr1
[groups] => Array
(
[0] => 1
)
[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 3
[ufc_min] => 3
[custom_user_upload] => 0
[num_file_upload] => 5
[num_URI_upload] => 3
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 1
[has_admin_access] => 1
[pub_upl_need_approval] => 0
[priv_upl_need_approval] => 0
[group_name] => Administrators
[upload_form_config] => 3
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 1
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg148_filetypes; (0.084s)
[1] => select * from cpg148_plugins order by priority asc; (0.003s)
[2] => delete from `*****`.cpg148_sessions where time<1188736858 and remember=0; (0.001s)
[3] => delete from `*****`.cpg148_sessions where time<1187530858; (0.006s)
[4] => select user_id from `*****`.cpg148_sessions where session_id=md5("7a896934d7d8362dbccb725450f61ec4bcb8bea4b2a2ffef6400f82e0a963413"); (0.005s)
[5] => select user_id as id, user_password as password from `*****`.cpg148_users where user_id=1 (0.013s)
[6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `*****`.cpg148_users AS u INNER JOIN `*****`.cpg148_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.021s)
[7] => SELECT user_group_list FROM `*****`.cpg148_users AS u WHERE user_id='1' and user_group_list <> ''; (0.01s)
[8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg148_usergroups WHERE group_id in (1) (0.006s)
[9] => SELECT group_name FROM cpg148_usergroups WHERE group_id= 1 (0.004s)
[10] => update `*****`.cpg148_sessions set time='1188740458' where session_id=md5('7a896934d7d8362dbccb725450f61ec4bcb8bea4b2a2ffef6400f82e0a963413'); (0.006s)
[11] => SELECT user_favpics FROM cpg148_favpics WHERE user_id = 1 (0.004s)
[12] => DELETE FROM cpg148_banned WHERE expiry < '2007-09-02 21:40:59' (0.005s)
[13] => SELECT * FROM cpg148_banned WHERE (ip_addr='165.21.155.76' OR ip_addr='116.14.84.102' OR user_id=1) AND brute_force=0 (0s)
[14] => SELECT COUNT(*) FROM cpg148_pictures WHERE approved = 'NO' (0s)
[15] => SELECT value FROM cpg148_config WHERE name = 'theme' (0s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 4.4.1 - OK
------------------
mySQL version: 4.0.16
------------------
Coppermine version: 1.4.8(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.0.16
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/mysql/include/mysql
MYSQL_LIBS -L/usr/local/mysql/lib/mysql -lmysqlclient
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/local/lib/php | .:/usr/local/lib/php
open_basedir | /home/photogr1/:/usr/lib/php:/usr/local/lib/php:/tmp:/var/tmp:/home/vdeck/tmp/:/usr/local/bin/mogrify:/usr/local/bin/convert:/usr/sbin/sendmail | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | -1 | -1
upload_max_filesize | 5M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.282 seconds - 16 queries in 0.168 seconds - Album set : ; Meta set: ;"
- Post a test account so I could login
- I didn't ask for debug info , I said enable it so you could see the actual error instead of "There was an error while processing a database query"
HI Sami,
Created test account:
username: ***
password: ***
I've enabled debug mode.
Thanks.
Edit by Sami:
Removed username/Password for security
Never post an admin account to public board !
You are using mysql 4.0.16 that doesn't support ENGINE option on table creation so you need to manually edit schema.sql that comes with highslide package and remove ENGINE=MyISAM from creation query and then try to install the plugin
Ops..done the unthinkable...
Thanks Sami.
Hi Sami,
I did as you suggested, manually edited Schema.sql - deleted ENGINE=MyISAM - and then tried to install plugin.
It didn't work. Got the same error message :(
post mysql error here
Sami,
I got this from the debug info:
USER:
------------------
Array
(
[ID] => bc9c093262d726da656ddd2b1723978d
[am] => 1
[lang] => english
[liv] => Array
(
[0] => 867
[1] => 881
[2] => 880
[3] => 885
[4] => 264
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_name] => photogr1
[groups] => Array
(
[0] => 1
)
[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 3
[ufc_min] => 3
[custom_user_upload] => 0
[num_file_upload] => 5
[num_URI_upload] => 3
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 1
[has_admin_access] => 1
[pub_upl_need_approval] => 0
[priv_upl_need_approval] => 0
[group_name] => Administrators
[upload_form_config] => 3
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 1
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg148_filetypes; (0s)
[1] => select * from cpg148_plugins order by priority asc; (0s)
[2] => delete from `*****`.cpg148_sessions where time<1188819725 and remember=0; (0.001s)
[3] => delete from `*****`.cpg148_sessions where time<1187613725; (0.001s)
[4] => select user_id from `*****`.cpg148_sessions where session_id=md5("993397a718ee53cb95c35f7aa5486157bcb8bea4b2a2ffef6400f82e0a963413"); (0s)
[5] => select user_id as id, user_password as password from `*****`.cpg148_users where user_id=1 (0s)
[6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `*****`.cpg148_users AS u INNER JOIN `*****`.cpg148_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
[7] => SELECT user_group_list FROM `*****`.cpg148_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
[8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg148_usergroups WHERE group_id in (1) (0s)
[9] => SELECT group_name FROM cpg148_usergroups WHERE group_id= 1 (0s)
[10] => update `*****`.cpg148_sessions set time='1188823325' where session_id=md5('993397a718ee53cb95c35f7aa5486157bcb8bea4b2a2ffef6400f82e0a963413'); (0s)
[11] => SELECT user_favpics FROM cpg148_favpics WHERE user_id = 1 (0s)
[12] => DELETE FROM cpg148_banned WHERE expiry < '2007-09-03 20:42:05' (0s)
[13] => SELECT * FROM cpg148_banned WHERE (ip_addr='165.21.155.69' OR ip_addr='116.14.67.135' OR user_id=1) AND brute_force=0 (0s)
[14] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = '' ORDER BY pos (0s)
[15] => SELECT aid FROM cpg148_albums as a WHERE category>=10000 (0s)
[16] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
[17] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = '1' ORDER BY pos (0s)
[18] => SELECT aid FROM cpg148_albums as a WHERE category = '0' (0s)
[19] => SELECT count(*) FROM cpg148_albums as a WHERE 1 (0s)
[20] => SELECT count(*) FROM cpg148_pictures as p LEFT JOIN cpg148_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
[21] => SELECT count(*) FROM cpg148_comments as c LEFT JOIN cpg148_pictures as p ON c.pid=p.pid LEFT JOIN cpg148_albums as a ON a.aid=p.aid WHERE 1 (0s)
[22] => SELECT count(*) FROM cpg148_categories WHERE 1 (0s)
[23] => SELECT sum(hits) FROM cpg148_pictures as p LEFT JOIN cpg148_albums as a ON p.aid=a.aid WHERE 1 (0s)
[24] => SELECT COUNT(*) FROM cpg148_pictures WHERE approved = 'NO' (0s)
[25] => SELECT count(*) FROM cpg148_albums as a WHERE category = '0' (0s)
[26] => SELECT count(cpg148_albums.aid) FROM cpg148_pictures,cpg148_albums WHERE cpg148_pictures.aid = cpg148_albums.aid AND approved = 'YES' GROUP BY cpg148_pictures.aid (0s)
[27] => SELECT *,cpg148_albums.title AS title,cpg148_albums.aid AS aid FROM cpg148_pictures,cpg148_albums WHERE cpg148_pictures.aid = cpg148_albums.aid AND approved = 'YES' GROUP BY cpg148_pictures.aid ORDER BY cpg148_pictures.ctime DESC LIMIT 0 ,9 (0s)
[28] => SELECT count(*) from cpg148_comments where pid=1680 and msg_id!=0 (0s)
[29] => SELECT count(*) from cpg148_comments where pid=1524 and msg_id!=0 (0s)
[30] => SELECT count(*) from cpg148_comments where pid=1509 and msg_id!=0 (0s)
[31] => SELECT count(*) from cpg148_comments where pid=1481 and msg_id!=0 (0s)
[32] => SELECT count(*) from cpg148_comments where pid=1477 and msg_id!=0 (0s)
[33] => SELECT count(*) from cpg148_comments where pid=1471 and msg_id!=0 (0s)
[34] => SELECT count(*) from cpg148_comments where pid=1457 and msg_id!=0 (0s)
[35] => SELECT count(*) from cpg148_comments where pid=1448 and msg_id!=0 (0s)
[36] => SELECT count(*) from cpg148_comments where pid=1429 and msg_id!=0 (0s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 4.4.1 - OK
------------------
mySQL version: 4.0.16
------------------
Coppermine version: 1.4.8(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.0.16
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/mysql/include/mysql
MYSQL_LIBS -L/usr/local/mysql/lib/mysql -lmysqlclient
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/local/lib/php | .:/usr/local/lib/php
open_basedir | /home/photogr1/:/usr/lib/php:/usr/local/lib/php:/tmp:/var/tmp:/home/vdeck/tmp/:/usr/local/bin/mogrify:/usr/local/bin/convert:/usr/sbin/sendmail | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | -1 | -1
upload_max_filesize | 5M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.116 seconds - 37 queries in 0.002 seconds - Album set : ; Meta set: ;
Hi Sami,
I tried again loading the higslide plugin.
It worked !
Thank you so much for the help and patience in setting things right.
Highslide is an excellent and wonderful feature, no doubt about it.
Thank you so much for that !!
Hi all,
For those of you that are interested in combining the darkening page effects similar to lightbox with HighSlide I have posted a solution on the author's website.
http://vikjavev.no/highslide/forum/viewtopic.php?p=3147#3147
This is for version 3.2.5.
Thanks for contribution :)
Glad to help.
Sami, I have been trying to implement the lightbox effect into the current plugin (v 2.3) but with no luck so far. Do you think that the new version you mentioned that you are working on will be easier to modify since the code may be much closer to Torstein's latest version?
Thanks for your time.
I have to change Torstein's code duo to exist conflict between other JScript and highslide , I'll review your code to see if i could change it to fit in plugin
Thanks, Sami.
After playing around with this a bit, I am wondering if the problem is in the highslide.js file. The one that I modified in version 3.2.5 is
HsExpander.prototype.changeSize = function(dir, x1, y1, w1, h1, x2, y2, w2, h2, dur, steps, oo1, oo2) {
if (dir == 1) DarkenPage();
else LightenPage();
var dW = (w2 - w1) / steps,
dH = (h2 - h1) / steps,
dX = (x2 - x1) / steps,
dY = (y2 - y1) / steps,
dOo = (oo2 - oo1) /steps,
t,
But the corresponding code in the plugin version 2.3 is
cpghs_changeSize : function (key, newWidth, newHeight, newLeft, newTop) {
try {
After the word "function" it doesn't mention the "dir" variable which is referenced when darkening a page. Perhaps the problem is here, but not being a programmer I am not sure how to fix this.
Thanks again for your time.
Torstein change his core code so it's a bit different here
Hi Sami,
Do you know how I might be able to integrate the new version of highslide with the lightbox effect into coppermine without using the plugin? The reason that I am asking is that I have a client who wants to have this effect along with lightbox on their gallery and the launch of their website is coming up quite soon. I know that you are working on the new plugin (in between the paying work! ) and am sure that is a lot of work for you.
Any help is appreciated!
You need to code your plugin based on this plugin and use new highslide.js
Would it just be modifying the the variables in the new highslide.js file similar to the highslide.js file in your plugin? Do you think I would need to modify any other files. (I haven't made a plugin before)
Example: changing graphicsDir
to
cpghs_graphicsDir
Thanks!
Yes just add cpghs_ to every single variable and function
I added the highslide script to my forums, and really enjoyed what i saw, so I decided to attempt the same in my coppermine gallery, but failed miserably. I found a link from vikjavev.no/highslide/ that brought me to this thread. The plugin didn't work for me, but the help you gave others helped me as well and now it's working great. Thank you very much. :)
A couple of things to point out - selecting bordless doesn't really make it borderless. I hade to change line 225 of codebase.php from "border: 2px solid white;" to "border: none;". The rest can be done from the highslide.css file.
For some it may be seen as a hindrance to have to click the intermediate image before you can continue to the details. For instance, if it's my image, I don't really need to see the intermediate image, but I'm more interested in going directly to the comments, etc... My original plan was to make a link under each thumb that would take you to the details page, bypassing the intermediate step. Perhaps a similar option you might want to consider when making future updates.
either way, the script and the plugin are both great. Currently it's the only plugin I have on the gallery. :)
Thanks again
Thanks to Sami for the great plug. Been a long time no changes to highslide plug in, so I decided to do a new version (hope Sami won't kill me for that) to better suit my own needs - probably it's interesting for others, too.
============================================= v2.4 - 2007/10/25 - 18:00 GMT
by Timos-Welt (http://www.timos-welt.de)
New features:
=============
- German language added
- Latest version of highslide.js by Torstein Hnsi (3.2.10), this will give you
- better optics
- better browser compatibility
- animation uses less resources, especially with IE
- fixed memory leak with IE
- no more flickering in IE 7
- For more information about changes of the java script, see http://vikjavev.no/highslide
- All css stuff is now in include/highslide.css to make it easier to adapt the optics
to your own needs.
Missing features from prev. version:
====================================
- I did _not_ change function and variable names in highslide.js to cpghs_... - if the plug in
gives you javascript errors, please use v2.3 instead!
Fixes:
=======
- Fixed invalid XHTML if one thumbnail was diplayed twice on index page
(e. g. in last uploaded _and_ top rated) by using $iCaptionCounter variable
to avoid equal id attributes.
- Now compatible with funny file names if you want. Previous versions would not
open intermediate but full size picture if filename contained special
characters (e. g. space, (, ), [, ] ...) - Coppermine can cope with these
file names, so the plug in should as well. There's an additional option
on the configuration page now to force highslide to always open the inter-
mediate size. Better way would be to use an alternative to is_file, but I didn't
find one. Come on you PHP experts! ;)
- highslide.js is delivered in a packed and unpacked version to save load time.
If you want to do changes (e. g. change the slide parameters), use the un-
packed version and rename it to highslide.js
- Parameter 'Apply to index & meta albums' and 'Apply to all pages' were wrong
way round; changed these in the language files.
Known Issues:
==========
- Image view will still not count
- Will not work if you have custom title on thumbnails!
- Slightly different optics between IE, Firefox and Opera when using Caption (CSS problem?)
Installation:
=========
- De-install any previous version, delete the database table if asked.
You can find a demo of v2.4 at http://pics.timos-welt.de
Remember to have fun! ;)
regards
Timo
Thank you very much Timo for your contribution :)
Timos-Welt thanks for this update. I sure Sami does not mind ;)
@Sami. When i uploaded this highslide, or your 2.3, i get a error from plugin manager saying there was a critical error while retrieving data from the database.
The only thing i did lately was moving cpg from root to /cpg folder. Did i mis anything while doing that which now causes this error ?
Cheers
Hein
Enable Debug mode and post actual error
While executing query "SELECT * FROM cpg1410_highslide_config" on 0
mySQL error: Table 'sn1275.cpg1410_highslide_config' doesn't exist
Sami, i am not a mysql wizzard but i erased every mentioning of highslide in the db. Reuploaded a freshly downloaded highslide and stil get this. What could be wrong ?
Cheers
Hein
Uninstall plugin and try to install it again
Can't even do that. When i upload the highslide folder to the plugins folder and then go the admin side of my cpg it locks up displaying the error.
Ok ,then manually remove highslide from xx_plugin table and then re-install it ;)
Sorry, forgot to mention i did that already. Deleted the highslide entry in mysql, reuploaded all. Now i got a install button and when i click that the same thing happens.
Do you want debug attached to a post ?
No
Sorry forgot to mention
Please also remove highslide_enable from xxx_config
I owe you a coffee Sami, never thought about looking in that table. Thanks, it's working again!
(maybe update the first post a bit ?)
The problem raise when user manually remove plugin instead of uninstalling it
To circumvent this issue, you may add a check to the install routine that determines if the entry in the config table already exists.
So here's the next version ;) :
============================================= v2.5 - 2007/10/27 - 17:00 GMT
by Timos-Welt (http://www.timos-welt.de)
New features:
==========
- New Option to count views via Highslide as real views, so picture counter increases
accordingly (experimental)
IMPORTANT: For this to work, you MUST copy hscnt.php to your gallery root!
Still missing features from v 2.3:
========================
- I did _not_ change function and variable names in highslide.js to cpghs_... - if the plug in
gives you javascript errors, please use v2.3 instead!
Fixes:
====
- Slightly different optics between IE, Firefox and Opera when using Caption (fixed)
Known Issues:
==========
- Parameter 'Apply to index & meta albums' and 'Apply to all pages' are wrong
way round when not in SEF compatibility mode
- Will still not work if you have custom title on thumbnails
Install:
=====
- Completely remove previous version via PlugIn manager page. If asked, delete settings table.
- Upload highslide folder to plugins folder.
- Upload hscnt.php to your gallery root.
- Install via PlugIn manager page.
To Come:
=======
Next Version will have a bunch of completely different layouts for the hs window easily selectable and with example images, a completely new and easier settings page, and the fix gaugau mentioned in the previous post.
Demo of v2.5:
==========
http://pics.timos-welt.de
Remember to have fun! ;)
regards
Timo
Quote from: Timos-Welt on October 27, 2007, 05:25:34 PM
New features:
==========
- New Option to count views via Highslide as real views, so picture counter increases
accordingly (experimental)
IMPORTANT: For this to work, you MUST copy hscnt.php to your gallery root!
Installed 2.5 and it works. It now also counts the number of views. Good job Timos ;D
Cheers
Hein
Thanks Hein, glad that it works for you! :)
Please keep in mind, that you may _not_ exchange highslide.js to the one you can download at http://vikjavev.no/highslide because I had to remove a function for preload of pictures; else every preload would have been counted as picture view.
regards
Timo
I'd like to update to the latest but my previous version of highslide.js had the following onload event added - so as to work with other mod(s):
// MY onload handler
hs.cpghs_graphicsDir = '/gallery/plugins/highslide/graphics/';
hs.cpghs_loadingText = 'Loading...';
hs.cpghs_loadingTitle = 'Click to cancel';
hs.cpghs_restoreTitle = 'Click to restore thumbnail';
hs.cpghs_outlineType = 'rounded-white';
window.onload = function() {
hs.cpghs_preloadImages();
}
If I use the latest version - then when a picture is clicked the loading just goes on and on (with no action)
If I use MY previous version - I get the image to popup but its not formatted or acting with the smooth Highslide opening
Can you tell me how I should fix this?
Thanks!
Delete any cpghs_ from the code you pasted, and it should work. See changelog:
> Still missing features from v 2.3:
> ========================
> - I did _not_ change function and variable names in highslide.js to cpghs_... - if the plug in
> gives you javascript errors, please use v2.3 instead!
regards
Timo
perfect Timo - thanks!
counter works great too!
Why not... here's v 3.0, and I hope you will love it as much as I do :)
============================================= v3.0 - 2007/10/29 - 22:30 GMT
by Timos-Welt (http://www.timos-welt.de)
New features:
==========
- Shorter URLs when 'count slide views as real views' turned on
- New config page with graphical color selection
- File names with special characters won't prevent loading of intermediate pictures
(experimental)
- New layout 'Beleved'
- Selectable colors, animation speed and resolution
Still missing features from v 2.3:
========================
- I did _not_ change function and variable names in highslide.js to cpghs_... - if the plug in
gives you javascript errors, please use v2.3 instead!
- I have no idea of JavaScript, so I simply can't do that. ??? If you know JavaScript, feel free
to change these beasts and mail them to me ( Timo at timos-welt.de ). :)
Fixes:
====
- Parameter 'Apply to index & meta albums' and 'Apply to all pages' were wrong
way round when not in SEF compatibility mode - fixed
- Broken links to authors on config page - fixed
- Option 'Count views via Highslide as real views' used to count several times
with Opera browser. In Opera, the picture counter was increased the 1st time
when loading the thumbnail page without doing anything else, the 2nd time when
clicking on a thumb to enlarge it, the 3rd time when clicking on the enlarged
pic to reduce it to thumb size. From now on, Opera users will not be
counted via HighSlide at all, preventing false statistics. I have checked
several other browsers (IE, FF, Safari) - none of them behaves this way - fixed
- Invalid XHTML with certain file names - fixed
- Moving 'loading' animation is finally back
Known Issues:
===========
- Will not work if you have custom title on thumbnails
- If 'Link to intermediate' is set to 'yes', and visitor clicks on 'detail' link,
image counter will increase again, so his view will be counted twice.
To Do:
=====
- Better installation protection if old version wasn't uninstalled correctly.
Install:
=====
- Completely remove previous version via PlugIn manager page. If asked, delete settings table.
- Upload highslide folder to plugins folder.
- Upload hscnt.php to your gallery root.
- Install via PlugIn manager page.
Demo of v3.0:
==========
http://pics.timos-welt.de
I must thank Sami again for the wonderful Highslide feature.
Just a thought, is it possible to include the title in the image that pops up.
I know the title is already given just below the thumbnail.
But if it can be shown on the pop up as well, it would be great (at least for me).
I've no idea what needs to be amended in the codes.
Appreciate it if you can help. Thank you.
First: great Plug-in!
Just two little things: just upgraded from Highslide 2.3 to 3.0. Now the perfomance when sliding is worse in Firefox, than with 2.3. In Internet Explorer the performance is fine. Any ideas why?
Then another feature would be nice: A big/small button, so that you can choose from inside of the slide, which size you prefer. I want something like this: you click on the image, the image shows in intermediate size. Now you can click on a button to make the slide original size. When you press the button again it toggles back to intermediate size. With that little feature this plug-in would be perfect.
Anyway: great work! Keep it going on....
Greets,
Tabbo
>First: great Plug-in!
Thanks!
>Now the perfomance when sliding is worse in Firefox, than with 2.3
Try these settings:
* Expand Steps: 10
* Expand Duration: 250
* Restore Steps: 10
* Restore Duration: 250
That's the fixed settings that came with v2.3.
Between v2.3 and v3.0 of this plugin, there were more than 30 different versions of the original highslide.js script. It's quite probable that the script has been modified in a very intensive way by the author Torstein Hønsi, so v3.0 may perform very differently to v2.3 (well, it doesn't here, but it may).
The latest version is surely the best option, because of the loads of bugs and fixes Torstein implemented, and because browser compatibility of the v2.3 version (highslide.js v 2.0.2 was released in September 2006) isn't the best possible. Have a look at the change log for details (http://vikjavev.no/highslide/changelog.php).
You could also try the unpacked version of the script (rename highslide.js to highslide_packed.js and highslide_unpacked.js to highslide.js; would be interesting, if performance is altered by the compression.
>A big/small button, so that you can choose from inside of the slide, which size you prefer.
If you select full size and the pic is larger than the browser window, it will be shrinked to fit, and after half a second a symbol will appear in the lower bottom corner to enlarge it to real size. That's all the script can do ATM.
regards
Timo
Timo,
Great work on improving the plugin Sami started. I do have one little issue. When i go to the HighSlide config and choose a different colour for the frame etc.. after saving the settings it always goes back to default. Did i mis setting an option ?
Hello Hein,
custom colors only work for the square styles, not for rounded white and not for beleved, because they don't make sense there IMHO. Have a look what's written behind the style names in style drop down menu. ;)
I knew it.. lacking coffee i guess. In between jobs so i don't get my usual amount ;) Thanks.
QuoteYou could also try the unpacked version of the script (rename highslide.js to highslide_packed.js and highslide_unpacked.js to highslide.js; would be interesting, if performance is altered by the compression.
Tried it. There is no impact on the performance in Firefox. Sorry: I am not able to help anymore, as I am migrating to Gallery2. It has better rights management than coppermine.
Anyway thanks for the help....
Seems to be a firefox windows problem only, my linux version works as expected. I'll report this to Torstein ASAP. Thanks for checking, and good luck with gallery2.
Note: In the meantime, a new version 3.03 has been released, look here (http://forum.coppermine-gallery.net/index.php/topic,36558.msg249466.html#msg249466).
If there won't be found an evil bug in this version, it will be the last version released by me. I've done all that my PHP knowledge allows me to do (and I don't know _anything_ of PHP! ;) ). I really hope development of this fine product goes on in the future. If this one is stable, Sami could update the first post of this thread accordingly if he likes to.
============================================= v3.01 - 2007/10/31 - 18:00 GMT
by Timos-Welt (http://www.timos-welt.de)
New features:
==========
- Bunch of new rounded layouts in different colors
- Preview function and quite some JavaScript stuff on config page
Edit 2007/11/08:
- Dutch language added (thanks to Harald)
Fixes:
====
- Bad performance using Opera with 'count hs views as real views' turned on - fixed
Still missing features from v 2.3:
=======================
- I did _not_ change function and variable names in highslide.js to cpghs_... - if the plug in
gives you javascript errors, please use v2.3 instead!
- I have no idea of JavaScript, so I simply can't do that. If you know JavaScript, feel free
to change these beasts and mail them to me ( Timo at timos-welt.de ).
Known Issues:
===========
- Will not work if you have custom title on thumbnails!
Install:
=====
If you already have 3.0 installed, simply overwrite highslide folder with the one included.
If not:
1. Uninstall any previous version.
2. Delete settings table if asked.
3. Copy Highslide folder to your plugins folder.
4. Copy hscnt.php to your gallery root.
5. Use plugin manager to install it.
Always remember to have fun! ;)
regards
Timo
Tested it on my own cpg site and it works. I really like the preview function which you build into this latest version ;) Good work Timo.
Initial thread Updated with reference to Timo's ver3.01 ;)
Thanks Hein (found that neat orange style yet?) ;D
Thanks Sami!
Timo,
Thanx for this great plugin update.
Really like it now.
Made a dutch language file translation, perhaps someone likes it.
Harald
www.haraldlabout.nl/fotografie
Thanks Harald,
I've updated the ZIP file.
Is it possible to have EXIF jpg data (ex. iso, f stop) on a highslide popup window under the picture? I currently have filename,filesize ,data added, but I would really love to be able to add EXIF data. Thanks for response.
great plugin.. but here two questions:
--> is there a way to disable it for Videos or Youtube movies?
--> the latest version fails to work. V2.3 worked fine.. then completely uninstalled, and V3.01 installed..
When clicking on a pic, the loading appears.. and thats it.. nothing else (have played with all kind of config options...)
Any ideas?
Thanks a lot!
Cheers
Excellent plug-in !
Please accept my donation for your time and effort (even if my site is non-commercial).
I really like that the hit-counter keeps working. It is very important for my site and it
was the reason for not installing it earlier.
I got the plugin to work and works fine. Sometimes the browser crashes after updating
the settings, but I will test some more to see if it's not a browser/firewall issue.
Question: Can you make it possible that the last items clicked also show up under "last viewed" ?
Cheers !
holyworld wrote:
>the latest version fails to work. V2.3 worked fine.. then
>completely uninstalled, and V3.01 installed.. When clicking
>on a pic, the loading appears.. and thats it.. nothing else
>(have played with all kind of config options...)
If 3.01 doesn't work for you, it's most probably a concurrating Javascript in your Theme/Addon/Modpack. In this case, you'll have to use 2.3.
>Question: Can you make it possible that the last items clicked
>also show up under "last viewed" ?
I'll have a look at it for next version of the plugin, but this will take some time, at least until next Highslide javascript version is out.
regards
Timo
Hi, since I upgraded to CPG 1.4.14, Highslide has stopped working. What's more: thinking it was because I might need HS v3.01, I uninstalled v2.3, and even though I uploaded the highslide folder into my plugins directory, Highslide doesn't appear in the Plugin Manager at all.
Has anyone else had this problem?
Thanks
Since using Highslide, the intermediate page gets viewed less.
I would like to know to which page I can add the Google Analytics code
so that the hit-counter keeps on working and counting each time that
a pic is opened with Highslide.
The code is HTML, can I just use this code in a HTML page ?
Thanks !
<html>
<body>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">_uacct = "XX-XXXXXXX-X";urchinTracker();</script>
</body>
</html>
EDIT: Might have got something with minor changes. Still testing it out and will post the results shortly.
I also manages to put only the view-counter below the pic (in highslide) but it did not look that nice to me.
Anyone know how I just put selecter attributes below a pic ?
Thanks !
Timos-Welt,
thanks for your tip.
The fix is:
make sure, that you have in your template the following line:
<script type="text/javascript" src="scripts.js"></script>
If its missing.. it will not work... THANKS!
Remaining issue: How to disable it for youtube or other videos.. the low res pictures shows up correctly.. but not nessary.. as you want to go straight to the full view.
Cheers
To type it first: I love this PlugIn!
Now, heading over to the installed stuff:
- Coppermine Photo Gallery 1.4.9 (stable)
- Theme: fruity (changed by me)
- no other mods/PlugIns
And now the bad news.
I used to use the V2.3 of HJighSlide. Now I wanted to update to V3.01. Uninstalled the old PlugIn, erased the tables, removed the folder and installed the new one. Everything worked fine, until I clicked on a thumbnail to expand it. The thumbnail page disappeared and the picture was displayed on a blank screen (as using "Bild anzeigen" via Right-Click on a picture). Can anyone tell me what ist happening? I tried all version down to 2.4, unless I had to re-install V2.3. I just want the 'counting'-feature to get to work.
Help would be wonderful...
Stay healty and please keep on developing such great stuff...
Lars
Quote from: LarsP on December 11, 2007, 11:16:42 AMstuff:
- Coppermine Photo Gallery 1.4.9 (stable)
Upgrade to 1.4.14 a.s.a.p. :D
Quote from: LarsP on December 11, 2007, 11:16:42 AM
To type it first: I love this PlugIn!
Now, heading over to the installed stuff:
- Coppermine Photo Gallery 1.4.9 (stable)
- Theme: fruity (changed by me)
- no other mods/PlugIns
And now the bad news.
I used to use the V2.3 of HJighSlide. Now I wanted to update to V3.01. Uninstalled the old PlugIn, erased the tables, removed the folder and installed the new one. Everything worked fine, until I clicked on a thumbnail to expand it. The thumbnail page disappeared and the picture was displayed on a blank screen (as using "Bild anzeigen" via Right-Click on a picture). Can anyone tell me what ist happening? I tried all version down to 2.4, unless I had to re-install V2.3. I just want the 'counting'-feature to get to work.
Help would be wonderful...
Stay healty and please keep on developing such great stuff...
Lars
Hi Lars,
please re-install v3.01 and post a link to your gallery.
regards
Timo
Is it possible to have in the Window instead "Details Close" this "Details Full Screen Close"
If so, I'd greatly appreaciate it if somebody could tell me how to do it, please.
Hello
I have instaled version 2 of highslide on my website,it worked well but when i instaled the latest version 3 it doesn't work,all it does is loading and loading forever.Is there something i could do to fix this,i am using i_feel_dirty2 theme.
Thank You
Hi again,
sorry for being so busy at work... but ....
Finally here's my gallery-link:
http://www.bibi-und-lars.de/album/index.php (http://www.bibi-und-lars.de/album/index.php)
I've updated to 1.4.12 (stable) already (it busted my customized theme >:() and reinstalled HS3.01. Still no other plug-Ins and now an unchanged theme.
Still the same problem with opening the pictures as described before.
The gallery is on my site running in a frame.
Maybe there is coming up a clue on my problem?
Thank you very much in advance and I wish all of you a merry christmas - combined with a healthy life!
CU,
Lars
Quote from: LarsP on December 25, 2007, 01:17:21 PM
Finally here's my gallery-link:
http://www.bibi-und-lars.de/album/index.php (http://www.bibi-und-lars.de/album/index.php)
I've updated to 1.4.12 (stable) already (it busted my customized theme >:() and reinstalled HS3.01. Still no other plug-Ins and now an unchanged theme.
Still the same problem with opening the pictures as described before.
Hi Lars,
sorry for the late response - I spent some time in egypt ;) - seems to work fine?
Your gallery works beautifully here (tried e. g. http://www.bibi-und-lars.de/album/thumbnails.php?album=6).
Highslide effect is fine, too.
regards
Timo
QuoteYour gallery works beautifully here
Yes it's true, all work perfectly ;)
PYAP
Hello and a happy new year!
You're obviously right! Tried it today and everything worked fine. I suppose I've done a essential mistake: I didn't emptied my local cache! :-[
I think this has to be the clue. But whatsoever - it works!
Thanks for your help and for developing such a great and nice piece of software...
Wishing you all the best.
CU,
Lars
How can I modify highslide to ask for username/password if the user is not logged in? In other words I want the guest to be able to see thumbnails and browse through categories but only see thumbnails and when the gust clicks to view a picture it would ask him to log in. Thanks for response
Is there a possibility to show next/previous arrows to scroll through albums?
And could the comments from coppermine also be displayed in the popup?
Quote from: grrrrr on February 12, 2008, 10:26:27 AM
Is there a possibility to show next/previous arrows to scroll through albums?
And could the comments from coppermine also be displayed in the popup?
I am also looking for this feature. The plugin is great but without next buttons its a lot of clicking when viewing larger albums.
Hello,
I'd like to start off by saying that I love Highslide! Thanks you so much for creating it!
I was hoping to get it working with the Slider mod in Coppermine (link here: http://coppermine-gallery.net/forum/index.php?topic=41197.0 (http://coppermine-gallery.net/forum/index.php?topic=41197.0)).
My Coppermine albums page: http://woodardphotos.net/coppermine/index.php (http://woodardphotos.net/coppermine/index.php)
Coding something like this is a bit beyond me, and any help would be greatly appreciated!
Thanks for your time.
- Jake
Note: In the meantime, a new version 3.04 has been released, look here (http://forum.coppermine-gallery.net/index.php/topic,36558.msg260115.html#msg260115).
============================================= v3.02 - 2008/03/20 - 01:00 GMT
by Timos-Welt (http://www.timos-welt.de)
New features:
==========
- Control bar with next/previous arrows
Still missing features from v 2.3:
=======================
- I did _not_ change function and variable names in highslide.js to cpghs_... - if the plug in
gives you javascript errors, please use v2.3 instead!
- I have no idea of JavaScript, so I simply can't do that. If you know JavaScript, feel free
to change these beasts and mail them to me ( Timo at timos-welt.de ).
Known Issues:
===========
- Will not work if you have custom title on thumbnails!
Install:
=====
If you already have 3.0 or 3.01 installed, simply overwrite highslide folder with the one included.
If not:
1. Uninstall any previous version.
2. Delete settings table if asked.
3. Copy Highslide folder to your plugins folder.
4. Copy hscnt.php to your gallery root.
5. Use plugin manager to install it.
Always remember to have fun! ;)
regards
Timo
Thanks for the update! It works like a dream!
Any hope of getting Highslide v3.02 to work with Slider? (see my post above http://forum.coppermine-gallery.net/index.php/topic,36558.msg247850.html#msg247850 (http://forum.coppermine-gallery.net/index.php/topic,36558.msg247850.html#msg247850)
I'm just porting the slider mod to a plugin, the plugin will be compatible of course. Gimme just a few more days, ATM I'm doing the configuration stuff.
Look here for the plugin in action: http://pics.timos-welt.de
regards
Timo
Thanks Timo!
I'm looking forward to it!
- Jake
Note: In the meantime, a new version 3.04 has been released, look here (http://forum.coppermine-gallery.net/index.php/topic,36558.msg260115.html#msg260115).
============================================= v3.03 - 2008/03/31 - 01:00 GMT
by Timos-Welt (http://www.timos-welt.de)
New features:
=============
- can now be used together with plugins 'Imageflow' and 'Slider'
Still missing features from v 2.3:
==================================
- I did _not_ change function and variable names in highslide.js to cpghs_... - if the plug in
gives you javascript errors, please use v2.3 instead!
- I have no idea of JavaScript, so I simply can't do that. If you know JavaScript, feel free
to change these beasts and mail them to me ( Timo at timos-welt.de ).
Known Issues:
=============
- Will not work if you have custom title on thumbnails!
- If 'Link to intermediate' is set to 'yes', and visitor clicks on 'detail' link,
image counter will increase again, so his view will be counted twice.
Install:
=====
If you already have 3.0, 3.01 or 3.02 installed, simply overwrite highslide folder with the one included.
If not:
1. Uninstall any previous version.
2. Delete settings table if asked.
3. Copy Highslide folder to your plugins folder.
4. Copy hscnt.php to your gallery root.
5. Use plugin manager to install it.
Always remember to have fun! ;)
regards
Timo
Edit: Added spanish language to zip.
very nice updates on this script. thank you.
can it be added to other places in the gallery that have thumbs? such as the upload page (or better, jupload), or when you "edit files" in the album?
Thank you for your great job !
The script works like a charm in Coppermine 1.4.16. Tested on Firefox v2.0.0.13, Opera v9.26 and Internet Explorer v6.0.29 (not 7 because I just hate IE...). Also compatible with Lightbox Slideshow (on detail-intermediate page).
Installation and use are very simple (even for ma gran'ma) ;D
Once again, THANKS !
Really fine Job.. congratulations!
is the v3.03 already working with Slider?
i attach the spanish lang
Thanks!
I'm currently working on a complete replacement for Highslide, because I think that Highslide has become too fat for what it's needed in a image gallery like Coppermine, and I don't like its license. The replacement plugin will work together with Slider, Imageflow and both will be able to utilize it. See here for beta version of the script: http://enlargeit.timos-welt.de/
Give me some more days to finish it. I had to learn JavaScript and its DOM from scratch, so there's still plenty of room to improve it.
Thanks for the spanish language file, I'll add it to the ZIP.
Highslide and Slider can be installed at the same time, but Slider will currently not use the Highslide effect.
regards
Timo
Edit: Link corrected.
You have been working since yesterday, im following the process at the alpha - link. Looks really good! By the way im asking myself how serch engine friendly is to use this plugin. mmm :-\
let me know if i can help you with some icon or whatever realated with design
Cheers!
Thanks for share your work!
I've corrected the link; EnlargeIt! is now beta. I'm working really hard on it.
Please start a seperate thread for your plugin. Postings related to your plugin mustn't go into this thread, as the codebase differs.
i managed to get this working on thumbs almost everywhere on my site, edit pics thumbs, jupload thumbs, etc. it's great.
Thank you for your help :)
I've installed your plug in at www.bark.ch (http://www.bark.ch) and I like it very much.
The problem of the "missing" intermediate (mid-size) image still remains when a visitor clicks "detail" at the bottom of the larger image on our CPG website. This takes the visitor, still, to the same page as before, where the intermediate image resides, and when it's the page for one of the problematical images --- my brother-in-law doing his hood ornament impression, for example --- CPG still comes up with the message that the page can't be found.
I have played around with the settings on your plug-in. If I don't "link to intermediate" then this isn't a problem, but then the visitor can't see details about the image, vote, add comments, send an e-card, etc.
So while I like your plug-in and wish to keep it on our website --- it unfortunately hasn't solved the problem of the missing intermediate (mid-size) images.
Can you plug-in get the image details, e-cards, etc. without the intermediate image?
Fantastic plugin, but V3.03 does not work... Any hints whats wrong with "conflicting" scripts?
http://unmomento.net.lorca.ch-meta.net/index.php?cat=31
resp. have a look at the source code below.. IE complains that
QuoteQuotehs.expandSteps = ;
has a syntax error.. Opera does not.
Thanks a lot!
Cheers
<link rel="stylesheet" title="Standard" href="plugins/imageflow/js/screen.css" type="text/css" media="screen" />
<script language="JavaScript" type="text/javascript" src="plugins/imageflow/js/imageflow.js"></script>
<style type="text/css">
#imageflow{background-color:#000000;width:870px;}
#imgflowcontainer{margin-top:0px;width:870px;}
#imgflowslider{background-image:url('plugins/imageflow/js/slider.gif');}
</style>
<link rel="stylesheet" href="themes/unmomento/style.css" />
<link rel="stylesheet" href="plugins/highslide/include/highslide.css" type="text/css" />
<script type="text/javascript" src="scripts.js"></script>
<script type="text/javascript" src="plugins/highslide/highslide.js"></script>
<style type="text/css">
.highslide-image {border: px solid ;
cursor: url('plugins/highslide/graphics/zoomout.cur'), pointer; }
.highslide { cursor: url('plugins/highslide/graphics/zoomin.cur'), pointer; }
.highslide_dtails { color: ; }
.highslide_dtails_over { color:; }
.highslide-caption { border: px solid ;
background-color: ; }
.highslide-loading { background-image: url('plugins/highslide/graphics/loader.gif'); }
.hscontrolbar { background: url('plugins/highslide/graphics/controlbar5.gif'); width: 167px; height: 34px; margin-top: 25px; margin-right: 25px; }
.hscontrolbar a:hover { background-image: url('plugins/highslide/graphics/controlbar5-hover.gif'); }
</style> <script type="text/javascript">
hs.graphicsDir = 'plugins/highslide/graphics/';
hs.loadingText = 'Loading...';
hs.loadingTitle = 'Click to cancel';
hs.restoreTitle = 'Click to restore thumbnail';
hs.expandSteps = ;
hs.expandDuration = ;
hs.restoreSteps = ;
hs.restoreDuration = ;
hs.captionSlideSpeed = ;
hs.allowMultipleInstances = ;
hs.fullExpandTitle = 'Click for original size';
// remove the registerOverlay call to disable the controlbar
hs.registerOverlay(
{
thumbnailId: null,
overlayId: 'hscontrolbar',
position: 'top right',
hideOnMouseOut: true
}
);
</script>
</head>
<body><div id="highslide-container"></div>
Hello holyworld,
seems as you had an older version of hs installed (<3.0) and did not uninstall correctly deleting the table. Should be easy to fix: Uninstall with delete settings table, then re-install.
regards
Timo
Timo,
thanks a lot for your answer... did uninstall..
and during install, when hitting "Install" the following shows:
Critical error
There was an error while processing a database query
While executing query "SELECT * FROM cpg132_highslide_config" on 0
mySQL error: Table 'xxx.cpg132_highslide_config' doesn't exist
File: /home/httpd/vhosts/xxx/httpdocs/include/functions.inc.php - Line: 249
b.t.w ImageFlow works just fine.. similar installation.. but here it fails to create this table. HAve even tried to create it by myself.. did not help.
Any hint?
Thanks a lot!
Make a db backup. Find your config table (for the whole CPG, not only for highslide) and look for a value named "highslide_enable". If you find it, delete the corresponding line from the table (not the whole table!). Installation should work then.
This was THE hint... it works now!
Thanks a lot for this fanstastic plugin!
cheers
Hello
I try to install this excellent pugin but i have a problem.
All installation is ok but when i click on a photo, i have the message loading but notihing appear.
Could you help me ?
Sorry for my english, but i'm french...
Thanks for the excellent script, I got this working in 10 secs flat and it makes a nice addition to my gallery, I would highly recommend this to other users :)
Thanks again :)
@fil6718: Link to your gallery?
www.famille-rosset.fr
Open hscnt.php with an editor. Replace 1st line
<?
with
<?php
Should work then.
regards
Timo
It's work now very well.
Thanks a lot for your very quickly help.
I don't know why this change can make the plugin in work
Most servers accept <? or <?php to start a php code section in a php file. <?php is the 'more correct' way, and your server requires this more correct way. I'll fix this in the next version, if there should be one.
;)
Timo, you're of course right that short tags work on most servers. However, it's best practise for coders to always use the long tags, as they will work on all server setups no matter what. The useage of short tags is considered to be a sign of sloppy coding.
Hello all,
I'm having a problem with my Highslide v3.03 plugin in ie7. When a thumbnail image is clicked on, the image appears by itself without any Highslide animation. This does not happen with ie6 or Firefox 2.0.0.14 (the functionality works perfectly in both ie6 and Firefox 2.0.0.14).
Here is a link to my gallery: removed
I've uninstalled the Highslide v3.03 plugin, then reinstalled it hoping that the ie7 issue would somehow be magically fixed, to no avail.
Although I personally don't use ie7, most of my visitors do (60% according to Google Analytics), so I would like to resolve this issue.
Any help would be greatly appreciated.
- Jake
Follow up
It was an issue with my ie7 configuration. After going to tools - internet options - advanced (tab) - and clicking on the "reset" button, the problem went away.
Sorry for the "wasted" posting.
- Jake
Quote from: Timos-Welt on May 19, 2008, 02:14:57 PM
Open hscnt.php with an editor. Replace 1st line
<?
with
<?php
Should work then.
regards
Timo
Hey Timos-Welt, dear i m having the same problem with highslide upon clicking it says loading but nothing happens. i tried ur suggestion i.e
QuoteOpen hscnt.php with an editor. Replace 1st line
<?
With
<?php
But i cant find tht file in highslide folder even there is no .php file in tht. please healp
If your installed the plugin correctly, hscnt.php is located in the root folder of your gallery. Open it and do as I wrote.
Hello there,
I have installed this plugin and it works great.
I have further question?
Can I used this plugin combining with the cpmfetch.?
I want to display the pictures comes from cpmfetch just like the highslide do in my gallery index.
Any idea? :rolleyes:
No.
New maintenance release! This one will be the very last Highslide plugin release that is done by me. I'll concentrate on the EnlargeIt! plugin in the future, because I have full control over both the php and the javascript parts of EnlargeIt!, and it has much better possibilities. I hope you understand this.
============================================= v3.04 - 2008/06/25 - 01:00 GMT
by Timos-Welt (http://www.timos-welt.de)
Fixes:
====
- Fixed php short tags in hscnt.php
Install:
=====
If you already have 3.0, 3.01 or 3.02 or 3.03 installed, simply overwrite highslide folder with the one included and overwrite hscnt.php in root folder with the one included.
If not:
1. Uninstall any previous version.
2. Delete settings table if asked.
3. Copy Highslide folder to your plugins folder.
4. Copy hscnt.php to your gallery root.
5. Use plugin manager to install it.
Always remember to have fun! ;)
regards
Timo
During install 3.04 says
Cannot redeclare my_is_file() in /home/u29701/etennis.mobitek.biz/www/cpg1416/plugins/highslide/codebase.php on line 452
What's wrong?
List which other plugins you have installed?
Имя CAPTCHA v3.0
Автор bmossavari at My Project
Описание Fighting with spam with CAPTCHA,
Configuration By default confirmation will not show for register users , comment out those lines under codebase.php if you want confirmation for all
Имя Slider v2.03
Автор Timos-Welt based on a mod by pbasmo
Описание Shows a JavaScript slider on album list page with EnlargeIt! integration
Имя Copper ad v1.2.4 (Stable)
Автор BMossavari
Описание A plugin to allow admin to set simple advertisement on gallery.
I has EnlargeIt! v0.86, but I uninstall it
You're not allowed in another language but English here.
That's just a copy/paste of the plugin screen that happens to be in Russian.
@Timos-Welt: I don't see the point of the my_is_file() function. It does nothing useful, so might as well just use is_file().
// cheking for file (Intermadiate) availablity
function my_is_file($file)
{
if(is_file($file))
return true;
else
return false;
}
If you really need it then wrap it in a function_exists() check to prevent it being defined twice.
I think it's a part of some ancient code from Highslide v2. Most of the things Sami coded are really clever, so I don't touch them without urgent need. BTW, I won't update the Highslide plugin anymore and recommend to use the EnlargeIt! plugin instead.
To joginvik:
Open codebase.php with a text editor and find all instances of my_is_file and replace by my_very_own_wurstsuppe, that should fix your special problem.
regards
Timo
thanks, it's working now ;D
the problem was that I previosly install Highslide, then Enlarge it, then uninstall both and then during the new installation of Highslide there were some problems
I've found a issue. When using Timos-Welt latest build and i've moved the coppermine copyright text (Powered by coppermine) i don't get the next / previous controls to show up.
You can see my gallery here: http://83.226.208.220/celebrities (http://83.226.208.220/celebrities)
Anyone know how to get around this?
That's a problem of your skin; Highslide expects a string like
<div class="footer">
in your HTML, but your skin uses
<div id="footer">
Two possible solutions:
1. Change id to class in your theme, or
2. Open codebase.php, find the following:
// Addition for control bar
$html = str_replace('<div class="footer"','<div id="hscontrolbar" class="highslide-overlay hscontrolbar">
<a href="#" class="previous" onclick="return hs.previous(this)" title="'.$lang_plugin_highslide['controlbarprev'].'"></a>
<a href="#" class="next" onclick="return hs.next(this)" title="'.$lang_plugin_highslide['controlbarnext'].'"></a>
<a href="#" class="highslide-move" onclick="return false" title="'.$lang_plugin_highslide['controlbarmove'].'"></a>
<a href="#" class="close" onclick="return hs.close(this)" title="'.$lang_plugin_highslide['controlbarclose'].'"></a>
</div><div class="footer"',$html);
and change to
// Addition for control bar
$html = str_replace('<div id="footer"','<div id="hscontrolbar" class="highslide-overlay hscontrolbar">
<a href="#" class="previous" onclick="return hs.previous(this)" title="'.$lang_plugin_highslide['controlbarprev'].'"></a>
<a href="#" class="next" onclick="return hs.next(this)" title="'.$lang_plugin_highslide['controlbarnext'].'"></a>
<a href="#" class="highslide-move" onclick="return false" title="'.$lang_plugin_highslide['controlbarmove'].'"></a>
<a href="#" class="close" onclick="return hs.close(this)" title="'.$lang_plugin_highslide['controlbarclose'].'"></a>
</div><div id="footer"',$html);
Both solutions should solve the problem for you (but not for others who use standard skins!).
regards
Timo
Awesome, thanks timo.
Sorry for such a quick follow-up question but is it possible to change the overlay buttons (prev,next,move,close) to only display prev,next in the right top corner, i can remove the image simply by modifying the controlbar images, but that does not change the location.
Thanks again for the wonderful plugin!
Damn, sorry again for this tripple post, wish i had a modify button.
Id also like to ask if it's possible to change so that the picture location when you press "next / prev" never lets the mouse of this button, so if you press next without moving your mouse the next image will display in such way that the next button is still on the mouse, which gives a easy browsing without having to aim your mouse each picture.
Thanks again timo for these wonderful plugins you make!
I am not going to develop Highslide plugin any further; Highslide v3.04 is the last plugin version. No new features to come, so it doesn't make sense at all to post feature requests.
EnlargeIt! v2.0 is a 100% functional replacement for Highslide v3.04 and at least as stable. I recommend to use it instead of Highslide.
HI, finde das Plugin super!
Hab da aber jetzt ein Problem.
Hab das zwar schon wo anders beschrieben aber da konnte mir nicht geholfen werden.
Werde es also hier noch mal posten und ich hoffe wir finden eine Lösung.
"Hallo, ich habe das "HighSlide" Plugin bei mir installiert. Funktioniert soweit auch alles, hätte aber gerne eine Modifikation eingebaut.
Manchmal will ich mir das Bild garnicht ansehen als Webmaster, sondern will gleich die Seite "displayimage.php" sehen um dort Infos raus zu saugen.
Dafür möchte ich gerne noch einen Link in der Form von "[Avatar Generator]" anlegen. Das man also gleich zur Bildinfo springen kann, ohne vorher auf das Bild klicken zu müssen.
Habe z.B. das Problem das ich nicht einfach mal so mehrere Tabs im Browser aufmachen kann ohne jedes mal manuell ein neues Browserfenster oder Tab öffnen zu müssen, etc...
Das Projekt findet ihr unter www.bollybilder.de.
Danke für eure Hilfe, kann leider kaum noch PHP um den Code selber zu modifizieren"
Mir wurde folgender "Zusatz-Code für die theme.php vorgeschlagen aber der gewünschte Effekt trifft nicht ein:
$template_thumbnail_view = <<<EOT
<!-- BEGIN header -->
<tr>
<!-- END header -->
<!-- BEGIN thumb_cell -->
<td valign="top" class="thumbnails" width ="{CELL_WIDTH}" align="center">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<a href="{LINK_TGT}">{THUMB}<br /></a>
<a href="{LINK_TGT2}">Bildinfo</a>
{CAPTION}
{ADMIN_MENU}
</td>
</tr>
</table>
</td>
<!-- END thumb_cell -->
<!-- BEGIN empty_cell -->
<td valign="top" class="thumbnails" align="center"> </td>
<!-- END empty_cell -->
<!-- BEGIN row_separator -->
</tr>
<tr>
<!-- END row_separator -->
<!-- BEGIN footer -->
</tr>
<!-- END footer -->
<!-- BEGIN tabs -->
<tr>
<td colspan="{THUMB_COLS}" style="padding: 0px;">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
{TABS}
</tr>
</table>
</td>
</tr>
<!-- END tabs -->
<!-- BEGIN spacer -->
<img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->
EOT;
}
function theme_display_thumbnails(&$thumb_list, $nbThumb, $album_name, $aid, $cat, $page, $total_pages, $sort_options, $display_tabs, $mode = 'thumb')
{
global $CONFIG;
global $template_thumb_view_title_row,$template_fav_thumb_view_title_row, $lang_thumb_view, $template_tab_display, $template_thumbnail_view, $lang_album_list;
static $header = '';
static $thumb_cell = '';
static $empty_cell = '';
static $row_separator = '';
static $footer = '';
static $tabs = '';
static $spacer = '';
if ($header == '') {
$thumb_cell = template_extract_block($template_thumbnail_view, 'thumb_cell');
$tabs = template_extract_block($template_thumbnail_view, 'tabs');
$header = template_extract_block($template_thumbnail_view, 'header');
$empty_cell = template_extract_block($template_thumbnail_view, 'empty_cell');
$row_separator = template_extract_block($template_thumbnail_view, 'row_separator');
$footer = template_extract_block($template_thumbnail_view, 'footer');
$spacer = template_extract_block($template_thumbnail_view, 'spacer');
}
$cat_link = is_numeric($aid) ? '' : '&cat=' . $cat;
$uid_link = (isset($_GET['uid']) && is_numeric($_GET['uid'])) ? '&uid=' . $_GET['uid'] : '';
$theme_thumb_tab_tmpl = $template_tab_display;
if ($mode == 'thumb') {
$theme_thumb_tab_tmpl['left_text'] = strtr($theme_thumb_tab_tmpl['left_text'], array('{LEFT_TEXT}' => $aid == 'lastalb' ? $lang_album_list['album_on_page'] : $lang_thumb_view['pic_on_page']));
$theme_thumb_tab_tmpl['inactive_tab'] = strtr($theme_thumb_tab_tmpl['inactive_tab'], array('{LINK}' => 'thumbnails.php?album=' . $aid . $cat_link . $uid_link . '&page=%d'));
$theme_thumb_tab_tmpl['inactive_next_tab'] = strtr($theme_thumb_tab_tmpl['inactive_next_tab'], array('{LINK}' => 'thumbnails.php?album=' . $aid . $cat_link . $uid_link . '&page=%d'));
$theme_thumb_tab_tmpl['inactive_prev_tab'] = strtr($theme_thumb_tab_tmpl['inactive_prev_tab'], array('{LINK}' => 'thumbnails.php?album=' . $aid . $cat_link . $uid_link . '&page=%d'));
} else {
$theme_thumb_tab_tmpl['left_text'] = strtr($theme_thumb_tab_tmpl['left_text'], array('{LEFT_TEXT}' => $lang_thumb_view['user_on_page']));
$theme_thumb_tab_tmpl['inactive_tab'] = strtr($theme_thumb_tab_tmpl['inactive_tab'], array('{LINK}' => 'index.php?cat=' . $cat . '&page=%d'));
$theme_thumb_tab_tmpl['inactive_next_tab'] = strtr($theme_thumb_tab_tmpl['inactive_next_tab'], array('{LINK}' => 'index.php?cat=' . $cat . '&page=%d'));
$theme_thumb_tab_tmpl['inactive_prev_tab'] = strtr($theme_thumb_tab_tmpl['inactive_prev_tab'], array('{LINK}' => 'index.php?cat=' . $cat . '&page=%d'));
}
$thumbcols = $CONFIG['thumbcols'];
$cell_width = ceil(100 / $CONFIG['thumbcols']) . '%';
$tabs_html = $display_tabs ? create_tabs($nbThumb, $page, $total_pages, $theme_thumb_tab_tmpl) : '';
// The sort order options are not available for meta albums
if ($sort_options) {
$param = array('{ALBUM_NAME}' => $album_name,
'{AID}' => $aid,
'{PAGE}' => $page,
'{NAME}' => $lang_thumb_view['name'],
'{TITLE}' => $lang_thumb_view['title'],
'{DATE}' => $lang_thumb_view['date'],
'{SORT_TA}' => $lang_thumb_view['sort_ta'],
'{SORT_TD}' => $lang_thumb_view['sort_td'],
'{SORT_NA}' => $lang_thumb_view['sort_na'],
'{SORT_ND}' => $lang_thumb_view['sort_nd'],
'{SORT_DA}' => $lang_thumb_view['sort_da'],
'{SORT_DD}' => $lang_thumb_view['sort_dd'],
'{POSITION}' => $lang_thumb_view['position'],
'{SORT_PA}' => $lang_thumb_view['sort_pa'],
'{SORT_PD}' => $lang_thumb_view['sort_pd'],
);
$title = template_eval($template_thumb_view_title_row, $param);
} else if ($aid == 'favpics' && $CONFIG['enable_zipdownload'] == 1) { //Lots of stuff can be added here later
$param = array('{ALBUM_NAME}' => $album_name,
'{DOWNLOAD_ZIP}'=>$lang_thumb_view['download_zip']
);
$title = template_eval($template_fav_thumb_view_title_row, $param);
}else{
$title = $album_name;
}
if ($mode == 'thumb') {
starttable('100%', $title, $thumbcols);
} else {
starttable('100%');
}
echo $header;
$i = 0;
foreach($thumb_list as $thumb) {
$i++;
if ($mode == 'thumb') {
if ($aid == 'lastalb') {
$params = array('{CELL_WIDTH}' => $cell_width,
'{LINK_TGT}' => "thumbnails.php?album={$thumb['aid']}",
'{THUMB}' => $thumb['image'],
'{CAPTION}' => $thumb['caption'],
'{ADMIN_MENU}' => $thumb['admin_menu']
);
} else { print_r($thumb);
$params = array('{CELL_WIDTH}' => $cell_width,
'{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}$uid_link",
'{LINK_TGT2}' => "displayimage.php?pos=-{$thumb['pid']}",
'{THUMB}' => $thumb['image'],
'{CAPTION}' => $thumb['caption'],
'{ADMIN_MENU}' => $thumb['admin_menu']
);
}
} else {
$params = array('{CELL_WIDTH}' => $cell_width,
'{LINK_TGT}' => "index.php?cat={$thumb['cat']}",
'{THUMB}' => $thumb['image'],
'{CAPTION}' => $thumb['caption'],
'{ADMIN_MENU}' => ''
);
}
echo template_eval($thumb_cell, $params);
if ((($i % $thumbcols) == 0) && ($i < count($thumb_list))) {
echo $row_separator;
}
}
for (;($i % $thumbcols); $i++) {
echo $empty_cell;
}
echo $footer;
if ($display_tabs) {
$params = array('{THUMB_COLS}' => $thumbcols,
'{TABS}' => $tabs_html
);
echo template_eval($tabs, $params);
}
endtable();
echo $spacer;
}
Das war der Text dazu vo, User "eenemeenemuu":
QuoteNein. Wenns jetzt nicht geht, spuckt dir höchstwahrscheinlich das HighSlide-Plugin in die Suppe.
Setz dich einfach mal mit meiner minimalen, simplen Modifikation auseinander. Ich habe in der Funktion theme_display_thumbnails() den Platzhalter {LINK_TGT2} definiert und diesen dann in $template_thumbnail_view eingebaut. Diese Modifikation musst du wahrscheinlich im HighSlide-Plugin vornehmen, da dort vermutlich deine Modifikation aus der theme.php bestimmt überschrieben wird.
Das ist aber alles nur Spekulation, da ich (wie schon gesagt) das Plugin nicht kenne. In meinem Test-CPG hat meine Modifikation den gewünschten Effekt erzielt.
When posting in this thread use either english or if you are unable to have a friend translate it for you. Otherwise post in the German support board.
LOL sorry I forgot that this one was a english forum. Anyway, I found my answers somewhere else, thx!
Quote from: andyleery on August 26, 2008, 01:58:44 PM
LOL sorry I forgot that this one was a english forum. Anyway, I found my answers somewhere else, thx!
Good for you. Post the location of your answer also here so others are maybe helped by it.
sorry to hit this topic again, but i wonder if there is a simple solution to disable the "resize depending how big your browser window is" setting? just show the image "as is" directly.
Thanks for a plug-in! Interestingly and Russian be not going to add?
Quote from: Leonidas on November 23, 2008, 01:32:05 AM
Thanks for a plug-in! Interestingly and Russian be not going to add?
Russian languages for a plug-in
At the risk of being flamed this solution is not that difficult I'm just amazed it was not posted clearly before or as a documented option for cpmfetch.
Here it is:
first download lightbox
next upload lightbox to the same directory as the page displaying the cpmfetch images
next add these links to your page in the <head> area
<link rel="stylesheet" href="lightbox_assets/css/lightbox.css" type="text/css" media="screen" />
<script src="lightbox_assets/js/prototype.js" type="text/javascript"></script>
<script src="lightbox_assets/js/scriptaculous.js?load=effects" type="text/javascript"></script>
<script src="lightbox_assets/js/lightbox.js" type="text/javascript"></script>
Change Bold to what ever your lighbox directory is called
Add this <body onload="initLightbox()"> as the body tag or at least this if you already have others there initLightbox()
Next add this to where you want cpmfetch to show - I this case we are showing random images with the Album Title below each image
<?php
include_once "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
$options = array(
"subtitle" => "<center>{{aTitle}}</center",
"linktemplate"=>'http://yourdomainname.com/gallery/albums/{{pFilepath}}{{pFilename}}"rel="lightbox"');
$objCpm->cpm_viewRandomMediaFrom("cat=partners:album=tours",1, 6, $options);
$objCpm->cpm_close();
?>
Bold = directory for your coppermine gallery
That's all it takes.
Have fun
Quote from: webhigh on January 11, 2009, 03:21:36 PM
At the risk of being flamed this solution is not that difficult I'm just amazed it was not posted clearly before or as a documented option for cpmfetch.
blah blah blah...
Your posting is not related to this plugin in any way. Why do you spam this thread?
give me a break will you where then should it be posted if not here since this support forum causes incredible amounts of wasted time in not only reading your caustic replies but in trying to find answer to simple questions.
This thread is about the Highslide plugin. It is not about CPMfetch nor Lightbox mods. Why do you spam this thread?
@webhigh: Respect the advice posted by thread owners and staff. If you don't, you'll get banned.
I tried this plugin but .. it doesn't work.
The image doesn't open and I only see the "loading" botton.
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
Hello
I have installed this plugin and notthing happens. Please help http://murerhans.com/e107/gallery/index.php
The plugin was designed for the standalone flavor of coppermine and not for the e107 port. The e107 port of coppermine doesn't get supported here. That means: you can try to use any plugin with your e107 port and try to make it work, but you're not allowed to ask questions about it. The e107 port goes unsupported from our side. Unsupported as in "don't ask questions if you run the e107 port".
Hello!
I'm using the Highslide plugin and i love it. However i do have one question. I'm trying to remove/modify the information that is displayed when "mouseover on thumbnail".
Example:
Filename=beautiful_world_ns.flvFilesize=14643KBDimensions=320x240Date added=Jan 07, 2009
But when i modify the code that handles what information is displayed on "mouseover on thumbnail" the highslide plugin stops working.
This is the code in includes.inc.php that i was playing around with:
$pic_title =$lang_display_thumbnails['filename'].$row['filename']."\n".
$lang_display_thumbnails['filesize'].($row['filesize'] >> 10).$lang_byte_units[1]."\n".
$lang_display_thumbnails['dimensions'].$row['pwidth']."x".$row['pheight']."\n".
$lang_display_thumbnails['date_added'].localised_date($row['ctime'], $album_date_fmt);
Any ideas how i can remove or modify the information output when mouseover but still use highslide plugin?
Thanks for this wonderful plugin!
how can I make this plugin display the full size image in a new window rather then in the current. so when i am looking at the thumbnails i click one and it opens in a completely new window similar to the normal way coppermine works just skipping the intermediate image?
Sorry to bring this back to the top but I read all 19 pages and can't find the fix.
I just found this plugin 3.04 and added to my CPG version: 1.4.25
In Firefox/3.5.6 the mod runs perfectly, thumbs open and close as you scroll through them using the arrows.
IE version 8 the thumb opens but does not close as you use the arrows to move to the next image, they stack one over the other and you have to double or triple click to get them to close.
In IE once I try to use the mod the address changes from http://www.chitown-angler.com/tipup/index.php to http://www.chitown-angler.com/tipup/index.php#
Any ideas would be appreciated.
Thanks
And I'm sorry I left out some information it does not work in classic or reynolds themes in IE but both in FF. It's a fresh install with no code changes just a couple plugins which I tried changing the mod position moving it up and down among the installed plugins
Two solutions:
1) Use EnlargeIt! plugin instead and forget Highslide.
2) Modify the theme to activate IE compatibility mode (use Google).
Timo,
I am using version 3.01 of this great plug-in on cpg 1.4.26. (v3.04 does not do a good job in IE8 with the next and previous arrow key so i went back to 3.01)
Since the beginning I have a small problem with Highslide, wich I personally find the best plug in ever for CPG.
The problem is that I loose the small border around the small thumbnail images on all pages where thumbs are displayed.
The image thumbs of my albums, on the home page, still have the small gray border and in admin mode, where I have disabled Highslide, the thumb borders are back.
When I uninstall Highsligde all borders are back.
I really like to show the borders on my thums together with the use of Highslide, is there a solution for this. (in v3.04 the problem is the same)
Hope to get a reply on this item.
Harald
www.haraldlabout.nl
(p.s. this is a long thread perhaps I missed a solution for this in the 19 pages)
Found the solution of the above mentioned problem myself in the Highslide CSS.
When Highslide is installed the Highsligde img CSS value overrides the Theme imgage CSS value.
Changed the Highslide img CSS value and the thumbnail border is back.
Harald
Thanks for resolving your thread(s). In future please only ask the same question in one thread. It causes extra work for us if you post the same in more than one.
I accidentally deleted the Highslide table from my mySQL database is there a query where I can submit into the database to re-add the highslide table so that my site works properly as now am getting critical error messages all over my site relating to this little issue
Huge thanx in advance to anyone who can help me out - much appreciated
Delete the highslide line from table cpgXX_plugins and re-install the plugin.
Question:
Running cpg 1.4.27 with highslide 3.01 on my gallery www.haraldlabout.nl
Great plug in, I'm using it for a long time.
Is it possible to de-activate the Highslide plugin just for one section of my gallery?
I like to de-activate it for my "last comments" section.
Harald