Skip to Content
It is currently February 28th, 2024, 3:35 am

All times are UTC - 6 hours [ DST ]

 [ 2 posts ] 
Author Message
PostPosted: August 23rd, 2019, 12:28 am 
Senior User
Senior User

Joined: July 23rd, 2007, 2:22 am
Posts: 176
Location: Vancouver, BC, Canada
In display.playing.php where it says "From" and lists the album name, if a person clicks on this link I'd like to show the track listing of that album instead of taking me to Amazon to purchase.

My current line reads:

(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
<?php if(!empty($currentSong->album)) : ?><br />from <span id="currently-playing-album"> <?php echo $currentSong->album; ?></span> <?php endif; ?>

I know I need some HTML in there and I've cross-referenced the original display.playing.php file but it doesn't give me much to go on.


Park Magic Radio

PostPosted: August 26th, 2019, 2:15 pm 
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8306
Location: Cologne (Germany)
There's no way to do that out of the box.
You first need to code an album page and only then can you replace the link from amazon to your album page.

SAM doesn't come with any grouped listings (other than the letters) by default.

Benedikt Bauer - SVS (Spacial Volunteer Support)

Shop for readymade PAL scripts by countrywesterndj - Or get a custom script made by me (or others)

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode

Display posts from previous:  Sort by  
 [ 2 posts ] 

All times are UTC - 6 hours [ DST ]

Who is online

Users browsing this forum: Baidu [Spider] and 11 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group