Home Music Articles Forums Blog Chat More...      

remove from bookmarks
Prev Topic | Next Topic

Author
Posts
(Read 16021 times)
deputydoofy
Forum Full Member


Registered: 02/09/04
Posts: 2106
Location: Doofyville, Doofsylvania Doofstantine
 
Doofy/Smokey Code
Saturday, January 24 2009 @ 02:10 PM CST

After seeing a lot of confusion over adding some of our code, I thought I'd simplify by putting all the code options supplied by SmokeyVW and me right here in this thread, and putting a little explanation after each. The codes are a la carte, so to speak, so adding one will not give you every single feature. Accordingly, you don't want to add the same line of code more than once, or you might get unexpected results. To add the code, simply copy the yellow, highlighted HTML and add it to your bio.

Doofy Code
<script type="text/javascript" language="javascript" src="http://mysite.verizon.net/doofymusic/newComments.js"></script> - This is the code that makes everyone's profile show color-coded comment dates. Comments made on the current date are red and on fire. As days pass, the color "cools" off, going from red to blue, and finally back to normal. THIS CODE IS NEW AND NOW WORKS FOR THE TIME BEING. ALSO, THIS LINE SHOULD BE PUT IN BEFORE SMOKEY'S ALBUM CODE.

<script type="text/javascript" language="javascript" src="http://mysite.verizon.net/doofymusic/newFavorites.js"></script> - This is the code that takes your favorite songs list, makes it invisible, and re-organizes it into a drop-down list. Also, it provides a search box so you can find the exact song you're looking for. Some of you have 1000+ favorite songs and scrolling through them is probaby not the best way to get to that song you know is in there somewhere.


SmokeyVW Code
<script type="text/javascript" language="javascript" src="http://mysite.verizon.net/doofymusic/smokey/mjSongSort.js"></script> - Smokey created a really cool script that makes your song list sortable, by name, vote, ht count, etc. All you need to do is click on the title of the column and it all sorts. Clicking the same title again swaps between ascending and descending order.

<script type="text/javascript" language="javascript" src="http://mysite.verizon.net/doofymusic/smokey/mjAlbums.js"></script> - This script will actually sort your songs by "albums." Here is the follow-up code necessary for albums.
<span id="albums" title="

album Hearing Colors
songs 42823 42833 42840 42856 42858 42859 42860

album 32 Degrees of Freedom
songs 40317 40990 41657 39048 40509 42580 39272

"></span>
- As a quick explanation, the words directly after "album" will be your album name. The numbers following the word "songs" are the actual songs in that album. Where do the numbers come from, you ask? Smile Mouse over any of your songs and you'll see that they have an ID#.

<script type="text/javascript" language="javascript" src="http://mysite.verizon.net/doofymusic/smokey/mjBackground.js"></script> - This script makes most of the divisions of your page transparent.

If that's too much transparency for your tastes, you can set each division to have a background color instead.

Just add this to the end of your bio:

<span id="mjBackground" title="Songs white FavoriteMacJammers white"></span>

Here's a list of all the divisions. Just string them all inside the title as shown above. Colors can be regular names, or in HTML style like #ccffcc.

Bio white
Songs yellow
FavoriteSongs white
FavoriteMacJammers yellow
Fans skyblue
MusicBackground pink
MusicSkills pink
MusicHardware bbffbb
MusicSoftware white
Keywords red
Past30Comments transparent

The background behind your bio and the top portion with your name, Contact, etc. is set like this:
Stats blue

The background behind everything in the main portion of the page is set like this:
Profile gray

You can also set your background picture like this:

<span id="mjBackground" title="Songs white FavoriteMacJammers white PageBackgroundhttp://i228.photobucket.com/albums/ee225/smokeyvw/ring4.jpg"></span>

This sets your page background picture:
PageBackgroundhttp://i228.photobucket.com/albums/ee225/smokeyvw/ring4.jpg

Or you can set your page background color like this:
PageBackgroundColor skyblue


I have an ambitious goal of creating a console that will allow you to look at and sort things on the fly. Not sure if it will ever actually get finished, but you can see an example of the very beginnings of such a console - it says "console" and provides a close button - on my profile page. Wait about 10 seconds and then double-click anywhere on my page (well, preferably not on a link) and you will see the "console" appear. If I can make it useful, I'll share it with everyone.

I hope this helps. All edits to the code in this thread will be done right here, not later in the thread, to keep in consistent.

I said don't disturb me when I'm cleaning my room!
magnatone
Forum Full Member


Registered: 02/08/08
Posts: 3986
Location: N/A
 
Re:Doofy/Smokey Code
Saturday, January 24 2009 @ 02:13 PM CST

THANKS DOOFY - it's great to have this all in one place with explanations!
dajama
Forum Full Member


Registered: 11/25/05
Posts: 308
Location: The Suburbs, MN
 
Re:Doofy/Smokey Code
Saturday, January 24 2009 @ 02:28 PM CST

Thanks for doing this, man. Very cool and much appreciated. Cheers. Peace.
sloparts
Forum Full Member


Registered: 08/17/07
Posts: 707
Location: Barling, AR USA
 
Re:Doofy/Smokey Code
Saturday, January 24 2009 @ 02:28 PM CST

Thank you, thank you, thank you. This is what I was hoping for was a place to get all the little trick codes at once. U da man Doofy.

Ed

Music is the master link in the chain of the tribes of mankind ! SloParts, March 21, 2008
SmokeyVW
Forum Full Member


Registered: 06/13/06
Posts: 6201
Location: N/A
 
Re:Doofy/Smokey Code
Saturday, January 24 2009 @ 03:00 PM CST

Thank you Doofy for spelling it all out for us!

Great job.

Quote by: deputydoofy
... This script will actually sort your songs by "albums." I believe there is extra stuff you have to do besides add this script to tag a song as being part of an album. Smokey will let us know. Smile ...



Yes, there is extra stuff. The details are here: http://macjams.com/forum/viewtopic.php?forum=4&showtopic=135940


sheilad
Forum Full Member


Registered: 08/02/08
Posts: 590
Location: Edmonton, Alberta Canada
 
Re:Doofy/Smokey Code
Saturday, January 24 2009 @ 03:04 PM CST

Thank you so much... I always wondered how everyone made their sites nice and tidy!
Char
Forum Full Member


Registered: 11/01/07
Posts: 1588
Location: Beavercreek, Ohio USA
 
Re:Doofy/Smokey Code
Saturday, January 24 2009 @ 03:35 PM CST

I say we need to promote Doofy to Sheriff. That was so generous and I am grateful for the 'splanation. I may have enough courage to try one or two. From my heart, my thanks.

Better to remain silent and be thought a fool than to speak out and remove all doubt. Abraham Lincoln
michael2
Forum Full Member


Registered: 03/18/07
Posts: 3068
Location: Los Angeles, Cali USA
 
Re:Doofy/Smokey Code
Saturday, January 24 2009 @ 04:05 PM CST

you guys are friggin cool
sonnyjim
Forum Full Member


Registered: 05/27/08
Posts: 471
Location: , Lesotho
 
Re:Doofy/Smokey Code
Saturday, January 24 2009 @ 09:54 PM CST

It has been on my mental 'to do' list to ask for these, so I offer my most heartfelt thanks for the post.

These codes rock, and I appreciate the gesture greatly.

Thanks much,

SJ
 
deputydoofy
Forum Full Member


Registered: 02/09/04
Posts: 2106
Location: Doofyville, Doofsylvania Doofstantine
 
Re:Doofy/Smokey Code
Saturday, January 24 2009 @ 11:24 PM CST

Quote by: particledots
I would like to implement this but I cant get it to work on my page, even after consulting smokey's thread....obviously I am doing something wrong, can anyone help or make it clearer please? I have managed to get smokey's other script to work so I am not sure where I am going wrong

- This script will actually sort your songs by "albums." I believe there is extra stuff you have to do besides add this script to tag a song as being part of an album. Smokey will let us know.



Hi PD! I updated the first post to explain how the albums work. There is extra code needed (which has been added to that post). I hope it helps.

I said don't disturb me when I'm cleaning my room!