PDA

View Full Version : Custom post Odd Behavior


zanthor
06-16-2010, 07:59 PM
I've written an addon for vbulletin 4.0 that I'm using to accept applications to my warcraft guild. The idea is they fill out a simple form, provide answers to my questions, it validates that they provided SOME answers and then posts a new thread.

Every time I do this, or my main assistant does it, it works fine, the post is made, all is good (sample (http://www.botbh.com/showthread.php?491)). Every time random-new-user does it, the post appears, however all the fields they fill out are empty (sample (http://www.botbh.com/showthread.php?473)).

The application form (Requires registration):
http://www.botbh.com/misc.php?do=apply

Attached is my code implimented as a hook/plugin. (Code block processes BBCode apparently.)

zanthor
06-16-2010, 08:07 PM
Is there any way that $vbulletin->input->clean_gpc would be returning null values for some users but not others?

DragonBlade
06-17-2010, 08:17 AM
Since you are using $_REQUEST, shouldnt these be 'r' and not 'p'?


$output['Character Name'] = $vbulletin->input->clean_gpc('p','char_name',TYPE_NOHTML);

zanthor
06-17-2010, 03:25 PM
The data is coming from postback so I'd think I'd want those from 'p' not 'r'... if someone can clarify I'd appreciate it.

Like I said, its working for me in every way I've tried, it's working for everyone I've had try it, it's not working for people who tend to not communicate with me after the failure :(.

zanthor
06-24-2010, 03:49 PM
Any feedback on this? Should I be using R not P?