vb.org Archive

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

bananalive 02-28-2011 12:48 PM

Quote:

Originally Posted by ixian (Post 2166731)
I searched the thread - is it possible to create a form that creates a calendar entry instead of a post, and if so how?

The form in question would of course have required fields like date, time, etc.

Thanks! Fantastic addon.

You would need to use the form hooks. Then you could send the form variables to vbulletin's calendar data manager to create the event.

CharlieDelta 02-28-2011 01:18 PM

Quote:

Originally Posted by bananalive (Post 2167838)
Edit Form -> Form Hook: Before Submit:

PHP Code:

if (!$vbulletin->userinfo['userid'])
{
print_no_permission();


This will ask them to login or register once they hit submit.

Thanks for this Banana, this will come in handy.

Welshy2008 02-28-2011 09:09 PM

BA - Please clear your inbox, and would it be alright to PM you, please?

Thanks.

ascroft 03-01-2011 06:34 AM

Hi there - still keen to find a way to use the same form but called from multiple forums and posting back in to there. I have maybe 40 geographic forums that i am keen to use the same form in.

Thank you.

bananalive 03-01-2011 08:19 AM

Quote:

Originally Posted by ascroft (Post 2168141)
Hi there - still keen to find a way to use the same form but called from multiple forums and posting back in to there. I have maybe 40 geographic forums that i am keen to use the same form in.

Thank you.

  1. Edit Form
  2. Add 'Custom' Question
    • Type
      Code:

      Custom
    • Reference
      Code:

      forumid
    • PHP Code
      PHP Code:

      $answer "<select name=\"$formbit[id]\" id=\"q_" $formbit[id]  . "\">";
      foreach (
      $vbulletin->forumcache AS $forumid  => $forum)
      {
      if (
      $qo['forumid']==$forumid)
      {
      $forum['selected'] = ' selected="selected"';
      }
      $answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>";
      }
      $answer .= "</select>"

    • Compulsory:
      Code:

      Yes
  3. Form Hook: Form Start:
    PHP Code:

    $form['forumid'] = $qo['forumid']; 

  4. Form Hook: Before Submit:
    PHP Code:

    $forumid $form['forumid'] = $qo['forumid']; 


bananalive 03-01-2011 08:20 AM

Quote:

Originally Posted by Welshy2008 (Post 2168004)
BA - Please clear your inbox, and would it be alright to PM you, please?

Thanks.

Try again now.

wolfey 03-01-2011 10:13 AM

Quote:

Originally Posted by bananalive (Post 2167849)
Added the functionality to attached file.

Import attached product file and then it should work.

Thank you for the extra help!

russellw 03-02-2011 05:28 AM

Having read through all 76 pages, I'm hoping someone can help.

I've installed on a test server and everything looks fine except the link to http://url/misc.php?do=forms simply shows the smilie page from FAQ.

The forum isn't installed in a subdirectory (it's at the html root) and a quick look through the misc.php doesn't show any code related to do forms.

I noted in the 3.6/3.8 threads that a couple of people had this issue but couldn't see a fix.

It's odd when the show smilies code in misc.php is a do?=smilies and calls smiliebits

Cheers
Russ

bananalive 03-03-2011 09:18 AM

Quote:

Originally Posted by russellw (Post 2168596)
Having read through all 76 pages, I'm hoping someone can help.

I've installed on a test server and everything looks fine except the link to http://url/misc.php?do=forms simply shows the smilie page from FAQ.

The forum isn't installed in a subdirectory (it's at the html root) and a quick look through the misc.php doesn't show any code related to do forms.

I noted in the 3.6/3.8 threads that a couple of people had this issue but couldn't see a fix.

It's odd when the show smilies code in misc.php is a do?=smilies and calls smiliebits

Cheers
Russ

Have you tried un-installing and then re-installing it. The default page when a 'do' isn't called is the smilies so the hooks aren't exec'ing. Do you get any error messages at the top of the page?

Mobo 03-03-2011 10:53 AM

Okay, I installed this mod and have a working form that posts a thread in my Book Review sub-forum. Is there a way to have the form its self displayed at the top of that forum, instead of in a link buried in the man nav menu?


All times are GMT. The time now is 05:12 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.02788 seconds
  • Memory Usage 1,755KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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