View Single Post
  #1102  
Old 02-17-2011, 12:49 PM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Leo777 View Post
Installed, working perfect, Thanks for a great and complex mod.

I have one question :

Is it possible to display a form within a post/thread? Or can forms only be displayed only on their own misc.php URL? It would be great if I could add a form at the bottom of a post but I can't find any option or documentation if this is possible...

Thanks.
  1. Import attached product file
  2. Create Custom BB Code in AdminCP
    • Title:
      Code:
      Form BB Code
    • BB Code Tag Name:
      Code:
      form
    • Replacement:
      HTML Code:
      <div style="clear: both;">
      <iframe src="misc.php?do=form&amp;fid={param}&amp;embed=1" style="width: 100%; height: 500px;">
      <p>Your browser does not support iframes.</p>
      </iframe>
      </div>
    • Example:
      Code:
      [form]1[/form]
    • Use Option:
      Code:
      No
    • Remove Tag If Empty
      Code:
      Yes
    • Disable BB Code Within This BB Code
      Code:
      Yes
    • Disable Smilies Within This BB Code
      Code:
      Yes
    • Disable Word Wrapping Within This BB Code
      Code:
      Yes
    • Disable Automatic Link Parsing Within This BB Code
      Code:
      YES
  3. Use [form]1[/form] in posts

The other suggestion I can offer, I'm not sure if it will be helpful, but you can re-direct reply button to the desired form

How can I Re-direct/ force users to submit form when they click reply?
  1. Create plugin newreply_form_complete

    PHP Code:
     if (in_array($threadinfo[threadid], array(1,2,3)))

    header'Location: http://www.your-site.com/forum/misc.php?do=form&fid=1' ) ; 

  2. Change 1,2,3 for appropriate threadids.
Attached Files
File Type: xml product-easyforms v4.2.5.xml (285.4 KB, 6 views)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01378 seconds
  • Memory Usage 1,803KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete