Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#37 2005-09-09 16:43:44
- Niconemo
- Member
- From: Rhône-Alpes, France
- Registered: 2005-04-18
- Posts: 557
Re: upm_file_packets
OK. The fix is OK. Thank you.
Last edited by Niconemo (2005-09-09 16:44:34)
Nico
Offline
Re: upm_file_packets
Ok I’m definitely missing something here.
I uploaded files. I associated them with an article. When I tried to make them display I get this.
file: []
Category:
download: 0 file: []
Category:
download: 0 file: []
Category:
download: 0 file: []
Category:
download: 0 file: []
Category:
download: 0 file: []
Category:
download: 0 file: []
Category:
download: 0 file: []
Category:
download: 0 file: []
Category:
download: 0
The only thing it gets right is the number of files attached. How do I properly output this?
Offline
Re: upm_file_packets
ok so i changed the files form to
<code>
<upm_file_packets_link>
<txp:file_download_name /> [<txp:file_download_size format=“auto” decimals=“2” />]
</upm_file_packets_link>
<br />
</code>
which now gives me better results but no links…..
OhWordHeaders800x600.jpg [296.35kb]
OhWordHeaders1024x768.jpg [330.88kb]
OhWordHeaders1280x1024.jpg [522.13kb]
Shadowboxing800x600.jpg [96.07kb]
Shadowboxing1024x768.jpg [141.24kb]
Shadowboxing1280x1024.jpg [237.10kb]
TheEmcees800x600.jpg [200.56kb]
TheEmcees1024x768.jpg [292.75kb]
TheEmcees1280x1024.jpg [473.46kb]
Offline
Re: upm_file_packets
Gee I really should have read the 2 posts above mine… Ok no problem now.
Offline
Re: upm_file_packets
Mary, when I click “Attach”, shouldn’t the file IDs turn up in the custom field? Here, nothing seems to happen even though I “registered” the custom field for the plugin in the plugin’s preferences.
Consequently, no files are being displayed.
Just to be sure: I put the tag <txp:upm_article_file_list />
in the article form and a list of associated files should be displayed, right?
Update: I just noticed that upm_image_popper doesn’t work, either. It used to, though. When I click any of the attach links, nothing happens where I used to see the “Success” popup.
This is TXP 4.0.1.
Last edited by andreas (2005-09-29 18:42:11)
Offline
#42 2005-09-29 18:48:29
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_file_packets
Double-check that both JavaScript and CSS is turned on in your browser.
Offline
Re: upm_file_packets
They are. I tested in Opera 8.5, FF 1.0.7 and IE6.
Update: the web developer toolbar reports JS errors:
<code>
Error: unterminated string literal
Quelldatei: http://www.rete-mirabile.net/textpattern/index.php?event=upm_file_packets&js=pop_js
line: 33, column: 24
source: fastWin.document.write(’
—-
Error: attachFile is not defined (several of these)
—-
Error: uncaught exception: [Exception… “Component returned failure code: 0×80004005 (NS_ERROR_FAILURE) [nsIObserverService.removeObserver]” nsresult: “0×80004005 (NS_ERROR_FAILURE)” location: “JS frame :: chrome://global/content/bindings/browser.xml :: destroy :: line 569” data: no]
</code>
Last edited by andreas (2005-09-29 19:10:55)
Offline
#44 2005-09-30 00:12:18
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_file_packets
I don’t get those or any errors in those three browsers, exact same versions and including the web dev. toolbar. No errors, no warnings, links are there and they all work. 4.0.1 stable, latest plugin version (right now it’s v.0.2.1).
I just had a realization of what it might be. Are you running GreaseMonkey? If so, turn it off and see what happens. If it suddenly works, then I need to go find out how to account for it.
Edit: hm, but that doesn’t account for the other two browsers… very weird…
Last edited by Mary (2005-09-30 00:13:16)
Offline
#45 2005-09-30 01:26:36
- aba
- Plugin Author
- Registered: 2004-04-14
- Posts: 119
Re: upm_file_packets
Andreas, do you use any proxy that tries to get rid of banners and popups? I had some weird errors using proximotron…
Offline
Re: upm_file_packets
I use neither a proxy nor Greasemonkey. I switched off Opera’s popup blocker but it didn’t change anything.
The errors are weird. Even IE shows “Error on the page” in the status bar. I re-installed the plugin twice since the problem occured but nothing.
Would it help for testing if you sent me your plugin code directly to paste it into the “edit” textarea? If so, send it to andreas [dot] kalt at my gmail account.
Last edited by andreas (2005-09-30 10:38:59)
Offline
Re: upm_file_packets
I found the problem. I use the admin plugin hpw_admincss to give the admin areas of my different sites a color tinge. That plugin seems to interfere with both upm_image_popper and upm_file_packets.
Once I deactivate hpw_admincss everything’s fine.
So thanks, mary, for these great plugins and for your help.
One feature request: an “Append” function (analogous to the one in upm_image_popper) for upm_file_packets would be great.
Last edited by andreas (2005-09-30 10:58:52)
Offline
#48 2005-09-30 15:21:29
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_file_packets
> “I found the problem.”
Oh good. Well, not “good”, but you know…
> “…That plugin seems to interfere…”
Aw hell, that’s not good. And now having both plugins running I see why. Both myself and Adrian will need to revise one of our plugin’s methods. Thanks for telling me, we can’t have plugins biting each other…
> “…One feature request: an ‘Append’ function “
Er, it already does do that, that’s the default behaviour… or does that not work for you?
Offline