Author Topic: Is it possible with the request plugin to list only specific tracks?  (Read 8205 times)

Marius

  • Administrator
  • Hero Member

  • Offline
  • *****
  • 5688
    • Radio DJ
Re: Is it possible with the request plugin to list only specific tracks?
« Reply #15 on: March 06, 2016, 10:24:51 AM »
I think that the best solution for me is to add another field to the songs table which to enable/disable them on the website, in this way the user can filter which tracks will be displayed on the website and which not.
Do you think that this will be a useful addition?
DOWNLOADS PAGE

HOW TO FIX RADIODJ DATABASE
----------------
Please don't PM me for support requests. Use the forums instead.

DJ Garybaldy

  • Global Moderator
  • Hero Member

  • Offline
  • *****
  • 4374
  • Personal Text
    Don't Shoot! I'm only the Moderator
    • DJ Garybaldy Blog
Re: Is it possible with the request plugin to list only specific tracks?
« Reply #16 on: March 06, 2016, 12:02:15 PM »
I don't think there's any need to change anything ....

This could easily be achieved by using smart categories/sub categories and track type as other!

http://djgarybaldy.co.uk/radiodj-hide-songs-from-being-requested/

Retired Radio DJ & Proud USER of RadioDJ since 2010

https://djgarybaldy.blogspot.com

How to Install RadioDJ: https://djgarybaldy.blogspot.com/2020/08/how-to-install-radiodj-free-radio.html

Think of RadioDJ as the Swiss Army Knife of radio playout software

TQ

  • Sr. Member

  • Offline
  • ****
  • 293
  • Personal Text
    Perseverance is everything!
    • Emen Valley Radio
Re: Is it possible with the request plugin to list only specific tracks?
« Reply #17 on: March 06, 2016, 12:26:32 PM »
For me, I want requests related to rotations which is to say, if I'm running a POP rotation I would want tracks from my Popular music or No 1's sub categories. If I were running a rock show....

I can already do this with php using a look-up list against the Show title (rotation title) which I include in the Now Playing> Web export> but a better option IMHO would be an event that would set a $variable to include the sub-categories I need for that particular show.

Am I making sense?

TQ
A problem is only a problem if you can't find the solution.

marcbeinder

  • Sr. Member

  • Offline
  • ****
  • 330
    • Rise! FM - St. Louis
Re: Is it possible with the request plugin to list only specific tracks?
« Reply #18 on: March 06, 2016, 02:50:03 PM »
I agree with Marius. That would be very useful.
RiseRadio.org // EncoreMediaSystems.com

Jhonny

  • Hero Member

  • Offline
  • *****
  • 3989
  • Personal Text
    Peace, enjoy life, last sleep is longer than live!
    • Jhonny's RadioDJ tutorials.
Re: Is it possible with the request plugin to list only specific tracks?
« Reply #19 on: March 06, 2016, 10:12:00 PM »
Is there a way to hide more than one subcategory?

NOT IN(4,9,19,38)
R.T.F.M. means to me, Read The Fantastic Messages.
Einstein says: Make things simple, but don't make simple things simpler! (wise) this is just my life lesson you know.

I don't do drugs, I do tuts. ( ͡° ͜ʖ ͡°) visit  https://radiodj.info

Testing RadioDJ v2.0.2.0 Beta

marcbeinder

  • Sr. Member

  • Offline
  • ****
  • 330
    • Rise! FM - St. Louis
Re: Is it possible with the request plugin to list only specific tracks?
« Reply #20 on: March 06, 2016, 10:21:12 PM »
NOT IN(4,9,19,38)
Thanks Jhonny! You the man!
RiseRadio.org // EncoreMediaSystems.com

Yvette - Hitz24

  • Full Member

  • Offline
  • ***
  • 213
  • Personal Text
    The Hits Only Station
    • Hitz24
Re: Is it possible with the request plugin to list only specific tracks?
« Reply #21 on: March 07, 2016, 04:06:06 PM »
Yes, there is:

LINE 85 $srcquery = "AND id_subcat NOT IN(33,35,68)"; //search query holder

LINE 95 $srcquery = "AND (`artist` LIKE '%$srch%' OR `title` LIKE '%$srch%') AND id_subcat NOT IN(33,35,68)"; //Search artist and title

Works for us!

Yvette
Streaming Hit Music

Capt_Fuzzy

  • Hero Member

  • Offline
  • *****
  • 1076
  • Personal Text
    "Quiet numbskulls, I'm broadcasting!" ~ Moe Howard
    • WVRR - Ridgerunners Radio
Re: Is it possible with the request plugin to list only specific tracks?
« Reply #22 on: March 07, 2016, 04:50:06 PM »
I think that the best solution for me is to add another field to the songs table which to enable/disable them on the website, in this way the user can filter which tracks will be displayed on the website and which not.
Do you think that this will be a useful addition?
Most definitely!!  :cool:
Steve 'Capt Fuzzy' Wade
Proud & Satisfied "Long-term" RadioDJ User
(Currently making the transition to v2)

WVRR - Ridgerunners Radio
The best mix of your favorites!

Yvette - Hitz24

  • Full Member

  • Offline
  • ***
  • 213
  • Personal Text
    The Hits Only Station
    • Hitz24
Re: Is it possible with the request plugin to list only specific tracks?
« Reply #23 on: March 07, 2016, 04:58:16 PM »
I agree with Marius. That would be very useful.

We did solve it now by rewriting a few lines in the webscript, but Marius' solution is far more user-friendly.

Yvette
Streaming Hit Music

Capt_Fuzzy

  • Hero Member

  • Offline
  • *****
  • 1076
  • Personal Text
    "Quiet numbskulls, I'm broadcasting!" ~ Moe Howard
    • WVRR - Ridgerunners Radio
Re: Is it possible with the request plugin to list only specific tracks?
« Reply #24 on: March 07, 2016, 07:35:08 PM »
We did solve it now by rewriting a few lines in the webscript, but Marius' solution is far more user-friendly.
Yup...  :cool:
Steve 'Capt Fuzzy' Wade
Proud & Satisfied "Long-term" RadioDJ User
(Currently making the transition to v2)

WVRR - Ridgerunners Radio
The best mix of your favorites!