vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - Form Hack (https://vborg.vbsupport.ru/showthread.php?t=126676)

MoB Dudditz MD 04-17-2007 03:18 AM

As with any area that allows for user input, does this hack validate input in any way?
I just want to make sure it is secure enough so that the average user cannot exploit it.
If not, is there a way to integrate validation to make it more secure?
Thanks

TheMilkCarton 04-17-2007 03:41 AM

You can use some JavaScript and expressions to limit input in any of the boxes. I've done this so that a certain box can only have numbers input into it. You could essentially use this as a NoSpam! type mod. Then you can modify your form plugin so that ALL the fields must be answered.

Or you can wait until I finalize my Image Verification add-on... which is looking pretty dismal right now. :( I just don't have time to test every little thing, and I certainly won't support it when/if I do release it.

I may see if Abe1 would like to take what I've done and test it and incorporate it right into the actual form hack. Not sure if he's interested though.

Limerick 04-17-2007 04:12 PM

Quote:

Originally Posted by rayw (Post 1225722)

I will post the finished product once I have fine tuned it. :)

Hello rayw,

Did you succeed?
I'm interested by your search ;)

Deepdog009 04-17-2007 07:17 PM

Thanks 2 ABE1 file I have inserted IMAGE VERIFICATION...

I have created two forms of IMAGE VERIFICATION 2 use with this HACK...

check my sig for more info...

Good Luck...;)

Thanks again 4 dis Hack ABE1 im learning about forms.

Deepdog009 04-17-2007 07:22 PM

Quote:

Originally Posted by upnorth (Post 1229057)
I'm looking for some guidance in formatting the answer template so that I can control the way the finished post looks. Is there any way to use conditionals in the answer template?

For example I have

$question1
$checkboxAnswer1_1
$checkboxAnswer1_2
$checkboxAnswer1_3

If only the first checkbox is selected on the form then the $checkboxAnswer1_2 and $checkboxAnswer1_3 put spaces in the final post. I'd like to do something like

if ($checkboxAnswer1_2==""){
echo "";
}
That way I can eliminate the spaces?

Any ideas?

UpNorth this can be done, but you will have to alter the plugin file to match and execute.

I still learning this stuff, Im sure ABE1 can do this with his eyes closed, but hes a busy man.
I will take a look and see if I can help...

Check with RayW, he has made some progress in this area...

Limerick 04-17-2007 07:37 PM

Hello All,

In fact I wish to know if it is possible to let people post the form in any of the existing forums. To do so, they should be able to select the forum in a dropdown list looking like the "Forum Jump" list.

Would this be possible?

And first off all, would it also possible to let users choose the name of the filled form when posted?
For example the form type would be displayed like a prefix and the user would complete this prefix by a name written in a mandatory field...

Thanks for your help :)

Mookie 04-18-2007 02:10 AM

I am having a problem with the form hack. I am receiving a error

Code:

Invalid Forum specified. If you followed a valid link, please notify the administrator
Does anyone know how to fix this error. I have tried almost everything... I guess there is something that I have not tried yet.

rayw 04-18-2007 02:43 AM

Quote:

Originally Posted by Limerick (Post 1229941)
Hello All,

In fact I wish to know if it is possible to let people post the form in any of the existing forums. To do so, they should be able to select the forum in a dropdown list looking like the "Forum Jump" list.

Would this be possible?

The answer to this is above. (well, it is back on the last page now about half way down).

It is exactly what I've got running on my forums at the moment, only with a few extra forums added.

rayw 04-18-2007 03:02 AM

Quote:

Originally Posted by upnorth (Post 1229057)
I'm looking for some guidance in formatting the answer template so that I can control the way the finished post looks. Is there any way to use conditionals in the answer template?

For example I have

$question1
$checkboxAnswer1_1
$checkboxAnswer1_2
$checkboxAnswer1_3

If only the first checkbox is selected on the form then the $checkboxAnswer1_2 and $checkboxAnswer1_3 put spaces in the final post. I'd like to do something like

if ($checkboxAnswer1_2==""){
echo "";
}
That way I can eliminate the spaces?

Any ideas?


Quote:

Originally Posted by Deepdog009 (Post 1229919)
Check with RayW, he has made some progress in this area...

upnorth, I'm no experienced programmer (I'm still learning too) but it looks like you have the right idea.

You may be able to work it out using what I have posted here (it is back on the previous page about half way down as well). If you give your checkboxes values ($checkbox1a, $checkbox1b, $checkbox1c, for example) and apply those values to what I have written, you would be pretty close to fixing your problem I reckon. You may need to make 1 or two other tiny changes to make it function correctly.

I wish I could help more! :)

Limerick 04-18-2007 05:42 AM

Quote:

Originally Posted by rayw (Post 1230163)
The answer to this is above. (well, it is back on the last page now about half way down).

It is exactly what I've got running on my forums at the moment, only with a few extra forums added.


Hello rayw,

Thanks for your answer, but when you say
Quote:

I will post the finished product once I have fine tuned it.
, I thought it was not finished. Especially when you say
Quote:

When I submit the form using this, I get: Warning: Cannot use a scalar value as an array in /includes/functions_newpost.php on line 356

Could someone offer some advice. I'm assuming the problem lies in the above somewhere; maybe!!
.

But your answer here should mean "all is ok now", I guess :)


All times are GMT. The time now is 04:08 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.02025 seconds
  • Memory Usage 1,756KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete