![]() |
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. |
Might help Using the vBulletin Input Cleaner Class
|
1.- PHP File
Code:
$show['wysiwyg'] = ($vbulletin->options['allow_bbcode'] ? is_wysiwyg_compatible() : 0); 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'); |
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. |
All times are GMT. The time now is 05:10 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|