Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.3.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09-28-2017, 09:23 AM
Silver_Brick Silver_Brick is offline
Designer || Coder
 
Join Date: Oct 2016
Location: In Earth
Posts: 205
Gender: Male
Credits: 26,133
Silver_Brick is on a distinguished road
Talking Editor For Private Messages

Heys guys silverbrick here ^^
Today i will guide you how to put a responsive and secured editor for your private message system
Step 1

Go here and download the zip of the editor ^^

Step 2
Make a folder in your directory with name assets and extract that zip there and you will find a folder in assets and move all file of that folder to assets and delete that folder and zip ^^

Step 3
Add this to template.tpl of the theme that you use and make sure it should be in <body> tag and remember to replace that yoursite.com with your site name ^^
Quote:
<script src="/assets/lib/js/wysihtml5-0.3.0.js"></script>
<script src="/assets/lib/js/jquery-1.7.2.min.js"></script>
<script src="/assets/lib/js/prettify.js"></script>
<script src="/assets/lib/js/bootstrap.min.js"></script>
<script src="/assets/src/bootstrap-wysihtml5.js"></script>
Step 4
Add this also in template.tpl inside <body> tag and remember to change yoursite.com with your site address and do not be over smart and directly link it like "/assets/prettify.css" or it will spoil things ^^
Quote:
<link rel="stylesheet" type="text/css" href="/assets/lib/css/bootstrap.min.css"></link>
<link rel="stylesheet" type="text/css" href="/assets/lib/css/prettify.css"></link>
<link rel="stylesheet" type="text/css" href="/assets/src/bootstrap-wysihtml5.css"></link>
Step 5
Add this also to template.tpl
Quote:
<script>
$('textarea.edit-text').wysihtml5();
</script>
Step 6
Now go to messageview.php in view folder and change -
Quote:
$pmForm->add(new Comment($editor->editor("mtext", "Enter your message here.")));
To

Quote:
$pmForm->add(new Comment("<textarea name='mtext' class='form-control edit-text' placeholder='Enter your message here.'></textarea>"));
Hopes you like the mod and be sure to comment out if you liked it

Last edited by Silver_Brick; 04-11-2020 at 10:54 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:21 PM.

Currently Active Users: 450 (0 members and 450 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636