vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Custom post Odd Behavior (https://vborg.vbsupport.ru/showthread.php?t=244750)

zanthor 06-16-2010 07:59 PM

Custom post Odd Behavior
 
1 Attachment(s)
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). Every time random-new-user does it, the post appears, however all the fields they fill out are empty (sample).

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'?

Code:

$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?


All times are GMT. The time now is 03:29 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
  • Page Generation 0.00991 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete