Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

add some code in messages\add.php

iMughaliMughal New
edited September 2012 in Vanilla 2.0 - 2.8

Hello to All.
I am new to Vanilla. I am working a plugin urduEditor.
using this editor we can able to write Urdu (language of Pakistan) in any text area like searchbox etc. its working perfect everywhere but Conversation. I solved that problem by adding some code in "\applications\conversations\views\messages\add.php" . now i want to know how i can add this code to this file by using my plugin.
my plugin's default.php file's code is like this:

if (!defined('APPLICATION')) exit();
$PluginInfo['urduEditor'] = array(
'Description' => 'Urdu Editor for Vanilla.',
'Version' => '1.0',
'Author' => "Imra Ali Mughal",
'AuthorEmail' => '',
'AuthorUrl' => ''
class urduEditor extends Gdn_Plugin {
public function __construct() {


public function Base_Render_Before($Sender) {
  $Sender->AddJsFile($this->GetResource('js/jquery.UrduEditor.js', FALSE, FALSE));
  <script type="text/javascript">
    $.fn.UrduEditor.defaults.EditorFont = "Jameel Noori Nastaleeq";
    $.fn.UrduEditor.defaults.EnglishColor = "#fff";
    $.fn.UrduEditor.defaults.UrduColor = "#fff";
    $.fn.UrduEditor.defaults.LineBreak = false;
    $(document).ready(function () {
    $("#Form_Search").UrduEditor({ToggleControls:false, VirtualKeyboard:false,PointSize:"16px"});
    $("#Form_Name").UrduEditor({ToggleControls:false, VirtualKeyboard:false,PointSize:"16px"});
    $("textarea").UrduEditor({ToggleControls:false, VirtualKeyboard:false,PointSize:"16px"});

public function Setup(){}



Sign In or Register to comment.