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 ] Quote Previous PM
Topic Started: May 2 2012, 12:57 PM (262 Views)
Rhys Danoor
Member
[ * ]
Board Address: http://w11.zetaboards.com/USS_Erebus/site/
Board Software: Zetaboard
Description: Adding a quote function to the PM system so that replies can contain the text of the last PM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
So you basically want it like InvisionFree, where messages are constantly quoted? Or, when replying to a PM you wanted to add a quote button so you can click the button to quote one of the users replies?
Offline Profile Goto Top
 
Rhys Danoor
Member
[ * ]
I have never used Invisionfree, but what you describe is not what I was hoping for.

The second option would be the preference, but if only the first is possible that is better than nothing.

:) Thank you for replying so quickly! :)
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
(function ($) {
var imageURL = 'http://z3.ifrm.com/static/1/p_quote.png';

$('#conversation td.c_postinfo span.right').append(' <img src="' + imageURL + '" alt="Icon" class="quote" style="cursor: pointer" />');

$('img.quote').click(function () {
var contents = $(this).parents('tr').next('tr').find('td.c_post').html().replace(/<br(?: \/)?>/gi, "\n").replace(/<strong>(.+?)<\/strong>/gi, '[b]$1[/b]').replace(/<del>(.+?)<\/del>/gi, '[s]$1[/s]').replace(/<em>(.+?)<\/em>/gi, '[i]$1[/i]').replace(/<u>(.+?)<\/u>/gi, '[u]$1[/u]').replace(/<u>(.+?)<\/u>/gi, '[u]$1[/u]').replace(/<span style="color:(.+?)">(.+?)<\/span>/gi, '[color=$1]$2[/color]').replace(/<span style="font-family:(.+?)">(.+?)<\/span>/gi, '[font=$1]$2[/font]').replace(/<img src="(.+?)" alt="Posted Image">/gi, '[img]$1[/img]').replace(/<a href="(.+?)" target="_blank" rel="nofollow">(.+?)<\/a>/gi, '[url=$1]$2[/url]');
var username = $(this).parent('span.right').prev('span.left').find('big a').text();
$('#quickcompose').val($('#quickcompose').val() + '[quote=' + username + ']' + contents.replace(/\t+/g, ' ') + '[/quote]');
});
})(jQuery);
</script>
Feel free to change the image URL to your own Quote image.
Offline Profile Goto Top
 
Rhys Danoor
Member
[ * ]
It is a little different to the system that I am used too, but it works well! Thank you so much :)
Offline Profile Goto Top
 
Nivexonix
Member Avatar
Love
[ *  *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic