Is that possible?

General discussion about netjukebox
Post Reply
highmighty
User
Posts: 19
Joined: Thu Apr 28, 2005 6:58 pm
Location: Montreal, QUEBEC
Contact:

Is that possible?

Post by highmighty »

Hi Willem,

I was wondering if there is a way to change the default "start up" page of NJB because currently it always loads up the "Browse" section of NJB and I would better like it to load the "Playlist" section first...

Give this a try, click the URL (which forces you to the 'Playlist' section) and login with the 'anonymous' account and blank password: http://chilledbeats.dyndns.org/netjukeb ... u=playlist

You'll notice that it takes you back to the 'browse' section...

So, it means that on a first attempt (= without having logged in first), no matter what you specify in the URL, you'll be redirected back to the 'Browse' section but I would actually like the 'Playlist' section to load first instead... is that possible?

Remember, my radio station (http://chilledbeats.dyndns.org) is more intended for "streaming" purposes via Shoutcast, and is publicly available to all, so that's why I would like my "anonymous" listeners to see first what's currently playing, then they could go to the 'Browse' section to 'Add/queue' more songs to the current playlist!

I hope I'm clear enough,

Talk to you soon,

Thanks again for your time,

highmighty
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

Yes it is possible.
Now time today, I will let you know in a few days.
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

For netjukebox 3.76 these are the changes you have to make:

index.php line 37

Code: Select all

if (!$menu) $menu = 'playlist';
login.php line 90

Code: Select all

<form action="playlist.php" method="post" name="loginform" target="main" onSubmit="return login(this);">
user.php line 253

Code: Select all

<a href="index.php?menu=playlist&authenticate=logout" target="_top"><img src="<?php echo $cfg['img']; ?>/button_logout.gif" alt="" width="106" height="26" border="0"></a>
highmighty
User
Posts: 19
Joined: Thu Apr 28, 2005 6:58 pm
Location: Montreal, QUEBEC
Contact:

Post by highmighty »

It worked... thanks again Willem!
Post Reply