Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Feature Discussion > Character Display at bottom of posts - Separation request
Stygian_RQM (Guild Admin) 3/25/2010 7:45 AM EST : Character Display at bottom of posts - Separation req...
Stygian_RQM
Posts: 2884
Zomgawsh Poster

Is there any way to separate character names in the bottom of people's posts instead of the default space?

For example, in Champions Online you can have character names with spaces. What happens is unless you know the player specifically, it's hard sometimes to tell when one name starts and another begins in their character listing at the bottom of their posts.

Instead of separating different names with a space (since names themselves can have a space or several depending on number of words in a character's name), would it be possible to change this to a , for separation?

(My apologies if this has been covered, I searched around, but didn't see it)

Thanks,
Stygian
 
TopBottom

Mottie (MVP) 3/25/2010 10:43 AM EST : RE: Character Display at bottom of posts - Separation...
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

Hi Stygian!

Well, I have two solutions for you one using Javascript, that will work for all browsers. And a second using CSS3, which will only work in newer (non-IE) browsers. Don't use both.

Script (add this to your Footer Area -> Control Panel > Custom HTML & Script > Footer Area)
<script type="text/javascript">
$(document).ready(function(){
 if ( $('.gpWidget-forumslrg').length ) {
  $('.MessageToonContainer1').each(function(){
   var num = $(this).find('span').length - 2;
   if (num > 0) { $(this).find('span:gt(0):lt(' + num + ')').after().append(','); }
  });
 }
});
</script>
CSS3 (for newer browsers only - add to your Control Panel > Custom HTML & Script > Custom CSS > CSS Additions to Standard tab)
.MessageToonContainer1 span:first-child:after { content: ""; }
.MessageToonContainer1 span:after{ content: ","; }
.MessageToonContainer1 span:last-child:after { content: ""; }
TopBottom

Stygian_RQM (Guild Admin) 3/25/2010 10:56 AM EST : RE: Character Display at bottom of posts - Separation...
Stygian_RQM
Posts: 2884
Zomgawsh Poster

Worked perfect.

Many thanks!
 
TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%