Skip to Content
It is currently December 5th, 2023, 10:30 am

All times are UTC - 6 hours [ DST ]




 [ 2 posts ] 
Author Message
PostPosted: August 23rd, 2019, 12:28 am 
Offline
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.

Thanks!
Dan

_________________
Park Magic Radio
http://parkmagicradio.ca


Top
 Profile  
 
PostPosted: August 26th, 2019, 2:15 pm 
Offline
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


Top
 Profile  
 
Display posts from previous:  Sort by  
 [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 21 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:  
cron
Powered by phpBB® Forum Software © phpBB Group