Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • [SC] Blog Music
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
[SC] Blog Music
Tweet Topic Started: Jul 12 2008, 10:23 PM (1,131 Views)
Agent Moose Jul 12 2008, 10:23 PM Post #1
Member Avatar
SMF for Free Moderator

Posts:
838
Group:
Former Staff
Member
#14
Joined:
Jul 9, 2008
Javascript or Below Board:
Code:
 
<script>
function BlogMusic(ID,URL){
if(location.href.match("blog/(main|entry)/" + ID + "$")){
//Created by Agent Moose (smcodes.smfforfree3.com)
document.write('<embed src="' + URL + '" autostart="true" loop="true" hidden="true"><noembed><bgsound src="' + URL + '"></noembed>');
};};
BlogMusic("ID","URL");
</script>


ID = The ID of the user you want to add the music to
URL = The URL of the music.

Add more lines to add more music to a blog section:
Code:
 
BlogMusic("ID","URL");


Enjoy :)
Edited by Reid, Jun 15 2009, 08:24 PM.
You could call me Troy :P | The World of Moosey | Newest Blog: SMF for Free Spam Code

Current Project: Zetaboard Javascript Tester (click on the link in the Submenu)

ZetaBoard Javascript Tester Features:
- Code Test box
- Counts how many open brackets/parentheses and closed brackets/parentheses you have in your code to make sure that your code will work.
- New: Inspect Element
Offline Profile Goto Top
 
mastermazaki Jul 23 2008, 03:03 PM Post #2
Member Avatar


Posts:
61
Group:
Member
Member
#219
Joined:
Jul 22, 2008
Coding language
HTML/CSS
Nice code may come in handy in the future!
Posted Image

For new manga artists go to http://www.gashu-group.net
Offline Profile Goto Top
 
Jesus Jul 23 2008, 05:45 PM Post #3
Member Avatar
The Holy Savior

Posts:
180
Group:
Member
Member
#85
Joined:
Jul 18, 2008
Coding language
Ruby on Rails
So does this have like auto replay for when the song is over?
Posted Image
Offline Profile Goto Top
 
Viral Jul 24 2008, 07:42 AM Post #4


Posts:
342
Group:
Dedicated
Member
#48
Joined:
Jul 17, 2008
Coding language
PHP
Yeah, it's on loop.

Posted Image
Offline Profile Goto Top
 
JakeH Jul 27 2008, 07:30 AM Post #5
Member Avatar


Posts:
43
Group:
Member
Member
#325
Joined:
Jul 27, 2008
Coding language
ActionScript
That's pretty neat, if you like music in blogs that is, lol.
Offline Profile Goto Top
 
KingSingh Aug 29 2008, 01:33 PM Post #6
Member Avatar
Singh is King!

Posts:
149
Group:
Member
Member
#240
Joined:
Jul 23, 2008
Coding language
HTML/CSS
What would the URL of music be? Like a YouTube link? I don't get it =/
Posted Image
Singh is King!
Offline Profile Goto Top
 
Pandect Aug 29 2008, 03:11 PM Post #7


Posts:
15
Group:
Member
Member
#775
Joined:
Aug 29, 2008
Coding language
ASP.Net
I bet you could use Imeem.com

Where do you put the code? >.> I am always stuck on that part...probably the simplest thing...
Offline Profile Goto Top
 
Agent Moose Aug 29 2008, 07:56 PM Post #8
Member Avatar
SMF for Free Moderator

Posts:
838
Group:
Former Staff
Member
#14
Joined:
Jul 9, 2008
Javascript or Below Board :)
You could call me Troy :P | The World of Moosey | Newest Blog: SMF for Free Spam Code

Current Project: Zetaboard Javascript Tester (click on the link in the Submenu)

ZetaBoard Javascript Tester Features:
- Code Test box
- Counts how many open brackets/parentheses and closed brackets/parentheses you have in your code to make sure that your code will work.
- New: Inspect Element
Offline Profile Goto Top
 
Pandect Aug 29 2008, 08:16 PM Post #9


Posts:
15
Group:
Member
Member
#775
Joined:
Aug 29, 2008
Coding language
ASP.Net
Thanks, now I'll go find that :D



Side Note: Soooo...I go to Admin CP >> Themes >> Edit Theme...Appearance? Layout?

Never mind, I found Javascripts in Board Template ^_^
Edited by Pandect, Aug 29 2008, 08:23 PM.
Offline Profile Goto Top
 
Rizelmine Sep 3 2008, 04:12 AM Post #10
Member Avatar


Posts:
1
Group:
Member
Member
#842
Joined:
Sep 3, 2008
Coding language
HTML/CSS
Hello! this is a cool feature ^_^

I Have a question though.. do you mean by ID, the username or the member's number? :unsure:
" So many freaks, not enough circuses.."

Posted Image
www.i-lounge.org
Exchange ideas about various topics from the MMORPG
Philippine Ragnarok Online to different aspects of life!
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2

Track Topic · E-mail Topic Time: 9:37 AM Jul 11
Hosted for free by ZetaBoards · Privacy Policy