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)

storpappa 05-06-2008 11:07 AM

3.7 thread / version available or just keep posting here? Great mod - thanks, used it for some time. This should be a must install for every site, you always can use a form

Kinneas 05-06-2008 11:49 AM

Quote:

Originally Posted by alternity (Post 1508676)
Hi, I'm having issues with this hack since upgrading to 3.7. The forms display correctly, but when I try to submit them I get the following text on a white background:

I'm running Form Hack 4.1.
Any ideas?

Quote:

Originally Posted by dutchbb (Post 1508871)
Yes I'm having the same error message, any help from the coder please?

Latest version should have fixed it AFAIK. Did you use some custom template names for your forms?

Try editing them and look for:

Code:

<input type="hidden" name="posthash" value="$posthash" />
Add below:

Code:

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

dutchbb 05-06-2008 02:22 PM

That solved it, thanks!

vrokar 05-06-2008 09:52 PM

I have a question maybe some of you who or more advanced then I can answer.

Say I have two Drop down Menus. DropDownA with 5 Options and DropdownB with 3 options.

Is it possible to set the Dropdown boxes in this fashion..

If DropDownA (Option 1) Selected then DropDownB's Selectable options are a,b,c.

Example...

DropDown1 Offers, Warrior, Warlock, Priest.

If Warrior is selected then DropDownB would offer the Protection, Fury, Arms as an option.

If Warlock is selected DropDownB would offer Affliction, Demonology, Destruction as an option. I have a feeling it is possible...but im not sure how. Any help would be appreciated.

Spinball 05-06-2008 10:15 PM

vrokar this is possible, but you need to use Javascript function to alter the available options in the dependant drop-down when the first is changed. You call the function using onchange.
There are plenty of examples on the 'net and buying a Javascript book would not hurt.

vrokar 05-07-2008 12:52 PM

Quote:

Originally Posted by Spinball (Post 1511011)
vrokar this is possible, but you need to use Javascript function to alter the available options in the dependant drop-down when the first is changed. You call the function using onchange.
There are plenty of examples on the 'net and buying a Javascript book would not hurt.

Ill have to do that. Maybe find an example somewhere that can help. Have any reconmendations for a good javascript book?

Spinball 05-07-2008 01:41 PM

Quote:

Originally Posted by vrokar (Post 1511593)
Ill have to do that. Maybe find an example somewhere that can help. Have any reconmendations for a good javascript book?

Have a look over at Sitepoint.com

Scalemotorcars 05-07-2008 01:47 PM

Ive looked over the thread and I don't see my answer so if this has been covered I apologize.

I cant get the attachments section to display on the form.

Made the edit to:
PHP Code:

////////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE ATTACHMENTS - 1 = yes, 0 = no
//attachments can only be used if the form is going to make a new thread or post
$allow_attachments "1";

//////////////////////////////////////////////////////////////////////////////////////////////////// 

But still not showing on the (/newthread.php?do=form ) page.

Also: I'm using this to post to a specific thread and edited this feature.
PHP Code:

////////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO REPLY TO EXISTING THREAD - 1 = yes, 0 = no
$formreply "1";

//EXISTING THREAD ID FOR FORM TO REPLY IN
$formreplythreadid "2040";

//////////////////////////////////////////////////////////////////////////////////////////////////// 

I really need the attachments section to work or the mod or its useless to me. Any help please. Thanks

Scalemotorcars 05-07-2008 04:51 PM

Ive looked again and again and noticed several others having this problem. I'm using 3.6.5 and when I go to the form page theres no area for attachment.

Any help would be great. Thanks....

Scalemotorcars 05-07-2008 09:38 PM

OK I need to get this working so I'm offering up $20.00 to the first guy that can help me get this going on 3.6.5.

Everything else works fine I just cant get this section of code to work.
PHP Code:

<if condition="$attachmentoption">
<
tr>
<
td class="alt1" colspan="3" align="center">
<
div style="width:$stylevar[formwidth]align="$stylevar[left]">$attachmentoption</div>
</
td>
</
tr>
</if> 

Ive tried it without the <If> and as a stand alone $attachmentoption, even moved it to other area's on the template. :confused::confused::confused:

Deepdog009 05-09-2008 02:12 AM

Quote:

Originally Posted by Scalemotorcars (Post 1512070)
OK I need to get this working so I'm offering up $20.00 to the first guy that can help me get this going on 3.6.5.

Everything else works fine I just cant get this section of code to work.
PHP Code:

<if condition="$attachmentoption">
<
tr>
<
td class="alt1" colspan="3" align="center">
<
div style="width:$stylevar[formwidth]align="$stylevar[left]">$attachmentoption</div>
</
td>
</
tr>
</if> 

Ive tried it without the <If> and as a stand alone $attachmentoption, even moved it to other area's on the template. :confused::confused::confused:


Scalemotorcars keep your $$$,,, I shall assist U...

In order 4 me to resolve I will need...>>>
  • answer template info ... >>> text format
  • main template info ... >>> text format
  • plugin info ... >>> text format

Place all in zip and upload


I will give it a go and hopefully find issue...

Scalemotorcars 05-10-2008 12:39 AM

Wow Thanks!!!! :D

Been a long day so Ill get those posted in the morning. :up:

Deepdog009 05-10-2008 01:17 AM

Quote:

Originally Posted by Scalemotorcars (Post 1514429)
Wow Thanks!!!! :D

Been a long day so Ill get those posted in the morning. :up:


I will be a bit busy this weekend,,, but if U upload by saturday or sunday I will download when time permits and take a look - C................;)

L8ter

Scalemotorcars 05-10-2008 11:44 AM

I really appreciate it Deepdog009 :D:D:D

Heres that Zip.

Ive included a Screen shot just in case and the three files. All I changed was the basic setup in the plugin script. The other 2 templates should be unchanged.

Daniel

ccplim 05-10-2008 01:26 PM

I am going slow with my designing and it has been smooth till this point of point (well, at least not until I start playing around with the conditional stuff).

Anyway, for my first question. How can I move/shift the center split line (which I have highlighted in red) towards the left? I have tried playing around but can't seem to get it to work :o

Thanks in advance.

Deepdog009 05-11-2008 02:29 AM

Quote:

Originally Posted by Scalemotorcars (Post 1514842)
I really appreciate it Deepdog009 :D:D:D

Heres that Zip.

Ive included a Screen shot just in case and the three files. All I changed was the basic setup in the plugin script. The other 2 templates should be unchanged.

Daniel

**************************************
Daniel,,,
Just got back from work,,, give me by the morrow and I will post info...

*****************************************

ccplim,,,
I can help,,, but only if you post the main TEMPLATE info here in one of your posts...

ccplim 05-11-2008 03:08 AM

Hi Deepdog009,

Thank you so much for that. I have attached my form template here for your reference.

Most of the original codes were left untouch. I bascially insert what I need before the original codes and keep pushing them downwards (will only remove those original codes when I complete my entire form).

Deepdog009 05-11-2008 03:31 AM

Quote:

Originally Posted by Scalemotorcars (Post 1511790)
Ive looked again and again and noticed several others having this problem. I'm using 3.6.5 and when I go to the form page theres no area for attachment.

Any help would be great. Thanks....


************************************************** **

Daniel,,,

I setup your form and its showing manage attachments...

Scratch the form as the issue...
Its gotta B something else???

May its the usergroup setup??? It has 2-B something concerning PERMISSIONS or USERGROUP access...

************************************************** **

ccplim,,,
I will post L8ter

ccplim 05-11-2008 03:40 AM

Thanks! Take your time as I am still in the process of adding in the other fields. :)

Deepdog009 05-11-2008 05:44 AM

Quote:

Originally Posted by ccplim (Post 1515562)
Thanks! Take your time as I am still in the process of adding in the other fields. :)


ccplim,,,

I usually add CSS,,, but its not needed here...
  • Goto Admincp
  • Open Style Mgr
  • Goto StyleVars
  • Look 4 Spacer Size and Edit

Play around with it between {{{ 30 to 200 }}}

Good Luck 2 ya

ccplim 05-11-2008 05:57 AM

Quote:

Originally Posted by Deepdog009 (Post 1515641)
ccplim,,,

I usually add CSS,,, but its not needed here...
  • Goto Admincp
  • Open Style Mgr
  • Goto StyleVars
  • Look 4 Spacer Size and Edit

Play around with it between {{{ 30 to 200 }}}

Good Luck 2 ya

But if I were to use this method, that means it will affect the entire forum.

Is it possible to retain the spacer size and just adjust the column width?

It is okay if that is too troublesome. I can still live with it. :p

ccplim 05-11-2008 06:24 AM

Bro Deepdog009,

I tried playing around with the following codes

HTML Code:

<tr>
        <td class="alt2" valign="middle">
                <b>$radioquestion1</b>
        </td>
                <td class="alt3" valign="middle" colspan="1">
                <input type="radio" name="radioanswer1" value="$radiochoice1a" <if condition="$radiochoice1a == $radioanswer1">checked="checked"</if> /> $radiochoice1a (Want To Buy)
                <input type="radio" name="radioanswer1" value="$radiochoice1b" <if condition="$radiochoice1b == $radioanswer1">checked="checked"</if> /> $radiochoice1b (Want To Sell)
                </td>
        <td>&nbsp;</td>
</tr>

and it seems like by changing the "colspan" in the following from 2 to 1, it does help to shift the margin towards the left. However, I am not sure if this will have any side effect?

Change the colspan="2"
Quote:

<td class="alt3" valign="middle" colspan="2">
<input type="radio" name="radioanswer1" value="$radiochoice1a" <if condition="$radiochoice1a == $radioanswer1">checked="checked"</if> /> $radiochoice1a (Want To Buy)
To colspan="1"
Quote:

<td class="alt3" valign="middle" colspan="1">
<input type="radio" name="radioanswer1" value="$radiochoice1a" <if condition="$radiochoice1a == $radioanswer1">checked="checked"</if> /> $radiochoice1a (Want To Buy)

Deepdog009 05-12-2008 01:53 AM

Quote:

Originally Posted by ccplim (Post 1515664)
Bro Deepdog009,

I tried playing around with the following codes

HTML Code:

<tr>
        <td class="alt2" valign="middle">
                <b>$radioquestion1</b>
        </td>
                <td class="alt3" valign="middle" colspan="1">
                <input type="radio" name="radioanswer1" value="$radiochoice1a" <if condition="$radiochoice1a == $radioanswer1">checked="checked"</if> /> $radiochoice1a (Want To Buy)
                <input type="radio" name="radioanswer1" value="$radiochoice1b" <if condition="$radiochoice1b == $radioanswer1">checked="checked"</if> /> $radiochoice1b (Want To Sell)
                </td>
        <td>&nbsp;</td>
</tr>

and it seems like by changing the "colspan" in the following from 2 to 1, it does help to shift the margin towards the left. However, I am not sure if this will have any side effect?

Change the colspan="2"


To colspan="1"


ccplim,,,

Good deal,,, Hard work pays off...:up:

Sorry,,, I forgot about the spacer size changes will also affect your forum alignments...

Changing the colspan count in your form will only affect that template...

COLSPAN ("how many across") and ROWSPAN ("how many down")

ccplim 05-12-2008 05:12 AM

Quote:

Originally Posted by Deepdog009 (Post 1516707)
ccplim,,,

Good deal,,, Hard work pays off...:up:

Sorry,,, I forgot about the spacer size changes will also affect your forum alignments...

Changing the colspan count in your form will only affect that template...

COLSPAN ("how many across") and ROWSPAN ("how many down")

Thanks! :)

But then, I noticed that the column that I wanted to change is not controlled by COLSPAN. The COLSPAN that we are using here is actually controlling the column on the right hand side. :confused:

Scalemotorcars 05-12-2008 12:17 PM

Quote:

Originally Posted by Deepdog009 (Post 1515549)
************************************************** **

Daniel,,,

I setup your form and its showing manage attachments...

Scratch the form as the issue...
Its gotta B something else???

May its the usergroup setup??? It has 2-B something concerning PERMISSIONS or USERGROUP access...

************************************************** **

ccplim,,,
I will post L8ter

Thats what I thought also but no luck Ive edited both those in several ways and its not changing.

What about using the code right off the upload pop-up? Can it be hard coded into the form page? And if so how???

redraider 05-12-2008 05:58 PM

Any changes required for vb 3.7 ?

Deepdog009 05-12-2008 10:47 PM

Quote:

Originally Posted by ccplim (Post 1516820)
Thanks! :)

But then, I noticed that the column that I wanted to change is not controlled by COLSPAN. The COLSPAN that we are using here is actually controlling the column on the right hand side. :confused:

************************************************** ***
ccplim,,,
I've been a bit busy with testing some stuff for this mod and others,,, afterwards when I have some free time,,, I will try a bit of css and see if that might do the trick...

I will post about it L8ter...

************************************************** ***
Scalemotorcars,,,
I setup your form info and loaded it in IE,,, and it had the manage attachments in the right place... So next I went into my usergroups and switched attachments off,,, refreshed the page and the option was gone...

If you already checked the usergroups and its still not showing then it could also be that another MOD is affecting it???

************************************************** ***
redraider,,,
YES,,, this works with 3.7 beauts... install the 4.1 and read help file by ABE1

ccplim 05-14-2008 11:37 AM

Hi Deepdog009,

Thank you so much :)

Deepdog009 05-14-2008 07:03 PM

Quote:

Originally Posted by ccplim (Post 1519264)
Hi Deepdog009,

Thank you so much :)

YEAP,,,

I think Im going 2 focus more on forms next month and create some add-on form packs with mostly custom forms that will help folks with customizing a bit easier...;):cool:

Scalemotorcars 05-15-2008 07:15 PM

I think Im going 2 focus more on forms next month and create some add-on form packs with mostly custom forms that will help folks with customizing a bit easier...;):cool:[/QUOTE]

That would be great. No mater what I do I cant get the attachments section to come up. I turned off every hack Ive got and nothing changed. Must be something else.

If you can make another form hack like the WOW with a better attachments section that would be great. I could really use this for my car site when we have on line shows.

uberjon 05-17-2008 10:56 PM

read this works on 3.7 and appears to with stock .xml file. however when i attempt to use my customized one. i get a white page? cant diagnose the error with a white page with no output source code.

anyone have any ideas?

edit:

*blush* i figured it out! template naming mismatch :p

ccplim 05-18-2008 04:52 AM

I am trying to set up some conditional check for my fields but where should I put them in? In the plugin itself or the main template? I have been playing around with the codes for days but just can't seem to get the conditional syntex right :down::o

What is going to happen is that I will have 3 fields in my form, namely $radiochoice1a, $radiochoice1b, and normalanswer1.

If a member select $radiochoice1a as his answer, normalanswer1 will be disabled and no information can be entered in that field.

Else, if the member select $radiochoice1b as his answer, normalanswer1 will be enable.

Thanks!

ccplim 05-18-2008 08:09 AM

How can I remove the VB text input area? I tried to remove '$messagearea' but the three buttons (Submit, Preview, Reset) below also disappeared :confused:

Deepdog009 05-18-2008 06:11 PM

Quote:

Originally Posted by ccplim (Post 1523153)
I am trying to set up some conditional check for my fields but where should I put them in? In the plugin itself or the main template? I have been playing around with the codes for days but just can't seem to get the conditional syntex right :down::o

What is going to happen is that I will have 3 fields in my form, namely $radiochoice1a, $radiochoice1b, and normalanswer1.

If a member select $radiochoice1a as his answer, normalanswer1 will be disabled and no information can be entered in that field.

Else, if the member select $radiochoice1b as his answer, normalanswer1 will be enable.

Thanks!

ccplim,,,
I haven't had much time to help recently because of my job,,, but yeah you can use the standard if conditional to work out your issue...

What I recommend is downloading a few easy mods and take a look at the XML code... Look for mods that use the if statment allot...

Im still half way out of the PHP twilight zone and on top of that my job wont allow my ball and chain to come off very often...;):eek:

Take a look at this site...>>> PHP HELPER

If you still need help after checking over there,,, Give me until tuesday and I will assist U...


*************************************************


ccplim,,,
VB Text edit...>>> delete both lines listed below...

HTML Code:

<td class="alt2" valign="middle" colspan="3">
<b>$vbtextquestion</b><br />    <<<......{{{delete this}}}
$vbtextexplain      <<<......{{{delete this}}}
<div align="center">

<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
$messagearea
</td>
</tr>
</table>
</div>
</td>
</tr>
<if condition="$attachmentoption">
<tr>
<td class="alt1" colspan="3" align="center">
<div style="width:$stylevar[formwidth]" align="$stylevar[left]">$attachmentoption</div>
</td>
</tr>
</if>
<tr>
<td valign="top" colspan="3">
<p align="center">
<input type="submit" value="Submit" name="submit" style="font-family: Verdana; font-size: 10pt" class="button" />
<input type="submit" value="Preview" name="submit" style="font-family: Verdana; font-size: 10pt" class="button" />
<input type="reset" value="Reset" name="reset" style="font-family: Verdana; font-size: 10pt" class="button" />
</p></td></tr>
</table>

</form>


That should do the trick...



*************************************************


ccplim,,,
Using the disable feature seems to work better with ajax,,, the only problem is that I haven't worked with ajax modifications yet... Too many things going on now,,, so maybe next month If Im not burnt out with mod updates,,, I will attempt adding some ajax...


*************************************************


uberjon,,, Beauts!

ccplim 05-19-2008 02:48 AM

Quote:

Originally Posted by Deepdog009 (Post 1523867)
ccplim,,,
I haven't had much time to help recently because of my job,,, but yeah you can use the standard if conditional to work out your issue...

What I recommend is downloading a few easy mods and take a look at the XML code... Look for mods that use the if statment allot...

Im still half way out of the PHP twilight zone and on top of that my job wont allow my ball and chain to come off very often...;):eek:

Take a look at this site...>>> PHP HELPER

If you still need help after checking over there,,, Give me until tuesday and I will assist U...

Thanks for the link pal :) I'll take a look at it and see how things can progress from there :up:

rwoscott 05-20-2008 02:24 AM

I've managed to customise my form, (finally) and can PM it to myself, but I can't seem to get the submit to a forum work. I've set the Forum id to a couple of forums to ensure it works, but alas it does not.

Anyone have an idea as to why it may not work?
Will supply the link if needed.

grimmer 05-20-2008 01:07 PM

Quote:

Originally Posted by Deety (Post 1427173)
I would like to have the form post new threads in multiple forums selected by checkboxes.

This code seems to work well for selecting one $formforumid, but the first two "else" statements would prevent multiple selections, and taking them out did no good.

I'm guessing the issue may be that $formforumid can't be assigned multiple values (i.e., $formforumid = "1,2,3" or some such), but hopefully it can and I'm just missing the language that will do it. Easy answers are nice. :p

If anyone has a suggestion to get multiple forums working, I'll make the edit to the original form and post it as an example so it's easy for the next person. Thanks for any ideas... :)

PHP Code:

if ($checkboxchoice1_1 1)
{
$formforumid "1";
}
else
if (
$checkboxchoice1_2 1)
{
$formforumid "2";
}
else
if (
$checkboxchoice1_3 1)
{
$formforumid "3";
}
else
$formforumid "4"


Bump for a question that about a dozen people here including myself have.

Smiry Kin's 05-20-2008 11:31 PM

does this work in 3.7.?

as looking for something like this again :)

ccplim 05-22-2008 02:15 PM

Oh my goodness..... my form shown up alright in Internet Explorer (see attached "Internet explorer.jpg) but not in Firefox (see attached "Firefox.jpg). :eek:

What could have gone wrong? :confused: :(

Alteran Ancient 05-22-2008 07:50 PM

Quote:

Originally Posted by ccplim (Post 1528007)
Oh my goodness..... my form shown up alright in Internet Explorer (see attached "Internet explorer.jpg) but not in Firefox (see attached "Firefox.jpg). :eek:

What could have gone wrong? :confused: :(

It's a good thing I refuse to use Firefox. It's an over-rated, worshipless piece of pap that I only ever touch for the plugins people make for it, such as Download managers. I come for their work, not the work of Mozilla.

At least IE8 will come out with Standard mode available.


All times are GMT. The time now is 05:45 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.03022 seconds
  • Memory Usage 1,917KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_html_printable
  • (5)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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