Profile music

View previous topic View next topic Go down

Solved Profile music

Post by Breeh on 3/4/2015, 7:24 pm

avatar
Breeh
Member
Member

Posts : 4
Reputation : 0
Join date : 2015-03-04

View user profile
I've tried using this guide but it won't work for me. Sad

[You must be registered and logged in to see this link.]

The version of my forum is phpbb2 I believe, well that's atleast what version the theme is.
And here's the link to it: [You must be registered and logged in to see this link.]


Thanks in advance Embarassed


Last edited by Breeh on 3/4/2015, 11:37 pm; edited 1 time in total

Back to top Go down

Solved Re: Profile music

Post by _Twisted_Mods_ on 3/4/2015, 7:40 pm

avatar
_Twisted_Mods_
Founder
Founder

Posts : 101
Reputation : 2
Birthday : 1986-08-05
Join date : 2014-10-03
Age : 31
Location : USA

View user profile
see if this one works for you


follow the same instructions as before just use this script
Code:
        $(function(){
                   var proffield = 'JS_field_id10';
          if(RegExp("/u[0-9]+").test(window.location.pathname)) {
              var mobileAgents = new RegExp("Android|BlackBerry|Blazer|BOLT|SymbianOS|Doris|Mobile|Phone|Fennec|GoBrowser|Iris|Maemo|MIB\/2\.2|Minimo|NetFront|Opera Mini|Opera Mobi|SEMC|Skyfire|Teleca|uZardWeb","i");
              if(mobileAgents.test(navigator.userAgent)) {
                return;
              }
                        var profsong = $("#"+proffield+" .field_uneditable") || undefined;
              if(!profsong) {
                return;
              }
              var trueorfalse = profsong.text().trim().charAt(0) !== "-" || false;
              if(trueorfalse) {
                    var vid = profsong.text().replace(/\/watch\?v\=/,"/v/"),
                    friends = $('.forumline:nth-of-type(2)'),
                    name = $('div.nav a + span strong'),
                    namecolor = name.css('color');
                    $('dl#field_id34').css('display','none').next().css('display','none');
                    friends.after('<table width="100%" cellspacing="1" cellpadding="0" border="0" class="forumline"><tbody><tr><td class="catLeft"><span class="genmed module-title"><span style="color: '+namecolor+';"><strong>'+name.text()+'</strong></span>\'s Profile Song</span></td></tr><tr><td><object width= "298" height="24"><param name="movie" value="'+vid+'?autoplay=1&rel=0&fs=0&autohide=0"></param><param name="allowFullScreen" value="false"></param><param name="allowscriptaccess" value="always"></param><embed src="'+vid+'?autoplay=1&rel=0&fs=0&autohide=0" type="application/x-shockwave-flash" allowfullscreen="false" width="298" height="24" allowscriptaccess="always"></embed></object></td></tr></table>');
                } else {
                    return;
                }
          } else {
              return;
          }
        });

Back to top Go down

Solved Re: Profile music

Post by Breeh on 3/4/2015, 7:55 pm

avatar
Breeh
Member
Member

Posts : 4
Reputation : 0
Join date : 2015-03-04

View user profile
I used the code you gave me, but it doesn't work. :/

Back to top Go down

Solved Re: Profile music

Post by _Twisted_Mods_ on 3/4/2015, 8:24 pm

avatar
_Twisted_Mods_
Founder
Founder

Posts : 101
Reputation : 2
Birthday : 1986-08-05
Join date : 2014-10-03
Age : 31
Location : USA

View user profile
did u create the new profile field and get the id?

Back to top Go down

Solved Re: Profile music

Post by Breeh on 3/4/2015, 8:28 pm

avatar
Breeh
Member
Member

Posts : 4
Reputation : 0
Join date : 2015-03-04

View user profile
_Twisted_Mods_ wrote:did u create the new profile field and get the id?

I did, and I've put the id in the place your guide said, but it still wouldn't work.

Back to top Go down

Solved Re: Profile music

Post by _Twisted_Mods_ on 3/4/2015, 8:51 pm

avatar
_Twisted_Mods_
Founder
Founder

Posts : 101
Reputation : 2
Birthday : 1986-08-05
Join date : 2014-10-03
Age : 31
Location : USA

View user profile
ok send me a pm with a admin account and i will check it out in a few

Back to top Go down

Solved Re: Profile music

Post by _Twisted_Mods_ on 3/4/2015, 11:34 pm

avatar
_Twisted_Mods_
Founder
Founder

Posts : 101
Reputation : 2
Birthday : 1986-08-05
Join date : 2014-10-03
Age : 31
Location : USA

View user profile
ok your good to go you just had the wrong id

Back to top Go down

Solved Re: Profile music

Post by Breeh on 3/4/2015, 11:36 pm

avatar
Breeh
Member
Member

Posts : 4
Reputation : 0
Join date : 2015-03-04

View user profile
I've just checked it. Thank you so much Twisted, you're amazing. Embarassed My experience with this stuff is unexistant.

Back to top Go down

Solved Re: Profile music

Post by _Twisted_Mods_ on 3/5/2015, 1:04 am

avatar
_Twisted_Mods_
Founder
Founder

Posts : 101
Reputation : 2
Birthday : 1986-08-05
Join date : 2014-10-03
Age : 31
Location : USA

View user profile
hey when i first started everything looked like another language to me so don't fill bad

Back to top Go down

Solved Re: Profile music

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum