May 18, 2013 10:12:29 GMT -5
This plugin will change the text of the profile tabs to anything you want.
Note: Encase you don't want to use a plugin to do this, there is a template modification at the bottom.
Download:
Here
Version 1.3.5 - Somehow I accidentally made this code only run when viewing the profile page...now it's fixed.
Version 1.2.5 - Changed the coding so the code only looped through the DOM once. Also made it so that the code only runs on the profile page.
Template ModFirst 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";
}
If you use this please like the post
Sept 8, 2015 8:59:17 GMT -5
Great idea for a plugin! Now is there a ways to also make the tabs custom hyperlinks?