Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2007-02-22 21:16:38

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

Re: [plugin] [ORPHAN] cno_replace_file

First check if you have enabled output buffering for textpattern.

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.

Offline

#14 2007-02-28 15:16:45

ChrisJ
Member
From: Vienna, Austria
Registered: 2004-03-30
Posts: 54
Website

Re: [plugin] [ORPHAN] cno_replace_file

First check if you have enabled output buffering for textpattern.

I’m sorry if I ask dumb questions, but how?

On a side note, plugin’s replace upload form appears when the file’s status is ‘missing’ (the file is removed from the files directory, entry still in the database).

Last edited by ChrisJ (2007-02-28 23:19:42)

Offline

#15 2007-03-01 09:29:28

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

Re: [plugin] [ORPHAN] cno_replace_file

Can you check the second condition please. If this line doesn’t exist just post the HTML output here and I’ll find a solution.

Offline

#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

Board footer

Powered by FluxBB