We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Changing the text - "Custom Member Title" IFREE
Topic Started: Jan 18 2010, 05:13 PM (311 Views)
Volksdevil-ZNR
Member
[ * ]
Board Address:Forum.Volksdevil.com
Type of Request: Simple Script
Description: Id like to have the text "Custom member title" changed to "Real Name" on any page that it appears please.

Thanks.
Offline Profile Goto Top
 
Reid
Member Avatar
È una trappola!

I'm not entirely sure where all the 'custom member title' bit appears, since I haven't used invisionfree in so long.... (in fact I needed to call in the support staff just to get the stupid field to show up in the profile section! hehe), so this may be off..

But try putting this in your Admin CP -> Board Wrappers -> Footer:
Code:
 
<script type='text/javascript'>
(function () {
if (location.href.indexOf('CODE=01') !== -1) {
for (var i = 0, l = document.getElementsByTagName('td'), g = l.length; i < g; i++) {
if (l[i].className === 'pformleft' && l[i].childNodes[0].innerHTML === 'Custom member title') {
l[i].innerHTML = "<b>Real Name</b>";
}
}
}
})();
</script>
That should, in theory, work.
Offline Profile Goto Top
 
Volksdevil-ZNR
Member
[ * ]
Hi mate,

Brilliant, thank you. :)

I just checked...My controls > Edit profile info. And there it is. So that's spot on. The member title shows above the member group icons within postdetails, but only shows the actual content, in this case the persons name. There is no text to say Real Name:

Any way to make it show the text Real Name: ? No problem if that's asking a little too much, the below would be better if possible...

The member title text is also shown when you view someones profile such as http://forum.volksdevil.com/index.php?showuser=1

But the text there says: Member Title, rather than Custom Member Title, any easy way to change it there too?

Not massively desperate for it, but would be much appreciated.
Thanks for the help. B)
Offline Profile Goto Top
 
Reid
Member Avatar
È una trappola!

The thing beside the posts is a bit hard to pull off, but I can do the changing 'member title' to 'real name' easily; use this code instead:
Code:
 
<script type='text/javascript'>
(function () {
if (location.href.indexOf('CODE=01') !== -1) {
for (var i = 0, l = document.getElementsByTagName('td'), g = l.length; i < g; i++) {
if (l[i].className === 'pformleft' && l[i].childNodes[0].innerHTML === 'Custom member title') {
l[i].innerHTML = "<b>Real Name</b>";
}
}
} else if (location.href.indexOf('showuser=') !== -1) {
for (var i = 0, l = document.getElementsByTagName('td'), g = l.length; i < g; i++) {
if (l[i].className === 'row3' && l[i].childNodes[0].innerHTML === 'Member Title') {
l[i].innerHTML = "<b>Real Name</b>";
}
}
}
})();
</script>
Offline Profile Goto Top
 
Volksdevil-ZNR
Member
[ * ]
Aye...I thought the post details bit may be a bit more involving...

The new bit of script works a treat, so that'll do me.

Much appreciated. B)
Offline Profile Goto Top
 
Reid
Member Avatar
È una trappola!

Completed!

Your code request has been completed.

Thank you for using our Member Request system here at Zathyus Networks Resources! If you have any questions regarding this topic, feel free to PM the code creator or post a new topic in the request forum. :)

Have a nice day!
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic