vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=271855

Urdu Editor Integration for vBulletin 4.1.6
by simunaqv
11 Oct 2011 21:45

1 Attachment(s)
Hello,

Since the introduction of CKEditor in newer versions of vbulletin, the Urdu editor cannot be integrated simply by including some javascript code inside the headinclude template. I have therefore written a ckeditor plugin to enable Urdu text editing. This plugin is part of the Urdu editor integration that I am providing here. This makes it possible to type Urdu even in the wysiwyg mode. The following screenshots show the editor on the post page in standard editor mode and the wysiwyg mode respectively.


https://www.vbulletin.org/forum/external/2011/10/52.png

https://www.vbulletin.org/forum/external/2011/10/53.png

Installation

1. Unpack the zip-archive and upload the contents of the upload folder to your forum file area.

2. Import the product file product-urdu_editor.xml

3. Open template headinclude
Add at the end the following code:



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

4. Open template editor_contents.css
Add at the end the following code:



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



Customization of the Urdu editor


In order to modify the font of the non-wysiwyg editor, change the font name in the following line:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

To modify the font of the wysiwyg editor you will need to adapt the css code added to the editor_content.css template.

Update October 12, 2011


-fixed a bug in the CKEditor plugin that prevented Urdu editor integration in the standard editor mode.

SpaceStar 11 Oct 2011 22:26

Assalamo Allaikum

Where to find: Open template editor_contents.css ?

Shadow 11 Oct 2011 22:51

AdminCP --> Styles and Templates --> Search in Templates.

Type in editor_contents.css in to the box and select Yes on "Search Titles Only". Click Find and you should get what you're looking for.

SpaceStar 11 Oct 2011 22:54

Quote:

Originally Posted by Shadow786 (Post 2256036)
AdminCP --> Styles and Templates --> Search in Templates.

Type in editor_contents.css in to the box and select Yes on "Search Titles Only". Click Find and you should get what you're looking for.

I did that - but I didn't find anything - that's why I posted here :)

SpaceStar 12 Oct 2011 01:37

1 Attachment(s)
I found out why I couldnt find editor_contents.css - I was using an elder version of vBulletin.

It's a much needed mod for urdu boards, I have installed it and it works ok, though I have disabled it again. Reason? None of the icons are showing in the WYSIWYG editor, see image attached.

If you reply to a post and click in on the Urdu, the cursor jumps to the title field instead of the editing field.

Reply with Quote - does not work anfter this mod neither do the Reply button.

Quick reply looks very odd

M.Iftikhar 12 Oct 2011 03:31

very nice brother i will cheeked this i am very thankful to you.....i am waiting many days ago...thanks

M.Iftikhar 12 Oct 2011 04:40

does it work 4.1.7 i try but it could not work....please tell me does it work or not in 4.1.7..thanks and reply me soon.

M.Iftikhar 12 Oct 2011 05:22

Quote:

Originally Posted by Shadow786 (Post 2256036)
AdminCP --> Styles and Templates --> Search in Templates.

Type in editor_contents.css in to the box and select Yes on "Search Titles Only". Click Find and you should get what you're looking for.

you can find editor_contents.css in CSS Templates...thanks

simunaqv 12 Oct 2011 08:10

Quote:

Originally Posted by SpaceStar (Post 2256089)
I found out why I couldnt find editor_contents.css - I was using an elder version of vBulletin.

It's a much needed mod for urdu boards, I have installed it and it works ok, though I have disabled it again. Reason? None of the icons are showing in the WYSIWYG editor, see image attached.

If you reply to a post and click in on the Urdu, the cursor jumps to the title field instead of the editing field.

Reply with Quote - does not work anfter this mod neither do the Reply button.

Quick reply looks very odd

You don't need buttons to type Urdu or to switch language mode. These buttons are not available for wysiwyg mode. You can instead use the CTRL+SPACE shortcut for switching the language mode. Alternatively you can change preferences in your profile settings to use the standard editor instead of the wysiwyg one. This will then appear with the language controls.


Quote:

Originally Posted by M.Iftikhar (Post 2256131)
does it work 4.1.7 i try but it could not work....please tell me does it work or not in 4.1.7..thanks and reply me soon.

I did not test it on 4.1.7. What is the problem that you are facing?

M.Iftikhar 12 Oct 2011 09:23

Standard Editor - Extra formatting controls USE KIY HA LAKIN YA WORK NAHI KR REHA YA MOD SELECT KRNA SE URDU TU BILKUL EDITOR MEIN TYPE NAHI HOTI.....
Enhanced Interface - Full WYSIWYG Editing..KRNA SE TYPE HOTI HA LAKIN NA BACKGROUND COLOR SHOW HOTA HA OR NA LANGUAGE CONTROL SHOW HOTA HA....ZARA BAHI YA KAM KR DY.......THANKS

SpaceStar 12 Oct 2011 09:58

Quote:

Originally Posted by simunaqv (Post 2256173)
You don't need buttons to type Urdu or to switch language mode. These buttons are not available for wysiwyg mode. You can instead use the CTRL+SPACE shortcut for switching the language mode. Alternatively you can change preferences in your profile settings to use the standard editor instead of the wysiwyg one. This will then appear with the language controls.

brother I have a very odd Advance Reply layout - none of the icons are visible - as you can see in the image, I attached to my previous post. I had upgraded vBulletin to 4.1.7.

Quick Reply is looking equally odd.

JAFRI 12 Oct 2011 10:03

Good work, i need this ;-) just i like some changing.

var urdueditor_lang = 0; // 1: Urdu, 0: English

M.Iftikhar 12 Oct 2011 10:41

Quote:

Originally Posted by JAFRI (Post 2256203)
Good work, i need this ;-) just i like some changing.

var urdueditor_lang = 0; // 1: Urdu, 0: English

WHAT IS MEAN (var urdueditor_lang = 0; // 1: Urdu, 0: English)

uhking 12 Oct 2011 10:45

Quote:

Originally Posted by SpaceStar (Post 2256089)
It's a much needed mod for urdu boards, I have installed it and it works ok, though I have disabled it again. Reason? None of the icons are showing in the WYSIWYG editor, see image attached.

Quick reply looks very odd

Brother, you should change the directory of the images in stylvars:

in Stylvars find (imgdir_editor) click on it and change image path to "images/editor"

Thanks,

JAFRI 12 Oct 2011 11:30

Quote:

Originally Posted by uhking (Post 2256213)
Brother, you should change the directory of the images in stylvars:

in Stylvars find (imgdir_editor) click on it and change image path to "images/editor"

Thanks,

change bburl.

bburl}/image/xxxx/xxxx


All times are GMT. The time now is 18:29.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.