Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-28 06:43:22

Samanta
New Member
From: Dominican Republic
Registered: 2005-08-13
Posts: 2

Pls, help! Looking for plugins that...

I’d like my txp site to do two certain things, but I can’t seem to find any plugins that can make my dream come true. Perhaps I’m not searching in the right places, so this is when you ppl come in…

WHAT I’M LOOKING FOR:
1) I use the txp files feature to upload music and allow users to download them. I’d like to allow users to rate the songs displayed, but I don’t want the 1-5 rating system, I want one that simply asks whether the user liked the song or not, a simple yes-or-no question. Example: the rating system used at www.designsnack.com

2) A simpler way to add an image to an article… not * typing * the location of the article image! Isn’t there a way in which after uploading the image I simply click some link which takes me to a New Article page with the image uploaded already specified in the article image field??? …Or any other way would be very much appreciated.

Offline

#2 2006-07-28 08:27:06

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Pls, help! Looking for plugins that...

1. OK, for downloads, use something like this:

form: music

<code>
<p><a href=”<txp:site_url />/file_download/<txp:custom_field name=“music_id” />”>Download</a></p>
</code>

Create a custom field called “music_id”, and post the file ID number (3,4,5,etc). This assumes you have clean url’s, but if not, the link can be modified. You’d then need to call the music form. In your article form (ex: default), add <code><txp:output_form form=“music” /></code>. You’ll probably need to turn comments auto append off in the admin too, but I’m not sure.

1b. You could probably edit one of the current rating plugins.

2. bas_img is the way to go.

Offline

Board footer

Powered by FluxBB