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)

KevinL 06-05-2011 03:42 PM

Quote:

Originally Posted by bananalive (Post 2203872)
I'm not sure how you've setup it, but check the html or plugin which edits the url.

I'll be honest, I don't know how it was set up. I wasn't the one that installed it.

From what I can see there is nothing in the "forumdisplay" template. Which plugin would it be? The form is created and pointing to the correct forum. Just the new thread (review) button does not work.

Thank you for the help

bananalive 06-05-2011 04:05 PM

Quote:

Originally Posted by KevinL (Post 2203881)
I'll be honest, I don't know how it was set up. I wasn't the one that installed it.

From what I can see there is nothing in the "forumdisplay" template. Which plugin would it be? The form is created and pointing to the correct forum. Just the new thread (review) button does not work.

Thank you for the help

Have a look down the plugin list. It might be called on newreply_form_complete or similar plugin.

Vitaris 06-05-2011 04:20 PM

Firstly just wanted to say that I absolutely love this addon. It's saved me a ton of trouble on my Warcraft guild forums for applications. So BL, thank you tons! It even works flawlessly for me after upgrading to vB 4.1, a move I was hesitant to make for addons like this.

I do have a question, though. Is there a way to pull the forum's internal date and post it in the thread title? I'm looking for something like a M d Y format auto detected from the boards, but I can't find anything relevant in this thread. Sorry if I've missed it! I have a forum that's in dire need of some structure in the title. :)

Thank you for an awesome mod!

bananalive 06-05-2011 04:40 PM

Quote:

Originally Posted by Vitaris (Post 2203891)
Firstly just wanted to say that I absolutely love this addon. It's saved me a ton of trouble on my Warcraft guild forums for applications. So BL, thank you tons! It even works flawlessly for me after upgrading to vB 4.1, a move I was hesitant to make for addons like this.

I do have a question, though. Is there a way to pull the forum's internal date and post it in the thread title? I'm looking for something like a M d Y format auto detected from the boards, but I can't find anything relevant in this thread. Sorry if I've missed it! I have a forum that's in dire need of some structure in the title. :)

Thank you for an awesome mod!

Cheers.

Edit Form -> Form PHP Hooks -> Form Hook: Before Submit:
PHP Code:

$threadtitle .= vbdate(" M d Y"TIMENOW); 


Vitaris 06-05-2011 04:46 PM

Thank you for the fast reply, it works perfectly! :D Best mod ever. :D

ascroft 06-06-2011 03:30 AM

Hi there Dom.

I have the following code in a form question (thanks to you! :-)) but I would like to control the order of the items in the drop down list - only 2 there for now but will have have maybe 30 or so soon. Ideally I would like total control as I want to order geographically which only I know. Is this possible please? I was thinking I could keep the order in some kind of variable?

Many thanks

Mark

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

bananalive 06-08-2011 09:02 AM

Quote:

Originally Posted by ascroft (Post 2204136)
Hi there Dom.

I have the following code in a form question (thanks to you! :-)) but I would like to control the order of the items in the drop down list - only 2 there for now but will have have maybe 30 or so soon. Ideally I would like total control as I want to order geographically which only I know. Is this possible please? I was thinking I could keep the order in some kind of variable?

Many thanks

Mark


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

Yes, but you'll have to create new array to change order, see below example:

(This would show Forumid 2, Forumid 10, then Forumid 1)

PHP Code:

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


ascroft 06-08-2011 09:30 AM

Thanks a lot - works perfectly. Much appreciated.

Mark

clubvr4 06-08-2011 01:00 PM

Quote:

Originally Posted by bananalive (Post 2203878)
Yes, but you'll have to use the form hooks.

Cheers for responding.

Would you be able to advise, my hook skills are limited to zero.

Thanks

Fuji1004 06-10-2011 05:25 PM

Nice mod, thanks for that.
But one question: I want to translate the following phrase, but I can't find it by searching all phrases:

"Error, you have exceeded limit for number of times this form can be submitted."

Where can I find this phrase?

Thanks for help


All times are GMT. The time now is 04:15 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.02184 seconds
  • Memory Usage 1,756KB
  • 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_php_printable
  • (5)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