vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO] Add WYSIWYG Editor to Your Modifications (https://vborg.vbsupport.ru/showthread.php?t=228693)

Jaxel 03-29-2010 05:44 AM

Anyone got any ideas on what I should put in my DATAMANAGER so that it verifies a text field?

Jaxel 03-30-2010 02:22 AM

1 Attachment(s)
Okay... I've followed this guide EXACTLY... but I have a few questions and problems... I've circled the obvious problems in red...

https://vborg.vbsupport.ru/attachmen...1&d=1269919038

1 - "Fonts" dropdown menu is missing.
2 - "Sizes" dropdown menu is missing the word "Sizes".
3 - "Bullets" and "Lists" buttons are missing.
4 - "Quote" "Code" "PHP" buttons are missing.
5 - I have no need for attachments or video embedding in this, so I would like to remove those buttons.
6 - "Tooltips" (alt tags?) are missing from all buttons.
7 - The word "More" on the bottom right is missing.

In VB3, in order to put an editor into your mod, you had to do some plugin work. I assume that is gone now?

Also, when posting the textarea to my script, what is the variable name? $vbulletin->GPC['message'] perhaps?

And how do I add a DEFAULT VALUE for this textarea?

Jaxel 03-30-2010 02:37 AM

Looking at this code here in the guide is COMPLETELY outdated:
HTML Code:

$editorid = construct_edit_toolbar('',1,'signature',1,1,($vbulletin->userinfo['userid']));
This works for me: fixed a few of my problems, but not all.... the only still missing is the phrasegroup for Fonts, Sizes and More.
HTML Code:

$editorid = construct_edit_toolbar($description,0,'nonforum',1,1,0);
New question, how do we use the QR? I tried adding 'qr' to the end of the construct, but it killed entry into the box.

Mythotical 03-30-2010 05:01 AM

Sorry haven't had time to update this guide to match 4.0 gold release. I will get to it once I am able.

Jaxel 04-01-2010 02:28 AM

Add the following if you want to use QR (Quick Reply)

Code:

$show['qr_require_click'] = 0;
$editorid = construct_edit_toolbar('',0,'nonforum',1,1,0,'qr');


Unfortunately, I am having a bug, where the buttons on the quick-reply bars aren't working. They work fine on the FE (Full Editor), but not the QR.

Jaxel 04-06-2010 08:32 PM

Whenever I use the QR editor, I always get an error...

Code:

Uncaught ReferenceError: vB_Text_Editor is not defined
If I change to the FE editor, the error disappears.

Jaxel 04-15-2010 01:50 PM

Has anyone been able to get the QR editor working yet?

MaryTheG(r)eek 04-15-2010 02:38 PM

Quote:

Originally Posted by Jaxel (Post 2021690)
Has anyone been able to get the QR editor working yet?

I've included it in all of my mods for vb4. Where are you facing difficulties?

Maria

Jaxel 04-16-2010 02:37 AM

This is the code I am using...

Code:

        if ($perms['comment'])
        {
                require_once(DIR . '/includes/functions_editor.php');
                $show['qr_require_click'] = 0;
                $editorid = construct_edit_toolbar('',0,'nonforum',1,1,0,'qr_small');
        }

Code:

                $templater->register('editorid', $editorid);
                $templater->register('messagearea', $messagearea);


But I keep getting the following error:
Uncaught ReferenceError: vB_Text_Editor is not defined

As well, none of the buttons on the QR work. If I change the editor to FE, it works fine without error.

Vaupell 04-17-2010 02:12 PM

Works great, Thanks microhellas.


All times are GMT. The time now is 01:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01288 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete