Page 1 of 1

Is that possible?

Posted: Thu Oct 27, 2005 2:58 am
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

Posted: Thu Oct 27, 2005 5:23 pm
by wbartels
Yes it is possible.
Now time today, I will let you know in a few days.

Posted: Sat Oct 29, 2005 9:43 am
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>

Posted: Mon Oct 31, 2005 11:37 pm
by highmighty
It worked... thanks again Willem!