The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi People,
I am in the process of making a hack for my forums and im trying to do the whole thing using hooks. I have added a new field to the admincp > edit/add new forums... I want to do some checking on this feild so i have added the following to the forumdata_start plugin Code:
function verify_event_date(&$event_date) { $event_date = "03-03-2006"; return true; } $this->validfields['event_date'] = array(TYPE_NOCLEAN, REQ_NO, 'return verify_event_date($event_date);'); For some reason it will not set the new value. As far as i can see this should work, They even have an example in the vbb manaual that shows it should work. http://www.vbulletin.com/docs/html/m...nager_advanced Ideas anyone? THANKS! NOTE: if i code this into class_dm_forum.php it works so im not to sure where im going wrong. |
#2
|
|||
|
|||
![]()
FYI: Seems to work if i use &$data
|
#3
|
|||
|
|||
![]()
You should use $data in verify function:
PHP Code:
|
#4
|
|||
|
|||
![]() Quote:
Sure.. I was looking at how it was doing it in the php files.. which is obviously a bit different for hooks ![]() thanks |
#5
|
|||
|
|||
![]()
No, it is no different for hooks.
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|