Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Texas

Texas Avatar

*
New Member

23


January 2012
Encase people don't want to have to use a plugin to rename there profile tabs (found here) This is a way to do it via the templates.

First go to admin>Themes>Layout Templates

and then select user profile.

Then at the bottom of the page put.


<script>
       lnk=document.getElementsByTagName('a');
       for (i=0; i<lnk.length; i++) {

}
</script>

Then in between the brackets you will need to add a line of code for each menu profile tab you want to change.

Summary:

       if (lnk[i].innerHTML=="Summary") {
       lnk[i].innerHTML="asdf";
       }

Activity:
       if (lnk[i].innerHTML=="Activity" && lnk[i].href.match(/activity/i)) {
       lnk[i].innerHTML="asdf";
       }

Following:
       if (lnk[i].innerHTML=="Following" && lnk[i].href.match(/following/i)) {
       lnk[i].innerHTML="asdf";
       }


Friends:                if (lnk[i].innerHTML=="Friends" && lnk[i].href.match(/friends/i)) {
       lnk[i].innerHTML="asdf";
       }

Groups:
       if (lnk[i].innerHTML=="Groups" && lnk[i].href.match(/groups/i)) {
       lnk[i].innerHTML="asdf";
       }

Notifications:
       if (lnk[i].innerHTML=="Notifications" && lnk[i].href.match(/notifications/i)) {
       lnk[i].innerHTML="asdf";
       }

Gift:
       if (lnk[i].innerHTML=="Gift" && lnk[i].href.match(/gift/i)) {
       lnk[i].innerHTML="asdf";
       }




Example:

<script>
lnk=document.getElementsByTagName('a');
for (i=0; i<lnk.length; i++) {

if (lnk[i].innerHTML=="Notifications" && lnk[i].href.match(/notifications/i)) {
lnk[i].innerHTML="Alerts";
}

if (lnk[i].innerHTML=="Summary") {
lnk[i].innerHTML="Summations";
}

}
</script>


The part you will need to edit to change the word is that part in red.

if (lnk.innerHTML=="Summary") {
lnk.innerHTML="asdf";
}



Clicky if you need free and dependable hosting


newBookmarkLockedFalling