View Single Post
  #21  
Old 01-11-2009, 10:53 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chani View Post
I think this is going to come in handy for several of my sites.

I do have a question, tho...I'm trying to add a template conditional to the Forms link in the Navbar, but for some reason nothing I do is working...

It's most likely me because I'm so new at actually writing any code, but if you could let me know how to get template conditionals to work, I'd be very grateful.
What conditional did you want to use? To use the usergroups permission you will need to unserialize() the vboption and then use in_array()
Quote:
Originally Posted by SnowBot View Post
We need a link to

http://www.socialspace.co.uk/forum/misc.php?do=forms

adding somewhere :0

Also when making a new form, when hitting "submit" nothing happens, the page just refreshes. It does do the action but no redirect to the forms page.
You can add the link to the forms list manually or using easy forms options to add it to navbar or quick links.

It should redirect to editing the form, once it has been created.
Quote:
Originally Posted by metalguy639 View Post
What is the code for "Custom Form Output" what is the standard code like something to go by so i can copy it and then make it to what I want it to be? Having it there is great but you did not give any instructions on how to use it or what the variables are called or codes we need to have in the template.
I'm creating a help file, attached which should help you. The default code goes through each option and depending on the question type creates the form answer.
Quote:
Originally Posted by dfe View Post
Absolutely brilliant product!

Is there any future possibility of adding SAVE TO DATABASE option as well as post to a thread?
Possibly, there could be a possible issue if the form changed and then the old data might be corrupted.
Attached Files
File Type: zip help.zip (3.1 KB, 173 views)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02956 seconds
  • Memory Usage 1,793KB
  • 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
  • (4)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