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)

MoMan 07-21-2008 10:26 PM

Quote:

Originally Posted by MoMan (Post 1578361)
Thanks a lot for the reply!

Do you also happen to know what the vBulletin variable for prefixes is?

Quote:

Originally Posted by RedGTiVR6 (Post 1578403)
That I don't know, but you might try the programing discussions forum?

I've looked through the XML file and found a way for a radio option to assign a thread prefix. Here's the code I added, if anyone else is interested:

Find:

PHP Code:

$newpost['title'] =& $posttitle

Below Add:

PHP Code:

if ($radiochoice2a == $radioanswer2)
           { 
           
$newpost['prefixid'] = '7';
           } 

Modify the conditional to your needs, obviously, or add a second or third one, depending on how many prefixes you're using. You'll need to get the prefix IDs from the admin panel's prefix list page.

Stryker412 07-21-2008 11:24 PM

Ok I fixed it finally. I still need help on some questions.

1) How can I bold the questions once they're posted?
2) How can I set it so the title of each thread includes the applicant's forum name?
3) How do I add two more drop down boxes next to an existing question? Like I've said previously I want to do month, day, and year in a row.
4) Is there anyway to prevent a person from submitting a application more than once?

Deepdog009 07-22-2008 04:30 AM

Quote:

Originally Posted by RedGTiVR6 (Post 1576484)
For some strange reason, this prevents the attachment feature from showing on the form.

Any ideas why that might happen?


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

RedGTiVR6,,,
I'm currently looking into other options... I will post about it by wensday...

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


Quote:

Originally Posted by Stryker412 (Post 1580981)
Ok I fixed it finally. I still need help on some questions.

1) How can I bold the questions once they're posted?
2) How can I set it so the title of each thread includes the applicant's forum name?
3) How do I add two more drop down boxes next to an existing question? Like I've said previously I want to do month, day, and year in a row.
4) Is there anyway to prevent a person from submitting a application more than once?


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

Stryker412,,,

Posting bbcodes will solve Q1... This mod allows bbcode in both MAIN template & ANSWERS template...

MAIN template
HTML Code:

<tr>
<td class="alt1" valign="middle">
<b>Username</b>:<br />
Your Username.</td>
<td class="alt1" valign="middle" colspan="2">
<b>$bbuserinfo[username]</b></td>
</tr>
<tr>
<td class="alt2" valign="middle">
<b>$question1</b>:<br />
</td>

ANSWER template
HTML Code:

$bbuserinfo[username]

$question1 :eek:
$answer1

$question2 ;)
$answer2

$question3 :up:
$answer3

$question4 :D
$answer4

$dropdownquestion1
$dropdownanswer1

$dropdownquestion2
$dropdownanswer2

Q2 requires some minor code changes to $posttitle,,, take a look RedGTiVR6 recent postings......

Q3 ??? *** Download and install forms below to help you better with triple dropdowns......

Q4 ??? *** Prevent more than once submit? Members by userid,,, guests???:eek: ......

pipin 07-22-2008 06:59 AM

Quote:

Originally Posted by vissa (Post 1571409)
For some reason this will not work for GUESTS in 3.7.2 pl1. It submits the form fine, but the thread doesn't appear in the mod section. It works fine for all other members.

Update:
I had to turn off guest image verification in order for this to work for guests...

-vissa

same here, but it doesn't bother me, cause guests aren't allowed to post in the forum.


Strange thing is, that in 4.1 and the versions before the messagearea with the vb editor doesnt work at all, even in the standard template of this mod.

Stryker412 07-22-2008 09:41 AM

Quote:

Originally Posted by Deepdog009 (Post 1581127)
Q4 ??? *** Prevent more than once submit? Members by userid,,, guests???:eek: ......

Registered users only, I don't allow guests to use the form.

If I try to add bbcode to the answers form I get this:

The following error occurred when attempting to evaluate this template:

Quote:

Parse error: syntax error, unexpected '/', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /forum/includes/adminfunctions_template.php(3716) : eval()'d code on line 4

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.


Also, not sure if anyone knows but hitting the Reset button on the form does nothing.

Stryker412 07-22-2008 04:20 PM

Quote:

Originally Posted by Deepdog009 (Post 1581127)
Q3 ??? *** Download and install forms below to help you better with triple dropdowns...

I installed the triple dropdown product, but what do I do with it?

lazytown 07-23-2008 08:52 AM

Works pretty good in 3.7.2, however it's SPAMORAMA on my 2 forums... I will probably have to remove this if there is no spam protection option.

-vissa

Deepdog009 07-25-2008 05:34 AM

Quote:

Originally Posted by RedGTiVR6 (Post 1576484)
For some strange reason, this prevents the attachment feature from showing on the form.

Any ideas why that might happen?

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

Take a look at these links...>>>

Dropdown Forum posting {1}

Dropdown Forum posting {2} Reset forums posting time in admincp...

Dropdown Forum posting {3}

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

Quote:

Originally Posted by Stryker412 (Post 1581521)
I installed the triple dropdown product, but what do I do with it?

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

U wanted to use triple dropdowns for testing? Test in new forms...

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

Stryker412 07-25-2008 01:38 PM

Quote:

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

U wanted to use triple dropdowns for testing? Test in new forms...

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

I'm not sure how to implement it into the form, is there a readme?

Also, is there a way to limit users (registered only) from using the form more than once in a set period of time?

RedGTiVR6 07-25-2008 02:16 PM

[QUOTE=Deepdog009;1583591]

It seems to be on the right track, but he never got it to work.

:(

Quote:

Dropdown Forum posting {2} Reset forums posting time in admincp...
Hrmm - close, but no cigar unfortunately. This guy is only adding code (unsuccessfully) to have the form post in two places upon submitting.

Unfortunately, this is essentially the same code that you provided just for a thread instead of a forum. Since I'm wanting to have a new thread created in a specific forum based on the drop-down that's selected, this doesn't really apply to my situation. Thanks though!

Your code seems to be there, it just doesn't allow attachments when it's in there for some strange reason. No clue why though? Maybe I need to take this to the developers forum to get another set of eyes on it?


All times are GMT. The time now is 08:09 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.01916 seconds
  • Memory Usage 1,772KB
  • 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_html_printable
  • (2)bbcode_php_printable
  • (14)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