Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2010-07-28 15:20:54

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

Re: bot_file_upload: upload and edit files from within the write tab

Hi, have you set a custom field for files? And secondly, have you changed plugins code accordingly (By default it works with a cf called “files”)?

edit
Oops! too late! Anyway you are right, it has the same issues of bot_image_upload (first version) so you can have a look on that thread to fix them.
I wish I had the time to release a new version but unfortunately it wasn’t the case. I’ll try to do it asap…

Last edited by redbot (2010-07-28 15:28:12)

Offline

#12 2010-07-28 15:58:48

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: bot_file_upload: upload and edit files from within the write tab

Yep, the same fixes you mentioned for Remora and bot_image_upload work here, the following changes are needed for those affected:

change line 33 from…

$bot_iframe_url = hu.'textpattern/index.php?event=file';

…to…

$bot_iframe_url = 'index.php?event=file

and change line 144 from…

iframe.find("#pagetop,#end_page").hide();

…to…

iframe.find("#pagetop,#end_page,#nav,#messagepane").hide();

Offline

#13 2010-11-01 22:02:51

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: bot_file_upload: upload and edit files from within the write tab

Hi Redbot

Finally got around to trying this out and while it works a treat on 4.3 RC1, I can’t get it (or bot_image_upload) to work on r3443. The links appear in the write tab, but rather than launching the lightbox, they just hide #pagetop and #end_page.

Tried rolling back to jQuery just incase, but no change. I think there is work in progress in the Write tab so it’s maybe not worth trying to update now (even if you have the time and motivation) but just thought I’d flag it up incase it’s useful.

Stu

Offline

#14 2010-11-01 22:49:48

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

Re: bot_file_upload: upload and edit files from within the write tab

Hi Stuart,
First of all thank you for testing and reporting here. I have a very few spare time these days so I didn’t even tried to run these plugins in last txp versions. Anyways I think you are right in believing it has to do with the recent changes in the ‘write’ tab.
I promise when txp 4.3 will be out I’ll try to make the necessary code changes.
For what concerns bot_file_upload it needed an update anyway. I have a semi-finished version laying on my desktop for months but I can’t find time and concentration to focus on it lately.
I hope I’ll manage to do it in the near future, ok?

Offline

#15 2010-11-01 22:51:32

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: bot_file_upload: upload and edit files from within the write tab

Of course, yep!

Offline

#16 2010-12-03 19:49:51

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

Re: bot_file_upload: upload and edit files from within the write tab

Version 0.3 released.

This version works only for txp 4.3. For txp 4.2 use v. 0.2.

Changes

  • Code partly rewritten – more tidy
  • Page elements are targeted using the hooks provided by the new txp 4.3 html markup – simpler code
  • Different styling – now it looks more like a ‘typical’ modal window with an opacity layer underneath
  • No more need to upload icons – now base64 encoded
  • Css can be customized a lot more easily than before
  • The file-list in the ‘write’ tab is more compact so can be placed virtually anywere (now defaults under the ‘title’ field)
  • File titles are listed insted of descriptions
  • Other minor glitches fixed

Download from first post.

Offline

#17 2010-12-06 10:00:33

jelle
Member
Registered: 2006-06-07
Posts: 165

Re: bot_file_upload: upload and edit files from within the write tab

Thanks for all your work Redbot. Your plugins are standard on my sites.

Offline

#18 2010-12-06 10:18:22

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: bot_file_upload: upload and edit files from within the write tab

Thanks Redbot :)

Offline

#19 2010-12-06 15:55:10

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

Re: bot_file_upload: upload and edit files from within the write tab

jelle + pieman

Thank you.
BTW in a few days – when I’ll be back home – I’ll upload v. 0.3.1 which should help in case you need to sort files in a specific order.

Last edited by redbot (2010-12-06 15:55:28)

Offline

#20 2010-12-06 16:36:59

jelle
Member
Registered: 2006-06-07
Posts: 165

Re: bot_file_upload: upload and edit files from within the write tab

Sorting?! Brilliant.

May I also suggest a simple Cancel button or X on top of the dialog for those cases where the user does not want it’s changed saved.

Last edited by jelle (2010-12-06 16:37:10)

Offline

Board footer

Powered by FluxBB