Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Virtual Urdu Editor for vBulletin 4 Details »»
Virtual Urdu Editor for vBulletin 4
Version: 2.00, by Post Reader Post Reader is offline
Developer Last Online: Apr 2022 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 4.x.x Rating:
Released: 06-14-2011 Last Update: Never Installs: 5
Template Edits
Re-useable Code Code Changes Translations  
No support by the author.

hi and Assalam-O-Alaikum..!

i was wondering to add urdu language to my forum i googled for Urdu add on but only an open pad was available on the internet. this mod integrates urdu language to your vbulletin forum and while using this you can easily post threads and replies in Urdu language. also if you want to toggle between Urdu and English language then a little button is placed beside the search and editor options...

a single template edit in the headinclude template is required....

Installation..
Upload the files in the folder to your forums clientscript folder
Go to Admincp and then open headinclude tempelate via style manager>All template option and just copy the code at the end in the headinclude template
Code:
<link rel="stylesheet" type="text/css" href="{vb:raw vboptions.bburl}/clientscript/UrduEditor.css" /> 
<link rel="stylesheet" type="text/css" href="{vb:raw vboptions.bburl}/clientscript/keyboard.css" /> 

<script src="{vb:raw vboptions.bburl}/clientscript/VirtualKeyboard/vk_loader.js?vk_layout=PK%20Urdu%20CRULP%20Phonetic&vk_skin=flat_gray" ></script> 
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> 
<script src="{vb:raw vboptions.bburl}/clientscript/jquery.UrduEditor.js" type="text/javascript"></script>  
<script src="{vb:raw vboptions.bburl}/clientscript/keyboard.js" type="text/javascript"></script>  

<script language="JavaScript" type="text/javascript"> 
    jqcc = jQuery.noConflict(true); 
    //jQ = jQuery.noConflict(true); 
    jqcc(document).ready(function () { 
        <vb:if condition="THIS_SCRIPT == 'newthread'"> 
            jqcc('#title').UrduEditor("14px"); jqcc("#title").addClass("keyboardInput"); 
            jqcc('#subject').UrduEditor("14px"); jqcc("#subject").addClass("keyboardInput"); 
            jqcc(this).UrduEditor.writeKeyboard(jqcc('#vB_Editor_001_textarea')); 
            jqcc('#vB_Editor_001_textarea').UrduEditor("18px");              
            jqcc('#tagpopup_ctrl').UrduEditor("14px"); jqcc("#tagpopup_ctrl").addClass("keyboardInput");
        <vb:elseif condition="THIS_SCRIPT == 'newreply'" /> 
            jqcc('#title').UrduEditor("14px"); jqcc("#title").addClass("keyboardInput"); 
            jqcc(this).UrduEditor.writeKeyboard(jqcc('#vB_Editor_001_textarea')); 
            jqcc('#vB_Editor_001_textarea').UrduEditor("18px");     
        <vb:elseif condition="THIS_SCRIPT == 'showthread'" /> 
            jqcc(this).UrduEditor.writeKeyboard(jqcc('#vB_Editor_QR_textarea')); 
            jqcc('#vB_Editor_QR_textarea').UrduEditor("18px"); 
        <vb:elseif condition="THIS_SCRIPT == 'member'" /> 
            jqcc(this).UrduEditor.writeKeyboard(jqcc('#vB_Editor_QR_textarea')); 
            jqcc('#vB_Editor_QR_textarea').UrduEditor("18px");               
        <vb:elseif condition="THIS_SCRIPT == 'editpost'" /> 
            jqcc("input[name='reason']").UrduEditor("14px"); jqcc("input[name='reason']").addClass("keyboardInput"); 
            jqcc('#titlefield').UrduEditor("14px"); jqcc("#titlefield").addClass("keyboardInput"); 
            jqcc('#editreason').UrduEditor("14px"); jqcc("#editreason").addClass("keyboardInput"); 
            jqcc(this).UrduEditor.writeKeyboard(jqcc('#vB_Editor_001_textarea')); 
            jqcc('#vB_Editor_001_textarea').UrduEditor("18px");             
        <vb:elseif condition="THIS_SCRIPT == 'profile'" /> 
            jqcc('#buddylist_add_txt').UrduEditor("14px"); jqcc("#buddylist_add_txt").addClass("keyboardInput"); 
        <vb:elseif condition="THIS_SCRIPT == 'private'" />             
            jqcc('#pmrecips_ctrl').UrduEditor("14px"); jqcc("#pmrecips_ctrl").addClass("keyboardInput");
            jqcc('#bccpmrecips_ctrl').UrduEditor("14px"); jqcc("#bccpmrecips_ctrl").addClass("keyboardInput"); 
            jqcc('#title').UrduEditor("14px"); jqcc("#title").addClass("keyboardInput"); 
            jqcc(this).UrduEditor.writeKeyboard(jqcc('#vB_Editor_001_textarea')); 
            jqcc('#vB_Editor_001_textarea').UrduEditor("18px");             
            jqcc('#vB_Editor_QR_textarea').UrduEditor("18px"); jqcc("#vB_Editor_QR_textarea").addClass("keyboardInput");  
            jqcc('#searchuser_ctrl').UrduEditor("14px"); jqcc("#searchuser_ctrl").addClass("keyboardInput"); 
            jqcc('#searchtitle').UrduEditor("14px"); jqcc("#searchtitle").addClass("keyboardInput"); 
        <vb:elseif condition="THIS_SCRIPT == 'blog'" /> 
            jqcc('#quicksearch_blog_text').UrduEditor("14px"); jqcc("#quicksearch_blog_text").addClass("keyboardInput");         
        <vb:elseif condition="THIS_SCRIPT == 'blog_post'" /> 
            jqcc("input[name='title']").UrduEditor("14px"); jqcc("input[name='title']").addClass("keyboardInput"); 
            jqcc(this).UrduEditor.writeKeyboard(jqcc('#vB_Editor_001_textarea')); 
            jqcc('#vB_Editor_001_textarea').UrduEditor("18px");          
            jqcc('#tag_input').UrduEditor("14px"); jqcc("#tag_input").addClass("keyboardInput"); 
        <vb:elseif condition="THIS_SCRIPT == 'blog_report'" /> 
            jqcc("textarea[name='reason']").UrduEditor("16px"); jqcc("textarea[name='reason']").addClass("keyboardInput"); 
        <vb:elseif condition="THIS_SCRIPT == 'report'" /> 
            jqcc('#message').UrduEditor("14px"); jqcc("#message").addClass("keyboardInput"); 
        <vb:elseif condition="THIS_SCRIPT == 'content'" /> 
            jqcc('#title').UrduEditor("14px"); jqcc("#title").addClass("keyboardInput"); 
            jqcc(this).UrduEditor.writeKeyboard(jqcc('#vB_Editor_001_textarea')); 
            jqcc('#vB_Editor_001_textarea').UrduEditor("18px");  
            jqcc('#html_title').UrduEditor("14px"); jqcc("#html_title").addClass("keyboardInput"); 
            jqcc("textarea[name='description']").UrduEditor("16px"); jqcc("textarea[name='description']").addClass("keyboardInput"); 
            jqcc('#keywords').UrduEditor("14px"); jqcc("#keywords").addClass("keyboardInput"); 
            jqcc("input[name='title']").UrduEditor("14px"); jqcc("input[name='taglist']").addClass("keyboardInput"); 
        <vb:elseif condition="THIS_SCRIPT == 'infraction'" /> 
            jqcc('#title').UrduEditor("14px"); jqcc("#title").addClass("keyboardInput"); 
            jqcc(this).UrduEditor.writeKeyboard(jqcc('#vB_Editor_001_textarea')); 
            jqcc('#vB_Editor_001_textarea').UrduEditor("18px");    
        <vb:elseif condition="THIS_SCRIPT == 'entry'" /> 
            jqcc(this).UrduEditor.writeKeyboard(jqcc('#vB_Editor_QR_textarea')); 
            jqcc('#vB_Editor_QR_textarea').UrduEditor("18px");        
        <vb:elseif condition="THIS_SCRIPT == 'group'" /> 
            jqcc('#groupname').UrduEditor("14px"); jqcc("#groupname").addClass("keyboardInput"); 
            jqcc('#groupdesc').UrduEditor("16px"); jqcc("#groupdesc").addClass("keyboardInput"); 
            jqcc("input[name='Subject']").UrduEditor("14px"); jqcc("input[name='Subject']").addClass("keyboardInput"); 
            jqcc(this).UrduEditor.writeKeyboard(jqcc('#vB_Editor_001_textarea')); 
            jqcc('#vB_Editor_001_textarea').UrduEditor("18px");  
            jqcc('#message').UrduEditor("14px"); jqcc("#message").addClass("keyboardInput"); 
        <vb:elseif condition="THIS_SCRIPT == 'group_inlinemod'" /> 
            jqcc("input[name='deletereason']").UrduEditor("14px"); jqcc("input[name='deletereason']").addClass("keyboardInput");         
        <vb:elseif condition="THIS_SCRIPT == 'album'" /> 
            jqcc('#ititle').UrduEditor("14px"); jqcc("#ititle").addClass("keyboardInput"); 
            jqcc('#idesc').UrduEditor("14px"); jqcc("#idesc").addClass("keyboardInput");         
        <vb:elseif condition="THIS_SCRIPT == 'register'" /> 
            jqcc('#regusername').UrduEditor("14px"); jqcc("#regusername").addClass("keyboardInput");           
        </vb:if> 
         
        jqcc('#navbar_username').UrduEditor("12px");         
jqcc("input[name='query']").UrduEditor("13px");  
        jqcc("input[name='q']").UrduEditor("14px"); 
        jqcc('#userfield_txt').UrduEditor("14px"); jqcc("#userfield_txt").addClass("keyboardInput"); 
        jqcc('#tag_add_input').UrduEditor("14px"); jqcc("#tag_add_input").addClass("keyboardInput"); 
        jqcc('#vb_login_username').UrduEditor("14px"); jqcc("#vb_login_username").addClass("keyboardInput");         
    }); 
</script>
wondering to change the Urdu font something like Jameel Noori Nastaleeq or anyother font you want find the code:

Code:
jqcc = jQuery.noConflict(true);
add this below that:

Code:
jqcc.fn.UrduEditor.defaults.EditorFont = 'Jameel Noori Nastaleeq';
Nnote: it might not work with the new Ck Editor

Download Now

File Type: zip urdueditor_mod..zip (1.35 MB, 119 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-15-2011, 03:41 PM
Post Reader's Avatar
Post Reader Post Reader is offline
 
Join Date: Nov 2009
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is the screen shot
Attached Images
File Type: jpg sc2.jpg (45.0 KB, 0 views)
Reply With Quote
  #3  
Old 06-16-2011, 02:01 AM
tafreeh tafreeh is offline
 
Join Date: May 2008
Location: Canada
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks allot for this... Did you try it with CKEditor?
Reply With Quote
  #4  
Old 06-16-2011, 02:31 AM
JAFRI's Avatar
JAFRI JAFRI is offline
 
Join Date: Jun 2009
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tafreeh View Post
Thanks allot for this... Did you try it with CKEditor?
Not work on new update 4.1.4 CK Editor ,
but working fine 4.1.3
Reply With Quote
  #5  
Old 06-16-2011, 04:30 AM
Post Reader's Avatar
Post Reader Post Reader is offline
 
Join Date: Nov 2009
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have tried and disabled the WYSIWYG editor and while enabling the standard editor it is still not working
Reply With Quote
  #6  
Old 07-09-2011, 01:07 PM
creative-friend creative-friend is offline
 
Join Date: Feb 2009
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very Well Done Wajdan Bahi

I will try this INSHALLAH.
Reply With Quote
  #7  
Old 07-17-2011, 03:50 PM
NAZIA's Avatar
NAZIA NAZIA is offline
 
Join Date: Feb 2008
Location: Multan Pakistan
Posts: 322
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good mod..
But i dont have VB 4 in Urdu..
Reply With Quote
  #8  
Old 08-24-2011, 04:22 PM
uhking uhking is offline
 
Join Date: Dec 2010
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Assalamu Alaikum,
Wajdaan bhai,
If we can load the jquery after ckeditor so it will work. because in my case some times it works some times doesn't as i changed the code from
Code:
   <vb:if condition="THIS_SCRIPT == 'newthread'"> 
            jqcc('#title').UrduEditor("14px"); jqcc("#title").addClass("keyboardInput"); 
            jqcc('#subject').UrduEditor("14px"); jqcc("#subject").addClass("keyboardInput"); 
            jqcc(this).UrduEditor.writeKeyboard(jqcc('#vB_Editor_001_textarea')); 
            jqcc('#vB_Editor_001_textarea').UrduEditor("18px");
To
Code:
   <vb:if condition="THIS_SCRIPT == 'newthread'"> 
            jqcc('#title').UrduEditor("14px"); jqcc("#title").addClass("keyboardInput"); 
            jqcc('#subject').UrduEditor("14px"); jqcc("#subject").addClass("keyboardInput"); 
            jqcc(this).UrduEditor.writeKeyboard(jqcc('.cke_source')); 
            jqcc('.cke_source').UrduEditor("18px");
Agar koi bhai jquery ko thori dair say load karwa sakay to shayad kaam ban jaay....
Reply With Quote
  #9  
Old 08-28-2011, 11:46 AM
Post Reader's Avatar
Post Reader Post Reader is offline
 
Join Date: Nov 2009
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can try to run a mysql query via admincp and enable standard editor mode which'll i think help...
Reply With Quote
  #10  
Old 08-29-2011, 01:58 PM
M.Iftikhar's Avatar
M.Iftikhar M.Iftikhar is offline
 
Join Date: May 2011
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please someone updated this....because it does not work in 4.1.5 please i need this...thanks
Reply With Quote
Reply

Thread Tools

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. The time now is 10:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09739 seconds
  • Memory Usage 2,333KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete