The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Okay, since nobody was interested in porting Darth Cow's default BBCode hack when I asked, I started messing around on my own to make a similar hack, and strangely enough I managed to figure almost everything out, including adding a column for a "Use default BBCode for this post" option in the database. However, now I got an error:
Quote:
|
#2
|
||||
|
||||
![]()
I seriously need help on this... I tried using this after reading the instructions above vB_DataManager a few times over:
Code:
$validfields["usedefaultbbcode"] = array('VF_TYPE' => 'TYPE_BOOL', 'VF_REQ' => 'REQ_NO', 'VF_CODE' => 'VF_METHOD'); |
#3
|
|||
|
|||
![]()
Try adding a plugin with the following at the userdata_start hook:
Code:
// check to make sure VB_AREA is defined if (defined('VB_AREA')) { // add these to the validfields $this->validfields['usedefaultbbcode'] = array(TYPE_BOOL, REQ_NO); } |
#4
|
||||
|
||||
![]()
Hmm, I'm still getting a blank page...
|
#5
|
|||
|
|||
![]()
Can't really help with that without seeing the rest of the code.
|
#6
|
||||
|
||||
![]()
Well, basically, I more or less went through newreply.php and includes/functions_newpost.php and everywhere it did something with the "Show your signature in this post?" input, I did the exact same thing with usedefaultbbcode.
|
#7
|
||||
|
||||
![]()
*prods thread* Anybody?
|
#8
|
|||
|
|||
![]()
had a similar issue and found this thread, but then I figured it out, if you haven't here it is.
I originally added my new field right under the declaration of the validfields like so: PHP Code:
But then, duh, I realized, this is a class. You can't do random operations outside of functions and stuff, so if you move that to a function it works. I moved mine into PHP Code:
PHP Code:
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|