The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Textarea columns
I am adding a textarea on a custom page and I tried using the fetch_text_area_width() function in the functions_editor.php file like so but it never is correct under any browser Im testing with.
Code:
// php file... require_once(DIR . '/includes/functions_editor.php'); // ... $textareacols = fetch_textarea_width(); Code:
// template <textarea class="bginput" rows="4" cols="$textareacols" name="description" /></textarea> // .. In IE 7 its not wide enough to match the posticons fieldset and in IE 6 its way too wide. Seems like the function is not working correctly at all. Arg! |
#2
|
||||
|
||||
Well I guess for something "simplier" I will switch to the built in editor but would only want the quick reply editor and remove some buttons.
Code:
// in my php fle... // set up the description textarea using the quick reply editor style $show['wysiwyg'] = ($setting['allow_bbcode'] ? is_wysiwyg_compatible('', 'qr') : 0); $istyles_js = construct_editor_styles_js(); $show['qr_require_click'] = 0; $editorid = construct_edit_toolbar('', 0, 7, 1, 1, '', 'qr'); $messagearea = " <script type=\"text/javascript\"> <!-- var require_click = false; var threaded_mode = 1; var is_last_page = false; // --> </script> $messagearea "; // ... Code:
// template // ... $messagearea // ... Oh and I get a js error "vb_Text_Editor" is undefined. I dont have it anywhere in my code but perhaps it somewhere in one of the function includes or js calls in them. |
#3
|
||||
|
||||
I finally got it working as I needed a plugin to hook the editor_toolbar_start.
Any way to remove or disable only certain buttons? I initially need just the ones outlined in red removed or disabled. Hey I have my very own thread :lol: Thanks |
#4
|
||||
|
||||
I figured out removing the buttons by adding to the plugin code for each buttons show property. Any way to remove a button separator?
Now all thats left is the wysiwyg editor switch button. Its compatible to be shown but the switch button still will not appear in the top right corner of the editor. Almost there |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|