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

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: 199
Gender: Male
Credits: 6,177
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="http://yoursite.com/assets/lib/js/wysihtml5-0.3.0.js"></script>
<script src="http://yoursite.com/assets/lib/js/jquery-1.7.2.min.js"></script>
<script src="http://yoursite.com/assets/lib/js/prettify.js"></script>
<script src="http://yoursite.com/assets/lib/js/bootstrap.min.js"></script>
<script src="http://yoursite.com/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="http://yoursite.com/assets/lib/css/bootstrap.min.css"></link>
<link rel="stylesheet" type="text/css" href="http://yoursite.com/assets/lib/css/prettify.css"></link>
<link rel="stylesheet" type="text/css" href="http://yoursite.com/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
__________________
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 08:00 PM.

Currently Active Users: 70 (3 members and 67 guests)
Threads: 3,879, Posts: 30,895, Members: 15,429
Welcome to our newest members, albatross.
BER





What's New?

What's Hot?

What's Popular?


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