PDA

View Full Version : Changing the directory listings


viapodcast
09-15-2005, 04:16 PM
I'm using your latest release, and I mainly use the directory for podcast listings. So most of my links are to mp3 files.

I have a script, directory.php that will direct the user to the correctly formated page dependingon the file type, mp3, mov, or a web page.

The directory.php script is called by directory.php?url=http://site.com/file.mp3 or what ever the url is.

Now when I add links through rss to say the music directory the import shows the url is the mp3 file. But when I view the directory listings this link to the mp3 file is not shown. I believe the database shows this in the
PLD_LINK table URL

What I want is when any directory is viewed I want the to add an image that will link to the directory.php file and pass the url value with it like in
directory.php?url=http://asite.com/mymusic.mp3

How do I edit the directory listings to do this?

Thanks!
Dave

viapodcast
09-15-2005, 04:21 PM
The link to my site music directory is:
http://www.viapodcast.com/Entertainment/Music/

viapodcast
09-15-2005, 05:11 PM
I figured most of this out except the $link.URL value is not the url I need.

I need the url to what is stored in the table PLD_LINK URL field.

The title link seams to be different, or I'm missing something!

viapodcast
09-15-2005, 08:18 PM
I was able to solve this problem so on to the next!

I am trying to add contractable description content using javascript.

Here is the link code I have:
<p class="menuTrigger" onClick="expandcontent('sc{$n}')" >
Description: (click)</p>
<div id=sc{$n} class="switchcontent">
{$link.DESCRIPTION}
</div>

The problem I have is how do I get a value for $n?

I need $n to start with a value of 1, then increment by 1 for each listing.

So the code would be:

<p class="menuTrigger" onClick="expandcontent('sc1')" >
Description: (click)</p>
<div id=sc1 class="switchcontent">
{$link.DESCRIPTION}
</div>

Then the value would change to 'sc2' for the next listing.

How do I add this?

Any help would be appreciated!

WebDesignPoint
09-15-2005, 08:28 PM
Try this:

Content visible to registered users only.

viapodcast
09-15-2005, 08:59 PM
Perfect!!

Works great!

http://www.viapodcast.com/Top-50/

Thanks for your help!

WebDesignPoint
09-15-2005, 09:06 PM
Looks well. I'd suggest changing the word 'click' to 'show' instead. And maybe when a user does click it, that the word then changes to 'hide'.

viapodcast
09-15-2005, 09:14 PM
Ya I thought of this but I think I'll use an image.

Thanks for your help and ideas!