![]() |
validfields problem
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) 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. |
FYI: Seems to work if i use &$data
|
You should use $data in verify function:
PHP Code:
|
Quote:
Sure.. I was looking at how it was doing it in the php files.. which is obviously a bit different for hooks :) thanks |
No, it is no different for hooks.
|
All times are GMT. The time now is 02:39 AM. |
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:
|