The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Change the name of Friends?

View previous topic View next topic Go down

Solved Change the name of Friends?

Post by Zuke on March 7th 2015, 5:34 pm

Hello, how do I change the name of Friends on the friends list to say followers.

I would like to replace it saying Friends and make it say Followers here:

http://prntscr.com/6dv3em

And this to say Remove from my Followers:

http://prntscr.com/6dv45y

Also I want to replace add to my friends list to Add to my Followers:

http://prntscr.com/6dv4ke


PLEASE HELP  :rose:

Zuke
Forumember

Male Posts : 375
Reputation : 20
Language : English
Location : United Kingdom

http://ocean.forums.fm

Back to top Go down

Solved Re: Change the name of Friends?

Post by _Twisted_Mods_ on March 7th 2015, 7:12 pm


  1. Go to Modules > HTML & Javascript > Javascript codes management
  2. Enable Javascript code management
  3. Create a new javascript with these settings

    • Title : Your Choice
    • Placement : check "In all the pages"
    • Javascript Code : copy the following code.



Code:
$(function(){
   if(location.pathname.match(/\/u\d+/)){
var changee = $('#profile-advanced-right .h3:contains(friends)').text();
changee = changee.replace(/friends/,'followers');
 $('#profile-advanced-right .h3:contains(friends)').text(changee);
      $('#profile-advanced-add a').eq(0).text($('#profile-advanced-add a').eq(0).text().replace(/friends/,'followers'));
   $('#profile-advanced-add a').eq(1).text($('#profile-advanced-add a').eq(1).text().replace(/foes/,'followers').replace(/Add to/,'Remove from'));
   };
});

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Change the name of Friends?

Post by Zuke on March 7th 2015, 7:48 pm

THANKS! It works!

Solved.

Zuke
Forumember

Male Posts : 375
Reputation : 20
Language : English
Location : United Kingdom

http://ocean.forums.fm

Back to top Go down

Solved Re: Change the name of Friends?

Post by _Twisted_Mods_ on March 7th 2015, 7:49 pm

Topic solved and archived

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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