Choose from our various pricing plans. There is a package for everyone!


Solved: Change Legend Format (PhpBB3)

View previous topic View next topic Go down

Topic Solved Solved: Change Legend Format (PhpBB3)

Post by Guest on Mon Aug 06, 2012 5:40 pm

Hey there,

Thanks for taking the time to read my question.

My Question:
Is there any way to change the Legend Format form the [] to a l

Example:
Administrator l Moderator

instead of...

[Administrator][Moderator]

Guest
Guest


Back to top Go down

Topic Solved Re: Solved: Change Legend Format (PhpBB3)

Post by Unknown Data on Mon Aug 06, 2012 6:11 pm

Try this Smile
Code:
$(function() {
   var string = document.getElementById("i_whosonline").nextSibling.getElementsByTagName("em")[0];
   string.innerHTML = string.innerHTML.replace(/\[/g, "").replace(/\]  /g, "|").slice(0, -2);
});


Last edited by Unknown Data on Mon Aug 06, 2012 6:48 pm; edited 2 times in total
avatar
Unknown Data
Premium Member


Age : 21
Posts : 119
Join date : 2012-04-24
Reputation : 8

View user profile http://woops.dk

Back to top Go down

Topic Solved Re: Solved: Change Legend Format (PhpBB3)

Post by Guest on Mon Aug 06, 2012 6:22 pm

Where do i put this?

Guest
Guest


Back to top Go down

Topic Solved Re: Solved: Change Legend Format (PhpBB3)

Post by Unknown Data on Mon Aug 06, 2012 6:47 pm

AP -> Modules -> Javascript code managements -> Create a JavaScript code -> mark "in all pages" -> Submit
avatar
Unknown Data
Premium Member


Age : 21
Posts : 119
Join date : 2012-04-24
Reputation : 8

View user profile http://woops.dk

Back to top Go down

Topic Solved Re: Solved: Change Legend Format (PhpBB3)

Post by Guest on Mon Aug 06, 2012 7:14 pm

Thanks!

Solved

Guest
Guest


Back to top Go down

Topic Solved Re: Solved: Change Legend Format (PhpBB3)

Post by RSguideMaker on Mon Aug 06, 2012 7:52 pm

The question(s) in this topic have been answered and the owner has been able to solve the problem. Because of this, the topic has been locked.

If you have other questions, please open a new topic.



Please do not request help via PM! Post on the forums where it can help everyone.
avatar
RSguideMaker
Support Moderator
Support Moderator

Age : 18
Posts : 421
Join date : 2012-05-23
Reputation : 9

View user profile http://euanfitzpatrick.co.nf/

Back to top Go down

Topic Solved Re: Solved: Change Legend Format (PhpBB3)

Post by Sponsored content


Sponsored content


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