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)

bananalive 06-08-2010 02:35 PM

Quote:

Originally Posted by Cedric_FP (Post 2045382)
Could you post the hooks to have a new thread go through the "build new post" function rather than the data manager directly?

Why? build_new_post() function is just an easy way to access the datamanagers but in this mod it is advantageous not to have extra permissions checked

build_new_post() is used for new threads atm.

jdj 06-08-2010 02:38 PM

Apologies if the answer to this is on this thread already.

Can this mod be used to allow users to subscribe to a forum as a condition of their entry to it? E.g. if you want to collect user address details upon registration to your site? Or perhaps if you wish to allow them to register on the site as registered users using the default details then ask them for more details to subscribe to a particular forum within your site...... if for example you have a group that wants a mailing database but you don't need it on the entire site? Or perhaps if you simply wanted them to provide a registration number to gain access to a particular forum?

JJ

bananalive 06-08-2010 02:39 PM

1 Attachment(s)
Quote:

Originally Posted by sean-zigster (Post 2045376)
As you can see from the pictures we are using ours like a database. Is there anyway we can add lines to the rows to make them stand out a little more and also make the fields sort alphabetically ?

I am also having trouble with permissions as i have to allow everyone to edit everyones entries as the edit personal entries does not work

http://i44.photobucket.com/albums/f1...30at075155.png

Thanks

Fixed in attached file

bananalive 06-08-2010 02:40 PM

Quote:

Originally Posted by promoprompt (Post 2045390)
Who is ment?

If me, I dont know what Hooks realy is or do.

Do you have any excamples to me?

greets promoprompt

hooks, are similar to vbulletin plugins, allow php to be inserted at certain points in the code

bananalive 06-08-2010 02:41 PM

Quote:

Originally Posted by Veer (Post 2046549)
Form Description text is always BOLD, Please fix it.

that will be the css styling

bananalive 06-08-2010 02:46 PM

Quote:

Originally Posted by Tiryaki (Post 2043430)
Hello,

I've downloaded, installed this addon and created a test form, but I don't now how to open the form automatically in a forum by clicking on the "New Thread" Button.

what must be done?

Thanks in advance.
-Tiryaki

Create plugin with vBulletin Hook Location: newthread_form_complete with the following php code:
PHP Code:

if (in_array($forumid, array(1,2,3)))

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


Change 1,2,3 for appropriate threadids.

bananalive 06-08-2010 03:08 PM

Quote:

Originally Posted by harleyparts (Post 2043368)
OK i made this form but i want it to calculate the answers and rate them
its all in fun and not important , but by golly i want it :)

I have added the form so those who know something can look it over.
works fine except for the vbif and or but stuff

its a test and its basically 1 of 2 choice's but i want to average the score and based on that score i want it to rate the test

so score of 20 7 or highest and the score of 20 1 or lowest answers is lowest

and maybe a middle then i would like it to say in the final results the score that was calculated :D

any help would be really appreciated ..rofl

Form Hook: Before Submit:
PHP Code:

$disabled_updateuserids true;  
$closed=true;
$count 0;
foreach (
$q AS $a => $b)
{
 if (
$a && is_numeric($b) && $b 0)
 {
  
$average += $b;
  
$count++;
 }
}
if (
$count != 0)
{
$q['average'] = $average/$count;
if (
$q['average']>5)
{
$formoutput "you are hillbilly average 5+";
}
else
{
$formoutput "you are not hillbilly average 5-";
}



rfsforums 06-08-2010 04:48 PM

I want to create a membership renewal form. Basically, all our users have the same primary user group (registered users, id:2) but most have joined 1 or more secondary "additional" groups. Each year they have to re-new their membership and I think we can use your forms mod to make this task much easier.
When the user goes to the form, I would like to have a renewal clause that they must accept as well as have each of their additional usergroups displayed (these are the 2010 year groups) with a check box so if they don't want to renew they can just uncheck that particular additional usergroup and on form submission that additional usergroup would get dropped from their account. I would also like to, upon submission, move the user from the checked groups (2010) to a pre-defined 2011 version of the particular group.

Example user4 bob is a member of the following secondary groups:
_ Clause > must be checked to proceed
_ 2010 Hunting group (id:18) > if checked, upon submission move to 2011 Hunting group (id:30)
_2010 Fishing group (id: 27)> if checked, upon submission move to 2011 Fishing Group (id:40)

Bananalive - any suggestions on how to go about this? Thanks!

riskofficer 06-09-2010 11:05 AM

Quote:

Originally Posted by riskofficer (Post 2043218)
Thank you, but this patch does not work, everything are messed up in export after apply.

Quote:

Originally Posted by bananalive (Post 2050481)
Fixed in attached file

This patch contains error from previous patch, when Excel export doesnt work. (as you remember you removed &quote; tags from Excel export, but this crashes all table layout it export).

bananalive 06-09-2010 11:45 AM

1 Attachment(s)
Quote:

Originally Posted by riskofficer (Post 2050941)
This patch contains error from previous patch, when Excel export doesnt work. (as you remember you removed &quote; tags from Excel export, but this crashes all table layout it export).

ok, try this version


All times are GMT. The time now is 10:13 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.02647 seconds
  • Memory Usage 1,764KB
  • 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
  • (9)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