PDA

View Full Version : Profile Songs?


Shadow Blaze
08-15-2005, 07:45 PM
All I'm looking for is a simple hack to make a section in your profile page that allows html use to play a midi or mp3 or something... Is there an option in here that i can turn it on and make it work or can someone make me a hack to accomplish this please ^_^ thank you anyone who can help... basically all I want to accomplish is to allow the use of the code like this

<bgsound src="Enter link to song here" autostart="true" loop="infinite">

and basically all they see is a blank field that says to enter the song link in the empty box... hope that helps describe what i'm lookin for... ^_^

Bro_Joey_Gowdy
08-15-2005, 07:52 PM
It sounds simple enough... I might could make this.

Why not use the vbRadio ?

Will the song be playing continuously as you browse through that certain forum (if so, then it might require a popup window or something) ?

Check these topics :
https://vborg.vbsupport.ru/showthread.php?t=83132
https://vborg.vbsupport.ru/showthread.php?t=78323
https://vborg.vbsupport.ru/showthread.php?t=68440

Shadow Blaze
08-17-2005, 10:11 PM
no no, it'd be only available if you're in that persons profile... i dunno about the radio can you put one song per each profile in it?? o.O

Zero Tolerance
08-17-2005, 10:41 PM
Add New User Profile Field -> Single Line Text Box

Title: Profile Music
Description: Enter the URL to a music file you want to play in your profile
Default Value: [leave blank]
Max length of allowed user input: 255
Display Size: 55
Display Order: [leave alone]
Field Required: No
Private Field: No
Field Searchable on Members List: No
Show on Members List: No
Regular Expression: ^(http(s)?://([^<>*"]+|[a-z0-9/\\._\- !]+))$
Which page displays this option? Edit Profile

Save

Next: Edit the template 'memberinfo_customfields'
Change it to:
<if condition="$profilefield[title] != 'Profile Music'">
<tr>
<td>
<strong>$profilefield[title]</strong>:<br />
$profilefield[value]
</td>
</tr>
<else />
<tr>
<td>
<strong>$profilefield[title]</strong>:<br />
Playing
<embed src='$profilefield[value]' autostart='true' loop='true' width='1' height='1' />
<noembed>
<bgsound src='$profilefield[value]'>
</noembed>
</td>
</tr>
</if>

:)

- Zero Tolerance

Bro_Joey_Gowdy
08-20-2005, 08:05 PM
ZT and RPG Inferno rocks.

:)

Shadow Blaze
08-21-2005, 05:26 PM
*hugs*

Gizmo5h1t3
10-26-2005, 10:15 PM
only thing is, it takes an absolute age to load the tune.....

evenmonkeys
10-27-2005, 04:32 AM
Is it possible to make this work for FireFox? Embed tags generally don't work for FireFox.

Alien
10-27-2005, 05:08 AM
Any easy way of limiting this to only allow including .mid midi files? :)

BlackxRam
10-27-2005, 12:26 PM
yeah being able to restrict to midi would be a nice reason to make this a actual modification, that or the ability to link to an online station right there.

evenmonkeys
10-27-2005, 04:30 PM
Well... I'd do it the cheesy way and put .mid at the end of the hardcode. Probably not a good choice though. In the profile field, you would just tell them to leave out the trailing .mid extention.

Is it possible to make this work for FireFox? Embed tags generally don't work for FireFox.

DraculaVN
12-19-2005, 06:53 AM
Great ! I love it. Thanks Zero !!!

rb290
12-19-2005, 07:34 AM
THanks !
anyway to make it so you can see the song thats playing "Artist - Title"?


Is it possible to make this work for FireFox? Embed tags generally don't work for FireFox.

ya that would be nice, alot of people use firefox.

tipoboy
12-19-2005, 07:00 PM
nice!!!!

tipoboy installs thanks ZT

ProphetAO
12-21-2005, 07:25 AM
Is it possible to make this work for FireFox? Embed tags generally don't work for FireFox.

Keyword... firefox... lol you should try another browser ;) i know people claim it's the best but maxthon is the exact same without some of the problems that it has... Orrrrrr if you're able to learn how to use it properly Opera's a good one but some people have problems with it >.< just depends i guess... but yea if you have problems with embeds on ff then change because that proves they suck ;)

Exitilus
12-28-2005, 07:11 PM
Does this work w/ 3.5?

agiacosa
01-19-2006, 08:29 PM
This isn't working for me. Anyone using it in 3.5? Any changes?

Figured it out. Thanks.

Shadow Blaze
01-22-2006, 02:17 AM
ummmm........ just for anyone else who wants to use this i have a slight fix for it, dunno if it was always like this or if it's just a vb3.5.1+ but i'm running vb3.5.3 and i found problems in the user profile fields not to mention the code was broken apparently and wouldn't play at all.... sooooo i'll go ahead and put this...

<if condition="$profilefield[title] != 'Profile Music'">
<tr>
<td>
<strong>$profilefield[title]</strong>:<br />
$profilefield[value]
</if>
<td>
<embed src='$profilefield[value]' autostart='true' loop='true' width='1' height='1' />
<noembed>
<bgsound src='$profilefield[value]'>
</noembed>

this is the new stuff that should appear in your memberinfo_customfields template... as far as I've found that fixes all issues with this coding ^_^ enjoy ;)

tipoboy
01-22-2006, 06:24 PM
ummmm........ just for anyone else who wants to use this i have a slight fix for it, dunno if it was always like this or if it's just a vb3.5.1+ but i'm running vb3.5.3 and i found problems in the user profile fields not to mention the code was broken apparently and wouldn't play at all.... sooooo i'll go ahead and put this...

<if condition="$profilefield[title] != 'Profile Music'">
<tr>
<td>
<strong>$profilefield[title]</strong>:<br />
$profilefield[value]
</if>
<td>
<embed src='$profilefield[value]' autostart='true' loop='true' width='1' height='1' />
<noembed>
<bgsound src='$profilefield[value]'>
</noembed>

this is the new stuff that should appear in your memberinfo_customfields template... as far as I've found that fixes all issues with this coding ^_^ enjoy ;)

i'm running 3.5.3 and the original code works with no problems

Exitilus
04-21-2006, 08:34 PM
Anyone else now getting a ActiveX error message using this now?

SixteenOhNine
04-21-2006, 08:55 PM
Have you looked into using the AnyMeda BBCode (https://vborg.vbsupport.ru/showthread.php?t=106239) extension that's available?

I'ved used this and while it does allow it more so across the forum, it allows them to use BBCode to surround a URL and will either play video or music.

It's rather nice and works well enough from what I've seen. I've not really had any issues in FF or IE.

OFFSHORE DAN
04-23-2006, 03:18 AM
cool thanks

TCE Killa
12-27-2007, 04:11 PM
Does this work for 3.6.8? I really want something like this for my forum, thanks.