vForums Support > Programming & Coding :: Code Requests & Support :: > [F] Support Wrighty Please

[F] Support Wrighty Please - Posted By CåñåÐå™ (canada) on 26th May 08 at 4:03am
Wrighty for some reason this code :
Code:
 
  1. <script type="text/Javascript">
  2. /*Embed UBBC
  3. Created By Wrighty*/
  4.  
  5. if(location.href.match(/action\/view_topic\//i)){
  6.     for(i=0;i<get('td','tag').length; i++){
  7.         if(get('td','tag')[i].className == 'post' && get('td','tag')[i].innerHTML.match(/\[embed\](.+?)\[\/embed\]/i)){
  8.         a = (RegExp.$1.match(/>(.+?)</))? RegExp.$1: '';
  9.         get('td','tag')[i].innerHTML = get('td','tag')[i].innerHTML.replace(/\[embed\](.+?)\[\/embed\]/gi, '<embed src='+a+'>');
  10.         }
  11.     }
  12. }else if(document.post_form && location.href.match(/\/quote\//i)){
  13.     document.post_form.message.value = document.post_form.message.value.replace(/\[embed\].+?\[\/embed\]/gi,"");
  14. }
  15. </script>
 
has stop working my friend, i have it at the very top of the global footer but it still not showing anything in the post page .

Re: Support Wrighty Please - Posted By Marc (cr0w) on 26th May 08 at 11:05am
Can we get a link to your forum please? {Smile}

Re: Support Wrighty Please - Posted By CåñåÐå™ (canada) on 26th May 08 at 2:03pm
Sorry i ment to leave it {Smile} .
http://tropolis.virtualforums.co.uk/

Re: Support Wrighty Please - Posted By Michael (wrighty) on 26th May 08 at 2:12pm
got a thread with an 'embed'? {Smile}

Re: Support Wrighty Please - Posted By CåñåÐå™ (canada) on 26th May 08 at 2:44pm
http://tropolis.virtualforums.co.uk/board/msc/topic/554/action/view_topic/page/1/music-test/
You'll have to login though wrighty, if you need anything else let me know. {Grin}

Re: Support Wrighty Please - Posted By Michael (wrighty) on 26th May 08 at 4:07pm
Could you validate my account then please! {Smile}

Re: Support Wrighty Please - Posted By CåñåÐå™ (canada) on 26th May 08 at 6:05pm
Ok an email should be waiting for you, i've also disable validate until you can see what's wrong.

Re: Support Wrighty Please - Posted By Michael (wrighty) on 26th May 08 at 7:18pm
I modified your first post, recopy from that, and let me know! {Smile}

Re: Support Wrighty Please - Posted By CåñåÐå™ (canada) on 26th May 08 at 8:16pm
Now it says "(click here to download plugin)" and when you click that you get "(No uitable plugin found)".

Re: Support Wrighty Please - Posted By Marc (cr0w) on 27th May 08 at 1:31am
Seems to be an issue with Firefox. What is the URL of the SWF file you're embedding? {Smile}

Re: Support Wrighty Please - Posted By CåñåÐå™ (canada) on 27th May 08 at 3:20am
http://h1.ripway.com/BEPLegend/sergiomendesfeat.fergie-thelookoflove.mp3

That's is what the link is Marc, that it should play .

Re: Support Wrighty Please - Posted By Michael (wrighty) on 27th May 08 at 8:36am
actually the problem is with the 'automatic URL creation' that runs on VF. I'll look into this more later. But I could have sworn that I had catered for that.

Try removing all special characters from the title. (dots, and hypens . -). Then try it... {Smile} Oh and keep the last one (.mp3) in! {Tongue Out}

Basically try calling it: x.mp3 {Smile}

Re: Support Wrighty Please - Posted By CåñåÐå™ (canada) on 27th May 08 at 1:09pm
 
Try removing all special characters from the title. (dots, and hypens . -). Then try it... {Smile} Oh and keep the last one (.mp3) in! {Tongue Out}

Basically try calling it: x.mp3 {Smile}
I tried that but there was no change {Sad} .

 
actually the problem is with the 'automatic URL creation' that runs on VF. I'll look into this more later. But I could have sworn that I had catered for that.
Ok thanks Wrighty when you can will be great {Smile} .

Re: Support Wrighty Please - Posted By CåñåÐå™ (canada) on 28th May 08 at 4:52pm
Any ideas ??

Re: Support Wrighty Please - Posted By Michael (wrighty) on 28th May 08 at 5:52pm
try this instead:

<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=(.+?)\]/i)){
            a = RegExp.$1;
            get('td','tag')[i].innerHTML = get('td','tag')[i].innerHTML.replace(/\[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=.+?\]/gi,"");
}
</script>


New code: [embed=LINK TO EMBED] {Smile}

Re: Support Wrighty Please - Posted By CåñåÐå™ (canada) on 29th May 08 at 2:11am
I'm sorry Wrighty , that's not working . {Sad}


Re: Support Wrighty Please - Posted By CåñåÐå™ (canada) on 30th May 08 at 2:20pm
Maybe we should forget this for now wrighty, because there seems to be something that's not allowing it to work.

Maybe late you may make a code that will be better {Grin} .

Thanks for trying mate.

Re: Support Wrighty Please - Posted By Michael (wrighty) on 30th May 08 at 2:28pm
I'll look maybe tonight if I get the chance. I'm not sure what is causing the problem... Hmmm Maybe I'll test it next time! {Tongue Out}

Re: Support Wrighty Please - Posted By CåñåÐå™ (canada) on 30th May 08 at 6:28pm
 
I'll look maybe tonight if I get the chance. I'm not sure what is causing the problem... Hmmm Maybe I'll test it next time! {Tongue Out}
Ok cool , thanks {Grin} .

Re: Support Wrighty Please - Posted By Michael (wrighty) on 18th Jun 08 at 8:15pm
Is this still not working? {Smile}

Re: Support Wrighty Please - Posted By CåñåÐå™ (canada) on 18th Jun 08 at 8:28pm
No it isn't working , but its ok my friend i don't believe i need it anyways no one was useing it {Smile} .

Thanks alot though Wrighty. {Grin}