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 |
#1332
|
|||
|
|||
I cannot find my templates to edit anywhere at all. When i goto Style Manager -> Edit Templates nothing is listed at all under custom templates. Clearly the templates have to be somewhere because my test page is showing the form I have been working on in the Plugin PHP Code section.
http://www.legacyofthehorde.com/foru...hp?do=wow_form The Plugin Code shows... PHP Code:
Any ideas? |
#1333
|
||||
|
||||
Since my upgrade to 3.7, i get an error when viewing a form that is intended for those not logged in. The error only displays if you are not logged in and yes I have the guest variable enabled.
Quote:
|
#1334
|
|||
|
|||
Quote:
|
#1335
|
||||
|
||||
Quote:
Quote:
Quote:
|
#1336
|
|||
|
|||
Thanks for point me in the right direction!
Great mod! |
#1337
|
|||
|
|||
Without sounding stupid, is there a complete idiots guide to getting this working?
I am a new forum admin, but I am a programmer (not PHP) and I am struggling to understand how this all hangs together and how to make it work. I imported the XML file with the product manager. I then found the plugin and edited that, although I didnt make any changes. I figured that the PHP code was what generated the form, so I left that alone for the minute to just get something to work. However I don't know how to get this to trigger from a forum i.e when I press the new thread button, I don't get the form. I assume you enable it somehow for each forum. I also don't understand the relationship between the product and the plugin. Do you use the priduct to create multiple plugins as needed? How are they named and how does the name relate to which form you want displayed in each forum? I tried reading this entire thread, but 90 pages is beyond me making sense of it. Any help and guidence would be most appreciated. Cheers Rohan |
#1338
|
||||
|
||||
Quote:
You don't necessarily have to do that for all text, as is shown in the example plugin, but you do need to do it for the form areas. Open the plugin again and go through the area again line by line. There's instructions all through the plugin on what does what and what needs to be configured. In fact, most, if not all of the documentation was worked into the plugin's comments. |
#1339
|
|||
|
|||
Thanks Jedi, I have now got it working.
The biggest problem I had was understanding how it worked, I didn't realise that this was a page that you linked to, that in turn took the results and posted them. I was thinking the form would appear when I clicked the "New Thread" button on a nominated forum. I do however have a couple of questions. How do I stop guests from using the form? i.e make the submit not work if your not logged on and Can the formanswer template have HTML tags in it like <b></b>? I tried adding them but it just showed the tags in the result. Cheers Rohan |
#1340
|
||||
|
||||
Quote:
Guests permissions is a variable in the plugin. |
#1341
|
|||
|
|||
DJ, This is a question in referance to post #1313 where a someone asked:
Quote:
The default code looks like this: Code:
if ($vbulletin->userinfo['autosubscribe'] != -1) { $newpost['emailupdate'] = $vbulletin->userinfo['autosubscribe']; } else { $newpost['emailupdate'] = 9999; } Code:
$newpost['emailupdate'] = 9999; By looking at functions_newpost.php, '9999' apears to be the correct value to delete any subscritions for that thread? Code:
// ### DO THREAD SUBSCRIPTION ### if ($vbulletin->userinfo['userid'] != 0) { require_once(DIR . '/includes/functions_misc.php'); $post['emailupdate'] = verify_subscription_choice($post['emailupdate'], $vbulletin->userinfo, 9999); ($hook = vBulletinHook::fetch_hook('newpost_subscribe')) ? eval($hook) : false; if (!$threadinfo['issubscribed'] AND $post['emailupdate'] != 9999) { // user is not subscribed to this thread so insert it /*insert query*/ $vbulletin->db->query_write("INSERT IGNORE INTO " . TABLE_PREFIX . "subscribethread (userid, threadid, emailupdate, folderid, canview) VALUES (" . $vbulletin->userinfo['userid'] . ", $threadinfo[threadid], $post[emailupdate], $post[folderid], 1)"); } else { // User is subscribed, see if they changed the settings for this thread if ($post['emailupdate'] == 9999) { // Remove this subscription, user chose 'No Subscription' $vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "subscribethread WHERE threadid = $threadinfo[threadid] AND userid = " . $vbulletin->userinfo['userid']); } else if ($threadinfo['emailupdate'] != $post['emailupdate'] OR $threadinfo['folderid'] != $post['folderid']) { // User changed the settings so update the current record /*insert query*/ $vbulletin->db->query_write("REPLACE INTO " . TABLE_PREFIX . "subscribethread (userid, threadid, emailupdate, folderid, canview) VALUES (" . $vbulletin->userinfo['userid'] . ", $threadinfo[threadid], $post[emailupdate], $post[folderid], 1)"); } } } |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|