The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Form Hack Details »» | |||||||||||||||||||||||||
Form Hack 4.1 Features: Ever wanted an online form that a user can fill out, which when submitted gets:
Or any combination or all of the above? Well, this is the hack for you! You can use this for:
Or anything you like - this hack is totally customizable via the AdminCP. The beauty of this hack is that once you install this hack, to make a new form all you need to do is copy the main hook, rename it to whatever you want, edit the variables in the hook, and you have a totally new form!!! You do not need to touch the templates again, but can always create new ones and use different templates for different forms. Format of the form:
This is customizable via the hook. Also:
INSTALLATION Easy - takes only a few minutes:
Done! Use this hack to make as many forms as you like! Enjoy! Updates: Version 4.0: (09/15/2006)
Version 4.1: (04/24/2008)
MAKE SURE YOU CLICK INSTALL! You will get an email when a new version is released. Abe1 with rights from Dr Erwin Loh Supporters / CoAuthors Show Your Support
|
Comments |
#292
|
|||
|
|||
Thanks blind-eddie
I hate to give this kind of access to the forum I'm having this submitted into...do you think there would be a way to setup a new user account that I could hard code into this hack. That way I can limit the user account setting within vB so that it only has access to this one forum. Hard coding the user setting might be a bit of a security risk but my forum is hosted on an intranet so I'm no worried that the employees in my company will be hacking my site. Do you think this could be done easily? |
#293
|
||||
|
||||
Dont get me to lying.....Your first question was easy, your second one is a lil tougher....I have it set up for only registered user who are logged in can post on any forum, thus reducing spam. My opion to you is that I wouldnt want anyone to fill out a form unless they were registered,to ensure they are who they are.
|
#294
|
|||
|
|||
K so if we go that route how can I have the form force the user to login first.
i.e. if the user enters "http://www.myforum.org/forum/newthread.php?do=form" they're currently taken to the form regardless of whether they are logged in. If they're not logged in and fill out the form and hit submit they are given no indication that their post has not gone through. So what I would like to do is some how check that the user is logged in when they first get to this page and if they are not, force them to login first...make sense? |
#295
|
||||
|
||||
Quote:
Code:
if ($_REQUEST['do'] == $formname) { Code:
if (!$vbulletin->userinfo['userid']) { print_no_permission(); } Alternatively you can amend this line in the plugin code: Code:
// if (!in_array($vbulletin->userinfo['usergroupid'], array(2,5,6,7))) print_no_permission(); Setting the post to be from a defined user is, from what I can tell, far more difficult, as the call to build_new_post() picks up the current user's id (whether a member or not). Anyone found out how to circumvent the posts (from unregd users) going into the Moderation queue yet? |
#296
|
||||
|
||||
Quote:
|
#297
|
|||
|
|||
woww very very good job.
thanx abe1... |
#298
|
|||
|
|||
Quote:
Here's my template: Code:
$normalquestion1 $normalanswer1 $normalquestion2 $normalanswer2 $radioquestion1 $radioanswer1 $longquestion1 $longanswer1 $longquestion2 $longanswer2 |
#299
|
|||
|
|||
I've searched through the plugin and the templates yet still cannot find out how to remove it either....
|
#300
|
|||
|
|||
Why don't the two of you compare installed hacks and plugins? Perhaps you can find a common vein which might lead to being able to track it down more easily.
Sorry I couldn't be more help than that, but it's a potential start - at least until one of the more capable coders comes along to shed some light. |
#301
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|