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
Mottie (MVP) 3/17/2011 1:56 PM EST : Fix Mail Quotes
GuildPortal MVP
Mottie
Posts: 3883
Zomgawsh Poster

Fix Mail Quotes

Because I'm old and my eyesight sucks, I sometimes have a hard time separating new mail contents from quoted content, so I put together this script to fix the quotes and make it match the forum quoted content.

Before
After

Code

Add the following code to a Free Form Text/HTML widget on the same page as your mail, or add it into the Footer Area (Control Panel > Custom HTML & Script > Footer Area). To add the styling, please read this post for the CSS.
<script type="text/javascript">
$(document).ready(function(){
 var mail = $('.gpWidget-mailcenterlrg');
 if (mail.length) {
  mail.find('span[id$=lblMessageContents]').html(function(i,h){
   return h
    .replace(/\[QUOTETITLE\]/g, '<div class="MessageBodyCell1"><div class="mTop quoteTitle bigRound">')
    .replace(/\[\/QUOTETITLE\]/g, '</div>')
    .replace(/\[QUOTE\]/g, '<div class="ContentBox mTop quoteContainer bigRound"><div class="quoteBody pAll tLeft">')
    .replace(/\[\/QUOTE\]/g, '</div></div></div>');
  });
 }
});
</script>
TopBottom

Keilana55 (Guild Admin) 3/17/2011 5:07 PM EST : RE: Fix Mail Quotes
Keilana55
Posts: 4537
Zomgawsh Poster

This is A-W-E-S-O-M-E!  It works like a charm - thanks!

TopBottom

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