Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » upm_file_packets

#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

#109 2006-11-01 03:16:22

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

Re: upm_file_packets

Mary wrote:

Updating the plugin to make the tags work like 4.0.4 requires other updates.

I’m not sure I follow you. Are the template tags for the plugin changing?

Offline

#110 2006-11-01 08:41:50

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

Re: upm_file_packets

The tags need to be updated because the article tags were updated in 4.0.4. It’s not critical, but it needs to be done too. It’s almost ready, I’ve just got 50 million things to do all at once. :)

Offline

#111 2006-11-01 12:43:24

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

Re: upm_file_packets

Mary,

Thanks for the clarification; and I forgot about all the article tag changes. Take your time on the plug-ins and keep up the good work.

Offline

#112 2006-11-16 08:44:21

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

Re: upm_file_packets

The plugin has been updated for 4.0.4, and split into two plugins – one powers just the tags, the other provides the popup file picker. You can use one, the other, or both, however you would like.

Offline

#113 2007-01-24 08:54:10

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

Re: upm_file_packets

anyone have a copy of this original version for a 4.03 site?

Offline

#114 2007-01-24 10:56:43

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

Re: upm_file_packets

You really should upgrade, but I’ve got a copy of 0.3 if you must have it.

PM me, and I’ll send it to you as an e-mail attachment.

Offline

  1. Index
  2. » Archives
  3. » upm_file_packets

Board footer

Powered by FluxBB