Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2006-12-22 00:07:18

vibe9
Member
From: North Vancouver, BC
Registered: 2005-01-18
Posts: 21
Website

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

Mary, thank you for all your great plugins, this one looks like it will be awesome — I used upm_file packets before and it was a “site saver”.

I’m now trying to use upm_file and have followed Tim’s method above, however, I get the following error when using it:

Fatal error: Call to undefined function: parse_form() in /home/www/websitenamegoeshere/textpattern/lib/txplib_misc.php(512) : eval()’d code on line 90

I’ve double checked that the plugin is turned on and that the appropriate custom field was assigned. I also tried it on a couple of different TXP 4.04 driven sites and got the same error. Any suggestions? If you want more details (diagnostics, etc..) I’d be happy to email them to you, and/or give you access to view the site (which is currently under production).

Thanks!
Terry

Last edited by vibe9 (2006-12-22 02:27:58)


Once in a while you can get shown the light, in the strangest of places if you look at it right.
-Grateful Dead

Offline

#22 2006-12-22 03:48:05

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

Sorry, I did something stupid. Try grabbing the latest version now available.

Offline

#23 2006-12-22 03:54:39

vibe9
Member
From: North Vancouver, BC
Registered: 2005-01-18
Posts: 21
Website

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

Awesome. Thanks so much Mary! You rule :-)


Once in a while you can get shown the light, in the strangest of places if you look at it right.
-Grateful Dead

Offline

#24 2007-01-18 19:25:12

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

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

I am missing some information on how to use this plugin. I read through the documentation but I have no idea what I am supposed to do to accomplish this:

It requires you to use one of your custom fields to hold the file list. 

You can take a look at my site if you like, which is currently not using upm_file. Basically I want to associate song files with the articles they are on, as I already have done using txp:file_download_list and unique categories for each article.

I need to start using your plugin because I want to have a list of most downloaded videos and songs (separately), but the txp:file_download_list will only accept single categories, so I cannot make an all-inclusive top song downloads list since I have three song categories, one for each album.

Don’t be fooled to think I got it working by my site when you see the Top 5 Songs list, right now it is only showing the songs from one album (one category). Once I have the plugin setup and files associated with articles, I can change the file categories to be more general (ie. movies, music), and then be able to make my all-inclusive Top Movie / Song lists.

I’m all for brevity, but you might consider adding some more specific instructions for use of this plugin. Thanks for any help!

Andrew

Last edited by aswihart (2007-01-18 20:32:15)

Offline

#25 2007-01-19 09:33:30

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

From the plugin help:

It requires you to use one of your custom fields to hold the file list… pick one to be used, then update the plugin’s preference to point to it.

  1. Got a custom field created?
  2. See the tab “extensions” and under it “upm_file”?
  3. Go to your write tab. You’ve got a file picker link that works with the custom field you created.

Offline

#26 2007-01-19 13:08:45

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

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

OK, now the file picker is adding the file id’s to the article’s custom field. Before, it was not doing this, I think I had to rename the custom field to something other than “custom1,” or somehow I missed that before.

Thanks a lot Mary, the plugin is working great and its something I really needed!

Offline

#27 2007-02-26 17:53:09

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

Is there any file size limit built into the plug in Mary? I’m repeatedly trying to upload a 4/5 mb file and it won’t do it. And if its not the plug in I suspect the server, which means is there anything I need to check and/or modify in the plug in so it will work?

- the server’s fine for every other txp function, and for using an ftp client.

Offline

#28 2007-02-26 18:22:52

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

Is there any file size limit built into the plug in…

No.

You need to increase the file upload size (advanced options), and you may need to increase the limit within PHP itself (which you may or may not be able to do with your host).

Offline

#29 2007-02-26 21:17:06

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

I may be thinking of this wrong and this may be possible already but here it goes. I would like it if upm_article_file_list could take the category attribute. Here is an example of my article form to help explain why I would like this:

<tr>
    <th scope="row"><txp:title /></th>
    <td><txp:custom_field name="Job_Number" /></td>
    <td><txp:body /></td>
    <td class="currency"><span>$</span> <txp:custom_field name="Estimate_M" /></td>
    <td><txp:upm_article_file_list break="" form="planHolders_file" category="plan-holders" /></td>
    <td><txp:upm_article_file_list break="" form="bid_file" category="bid-tab" /></td>
</tr>

Notice the two different category attributes, that I would like to see possible, using your tag. This would allow me to associate multiple files from different categories with an article in the “Write” tab. Then allow me to output those article files into two different columns in the html.

Is this already possible another way or could it be added to the current plugin?

Thanks Mary.

Last edited by tinyfly (2007-02-26 21:17:53)

Offline

#30 2007-02-27 02:58:41

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

Yeah, that isn’t currently possible, I don’t think. I could add it, though.

Offline

Board footer

Powered by FluxBB