Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: 1 ... 5 6 7 8 [9] 10   Go Down

Author Topic: EnlargeIt! AJAX GUI for CPG 1.5.x  (Read 226151 times)

0 Members and 1 Guest are viewing this topic.

DoubleYou

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #160 on: September 09, 2012, 09:03:29 am »

Hey there,

great plugin, I really love it. One small problem remains for me with the latest beta version. When I try to download a picture the download seems to work fine, but on opening the file Windows tells me the file is too big or damaged. The size seems reasonable though.

Any ideas? Tested it with various browsers (IE, FF, Opera)
Any help will be greatly appreciated.

Thanks
Michael
Logged

2andy

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #161 on: September 26, 2012, 03:23:40 pm »

Where can I turn ON addthis or facebook comments in EnlargeIt plugin like shown on this site??

www.toprq.com
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #162 on: September 27, 2012, 04:59:03 pm »

I believe that to be some custom code added by the site developer. It is not part of the standard plugin.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

alexandregrassi

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #163 on: November 22, 2012, 12:04:25 pm »

www.toprq.com

The facebook comments and sharing off this website is really awersome... I tryed to do something like that, but it not worked... Look: www.nerdzz.com/galeria

Any idea to use facebook comments like toprq.com ??
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #164 on: November 22, 2012, 04:28:48 pm »

The code to do that is quite simple, you can see an example of it running on my site but not in CPG, just in normal articles - http://www.windsurf.me.uk

I will not have time until Monday but I will test the code in this plugin and see how it woks. I cannot promise a completion date though as I am snowed under.

Here is the code used in the Joomla site above, maybe you can integrate it yourself. Obviously the JURI:: section is very Joomla specific so will not work as is.

Code: [Select]
<script type="text/javascript">
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
ref.parentNode.insertBefore(js, ref);
}(document));
</script>

<div class="fb-comments" data-href="<?php echo JURI::getInstance()->toString(array('scheme''host''port')) . $this->item->readmore_link?>" data-num-posts="2" data-width="576"></div>

and the css

Code: [Select]
.fb-comments {
  clear: both;
  padding-top: 20px;
}

.fb-comments span {
  display: block !important;
}
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Xtinch

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #165 on: August 08, 2013, 04:54:35 pm »

Hi There,

I'm wondering if there is a way to prevent the image downloading when you perform a right click.

I've configured the image protection setting, that works for the site, but it is not working when I use the plugin.

Thanks

Martin.
Logged

bady

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #166 on: October 20, 2013, 03:03:43 am »

Hi Timos-Welt (Coppermine addict)

thanks for your plugin
but one sad thing with the Title bar: when you log off -- it shows ALWAYS (white bar)
"Show title bar when buttons are inactive" -- dosnt swich it off
Logged

cherokee

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #167 on: February 16, 2014, 12:11:04 pm »

Hello.
First, sorry for my English.
Thanks for this great work.
I would ask:
Is there any way that the download button only to a specific user group appears?
Thank you.
regards
Logged

TeknoSounds

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 83
    • TeknoSounds
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #168 on: February 25, 2014, 06:28:58 am »

Has anyone been able to successfully add buttons to say the top bar or anywhere along the margins of the photo?

Specifically trying to add button code like addthis or addtoany.

I put the code where I think it'll cause it to show up, but nothing changes.  I guess I'm not understanding how the plugin was written well enough. 
Anyone have any suggestions?

cherokee

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #169 on: February 25, 2014, 04:13:49 pm »

Hello.
Sorry for my English (google translator)
I changed the icons and the space between them.
You can see it here:
http://www.rutasytravesias.com/galeria/thumbnails.php?album=1
Note: You may see some failures, I'm trying to disable it on the main page.
Would you use?
regards
Logged

TeknoSounds

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 83
    • TeknoSounds
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #170 on: February 25, 2014, 06:58:59 pm »

That's definitely a start cherokee :D
Where did you change the code at for the spacing?

It seems like where I attempt to put the code should show up on the screen, but alas :-/  I think I might be missing something simple like...putting the AddThis code in a definition and calling it to an element...  maybe. 

cherokee

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #171 on: February 25, 2014, 08:20:33 pm »

Hello
open enlargeit.js
find:
Code: [Select]
|backgroundPosition|repeat|backgroundRepeat|3px
Modify the pixels corresponding to the left margin
greetings
Logged

Jean Michel

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #172 on: April 02, 2014, 04:00:20 pm »

Hello,

This beautiful plugin does not seem to work on IE11.
In Chrome not display buttons closure and slideshow?
solutions?

thanks
Logged

Wozik

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #173 on: February 10, 2015, 11:15:49 am »

Hello,

Is there any way to create a direct link to an image, that opens up the desired gallery and the snippet windows while pasted into the browser?
Logged

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 785
    • GMC Design Photo Gallery
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #174 on: April 20, 2015, 04:11:03 pm »

I ran into a compatibility problem between 'EnlargeIt' and a plugin using the filter 'picture_url'. In my case it is the 'Mask URL' plugin - but the problem would affect any plugin that CHANGES the thumbnail URL - or wants to change the intermediate or fullsize URL.

EnlargeIt regenerates the thumbnail URL from scratch (previously generated by CPG and possibly edited by plugins) - and generates new intermediate/fullsize URL.

I made the following changes to codebase.php (based on most recent SVN version) to
  • respect any thumbnail URL changes previously made
  • invoke the pluginAPI for filter 'picture_url' after generating the intermediate/fullsize URL

In codebase.php find (line 87 at revision 7221 in function enlargeit_addparams)
Code: [Select]
    } else {
        $enl_path = $CONFIG['fullpath'] . $thumb['filepath'] . $thumb['filename'];
    }
   
    // CASE 1: images
    if (in_array($enl_filetyplower, $image_array) == TRUE) {
       $enl_newthumb  = '<img src="' . $CONFIG['fullpath'] . $thumb['filepath'] . $CONFIG['thumb_pfx'] . $thumb['filename'] . '" ';
       $enl_newthumb .= 'class="enlargeimg" ';
and replace with:
Code: [Select]
    } else {
        $enl_path = $CONFIG['fullpath'] . $thumb['filepath'] . $thumb['filename'];
    }
    // since we are creating a new picture url - drive the pluginAPI to see if anyone else cares...                                    //*GMC
    $pic_row = array('pid' => $thumb['pid'],                                    // set up parameter array for API call                 //*GMC
                     'filepath' => $thumb['filepath'],                          //   specifying those parms we have access to          //*GMC
                     'filename' => $thumb['filename'],                          //   if additional fields needed, will need to         //*GMC
                     'pwidth' => $thumb['pwidth'],                              //   add database calls                                //*GMC
                     'pheight' => $thumb['pheight'],                                                                                   //*GMC
                     'filesize' => $thumb['filesize'],                                                                                 //*GMC
                     'url' => $enl_path,                                                                                               //*GMC
                     'mode' => 'normal',                                                                                               //*GMC
                    );                                                                                                                 //*GMC
    $pic_row = CPGPluginAPI::filter('picture_url', $pic_row);                   // see if anyone else has interest                     //*GMC
    $enl_path = $pic_row['url'];                                                // use value returned from API call                    //*GMC

    // CASE 1: images
    if (in_array($enl_filetyplower, $image_array) == TRUE) {
      //obtain current url from params (other plugins may have altered from default)                                                   //*GMC
      $enl_matchfound = preg_match('/"([^"]+)"/', $params['{THUMB}'], $enl_matches);                                                   //*GMC
      if ($enl_matchfound) {                                                                                                           //*GMC
        // use url from params                                                                                                         //*GMC
        $enl_newthumb  = '<img src="' . $enl_matches[1] . '" ';                                                                        //*GMC
      } else {                                                                                                                         //*GMC
        // unable to match - generate ourselves...                                                                                     //*GMC
        $enl_newthumb  = '<img src="' . $CONFIG['fullpath'] . $thumb['filepath'] . $CONFIG['thumb_pfx'] . $thumb['filename'] . '" ';
      }                                                                                                                                //*GMC
       $enl_newthumb .= 'class="enlargeimg" ';


and find (line 102 at revision 7221 before above changes in function enlargeit_addparams)
Code: [Select]
       $enl_newthumb .= 'border="0" onclick="enlarge(this);" longdesc="' . path2url($enl_path) . '" name="' . $thumb['pid'] . '" ';
and replace with:
Code: [Select]
       // removed 'path2url' - should already be valid/safe url and this removed '=' and '?' that are valid for url query string       //*GMC
       //$enl_newthumb .= 'border="0" onclick="enlarge(this);" longdesc="' . path2url($enl_path) . '" name="' . $thumb['pid'] . '" ';  //*GMC
       $enl_newthumb .= 'border="0" onclick="enlarge(this);" longdesc="' . $enl_path . '" name="' . $thumb['pid'] . '" ';              //*GMC

These changes should have no effect if no other plugin alters the URL's generating by CPG - but may fix other compatibility issues as well...

I would have discussed with Timos - but he hasn't been online in the forums for some time...
I wanted to offer this as a solution for those encountering conflicts.

Thanks!
Greg
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

marcelm

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #175 on: April 20, 2015, 11:48:13 pm »

Thanks and in my version of EnlargeIt the lines were on other locations. I am using the last version and that is a beta 3 version from 2012. It is mentioned a page back in this thread.

direct link to the beta: http://forum.coppermine-gallery.net/index.php?action=dlattach;topic=57424.0;attach=38731

Were can I find the 7221 SVN version so I can try the code? In the beta version the your code did not made the thumbnails visible.
Logged

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 785
    • GMC Design Photo Gallery
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #176 on: April 21, 2015, 12:42:14 am »

Thanks and in my version of EnlargeIt the lines were on other locations. I am using the last version and that is a beta 3 version from 2012. It is mentioned a page back in this thread.

direct link to the beta: http://forum.coppermine-gallery.net/index.php?action=dlattach;topic=57424.0;attach=38731

Were can I find the 7221 SVN version so I can try the code? In the beta version the your code did not made the thumbnails visible.
Ah well... made an assumption... I went directly to the Coppermine SVN repository (http://svn.code.sf.net/p/coppermine/code) set up with TortoiseSVN to synch code... It contained V1.15 which is same level as in the first post...

I have the beta version downloaded - I'll fit my changes and test and post results/new code as appropriate.
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 785
    • GMC Design Photo Gallery
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #177 on: April 21, 2015, 01:19:29 am »

In the beta version - the line numbers changed - but I used the exact same changes...
The first change is replacing lines 73-80.
The second change is replacing line 88 (before first change is made) or line 109 (after first change is made).

I have Mask URL coded to encrypt - .htaccess set in albums folder to 'Deny from all' - and EnlargeIt set for admin, registered, and guest...

All seems to work fine...
(Without the changes - the thumbnail and enlarged displays were all blocked by the .htaccess rule as the encrypted thumb URLS were overwritten - and enlarged URLs were never encrypted.)

Can you attach your codebase.php to a post (zip it...) with the changes applied? I'd like to compare to mine if you are still having an issue...
(Try clearing your browsers cache as well... though that caught me more with it working when it shouldn't in my testing... )

Greg
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

marcelm

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #178 on: April 21, 2015, 02:12:20 pm »

Thanks Greg and your edits works now when I go back to a standard theme like "eyeball" so it was configuration that mutilated your adaptation of codebase.php.

I am using a modified version of Blankstrap (Bootstrap adaptation) and that also seems to rewrite the thumbnails strings. Also it seems to make a difference if I use not a sub-domain (www) in my configuration so I have to some looking into this why it differs. I see in the acces_log that the web-server is transferring the thumbnails and I have result 200 and size. The browser is stating that the picture "can not be displayed because it contains errors" when a sub-domain is used.
Logged

marcelm

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
Re: EnlargeIt! AJAX GUI for CPG 1.5.x
« Reply #179 on: April 21, 2015, 02:23:18 pm »

And I already solved the mystery of the picture not showing when there is no "www" in front. I am using Blankstrap but not to administrate my site. I use the Eyeball theme for that. To be able to have in the same browser the normal site and the administration part of the site open side by side I open the administration site without the "www".

That also explains why I requested the same link in my other browser it made no difference and both times the picture was not shown.

Blankstrap is the cause for not showing the thumbnails on my side that is now for sure.
Logged
Pages: 1 ... 5 6 7 8 [9] 10   Go Up
 

Page created in 0.049 seconds with 19 queries.