Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » upm_file_packets

#91 2006-04-07 04:27:26

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: upm_file_packets

What a wonderful plug-in… thanks Mary for this one…

I have “combined” it with the bas_emff and I’m very happy (combined= they share the same custom field… aaaah… I love TXP so much).

Now, I have a question.
In the pop-up windows, there are two links to the file. The first, under the “File name” column. The second, under the “Attach” column.
I attach the files with that link (the one with the nice clip).

But does the other one have any functionality?
If I look at the source code of the link, it has some scripting: onclick="return warnEditFile(8);" but if I click in the link, nothing seems to happen.

And a second and more important question:

¿does this plug-in also allow me to link files in the body of the article? (similar to upm_img_popper, that let’s add images to the body of the article).

If not, I ask: which is the “best” way to link uploaded files in the body of an article? hard-coding the link?!
But we are in 21 century!!!

thanks in advance.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#92 2006-04-11 02:38:23

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

Re: upm_file_packets

v.0.3

But does the other one have any functionality?

It should direct you to edit that file.

…does this plug-in also allow me to link files in the body of the article?

Yes and no. That is the purpose of the built-in file tags, which includes file_download_list. However, Alex and I recently discovered a problem with file_download_list. It will be fixed in an upcoming release, but, I would advise not using this particular built-in tag for large lists until it is, in fact, fixed. Therefore, in v.0.3, I’ve temporarily provided the tag upm_file_download_list, which is a fixed but otherwise identical version of file_download_list. As soon as the built-in tag is fixed, the plugin’s version will be disappearing.

Offline

#93 2006-04-21 21:48:21

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: upm_file_packets

Thanks for this plugin Mary.

Offline

#94 2006-04-25 14:31:08

csandberg
Plugin Author
From: Sweden
Registered: 2006-01-07
Posts: 40
Website

Re: upm_file_packets

This is very useful for me. Thank you very much!

Offline

#95 2006-06-06 00:49:52

semanio
Member
Registered: 2005-10-18
Posts: 20

Re: upm_file_packets

Mary,

FYI I just found a bug with the upm_file_download_list function. I kept banging my head as to why when I used this tag as you recommended the filesize would fail to display. After looking around at a few other plugins I saw that you had a few things missing.
<br />*First Change*<br />
———————————————————————————
<code>
global $thisfile;
</code>
TO
<code>
global $txpcfg,$file_base_path,$thisfile;
</code>

<br />*Next Change*<br />
———————————————————————————
<code>
if (file_exists($filepath)) {
</code>
TO
<code>
if (file_exists(build_file_path($file_base_path,$filename)) ) {
</code>
———————————————————————————
<br />
With those two minor changes the filesize and other information now display as they should. Just figured I would pass the information along.

Let me know if what I modified was incorrect.

Thanks,
Nate

Offline

#96 2006-06-06 20:27:52

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

Re: upm_file_packets

Only $file_base_path is missing; $txpcfg is unneeded. Your second change is redundant; look at the line above it. Making $file_base_path global should resolve the problem. Thanks for letting me know.

v.0.3.1

Offline

#97 2006-06-06 21:31:37

semanio
Member
Registered: 2005-10-18
Posts: 20

Re: upm_file_packets

Mary,

Cool. Thanks for letting me know I’m still learning what each TXP global var does and does not do. I’ll take out the redundany that you mentioned.

Lastly, is the TXP Wiki the best place to learn about these vars and what they do are is there a better site I can visit?

Thanks,
Nate

Offline

#98 2006-06-06 21:57:58

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

Re: upm_file_packets

There’s info on some Txp variables here.

Offline

#99 2006-07-13 04:57:32

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

Re: upm_file_packets

hi mary, please consider adding a class attribute to txp:upm_article_file_list … that is applied to the wraptag … cheers!

Offline

#100 2006-07-20 05:00:46

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

Re: upm_file_packets

v.0.3.2

There ya go, nardo. :)

Offline

#101 2006-09-24 14:25:03

ezee
New Member
From: Germany
Registered: 2005-04-03
Posts: 7
Website

Re: upm_file_packets

<txp:upm_file_packets_article /> works great with one associated file but with two or more files the articles are not sorted correctly (at least in my opinion). I want the plugin to sum up the downloads of all associated files and not to consider only the downloads of the first file for sorting. Would that be possible? :)

Offline

#102 2006-10-10 21:50:29

EddieG5
Member
From: Georgia
Registered: 2004-03-03
Posts: 96

Re: upm_file_packets

I’m sorry for the confusion, but I can no longer figure out how to use this plugin. I had an older version of this and the upm img plugin running on a TXP install. When I went to the write tab, two options were available to me:

Attach a File
Insert Image

From there I was able to put in an image or file with the article. I just did a fresh install of TXP (the latest RC) and installed the latest version of these plugins and made them active. I’m sure I’m missing something very elementary, but I can’t figure out how I use these now as nothing shows on the write tab. (I’m seeing File Downloads on the Pages and Forms page, but not sure how that applies.

Thanks for any direction!

Offline

#103 2006-10-11 13:43:17

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

Re: upm_file_packets

My plugins work with the (recommended) latest stable version of Textpattern, with is currently v.4.0.3.

Offline

#104 2006-10-11 13:48:14

EddieG5
Member
From: Georgia
Registered: 2004-03-03
Posts: 96

Re: upm_file_packets

ah, gotcha. thanks!

Offline

#105 2006-10-23 05:37:39

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: upm_file_packets

Should I expect any trouble when upgrading to 4.0.4?

Offline

  1. Index
  2. » Archives
  3. » upm_file_packets

Board footer

Powered by FluxBB