Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
#106 2006-10-31 02:24:18
- semanio
- Member
- Registered: 2005-10-18
- Posts: 20
Re: upm_file_packets
Logoleptic,
Yes, with 4.0.4 the “Attach File” link under the write tab disappears in 4.0.4. I have a feeling this has to do with the interface being cleanedup in 4.0.4. My guess this is a pretty simple fix for Mary once she gets around to it.
To my knowledge Mary has not stated when she will be fixing her plug-ins to work with 4.0.4. Thus, I actually need to get this plug-in working ASAP so if I’m successful in my fix I’ll post a patch.
Semanio
Offline
#107 2006-10-31 03:22:51
- semanio
- Member
- Registered: 2005-10-18
- Posts: 20
Re: upm_file_packets
Mary – here is a proposed patch for this plug-in to make it be 4.0.4 compatible.
I took a few moments tonight to update the upm_file_packets_js function found in your plug-in to get the Attach File link to re-appear under the write tab of Textpattern v4.0.4.
———————————————————————————————————————————————————————————————————————————————
TXP users please note: this patch is for 4.0.4 only (and possibly above) for the code changes reflect the admin area cleanup that occurs from 4.0.3 to 4.0.4.
———————————————————————————————————————————————————————————————————————————————
Patching this plug-in
Please note that the following line numbers assume you copy & paste the plug-in code from TXP into your favorite editor. Under the upm_file_packets_js function; starting at line 101*(var link = (document.createElementNS) ?) replace the code with the following code below through *line 120 (the closing bracket of the for loop).
var link = (document.createElementNS) ?
document.createElementNS('http://www.w3.org/1999/xhtml', 'h3') :
document.createElement('h3');
link.appendChild(a);
var ps = document.getElementsByTagName('h3');
for (var i = 0; i < ps.length; i++)
{
var h3 = document.getElementsByTagName('h3')[i];
if (h3.firstChild.firstChild)
{
if (h3.firstChild.firstChild.nodeValue == txt)
{
var newNode = h3.parentNode.insertBefore(link, h3);
newNode.className = "plain";
}
}
}
Offline
#108 2006-10-31 07:43:57
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_file_packets
Updating the plugin to make the tags work like 4.0.4 requires other updates.
Offline