• [Plugin] Windows XP Publishing Wizard Integration 5 0 5 1
Currently:  

Author Topic: [Plugin] Windows XP Publishing Wizard Integration  (Read 109231 times)

0 Members and 1 Guest are viewing this topic.

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] Windows XP Publishing Wizard Integration
« on: March 08, 2003, 04:23:26 PM »
Windows XP offers a nice function for uploading files to a webserver. With this plugin you can use this function and upload images to your categories folders.
» Screenshot

Plugin Installation:

- Create a new directory called plugins in your admin-folder (if it yet does not exist)
- Extract the zip and copy the file xp_publishing_wizard.php to the plugins-directory
- Log in to your Control Panel, a new link should appear in the left navigation frame beneath "PlugIns"

Client-side installation:

- Click on "XP Publishing Wizard" in your Control Panel plugin menu.
- Download here the .reg file for registering your server with the Windows XP Publishing Wizard.
- Save this file on your PC and double-click it to register your server with the Publishing Wizard

How to upload files from your PC:

- In the Windows Explorer, select some files and click "Publish [...] on the web" in the task pane
- After confirming your file selection, your server will show up in the list of services
- Select it, click "Next" and follow the instructions (Login with your administrator username and password)
- Note: The wizard will only upload the files to your server. After that you have to add the images with "Check new images" to your gallery

Download: xp_publishing_wizard.zip
« Last Edit: August 15, 2008, 09:32:41 AM by kai »
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[Plugin] Windows XP Publishing Wizard Integration
« Reply #1 on: March 08, 2003, 06:57:52 PM »
ah, very nice idea, but it I cant get it to work...
first off all, when I download .reg file it has wrong path to xp_publishing_wizard.php . It points to:
http://host.com/xp_publishing_wizard.php
not to:
http://host.com/admin/plugins/xp_publishing_wizard.php
well, ok, thats might be my server's configuration problem, but still, after correcting .reg file and applying the patch, I go through the wizard, then after I select category I want upload, on next window it sais:
Quote
The wizard encountered a problem while copying the files. Anumber of thing can cause this problem. For example, the Web server might be down, or you might have lost your Internet connection...

so, I'm wondering have somebody else got it to work?

but the idea is great!  :D
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] Windows XP Publishing Wizard Integration
« Reply #2 on: March 08, 2003, 08:32:46 PM »
Hard to say because because it's not possible to show debug messages. Maybe you have some hints for me?

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Maweryk

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
[Plugin] Windows XP Publishing Wizard Integration
« Reply #3 on: March 08, 2003, 08:36:30 PM »
Hi Jan,

kann man den Mod auch umschreiben, dass auch Mitglieder Bilder hochladen können. Wäre super genial

Danke und Gruß

Markus

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[Plugin] Windows XP Publishing Wizard Integration
« Reply #4 on: March 08, 2003, 09:07:14 PM »
Quote from: Jan
Hard to say because because it's not possible to show debug messages. Maybe you have some hints for me?

Jan

hmmm...I just tryed do it from windows 98, with downloaded WebPublishingWizard, and I noticed, that it requered this script on the server: /scripts/cpshost.dll?PUBLISH
so, I belive to use this wizard, the server must run IIS server.... 8O
I might be wrong though.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
[Plugin] Windows XP Publishing Wizard Integration
« Reply #5 on: March 08, 2003, 10:55:14 PM »
Quote from: V@no
hmmm...I just tryed do it from windows 98, with downloaded WebPublishingWizard, and I noticed, that it requered this script on the server: /scripts/cpshost.dll?PUBLISH
so, I belive to use this wizard, the server must run IIS server.... 8O
I might be wrong though.

I think you're mistaken.  It looks to me like the plugin generates the registry file using information about your web site.  If you look at the php code:
Code: [Select]
if ($action == "getreg") {

  header("Cache-control: private");
  header("Content-Type: application/octet-stream");
  header("Content-Disposition: filename=xp_publishing_wizard.reg");

  $http = parse_url($script_url);
  $registry_key = strtr($http['host'], '.:', '__');

  $lines  = 'Windows Registry Editor Version 5.00'."\r\n";
  $lines .= "\r\n";
  $lines .= '[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\PublishingWizard\PublishingWizard\Providers\\'.$registry_key.']'."\r\n";
  $lines .= '"displayname"="'.$config['site_name'].'"'."\r\n";
  $lines .= '"description"="'.$lang['nav_images_add'].'"'."\r\n";
  $lines .= '"href"="'.$script_url.'/xp_publishing_wizard.php?action=start"'."\r\n";
  $lines .= '"icon"="'.str_replace("/admin", "", str_replace("/plugins", "", $script_url)).'/favicon.ico"'."\r\n";
  $lines .= "\r\n";
  echo $lines;
  exit;
}

I suspect the problem you hit was with $script_url  Besides, Jan did say that this was for XP.  It's not safe to assume that the Win98 "WebPublishingWizard" is the same as WinXP's publish to the web.  The concept may be the same but I doubt the implementation is.

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
[Plugin] Windows XP Publishing Wizard Integration
« Reply #6 on: March 08, 2003, 10:57:22 PM »
FYI:

I tried this plugin using a Linux-Apache web server.  It worked perfectly on my Windows XP PC.

 :D  Thanks Jan!    :D

This is really cool since now I will no longer have to figure out what category number corresponds to the one I want to upload to.  It's also MUCH easier than navigating up and down through directories in an FTP client.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[Plugin] Windows XP Publishing Wizard Integration
« Reply #7 on: March 09, 2003, 12:04:44 AM »
Quote from: Chris
FYI:

I tried this plugin using a Linux-Apache web server.  It worked perfectly on my Windows XP PC.

 :D  Thanks Jan!    :D

This is really cool since now I will no longer have to figure out what category number corresponds to the one I want to upload to.  It's also MUCH easier than navigating up and down through directories in an FTP client.

Nice!
well, then, there is only two possibilities:
1. I need properly configure my webserver.
2. same as 1.  :?

btw, Jan, now I see, what removing
Quote
$script_url .= (dirname($PHP_SELF) != "/") ? dirname($PHP_SELF) : "";
from global.php would cause... (if u remmeber I sent u PM about that)
OFFTOPIC:
but, why when dirname($PHP_SELF) content " \ " this line still works the same?:
Quote
$script_url .= (dirname($PHP_SELF) != "/" || dirname($PHP_SELF) != "\\") ? dirname($PHP_SELF) : "";
« Last Edit: March 09, 2005, 03:06:08 AM by Chris »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[Plugin] Windows XP Publishing Wizard Integration
« Reply #8 on: March 09, 2003, 12:24:26 AM »
OFFTOPIC:
that was stupid of me using OR instead of AND:
Quote
|| dirname($PHP_SELF) != "\\") ? dirname($PHP_SELF) : "";
:oops:  :oops:  :oops:
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline sally

  • Newbie
  • *
  • Posts: 19
    • View Profile
[Plugin] Windows XP Publishing Wizard Integration
« Reply #9 on: March 12, 2003, 12:42:18 AM »
Quote
The wizard encountered a problem while copying the files. Anumber of thing can cause this problem. For example, the Web server might be down, or you might have lost your Internet connection...


and i did not need to login i never seen login thing sould be like that? or is there something wrong too

getting this too please help seems the right thing that i realy need

thank you

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] Windows XP Publishing Wizard Integration
« Reply #10 on: March 12, 2003, 11:13:35 AM »
The script detects your session if you have already loggedin. Try to close all browser windows and start the wizarda again.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline sally

  • Newbie
  • *
  • Posts: 19
    • View Profile
[Plugin] Windows XP Publishing Wizard Integration
« Reply #11 on: March 12, 2003, 12:46:12 PM »
ok but what about this ?

Quote
The wizard encountered a problem while copying the files. Anumber of thing can cause this problem. For example, the Web server might be down, or you might have lost your Internet connection...
[/quote]

Offline Maweryk

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
[Plugin] Windows XP Publishing Wizard Integration
« Reply #12 on: March 12, 2003, 12:49:46 PM »
Hi Jan,

es wäre schön, wenn Du mir kurz die Frage beantworten köntest, ob man für Mitglieder diesen Mod auch umschreiben könnte. Wäre super genial.

Gruß

Markus

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] Windows XP Publishing Wizard Integration
« Reply #13 on: March 12, 2003, 02:08:45 PM »
Prinzipiell könnte man das schon. Nur kann man damit keine Einträge in der Datenbank vornehmen sondern nur Dateien auf den Server laden.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline sally

  • Newbie
  • *
  • Posts: 19
    • View Profile
[Plugin] Windows XP Publishing Wizard Integration
« Reply #14 on: March 12, 2003, 02:58:41 PM »
ok but what about this ?


Quote
The wizard encountered a problem while copying the files. Anumber of thing can cause this problem. For example, the Web server might be down, or you might have lost your Internet connection...


please  help