![]() |
***Defining valid fields - NEED HELP***
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:
|
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'); |
Try adding a plugin with the following at the userdata_start hook:
Code:
// check to make sure VB_AREA is defined |
Hmm, I'm still getting a blank page...
|
Can't really help with that without seeing the rest of the code.
|
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.
|
*prods thread* Anybody?
|
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:
|
All times are GMT. The time now is 11:51 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:
|