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)

HMBeaty 07-27-2011 07:53 PM

Quote:

Originally Posted by TROLL (Post 2225743)
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') . '");');



To shorten that up, I believe you could also use something like this:
PHP Code:

if($vbulletin->userinfo['posts'] < 30 AND $vbulletin->userinfo['joindate'] < TIMENOW - (86400 30))
{
    
standard_error(fetch_error('YOUR_ERROR_PHRASE'));


And go to Add New Phrase > Error Phrase > input your varname, text, etc. and change YOUR_ERROR_PHRASE to the varname you defined

b6gm6n 07-27-2011 11:18 PM

Hi, how can i chose the ID of the thread maker for a submitted form? it seems it's always choosing the admin and posting a thread, just so happens I'm the admin who posted a test and it looked ok, but i wanted my forum bot to make the post, i inserted the bot ID and yet although it takes that information it just appends a a comma and my admin ID in the edit section, how can i get past this?

twista46 08-03-2011 05:04 PM

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') . '");');
}

Nice Tool

but it works not in 3.7 :(:(

twista46 08-06-2011 09:26 PM

No Idea??

hossenpheffer 08-08-2011 11:30 AM

I'm using the first three fields of a form to use as the new thread title. It's critical that the new title display all capital letters. Can some one explain the best way to force uppercase/caps for a given set of questions or field?

Using the 'description' to request the user input only caps is often ignored.

hossenpheffer 08-11-2011 06:35 PM

I've been using the mod New Thread Notification for quite a while, but the instant email alerts have stopped sending with the installation and activation of Easy Forms in the forums that use a form to start a new thread.

I've tried adjusting the execution order around with both of them to no avail. Has anyone else seen this? Thanks in advance for any ideas or solutions.

Simon Lloyd 08-12-2011 02:25 PM

maybe one of them is rewriting the hook thats used

hossenpheffer 08-12-2011 03:01 PM

I expect you're right, or by-passing one? Reviewing the plugin hooks, they don't appear to have any shared hook locations.

Moon Moose 09-05-2011 11:34 AM

I've installed this mod but can't find anywhere to create the form?? Or any clues from endless amounts of posts I have looked through. I just want to put a small "Send your name and address for tickets" form on a an events page in the cms. ??

blind-eddie 09-06-2011 02:23 AM

Quote:

Originally Posted by Moon Moose (Post 2242154)
I've installed this mod but can't find anywhere to create the form?? Or any clues from endless amounts of posts I have looked through. I just want to put a small "Send your name and address for tickets" form on a an events page in the cms. ??

In your quick links drop down, click Forms. It should be at the bottom.
Once you get to the form page the link to create new forms is dead center of page.


http://yoursitecom/forum/misc.php?do=forms


All times are GMT. The time now is 12:09 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.02662 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)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