Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2007-03-01 12:23:01

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: [plugin] [ORPHAN] cno_replace_file

I’m finding the file is replaced with the newly uploaded file, but it’s given the file name of the file it is replacing.

Offline

#17 2007-03-01 12:29:21

chriloi
Plugin Author
From: Vienna, Austria
Registered: 2006-01-17
Posts: 120
Website

Re: [plugin] [ORPHAN] cno_replace_file

lee wrote:

I’m finding the file is replaced with the newly uploaded file, but it’s given the file name of the file it is replacing.

It’s not a bug, it’s a feature.

Offline

#18 2007-03-01 12:34:35

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: [plugin] [ORPHAN] cno_replace_file

Oh right, would it be a better feature if it updated the file name if it is different? Forgot to say thanks for the plugin in first post.

Offline

#19 2007-06-05 15:52:44

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: [plugin] [ORPHAN] cno_replace_file

mrdale wrote:

Doesn’t seem to work for me either, I am using a lot of other plugins, though none that mess with the file area… Well perhaps the admin facelift?

chriloi wrote:

If it’s on then search for <form action=“index.php” method=“post”> in the HTML output of your textpattern’s file admin view. If this line doesn’t exist, there might be a problem with the admin facelift.

I had the same problem of mrdale and yes… it’s caused by the admin facelift wich adds class=“upload-form” to the form element. To make it work again you just have to change in the plugin code this line:

$form ='<form  enctype="multipart/form-data" action="index.php" method="post">'.

with this:

$form ='<form class="upload-form" enctype="multipart/form-data" action="index.php" method="post">'.

Offline

#20 2007-07-13 18:33:04

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: [plugin] [ORPHAN] cno_replace_file

ooops! please ignore my previous post, I was wrong, it has nothing to do with the admin facelift.
This plugin doesn’t work for me..
when I try to replace a file I get a message about the file folder not being writeable, but it is!
Besides, if I search for files filtered by category in the default “upload file” form, my bowser (tried with firefox and ie) asks if I want to download the file “index.php”…
ps I’ve already tried disabling all other plugins and I get the same results with txp 4.04 and txp 4.05.

Offline

#21 2007-07-14 10:11:15

pfctdayelise
Member
From: Melbourne, Australia
Registered: 2007-05-18
Posts: 68
Website

Re: [plugin] [ORPHAN] cno_replace_file

I installed this on TXP 4.0.5 but I don’t see any difference. Where is the ‘replace’ link supposed to be?

All plugin creators should use screenshots liberally :)

ps> yes, I enabled it ;)

Offline

#22 2007-07-14 11:52:39

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: [plugin] [ORPHAN] cno_replace_file

You have to choose first a file to replace to make it appear

Offline

#23 2007-07-15 08:31:41

pfctdayelise
Member
From: Melbourne, Australia
Registered: 2007-05-18
Posts: 68
Website

Re: [plugin] [ORPHAN] cno_replace_file

redbot wrote:

You have to choose first a file to replace to make it appear

I follow an ‘edit’ link for a file and I still don’t see any ‘replace’ link.

Offline

#24 2007-07-15 10:47:12

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: [plugin] [ORPHAN] cno_replace_file

Isn’t there a form with a “replace” button? …note that it looks like the one on the “files” tab so it can be easily overlooked.

Offline

#25 2007-07-15 11:26:23

pfctdayelise
Member
From: Melbourne, Australia
Registered: 2007-05-18
Posts: 68
Website

Re: [plugin] [ORPHAN] cno_replace_file

A ‘form’??

Here is a screenshot. If there is any ‘replace’ button I must be going blind or mad…

Offline

#26 2007-07-15 11:53:05

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: [plugin] [ORPHAN] cno_replace_file

Yes you are right… so it seems there is another problem with this plugin…
anyway have you checked this ? I’ve not tried it yet but it should work

Offline

#27 2007-07-15 12:02:56

pfctdayelise
Member
From: Melbourne, Australia
Registered: 2007-05-18
Posts: 68
Website

Re: [plugin] [ORPHAN] cno_replace_file

redbot wrote:

Yes you are right… so it seems there is another problem with this plugin…
anyway have you checked this ? I’ve not tried it yet but it should work

I prefer not to hack my core code. :(

Offline

#28 2007-10-16 03:34:34

ferenczi
Member
Registered: 2005-01-31
Posts: 67

Re: [plugin] [ORPHAN] cno_replace_file

lee wrote:

I’m finding the file is replaced with the newly uploaded file, but it’s given the file name of the file it is replacing.

chriloi answered:

It’s not a bug, it’s a feature.

Frankly I think it’s a great feature because what I hope to do with this plugin (haven’t installed it yet, knock on wood that it works for me) is enable a client to upload his bio, which he updates from time to time and needs to have as a downloadable Word doc for concert venues, etc. And I don’t want to have to change the link location every time he updates his bio.

Offline

#29 2007-10-16 04:31:15

ferenczi
Member
Registered: 2005-01-31
Posts: 67

Re: [plugin] [ORPHAN] cno_replace_file

Update:
Just my luck, it doesn’t work for me and I have no idea how to enable output buffering. Didn’t find instructions some posts above very clear, alas.

Offline

#30 2007-10-16 04:45:01

ferenczi
Member
Registered: 2005-01-31
Posts: 67

Re: [plugin] [ORPHAN] cno_replace_file

chriloi wrote:

First check if you have enabled output buffering for textpattern.

No idea how to do this.

chriloi wrote:

If it’s on then search for <form action="index.php" method="post"> in the HTML output of your textpattern’s file admin view. If this line doesn’t exist, there might be a problem with the admin facelift.

Checked for this; don’t find it. I’m not quite sure how “problem with the admin facelift” can be addressed.

Am using 4.0.5.

Last edited by ferenczi (2007-10-16 04:47:29)

Offline

Board footer

Powered by FluxBB