Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
Re: [plugin] [ORPHAN] cno_replace_file
Seems like they changed the form tag in 4.0.5…
Try to edit the plugin and replace <form action="index.php" method="post">
with <form method="post" action="index.php">
Last edited by chriloi (2007-10-16 10:36:23)
Offline
#32 2007-10-18 20:16:46
- ferenczi
- Member
- Registered: 2005-01-31
- Posts: 67
Re: [plugin] [ORPHAN] cno_replace_file
That did the trick! All is well now. Thanks, chriloi.
Offline
#33 2007-10-18 20:28:57
- ferenczi
- Member
- Registered: 2005-01-31
- Posts: 67
Re: [plugin] [ORPHAN] cno_replace_file
Ah. But, when I try to replace a file, I get:
“Notice: Undefined index: file in /home/mysite/public_html/textpattern/lib/txplib_misc.php(534) : eval()’d code on line 64
Notice: Undefined variable: filename in /home/mysite/public_html/textpattern/lib/txplib_misc.php(534) : eval()’d code on line 69
Notice: Undefined index: file in /home/mysite/public_html/textpattern/lib/txplib_misc.php(534) : eval()’d code on line 69”
and I am unable to upload the replacing file.
Last edited by ferenczi (2007-10-19 00:44:08)
Offline
#34 2007-10-19 06:32:33
- 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.
Can someone please explain to me (in somewhat simple terms because I’m a designer and not a programmer) how I can check to see if I have enabled output buffering for textpattern?
I guess what stumps me is that from what I can see your plugin calls the function; I don’t understand what I’m supposed to do beyond that. Or how to check.
Last edited by ferenczi (2007-10-19 06:46:01)
Offline
Re: [plugin] [ORPHAN] cno_replace_file
Forget the output buffering. This was a misleading hint from me, since output buffering is used by textpattern by default. You wouldn’t see the “Replace file” input field, if output buffering wasn’t working.
Let me see, if I can fix your problem…
Offline
Re: [plugin] [ORPHAN] cno_replace_file
Try this one: http://www.cnowak.de/works/txp_plugins/cno_replace_file_0.2.txt
If the error still appears, please post your php configuration.
Offline