Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » upm_file_packets

#73 2005-11-08 10:35:57

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

Re: upm_file_packets

magic. thanks mary

Offline

#74 2005-11-08 20:32:08

the-bhp
Member
Registered: 2005-10-18
Posts: 26

Re: upm_file_packets

Thanks a lot for this great plugin! Exactly what I needed!

Offline

#75 2005-11-11 18:16:18

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

Re: upm_file_packets

Mary,

I am getting the same problem that I got with upm_img_popper:

Hey Mary, I am trying to use your plugin with mic_tinymce and the editor attaches to the hidden input that your plugin creates, <input type=“hidden” name=“Body” value=”“>. mic_tinymce uses name=”body” to attach to the article body textarea.

Can you update this one also?

Offline

#76 2005-11-21 12:08:12

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: upm_file_packets

what am I doing wrong? getting no result whatsoever from the below…

txp 4.0.2 hosted on textdrive

  • plugin 0.2.5 -> active in plugins list
  • packet custom field is “article-files” – same as in prefs
  • in my article form (it’s the right one!) I have <txp:upm_article_file_list form="files" />
  • form “files” exists with the following tags:
<ul class="files-list">
<li><txp:file_download_link><txp:file_download_name /></txp:file_download_link>
 <span class="filesize"><txp:file_download_size format="mb" decimals="1" /></span></li>
<li class="filedesc"><txp:file_download_description /></li></ul>

when I substitute <txp:file_download_list /> for upm plugin tag, I get a list of files

yours, perplexed

Last edited by nardo (2005-11-21 12:12:12)

Offline

#77 2005-11-21 19:43:33

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

Re: upm_file_packets

Hmm, that’s odd. If you replace the entire form with “Hi nardo”, what do you get back?

Offline

#78 2005-11-21 21:18:07

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: upm_file_packets

nothing, Mary – I’ll recheck everything tonight, I must be doing something dopey

Offline

#79 2005-11-22 00:14:09

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

Re: upm_file_packets

Nope, it was my bad. It should work now.

v.0.2.6

Offline

#80 2005-11-22 00:54:01

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: upm_file_packets

many thanks mary – the files are appearing, I am removing sackcloth & ashes

but getting an error msg at the top of each screen of the site now:
eg “select custom_1 from `textpattern` where `ID` = ‘2’ limit 1”

- even when Production Status (in site prefs) is set to “Live”

EDIT: mary’s done fixed it

Last edited by nardo (2005-11-22 03:31:17)

Offline

#81 2005-11-22 01:59:19

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

Re: upm_file_packets

Whoopsie… Try once more (updated the file, but not the plugin version number).

Offline

#82 2006-01-05 15:57:13

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

Re: upm_file_packets

Anyone have this working in 4.0.3? If so, do you have a copy of the plugin? I tried to compile it myself, from the source which mary left here but I am still getting the division by zero error.

Offline

#83 2006-01-24 19:26:57

Thirteen
Member
Registered: 2006-01-09
Posts: 40

Re: upm_file_packets

I asked a similar question in the “How do I..” forum several days ago but received no replies- and now it’s just occurred to me that I’m using upm_file_packets to attach files to my articles so it might be more specific to a plugin help.

upm_file_packets allows multiple file attachments…and my question is, how do I get these multiple files to link? Does each of the file have to be in a separate custom category? And if so…how would I go about counting downloads separately for these separate files within an article? I’m tearing my hair out trying to figure this out- if anyone can help me out at all or point me in the right direction, I’d so greatly appreciate it. Thank you!

Offline

#84 2006-01-24 19:45:34

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: upm_file_packets

I use this code in my article form:

<code>
<ul class=“dloadlist”>
<txp:upm_article_file_list />
</ul></code>

The plugin uses the default “file” form to output the file links. In this form, I have the following:

<code>
<li class=”<txp:file_download_category />”><txp:file_download_link>
<txp:file_download_name /> (<txp:file_download_size format=“auto” decimals=“1” />)
</txp:file_download_link></li></code>

I assign each file a category to display different icons based on it (see class attribute in the li element) but that’s not necessar.

Hope this helps.

Last edited by andreas (2006-01-24 19:46:03)

Offline

  1. Index
  2. » Archives
  3. » upm_file_packets

Board footer

Powered by FluxBB