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)

Simon Lloyd 06-06-2011 08:02 PM

The Author would have to custom that for you as there isn't that option to send it to whichever thread the user of the form chooses, unless you can use stuff like you can in the title like this:
Check the checkbox for which thread to post to and then put {q_1} so question one on your form would be a textbox for a thread id, this is only a guess, give it a go, if not you'll have to wait for the author to answer :)

Nook_Neformat 06-06-2011 09:22 PM

i tried, it doesn't work(

Robert Waanders 07-01-2011 12:43 PM

This is a really great mod! Thank you for this!

hossenpheffer 07-23-2011 02:39 PM

I'm trying to change the New Thread icon/button code to go directly to a specific form. I found a prior post here: Post 459 telling what to do, but I'm not sure "where" to do it.

Can anyone expound on exactly what form and how, where it needs to be altered? I understand the code, just not where to put it.

Much thanks for any help.

Simon Lloyd 07-23-2011 11:51 PM

Take a lookat Bananalive's post below it https://vborg.vbsupport.ru/showpost....&postcount=461 with this go to Admincp>Plugins & Products>Add new plugin
Product: leave this alone
Hook location: newthread_start
Title: Form Button
Excecution Order: leave this alone
Plugin code: add the below changing the forum id's to that of the ones you want to control.
HTML Code:

if (in_array($forumid, array(1,2,3))) {
header( 'Location: http://www.your-site.com/forum/misc.php?do=form&fid=1' ) ;
}


twista46 07-25-2011 06:41 PM

How can i insert my Forum Prefix`s in this Mod and a field for Images ??

hossenpheffer 07-25-2011 11:00 PM

Thanks much to Simon Lloyd. That clarification was just what I needed!

TROLL 07-27-2011 07:26 PM

I have what is probably a very simple question for anyone with PHP experience... (which I unfortunately do not).

In the Form Hook: Form Start: field, I currently have the following code which requires users to have a post count of at least 30 to use the form:

Code:

if($vbulletin->userinfo['posts'] < 30)
{
$errormessage = "You need 30 posts to use this form.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}

I would like to add a second requirement here, which also requires users to have joined at least 30 days ago in order to use the form.
I found the following code, but am not sure how to properly add it to what I have currently:

Code:

$vbulletin->userinfo['joindate'] < TIMENOW - (86400 * 30)
Again, I am looking to require that users have at least 30 posts AND have joined at least 30 days ago in order to use the form.

Thanks in advance for the help!

HMBeaty 07-27-2011 07:32 PM

Try this
PHP Code:

if($vbulletin->userinfo['posts'] < 30 AND $vbulletin->userinfo['joindate'] < TIMENOW - (86400 30))
{
$errormessage "You need 30 posts to use this form.";
eval(
'print_output("' fetch_template('STANDARD_ERROR') . '");');



TROLL 07-27-2011 07:48 PM

Thank you sir! That appears to work with some basic testing. Very much appreciated.

For the record, this is the final code I used, changing the error message to be more approprate:

PHP Code:

if($vbulletin->userinfo['posts'] < 30 AND $vbulletin->userinfo['joindate'] < TIMENOW - (86400 30))
{
$errormessage "You do not have permission to create a thread in the Personal Marketplace because you need a post count of at least 30 and to have been a member for at least 30 days to create a thread here.";
eval(
'print_output("' fetch_template('STANDARD_ERROR') . '");');




All times are GMT. The time now is 07:44 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.02773 seconds
  • Memory Usage 1,747KB
  • 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
  • (1)bbcode_html_printable
  • (2)bbcode_php_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