vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] Requesting An Code "Music In Post" - View Topic
Topic Rating: *****
Printable View
This topic was locked 5th Mar 08 at 7:45am by Michael
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
[F] Requesting An Code "Music In Post" (3rd Mar 08 at 2:02pm UTC)
Being able to play music in post would be handy on my forum . I wonder if possible one of you guys (Wrighty, Marc or Ross) would be so kind to make the code please . {Smile}

Image
click here We have 15 Different Skins/Templates for your vForum
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Requesting An Code "Music In Post" (3rd Mar 08 at 5:15pm UTC)
So you want to embed a song in your post?

So something like: [embed]http://x.mp3[/embed] would be the UBBC tag?
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
Re: Requesting An Code "Music In Post" (3rd Mar 08 at 7:17pm UTC)
Yes please , Thanks Wrighty .

Image
click here We have 15 Different Skins/Templates for your vForum
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Requesting An Code "Music In Post" (4th Mar 08 at 10:32pm UTC)
Try this:

<script type="text/Javascript">
/*Embed UBBC
Created By Wrighty*/

if(location.href.match(/action\/view_topic\//i)){
    for(i=0;i<get('td','tag').length; i++){
        if(get('td','tag')[i].className == 'post' &&         get('td','tag')[i].innerHTML.match(/\[embed\](.+?)\[\/embed\]/i)){
        a = (RegExp.$1.match(/>(.+?)</))? RegExp.$1: '';
        get('td','tag')[i].innerHTML = get('td','tag')[i].innerHTML.replace(/\[embed\](.+?)\[\/embed\]/gi, '<embed src='+a+'>');
        }
    }
}else if(document.post_form && location.href.match(/\/quote\//i)){
    document.post_form.message.value = document.post_form.message.value.replace(/\[embed\].+?\[\/embed\]/gi,"");
}
</script>


Global Footer:

[embed]Src[/embed]
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
Re: Requesting An Code "Music In Post" (5th Mar 08 at 3:24am UTC)
Thank you Wrighty it work perfect {Grin} , great work my friend.

Image
click here We have 15 Different Skins/Templates for your vForum
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Requesting An Code "Music In Post" (5th Mar 08 at 7:45am UTC)
{Grin}
 Printable View

All times are GMT+0 :: The current time is 2:06pm
Page generated in 0.6208 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums