Sign Up! Login: Password: New User? Forgot? Support
Code 
 
 
Forums 
Forums : Mail > Fix Mail Quotes
Mottie (SuperAdmin) 3/17/2011 1:58 PM EST : Fix Mail Quotes
ACK!
Mottie
Posts: 3883

0
Like

0
Dislike

Fix Mail Quotes

GuildPortal admin site link to the original post

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

This is now a Mod
Control Panel > Site Mods > Get Site Mods >
Look for "Mail Quotes"


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>
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

Nykeawyn (Applicant) 9/15/2012 12:08 AM EST : RE: Fix Mail Quotes
Nykeawyn
Posts: 246

0
Like

0
Dislike

Hi Mottie,

I have tried this script and currently have it on my mail page.  I also downloaded the mod, however, I am unable to get it to show the quotes when I reply to anyone in mail.  This is what a responded mail looks like.  I am not sure if I have the script wrong, missing some script or what I am doing wrong with it.  I can get the quotes to work on my forums page but just not in the mail.  Any suggestions would be appreciated.



As always, you're great and give wonderful advice.  If there is anything you need me to do to see what I have done wrong, just let me know.

Thanks again,

Nyk
TopBottom

Mottie (SuperAdmin) 9/16/2012 4:49 PM EST : RE: Fix Mail Quotes
ACK!
Mottie
Posts: 3883

0
Like

0
Dislike

You know it's odd... the forums still use  [QUOTETITLE] and [QUOTEblocks for quoted comments, but the mail system doesn't. If you reply to a mail, you won't see those anywhere and that's is what the mod is replacing to make the quotes. Honestly, I don't think there's much I can do about it. Sorry =(
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

 
 
Key 
New posts No new posts
New posts ( popular ) No new posts ( popular )
New posts ( sticky ) No new posts ( sticky )
New posts ( locked ) No new posts ( locked )
 
 
Who's Online 
There are   members online.
 
 
So-and-so has logged on!
%title%
%message%