vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Forms Hack (https://vborg.vbsupport.ru/showthread.php?t=93970)

krela 11-08-2005 05:00 PM

Quote:

Originally Posted by saxpics
This has ... possibilities. I'm wantening to use this h@x to create a form for people essentially posting classified ads ("want ads", if you prefer), because we have too many posters that tend to forget to post, say, contact information.

Three questions:

* I haven't really checked, but can you set the code to post new threads in a forum, rather than just new posts to an existing thread?
* I HAVE checked, but haven't found: is there a way to set this form's title (i.e. "Generic Form") to be user defined, rather than statically defined? Ideally, I'd like a line in the form that says something like, "What are you selling?" and that ends up being the thread's title.
* I want all the threads to be posted into a forum where my members only have permission to respond to threads already posted. Does this forum hack care about user permissions to post something with it?

1) Yes it can be used to post new threads
2) Yes you can use a user field to name the thread, just takes a bit of hacking
3) Yes it cares about user permissions, so will follow normal rules I believe.

krela 11-08-2005 05:02 PM

Quote:

Originally Posted by krela
Ignore request number 2, I just wrote my own hooks for it. Seems to work :)

I would love to be able to use the editor for the long fields though.

Ignore request number one too, I implemented the editor myself with a dirty but workable hack.

This is a nice plugin :)

saxpics 11-08-2005 09:06 PM

Quote:

Originally Posted by krela
1) Yes it can be used to post new threads
2) Yes you can use a user field to name the thread, just takes a bit of hacking
3) Yes it cares about user permissions, so will follow normal rules I believe.

I found out how to do #2. I'm fuzzy on #1, still. Would anyone have some info?

Abe1 11-08-2005 11:02 PM

Quote:

Originally Posted by saxpics
I found out how to do #2. I'm fuzzy on #1, still. Would anyone have some info?

Just use the first option. The default one. Just put the forumid were you want the threads created.

saxpics 11-09-2005 03:15 PM

Thank you very much. * Runs off to play with code *

welo 11-09-2005 06:39 PM

Okay, this thing is pretty cool. Am playing with setting it up while preparing to deploy our annual 'Secret Santa' gift exchange. Will click 'Install' once I have it running. :up:

One question though: How difficult would it be to add a preview feature to this thing? This could sure eliminate a lot of submitted misinformation.

saxpics 11-09-2005 08:29 PM

Yah. A preview would be kewl. I betcha the reason we cant have that now is the same reason why we can't get the WYSIWYG text editor.

Anyhow, I wanted to say that I was able to do the modifications the way I wanted (i.e., posts as a new thread, the answer to question 1 becomes the title of the thread).

I do want to ask this again, though, in a somewhat better way:

The idea behind using this Form Hack for my Forum is to make $member submit all the info in the form for "classified" ads. The info gets sent into a forum where the user can't edit anything. The unfortunate thing is, what's to stop $member from just hitting the "New Thread" button? Is there a way to disable that for a forum and link to the form instead? I do want $members to be able to add new posts to the form-submitted thread.

silurius 11-09-2005 09:45 PM

Quote:

Originally Posted by silurius
I finally found the problem. Disabling the sign a contract plugin re-enables your plugin. Since I need this hack more than the contract one, this will work for me for a little while.

Abe, I know you're working on a few enhancements to this great hack, but do you think you might have time to look at the conflict with the sign a contract plugin some time soon? I would like to start utilizing both items. Thanks!

welo 11-10-2005 12:14 AM

Quote:

Originally Posted by saxpics
Yah. A preview would be kewl. I betcha the reason we cant have that now is the same reason why we can't get the WYSIWYG text editor.

I lean toward thinking it's more of an oversight than anything. Can't think of any practical reason to add WYSIWYG. Preview, on the other hand, should be standard issue for nearly any complex form submission protocol. Matter of fact, I don't see why VB doesn't use this on its contact form.

SirJonathan 11-14-2005 11:12 PM

Quote:

Originally Posted by SirJonathan
Hey Guys!

I'm having some serious challenges with this form.. I'm using it for a membership application to my community and I'm having some serious trouble with people filling out an entire application, putting a LOT of time and energy into it, and then bam.. losing the whole thing. They hit post and it just never goes through.

Many applications go through fine, I just have this sinking feeling that just as many aren't going through. There isn't much that's more discouraging than losing something you've really just put your heart and soul into..

Are there alternatives? Is there something I could do to make the form more secure? Has anyone else had trouble with this? =\

Thanks in advance guys, any help is much appreciated!

-Jonathan

Do I get any points for persistance? :).. *grins*.. Is there anyone who'd be willing to take a look at it for me? Any help would be greatly appreciated! Thanks guys!

-Jonathan


All times are GMT. The time now is 05:49 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.01514 seconds
  • Memory Usage 1,747KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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