The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I am interested in using BBCode on other areas of my site outside of the forums directory. I have 2 questions regarding that:
1. Is it possible to reproduce vBulletin's standard editor (ie. textarea) with the formatting features like bold, size, color, align, etc... I want to allow my members to format some other text they are submitting without using a Rich Text Area. I dont really want to use a Java Applet. 2. How can I take advantage of vB's BBCode parser when i go to echo the text? Is there away to do something like this: PHP Code:
Thanks for your help! Eric |
#2
|
||||
|
||||
![]()
use include('./includes/functions_bbcodeparse.php'); in your php script
![]() |
#3
|
||||
|
||||
![]() Quote:
|
#4
|
||||
|
||||
![]()
How can I go about recreating a textarea that functions like this one outside of the forum?
![]() I have copied and pasted the code and I can make it look like this but when I click on BOLD or UNDERLINE it does not insert the BBCode into the textarea. I figured since it was javascript it would be easy to just copy and paste the JS code to get this thing working... but no luck... |
#5
|
||||
|
||||
![]()
with the code i gave you will be able to parse bbcode to recreate that you need to copy the new post template and replace all the php vars with actual urls and u need to include the correct javascript files.
|
#6
|
||||
|
||||
![]() Quote:
# New Posting Templates [? ?] * newattachment [Customize] * newattachmentbit [Customize] * newattachment_errormessage [Customize] * newpoll [Customize] * newpost_attachment [Customize] * newpost_attachmentbit [Customize] * newpost_disablesmiliesoption [Customize] * newpost_errormessage [Customize] * newpost_preview [Customize] * newpost_quote [Customize] * newpost_threadmanage [Customize] * newpost_usernamecode [Customize] * newreply [Customize] * newreply_reviewbit [Customize] * newreply_reviewbit_ignore [Customize] * newreply_reviewbit_ignore_global [Customize] * newthread [Customize] Which one of these do I use or am i under the wrong category? Thanks Eric |
#7
|
||||
|
||||
![]()
newthread and newreply are the templates used for new posts, dending on whether they are - well - new replies or new threads.
The actual editor of the message is in the editor templates group. |
#8
|
||||
|
||||
![]()
OK, I finally got the standard editor textarea. Actually, i was making that way harder than it was. Just forgot to include one of the JS files.
![]() Next problem: When I use include('./includes/functions_bbcodeparse.php'); it makes a bunch of calls to undefined functions. The first one being :Fatal error: Call to undefined function: htmlspecialchars_uni() in /home/mysite/public_html/eslhq/esl_forums/includes/functions_bbcodeparse.php on line 336 Basically my code looks like this: PHP Code:
|
#9
|
||||
|
||||
![]()
OK, i found the answer. At least this works for me so i thought I'd share it for those who are having the same problem as me.
PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|