Bug with xp_publish.php page (with a patch!) Bug with xp_publish.php page (with a patch!)
 

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

Main Menu

Bug with xp_publish.php page (with a patch!)

Started by epit, October 26, 2003, 03:56:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

epit

I have 2 completely different coppermine galleries on 2 different hosts. when I download and 'install' the .reg file from either page, it overwrites the other coppermine gallery's info on my XP machine.

the culprit is on line 553 of xp_publish.php (1.2.0 RC2):
    $lines[] = '[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\PublishingWizard\PublishingWizard\Providers\CopperminePhotoGallery]';

if you change the line to
$lines[] = '[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\PublishingWizard\PublishingWizard\Providers\\'. $CONFIG['gallery_name'] .']';
 
this will give the registry entry a 'unique' entry (well, more unique than the current method), rather than overwrite the entry each time. Oh, and the line needs the \\' in it (an extra \) cause PHP thinks its escaping the ', and therefore screws everything up :)

Hope that helps.
Thanks for the software, it rocks

Tarique Sani

Thanks - will test and fix in CVS

BTW would you have the info on creating XP wizards? a tutorial perhaps the one mentioned by the origianl author is no longer available
SANIsoft PHP applications for E Biz

epit

probably not, but what do you mean by 'wizards'? (I know what wizards are, but tying to web or php or whatnot? please clarify)

Tarique Sani

An XP web publishing wizard which allows upload just like the current one we have in CPG...

I want to understand how the client side image resizing is done....
SANIsoft PHP applications for E Biz

Oasis

tarique, the xp publishing wizard used by coppermine is built-in in windows XP, not created by the author.
What the author created was a login interface for the wizard that links it to coppermine (the xp_publish.php file).
It is only the question of having the correct parameters in the windows registry.

as far as I know, client side image resizing is done by windows, and not the xp_publish file...
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org

Tarique Sani

Quote from: "oasis"tarique, the xp publishing wizard used by coppermine is built-in in windows XP, not created by the author.
I know

Quoteas far as I know, client side image resizing is done by windows, and not the xp_publish file...
Since I say client side it obviously means Windows OR something in Windows :)

All I wanted to know was is it just selecting an Image brings up the needed resize interface OR something else is required...
SANIsoft PHP applications for E Biz

Joachim Müller

in other words: could someone using win xp make some screenshots to show the xp_publsihing wizard "in action" for those who do not have win xp?

GauGau :wink:

wormie_dk

Screenshots can be found on http://alberg.dk/screenshots/

They are in danish so tell me if you need anything explained  :D

Casper

I have just found the same problem as discussed at the start of this thread by epit .  
I installed xp_pub_wizard from a 1.2.1 gallery, and it overwrote my original account.  I fixed it for myself, but think it should be dynamic, as many users will not know how.
CPG is very popular now, and many users will have the same problem with xp_publish overwriting their other cpg xp_publish account.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here