vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - Easy Forms - Create a form or multiple forms without php or html knowledge (https://vborg.vbsupport.ru/showthread.php?t=201097)

SBlueman 10-11-2013 11:25 PM

PHP Code:

$vbulletin->GPC['subject'] = ucwords($vbulletin->GPC['subject']); 

This is the code for the Auto-Caps. Is this as simple as pasting that line of code to the
Form Hook: Before Submit: field? And if so, what would the correct setup be to work with this existing code:

PHP Code:

if ($qo[16]   == "NFL General Discussion"

$form[forumid] = 108

elseif (
$qo[16]   == "Arizona Cardinals"

$form[forumid] = 330

elseif (
$qo[16]   == "Atlanta Falcons"

$form[forumid] = 306

elseif (
$qo[16]   == "Baltimore Ravens"

$form[forumid] = 313

elseif (
$qo[16]   == "Buffalo Bills"

$form[forumid] = 310

elseif (
$qo[16]   == "Carolina Panthers"

$form[forumid] = 327

elseif (
$qo[16]   == "Chicago Bears"

$form[forumid] = 323

elseif (
$qo[16]   == "Cincinnati Bengals"

$form[forumid] = 312

elseif (
$qo[16]   == "Cleveland Browns"

$form[forumid] = 311

elseif (
$qo[16]   == "Dallas Cowboys"

$form[forumid] = 321

elseif (
$qo[16]   == "Detroit Lions"

$form[forumid] = 324

elseif (
$qo[16]   == "Denver Broncos"

$form[forumid] = 303

elseif (
$qo[16]   == "Green Bay Packers"

$form[forumid] = 305

elseif (
$qo[16]   == "Houston Texans"

$form[forumid] = 315

elseif (
$qo[16]   == "Indianapolis Colts"

$form[forumid] = 314

elseif (
$qo[16]   == "Jacksonville Jaguars"

$form[forumid] = 316

elseif (
$qo[16]   == "Kansas City Chiefs"

$form[forumid] = 318

elseif (
$qo[16]   == "Miami Dolphins"

$form[forumid] = 308

elseif (
$qo[16]   == "Minnesota Vikings"

$form[forumid] = 325

elseif (
$qo[16]   == "New England Patriots"

$form[forumid] = 300

elseif (
$qo[16]   == "New Orleans Saints"

$form[forumid] = 326

elseif (
$qo[16]   == "New York Giants"

$form[forumid] = 304

elseif (
$qo[16]   == "New York Jets"

$form[forumid] = 309

elseif (
$qo[16]   == "Oakland Raiders"

$form[forumid] = 317

elseif (
$qo[16]   == "Philadelphia Eagles"

$form[forumid] = 322

elseif (
$qo[16]   == "Pittsburgh Steelers"

$form[forumid] = 301

elseif (
$qo[16]   == "San Diego Chargers"

$form[forumid] = 319

elseif (
$qo[16]   == "San Francisco 49ers"

$form[forumid] = 307

elseif (
$qo[16]   == "Seattle Seahawks"

$form[forumid] = 331

elseif (
$qo[16]   == "St. Louis Rams"

$form[forumid] = 329

elseif (
$qo[16]   == "Tampa Bay Buccaneers"

$form[forumid] = 328

elseif (
$qo[16]   == "Tennessee Titans"

$form[forumid] = 302

elseif (
$qo[16]   == "Washington Redskins"

$form[forumid] = 320

elseif (
$qo[16]   == "NFL Draft Discussion"

$form[forumid] = 208



TNCclubman 11-05-2013 02:01 AM

Is there a way to block more than 1 vote attempt per IP? Ive got people voting multiple times just by registering new accounts.

blind-eddie 02-18-2014 04:04 PM

For those that are still using this on their 3.8 board and are using VB image Hosting
, were you able to add the code to the form editor, if so, would you mind sharing the "how to" with me?

EDIT: I can get the code to show in editor below smilie box as per instructions but it will not post image info in message area.

viper357 02-19-2014 07:01 PM

Quote:

Originally Posted by blind-eddie (Post 2482159)
For those that are still using this on their 3.8 board and are using VB image Hosting
, were you able to add the code to the form editor, if so, would you mind sharing the "how to" with me?

EDIT: I can get the code to show in editor below smilie box as per instructions but it will not post image info in message area.

I experienced the same thing, would upload fine but not post, even hired a coder to try and get it to work but with no luck, eventually ended up enabling attachments.

blind-eddie 02-19-2014 07:08 PM

I have a coder looking at it as we speak.... I am sure he will either share his edits here or allow me to.

dany_danay 04-01-2014 05:31 AM

Suposse this is anserw but i cant find it... How can i add a form into a vbulletin internal page?

goxy63 10-01-2014 07:54 PM

I would need something like this to use as an petition on my forums
Will this work on VB4?
Also if I modify this in order that user sign in for petition, will I be able to print out somehow all data in order to take this as proof for real petition?
Bunch of details as every user birthday, id number, address and such....making things visible only for me not for public and so on...

Was searching for petition hack but there is no any, only some ppl mention that this can be used as such

Please give me some ideas, or opinions

Thanks

bananalive 10-04-2014 12:11 PM

Quote:

Originally Posted by goxy63 (Post 2517300)
I would need something like this to use as an petition on my forums
Will this work on VB4?
Also if I modify this in order that user sign in for petition, will I be able to print out somehow all data in order to take this as proof for real petition?
Bunch of details as every user birthday, id number, address and such....making things visible only for me not for public and so on...

Was searching for petition hack but there is no any, only some ppl mention that this can be used as such

Please give me some ideas, or opinions

Thanks

vbulletin 4 version here - https://vborg.vbsupport.ru/showthread.php?t=234385

Jo_RHU 10-28-2014 03:57 PM

Hi, I've created a basic test form with one question with 3 checkboxes for answers.

It works fine with the default settings but when I try to customise the form output by using:

Quote:

$q[1]
I just get the text 'array' posted in the thread, instead of the answer. Am I doing something wrong?

I'm using vb 3.8.5 and the plugin version 3.6.

Thanks!

Jo_RHU 10-28-2014 10:09 PM

Quote:

Originally Posted by hpidriver (Post 2308034)
I am using this custom question code, and it shows me the correct choices of prefixes when filling out a form.

However, when I click submit, Easy Forms does not recognize that any prefix was chosen. ie. if the custom coded prefix question is made "compulsory" it always throws the error of : "The form did not submit as the following questions are unanswered: "

Anyone have the prefix option for posting to a new thread working? on vb3.8.6

I was having this same problem on 3.8.5, it showed the dropdown menu to choose the prefix but when the thread was published no prefix had been added.

It's now working using the code as below and since I upgraded the plugin to the 3.7 beta and (in the xml file) changed all instances of TYPE=MyISAM to ENGINE=MyISAM. (I don't know if that's related to the issue but just posting here in case it helps someone else tearing their hair out like I was!) This is the code used (as has been posted previously in this thread)

In a custom question called 'prefix':

Code:

require_once(DIR . '/includes/functions_prefix.php');
$thisanswer = $q[$formbit[id]];
$prefix_options = fetch_prefix_html($form['forumid'], $thisanswer, true);
$answer = '<select name="' . $formbit[id] . '" id="q_' . $formbit[id] . '" class="bginput">';
$answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>';
$answer .= $prefix_options;
$answer .= '</select>';


and in the 'Form Hook: Before Submit:' section:

Code:

$form['prefix']  = $form['prefixid'] = $qo['15'];
*where 15 is the question # for the prefix custom question


Thank you developer, awesome plugin! (I tried to get this working years ago and struggled but I guess my vb brain has evolved since then :))


All times are GMT. The time now is 09:05 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.02338 seconds
  • Memory Usage 1,794KB
  • 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
  • (2)bbcode_php_printable
  • (4)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