Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloning process #20

Open
ChorusCory opened this issue Oct 27, 2024 · 18 comments
Open

cloning process #20

ChorusCory opened this issue Oct 27, 2024 · 18 comments

Comments

@ChorusCory
Copy link

Sorry to bother y'all, but how would I make a "clone" of JSRFL? I'm wanting to just have the exact same structure but with different stations.
Thanks,
Cory

@Mcdonoughd
Copy link
Collaborator

Adding a Station:

edit STATIONNAME as needed

add the following below the bumps in the index.html:
<script type="application/javascript" src="radio/stations/STATIONNAME/~list.js"></script>

make folder STATIONNAME in radio/stations/ (this holds the data for the station)
add ~list.js file in STATIONNAME folder (this file is used as the list of songs in the station
make folder "images" in radio/stations/STATIONNAME/ (holds description.png (1418x300) wallpaper.jpg (1920x1080) icon.png (700x700) images, note that they must be named that)

~list.js should have:

//Choose a name for the station
stationName = "STATIONNAME";

//Add it to the array of stations
stationsArray[stationsArray.length] = stationName;

//Define an array for tracks
this[stationName+"_tracks"] = new Array();


//TRACKS

this[stationName+'_tracks'][this[stationName+'_tracks'].length] = "MUSICFILENAME";

Copy the last line for every track in the station playlist. Edit MUSICFILENAME as needed The MUSICFILENAME should not have the extension as it expects mp3 files.

@ChorusCory
Copy link
Author

thanks, though one other question. should i clone this repo, or mirror the website directly?

@RudiesGarage RudiesGarage deleted a comment from BenSFGamer Oct 29, 2024
@Mcdonoughd
Copy link
Collaborator

If your goal is to have a static site with custom music, the cloning the repo and adding your own music is the easiest option.

@ChorusCory
Copy link
Author

alright, thanks again! i am having one issue with cloning, though. no matter which branch i clone, im unable to input anything on the title. if it helps at all, i'm on the 64-bit version of firefox 132.0

@Mcdonoughd
Copy link
Collaborator

What do you mean by title? The <title> tag?

@ChorusCory
Copy link
Author

i mean the title screen, with the "tune in" text at the bottom

@Mcdonoughd
Copy link
Collaborator

You can change the images of the title screen in the titlescreen/images folder. Because its October it loads the Halloween event images. There are also special events for Christmas, Summer and the birthday of JSRF.

@ChorusCory
Copy link
Author

sorry, but i dont think you're understanding. the problem isnt that i cant change the pictures on the title screen, but that im unable to get to the "main menu" where you actually listen to the music from it.

@Mcdonoughd
Copy link
Collaborator

Does the console provide any errors? It is likely that the scripts are not loaded due to the hosting environment.

@BenSFGamer
Copy link
Contributor

Good evening. Think you can pull this:
#16 (comment)

Been on the back burner for a while.

@ChorusCory
Copy link
Author

Does the console provide any errors? It is likely that the scripts are not loaded due to the hosting environment.

yes
image

Good evening. Think you can pull this: #16 (comment)

Been on the back burner for a while.

im given the same problem when using that branch

@Mcdonoughd
Copy link
Collaborator

The issue is that it cannot find relevant xml data. Im confused as to why there are references to non http protocols. How are you starting the site? Are you running it from a flashdrive? I have not tested opening the index.html directly in Windows. It should work behind any http server though.

@ChorusCory
Copy link
Author

im starting the site by just opening the index.html file. do you think hosting it on a github page would work?

@ChorusCory
Copy link
Author

when opening it using a github page, i get the following errors.
image

@Mcdonoughd
Copy link
Collaborator

The simplest fix is to

  • add null check for the response in the editor/javascript.js
    4 == editortickerxmlhttp.readyState && editortickerxmlhttp.responseXML!=null
  • define newMessage on the top of ticker/javascript.js
    var newMessage="Failed to fetch xml document";

I am unfamiliar with github pages.

@ChorusCory
Copy link
Author

how do you suggest i host the website then?

@Mcdonoughd
Copy link
Collaborator

The host provider should not matter as long as you do not break any terms of service.

@ChorusCory
Copy link
Author

alright. i've got it working fine for the most part when opening the html directly, but when opening via where im hosting, i continue to get the "e is undefined" and "chat_switchStatus" is not defined. sorry i continue to bother you w this btw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants