Advanced search  

News:

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

Pages: 1 ... 20 21 22 23 [24] 25   Go Down

Author Topic: EnlargeIt! (AJAX user interface for CPG 1.4.x)  (Read 310543 times)

0 Members and 2 Guests are viewing this topic.

pytlak

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #460 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #461 on: January 22, 2010, 10:08:55 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
./plugins/EnlargeIt/include/load_enlargeitset.php
and ./plugins/enlargeit/include/load_enlargeitset.php

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.
« Last Edit: January 22, 2010, 10:13:59 am by Joachim Müller »
Logged

pytlak

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #462 on: January 22, 2010, 10:19:30 am »

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
Logged

mrdee

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #463 on: January 22, 2010, 12:08:54 pm »

This is the place in codebase.php where one of the players is used to display FLV files:
Code: [Select]
          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.
Logged

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 800
    • Timos-Welt
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #464 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.
Logged

mrdee

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #465 on: January 22, 2010, 02:07:29 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...
Logged

mrdee

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #466 on: January 22, 2010, 02:20:25 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.
Logged

mrdee

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #467 on: January 22, 2010, 06:42:55 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.
Logged

xFyrios

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #468 on: January 22, 2010, 06:53:22 pm »

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:

(http://images.pretomeuploads.net/albums/userpics/10006/thumb_image02323.jpg)

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!
Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4483
    • Windsurf.me
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #469 on: January 22, 2010, 07:30:05 pm »

xFyrios,

You could always try searching the very thread you are replying in ;)

http://forum.coppermine-gallery.net/index.php/topic,53290.msg278716.html#msg278716
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #470 on: January 22, 2010, 07:38:28 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)
Logged

xFyrios

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #471 on: January 22, 2010, 08:59:27 pm »

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?
Logged

emjay_smitten

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #472 on: January 25, 2010, 01:17:52 am »

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 ???
Logged

CD69

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 56
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #473 on: January 26, 2010, 05:43:32 pm »

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.



Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4483
    • Windsurf.me
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #474 on: January 26, 2010, 06:33:34 pm »

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?
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #475 on: January 26, 2010, 06:40:24 pm »

He's refering to EnlargeIt, is there a way to change the BBCode. See there for the end of the story.
Logged

MSCH69

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #476 on: January 26, 2010, 10:02:54 pm »

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!
Logged

xFyrios

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #477 on: January 27, 2010, 05:57:18 am »

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:
Code: [Select]
{
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:

Code: [Select]
{
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:
Code: [Select]
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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #478 on: January 27, 2010, 11:15:45 am »

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.
Logged

xFyrios

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: EnlargeIt! (AJAX user interface for CPG 1.4.x)
« Reply #479 on: January 28, 2010, 01:54:25 am »

Oops, my bad. Never did think of that...
Sorry!  :-X
Logged
Pages: 1 ... 20 21 22 23 [24] 25   Go Up
 

Page created in 0.025 seconds with 22 queries.