Skip to Content
It is currently March 24th, 2023, 1:04 am

All times are UTC - 6 hours [ DST ]




 [ 6 posts ] 
Author Message
 Post subject: top10requests
PostPosted: October 20th, 2020, 9:11 am 
Offline
Super User
Super User

Joined: August 18th, 2005, 10:25 am
Posts: 1329
I'm running SAM 4.9.6 in Windows 7, using Firebird/samHTMLweb.

When I hover over tracks in my top10requests and click, Track Information comes up for the song currently playing. How do I correct this error?


Top
 Profile  
 
 Post subject: Re: top10requests
PostPosted: October 20th, 2020, 9:38 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8306
Location: Cologne (Germany)
This is the line responsible for the hover info:
Code:
<a href="javascript:songinfo($requests.ID$)" title="$requests.artist$ - $requests.title$">


In the generated file (i.e.: on your website) you can check if the template was evaluated correctly by using the "inspect" tool in your browser (right-click on the link that would open the details page for one of the requests in your top10 list and then select "inspect element" from the menu)

That should show the full HTML source of the current page, but will highlight somewhere within the link element. Just look for the closest <a href="... and check if the title attribute (title="...") matches the text inside.

If it does, the problem can't be fixed and your browser is the actual problem.
If it doesn't, you need to generate the playlist files again.

_________________
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  
 
 Post subject: Re: top10requests
PostPosted: October 20th, 2020, 11:28 am 
Offline
SVS Member
SVS Member

Joined: May 8th, 2004, 9:00 am
Posts: 10572
Location: Denver, CO
a link to your web site would be helpful.

_________________
- Rob Oyler, SVS
Image


Top
 Profile  
 
 Post subject: Re: top10requests
PostPosted: October 20th, 2020, 2:27 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8306
Location: Cologne (Germany)
dj001 wrote:
http://soukous.org/top10.htmGenerate and Generate Playlist did not solve the problem.



https://imgur.com/EkwUrav

Works fine for me.

_________________
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  
 
 Post subject: Re: top10requests
PostPosted: October 20th, 2020, 3:20 pm 
Offline
Super User
Super User

Joined: August 18th, 2005, 10:25 am
Posts: 1329
When you hover, it works fine, when you click it, you get what's playing now. I tried Generating and Generating Playlist.


Top
 Profile  
 
 Post subject: Re: top10requests
PostPosted: October 20th, 2020, 3:49 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8306
Location: Cologne (Germany)
Ahh, sorry, misunderstood you.

Quote:
When you hover, it works fine, when you click it, you get what's playing now.

I think that's the way it's intended to. Nothing wrong here. The songinfo.html will always show the details of the currently playing song.
No idea why they thought it was a good idea to link the tracks in the requestlist. It's probably just an oversight from when they copied the PHP template to HTML and adapted it.
There's no way for this to work without creating as many files as you have tracks in your library.

Long story short: Individual details pages for all tracks are not possible in HTML-mode.

_________________
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  
 [ 6 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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