EnlargeIt! (AJAX user interface for CPG 1.4.x) - Page 24 EnlargeIt! (AJAX user interface for CPG 1.4.x) - Page 24
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

EnlargeIt! (AJAX user interface for CPG 1.4.x)

Started by Timos-Welt, June 16, 2008, 06:19:13 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

pytlak

hmm I have checked - file is there
./Gallery/plugins/EnlargeIt/include/load_enlargeitset.php
cannot be a problem, that installing code is looking into
./plugins/EnlargeIt/include/load_enlargeitset.php
istead?

Joachim Müller

#461
Quote from: pytlak on January 22, 2010, 09:56:16 AM
hmm I have checked - file is there
No, the file is not there - going to http://www.tema.milanriha.cz/Gallery/plugins/enlargeit/include/load_enlargeitset.php causes a 404 as I said. Attached is a screenshot.

Stop playing with capitalization. Upload the plugin exactly as it comes. There's a difference between
Quote from: pytlak on January 22, 2010, 09:56:16 AM./plugins/EnlargeIt/include/load_enlargeitset.php
and ./plugins/enlargeit/include/load_enlargeitset.php

Quote from: pytlak on January 22, 2010, 09:56:16 AM
hmm I have checked - file is there
./Gallery/plugins/EnlargeIt/include/load_enlargeitset.php
cannot be a problem, that installing code is looking into
./plugins/EnlargeIt/include/load_enlargeitset.php
istead?
Well, does the gallery where this doesn't work as expected populate the gallery URL setting inside the config, i.e. have you set up the gallery accordingly? Stop playing games. Upgrade your live gallery, then apply the plugin to your live gallery. End of the story - no more support for you unless you upgrade your main gallery.

pytlak

Joachim realy thanks for your time - I have looked again and problem was as you mentioned in Capital letters of the subfolder. Now it works.

I understand what you are saying with upgrade. But as there are some manual changes necessary in the whole web structure I have to test it before I will populate the upgrade of CM onto my main pages. Now I am very close ;)

Milan

mrdee

Quote from: Timos-Welt on January 11, 2010, 12:25:26 PM
This is the place in codebase.php where one of the players is used to display FLV files:

          if ($ENLARGEITSET['enl_flvplayer'] == 1) $neu_str .= '"><img src="'.$match[2].$CONFIG['thumb_pfx'].$match[3].'" longdesc="fl2::../../../'.path2url($enl_path).'::'.$enl_flvwidth.'::'.$enl_flvheight;
          else $neu_str .= '"><img src="'.$match[2].$CONFIG['thumb_pfx'].$match[3].'" longdesc="flv::../../../'.path2url($enl_path).'::'.$enl_flvwidth.'::'.$enl_flvheight;


To include more file types, you will have to change other lines, too in function enl_main($html).

Have fun!

I've got the OS FLV updated now to the latest version (3.1).  It "works" on FF3.6 and IE8 (with WinXP and Vista), but the only minor problem I can't get fixed is this one:

When clicking on an flv thumb the ajax popup appears at the correct size (from the dimensions in the db).  The red background "play" button pops up in the middle as expected, along with a background shot from an early frame in the video.  However, behind the red background of the "play" button (but above the video frame background) is a rectangle of light blue, going from the bottom left of the ajax window up to the top right edge of the background to the "play" button.  Once I press the "play" button the rectangle vanishes and the video plays fine.  I'm struggling to find what I need to change, because I'm guessing that the additional files and directories (with the functions, and which the OS FLV download requires me to upload) are embedded into the EnlargeIt files/directories.

I know you are most likely busy with the new version for the upcoming 1.5 release, but if you are even able to point me in the right direction then I'm up for the challenge in fixing this.

Thanks.

Timos-Welt

Please attach your modified version. GPL projects need contributors!  ;) Then I'll see what I can do.

mrdee

Quote from: Timos-Welt on January 22, 2010, 12:59:58 PM
Please attach your modified version. GPL projects need contributors!  ;) Then I'll see what I can do.

I made many edits to codebase.php and then removed most of them (the attached file is "work in progress" but, you asked ;) ).  At the moment I am just renaming .mp4 files (H.264) to .flv on my server so that I don't need to add a separate file type section in the code (I will tidy that later).  [The flash player always appears to look into the video file and realise it is H.264 and play it fine, regardless.]  Most of my edits are to the theme.php (igames) to get the latest JW player configured, which took me some time as they changed the way of adding flashvars etc (works well now).  I use this for if someone clicks the "info" button, to take me to the normal Coppermine display page, with all the info on it incl a movie which plays.  By the way, I'm running 1.4.25 but applied the patches for that release manually rather than a full upgrade (as I'm sure someone will see the header text ;-) ).

I have replaced the player.swf file and am now attacking this cosmetic issue on the basis of trying to fix what needs fixing rather than continuing what I was doing (trying to find out what had changed from the version of the player included in EnlargeIt to the latest one, and then where the file content from OS FLV maps into the js code EnlargeIt uses).  I also read your post regarding it not being recommended to edit anything in the plugin js directory...

There is an unrelated error in the attached file relating to a file path which I see only in the webserver log.  I click on a movie (flv) thumbnail (EnlargeIt enabled) and even though the result is fine for the users (the ajax popup appears and the movie plays etc) there are always 2 or 3 errors in the server log, where something tries to call a file for Coppermine directly beneath my root dir rather than one level lower where the Coppermine files are.  I am using a redirect on Apache at the moment until I find that one.  As the movie file is found OK and plays, I suspect that the pluggin is trying to pull the jpg thumbnail to give to the player (?), but if this is true then the error is not in codebase.php I suspect...

mrdee

Quote from: mrdee on January 22, 2010, 02:07:29 PM
I made many edits to codebase.php and then removed most of them (the attached file is "work in progress" but, you asked ;) ).  At the moment I am just renaming .mp4 files (H.264) to .flv on my server so that I don't need to add a separate file type section in the code (I will tidy that later).  [The flash player always appears to look into the video file and realise it is H.264 and play it fine, regardless.]  Most of my edits are to the theme.php (igames) to get the latest JW player configured, which took me some time as they changed the way of adding flashvars etc (works well now).  I use this for if someone clicks the "info" button, to take me to the normal Coppermine display page, with all the info on it incl a movie which plays.  By the way, I'm running 1.4.25 but applied the patches for that release manually rather than a full upgrade (as I'm sure someone will see the header text ;-) ).

I have replaced the player.swf file and am now attacking this cosmetic issue on the basis of trying to fix what needs fixing rather than continuing what I was doing (trying to find out what had changed from the version of the player included in EnlargeIt to the latest one, and then where the file content from OS FLV maps into the js code EnlargeIt uses).  I also read your post regarding it not being recommended to edit anything in the plugin js directory...

There is an unrelated error in the attached file relating to a file path which I see only in the webserver log.  I click on a movie (flv) thumbnail (EnlargeIt enabled) and even though the result is fine for the users (the ajax popup appears and the movie plays etc) there are always 2 or 3 errors in the server log, where something tries to call a file for Coppermine directly beneath my root dir rather than one level lower where the Coppermine files are.  I am using a redirect on Apache at the moment until I find that one.  As the movie file is found OK and plays, I suspect that the pluggin is trying to pull the jpg thumbnail to give to the player (?), but if this is true then the error is not in codebase.php I suspect...

I'm currently thinking it may be linked with this new feature in OS FLV 3.1 (it may be looking for a banner jpg) http://www.osflv.com/?p=624 and not finding one as I didn't configure it to.

mrdee

Quote from: Timos-Welt on January 22, 2010, 12:59:58 PM
Please attach your modified version. GPL projects need contributors!  ;) Then I'll see what I can do.

Just to check if the idea in my previous post was along the right lines I spent some time this afternoon, and here's an update:

I figured that the actual calls to the player.swf were coming from the file in the JS subdir (the codebase file just sends the input to the actual javascript call).  So, to test if the blue background was coming from the lack of banner jpg I needed to put autoplay "on" (it ignores the banner if this is turned on, according the OS FLV site).  So, I edited the enlargeit.source.js and recompressed the file (zip file attached) to produce a new test enlargeit.js.  The problem now goes away, though I need to do more work as I don't really want this switched on (as the buffering time while users press play is useful on some slow links).  So, I need to either figure out the buffering parameter for OS FLV or learn how to use perhaps the Coppermine thumb as the banner image for the player.

xFyrios

I have a big issue. I'm using my Coppermine installation as a image host for a forum but when anyone clicks on an image and then in EnlargeIt! goes to the BbCode tab and copies the code into the forum, the image comes out really small :/ I want it to come out regular sized...

Here's an example:

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimages.pretomeuploads.net%2Falbums%2Fuserpics%2F10006%2Fthumb_image02323.jpg&hash=c5655b9f899ad10facfb4c72653c61967f98a6bb)

Was going to put an example but I can't put pictures in the posts here I just realized :/


Anyways, here's a link to the site too: http://images.pretomeuploads.net/index.php

Any help would be greatly appreciated!

phill104

It is a mistake to think you can solve any major problems just with potatoes.

Joachim Müller

Quote from: xFyrios on January 22, 2010, 06:53:22 PM
Was going to put an example but I can't put pictures in the posts here I just realized :/
Nonsense - the opposite is the case: you're even encouraged to attach (not hotlink) screenshots for illustration of your issues (as per board rules)

xFyrios

Sorry bout that, never thought of taking a screenshot  :-\ I was just thinking I could integrate it in my post with BbCode as then it would should up the same as it does on the Forum attached to my image host since, well, this is a forum. Didn't think of directly taking a screenshot in that forum.

And thank you very much Phill :) I did search but I wasn't willing to read through all of the numerous pages here so I just hit control+f on each page. Guess I didn't use a good enough keyword...
Or did I miss out on a search for within topics? Never did see one but maybe I'm just missing something?

emjay_smitten

I have a question. I also use the facebook plugin. I installed the EnlargeIt plugin to. They work good. Only not together. Is there anyway I can include the Facebook plugin in the EnlargeIt plugin ?? Maybe to include the image of Facebook plugin in the buttons from EnlargeIt ???

CD69

First GauGau I am sorry for my other post, I could not find what I was looking for in this thread (maybe I keep missing it) and wanted to ask a general question about the plugin.

I'm not currently using it because I need to change the code for posting an image to (http://url) but can't find where to make the change. I would also like to adjust the size of the popup box that appears to something similar to the picture I posted.

My php skills are limited so the answer may have been in this thread (which I read a couple times) and I missed it.

Any help would be appreciated.




phill104

What other post? I haven't time to go searching for this other post so please post a link.

We also need a link to your site and specific details of what you want. "I need to modify http://" really tells me nothing, modify to what?
It is a mistake to think you can solve any major problems just with potatoes.

Joachim Müller


MSCH69

GauGau when I said I was sorry I meant it, there is no reason to ban people for making mistakes on a forum they only come to for help.

As part of the administrative team you make several assumptions. There was no site to make a link to when the question was asked, the plugin CPGMark corrupted the database and the site is/was being rebuilt.

That searches were not done. Not true!

People don't know the site as well as you do and try to adhere to the rules and sometimes make mistakes. If someone is flaming or hassling people that is a reason to get banned, not for trying to become educated on your product and get help.

The (http://pic here) tag is also a mistake, the board converted what was originally posted but if you wanted to be helpful you could have because you've seen that error before haven't you.

You have an opportunity to be educators and to help people but you choose to be control freaks and not very helpful. Better to educate I believe, better to assist than to criticize.

In the time it takes you to write a negative post you could move the thread and help the person, but then everyone wouldn't perfectly follow your rules. Oh my they may make a horrible mistake!

xFyrios

MSCH69.
I may be no expert but this is how I accomplished adding in a box with a direct link to the image.

1. I downloaded this plugin.
2. I then edited codebase.php of the new plugin from this:

{
global $information;
global $CONFIG;
global $CURRENT_PIC_DATA;

$info['Embed URL'] = '<table cellpadding="0" cellspacing="1" border="0">';
$info['Embed URL'] .= '<tr><td>BBCode:</td><td><textarea name="bbcode" class="textinput" rows="1" cols="60" wrap="off" style="overflow:hidden;height:15px;" onfocus="this.select();" onclick="this.select();">[url=' . $CONFIG["ecards_more_pic_target"] . get_pic_url($CURRENT_PIC_DATA, 'fullsize') . '][img]' . $CONFIG["ecards_more_pic_target"] . get_pic_url($CURRENT_PIC_DATA, 'normal') . '[/img][/url]</textarea></td></tr>';
$info['Embed URL'] .= '<tr><td>HTML:</td><td><textarea name="htmlcode" class="textinput" rows="1" cols="60" wrap="off" style="overflow:hidden;height:15px;" onfocus="this.select();" onclick="this.select();"><a href="' . $CONFIG["ecards_more_pic_target"] . get_pic_url($CURRENT_PIC_DATA, 'fullsize') . '" target="_blank"><img src="' . $CONFIG["ecards_more_pic_target"] . get_pic_url($CURRENT_PIC_DATA, 'normal') . '" border="0"></a></textarea></td></tr>';
$info['Embed URL'] .= '</table>';
return $info;
}


to this:


{
global $information;
global $CONFIG;
global $CURRENT_PIC_DATA;

$info['Embed URL'] = '<table cellpadding="0" cellspacing="1" border="0">';
$info['Embed URL'] .= '<tr><td>Direct Link:</td><td><textarea name="directurl" class="textinput" rows="1" cols="60" wrap="off" style="overflow:hidden;height:15px;" onfocus="this.select();" onclick="this.select();">' . $CONFIG["ecards_more_pic_target"] . get_pic_url($CURRENT_PIC_DATA, 'fullsize') . '</textarea></td></tr>';
$info['Embed URL'] .= '<tr><td>BBCode:</td><td><textarea name="bbcode" class="textinput" rows="1" cols="60" wrap="off" style="overflow:hidden;height:15px;" onfocus="this.select();" onclick="this.select();">[url=' . $CONFIG["ecards_more_pic_target"] . get_pic_url($CURRENT_PIC_DATA, 'fullsize') . '][img]' . $CONFIG["ecards_more_pic_target"] . get_pic_url($CURRENT_PIC_DATA, 'normal') . '[/img][/url]</textarea></td></tr>';
$info['Embed URL'] .= '<tr><td>HTML:</td><td><textarea name="htmlcode" class="textinput" rows="1" cols="60" wrap="off" style="overflow:hidden;height:15px;" onfocus="this.select();" onclick="this.select();"><a href="' . $CONFIG["ecards_more_pic_target"] . get_pic_url($CURRENT_PIC_DATA, 'fullsize') . '" target="_blank"><img src="' . $CONFIG["ecards_more_pic_target"] . get_pic_url($CURRENT_PIC_DATA, 'normal') . '" border="0"></a></textarea></td></tr>';
$info['Embed URL'] .= '</table>';
return $info;
}


Simply adding in the line:

info['Embed URL'] .= '<tr><td>Direct Link:</td><td><textarea name="directurl" class="textinput" rows="1" cols="60" wrap="off" style="overflow:hidden;height:15px;" onfocus="this.select();" onclick="this.select();">' . $CONFIG["ecards_more_pic_target"] . get_pic_url($CURRENT_PIC_DATA, 'fullsize') . '</textarea></td></tr>';


3. Then you can access that direct link from the info of the picture within EnlargeIt!

You can always also delete the HTML and BBCode lines if you only want the Direct Link.
I'm sure there is a way of doing this for the BBCode tag of EnlargeIt! too, I just haven't really looked that hard for it.

Hope that helps!
-xFyrios

Joachim Müller

This is the announcement thread for the enlargeit plugin. Cluttering it with suggestions for another plugin is bad. I'm aware that you're trying to be helpfull, but your posting is just confusing for newbies, so please don't.

xFyrios

Oops, my bad. Never did think of that...
Sorry!  :-X