The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How can I add a vB textarea to my mod?
So I have a textarea I have added to newthread page, and the data posted, is returned within the post with the following variable.
Code:
<div><font size="1"><pre>$post[mod_changelog]</pre></font></div> How can I make it like the default textareas? so the textarea 1. does not allow html 2. allows bbcode been scratching my head for a couple days on this one. |
#2
|
|||
|
|||
Might help Using the vBulletin Input Cleaner Class
|
Благодарность от: | ||
MarkFL |
#3
|
|||
|
|||
1.- PHP File
Code:
$show['wysiwyg'] = ($vbulletin->options['allow_bbcode'] ? is_wysiwyg_compatible() : 0); $istyles_js = construct_editor_styles_js(); $show['qr_require_click'] = 0; $editorid = construct_edit_toolbar($ad["description"], 0, '', 1, 1, false, 'fe'); $messagearea = " <script type=\"text/javascript\"> <!-- var require_click = false; var threaded_mode = 1; var is_last_page = false; // --> </script> $messagearea "; Template: Code:
$messagearea Code:
$editorid = construct_edit_toolbar($ad["description"], 0, '', 1, 1, false, 'fe'); I think that I was out of topic before .... Thought that you want to add vb Editor to textarea. Code:
require_once(DIR . '/includes/class_bbcode.php'); $any_variable_name = convert_wysiwyg_html_to_bbcode($vbulletin->GPC['your_field_name']); |
#4
|
||||
|
||||
ok, I have tried a lot of things. too many to post, but I am not getting this.
so let me explain a little more. the textarea i have added to newthread page (its under the message box) think of it as a sub message. it stores its info in sql by itself and at the moment is set to no_html now i want to return that data on the showthread page (within the original post) but with it allowing bbcode and not allowing html. I show the variable for the "sub message" content within showthread lets say $submessage so could I use something like Code:
$submessage = convert_wysiwyg_html_to_bbcode($vbulletin->GPC['????????']); but the bbcode php should already be where I am trying to use this. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|