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)

nakedanvil 09-14-2010 04:05 PM

Quote:

Originally Posted by bananalive (Post 2098013)
1. The title looks fine to me?

2. Create Custom Question with the following PHP Code:
PHP Code:

$text "some text here...";

$answer $text'<textarea id="q_' $formbit[id] . '" name="' $formbit[id] . '" rows="1" style="visibility: hidden;">' $text  '</textarea>'


1) Except it should be bold, centered and size 5. And the "description" text right under should not be bold.

2) Thank, I'll try it! I sure appreciate it.

Shamil. 09-14-2010 05:18 PM

I've installed thanks bananalive.

Just one thing. The viewing permissions is currently dependant on "View Forum" permission for the usergroup. Is there a way to make the mod independent of it?

nakedanvil 09-14-2010 06:36 PM

ct2k7: The possible permissions are set in AdminCP > options > easy forms options and the form permissions are set in the easy forms editor.

Shamil. 09-14-2010 07:02 PM

Quote:

Originally Posted by nakedanvil (Post 2098266)
ct2k7: The possible permissions are set in AdminCP > options > easy forms options and the form permissions are set in the easy forms editor.

I understand that, but, setting view forum to no in usergroup permissions has wider implications. Is there anyway to bypass this?

nakedanvil 09-14-2010 08:21 PM

Sorry, misunderstood. I take it you want a guest to view the form but not your forums. Interesting problem.

Shamil. 09-14-2010 08:27 PM

Quote:

Originally Posted by nakedanvil (Post 2098315)
Sorry, misunderstood. I take it you want a guest to view the form but not your forums. Interesting problem.

Yep. I can't think of anything at the moment which could remedy it :/

nakedanvil 09-15-2010 01:54 AM

Quote:

Originally Posted by nakedanvil (Post 2098172)
1) Except it should be bold, centered and size 5. And the "description" text right under should not be bold.

2) Thank, I'll try it! I sure appreciate it.

Now I see. Wasn't understanding "output". I was thinking form display.

Try my form again please, you'll see now what I'm trying to do.

Lazorbeam 09-15-2010 06:37 PM

I want users to be able to create their own form, or simply copy a standard premade form. Right now, there is no way to allow my users to copy a from a standard form without also giving them the permission to delete other forms.

So I figured I would provide users with the xml of a premade form, and they could upload from there. But I'm getting the common permissions error:

Sterling, you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.


Not sure what is causing this. Can anyone use the import feature?

Edit: Fixed by setting "Users are only allowed to edit forms they created" to no.

Edit 2: I would suggest further expanding the permissions area to something like this:

Usergroups allowed to view own forms.
Usergroups allowed to view all forms.

Usergroups allowed to copy own forms.
Usergroups allowed to copy all forms.

Usergroups allowed to delete own forms.
Usergroups allowed to delete all forms.

And so forth.

sulasno 09-16-2010 10:43 AM

I created a form; exported it; make amendments to the file and imported it; and the id is increased

how do I delete the old forms (which are not displaying)

Veer 09-16-2010 11:24 AM

v4.1.9 change log?

Alfa1 09-16-2010 11:58 AM

Is there a changelog for the last version?

Edit: i missed the post above this one.

Welshy2008 09-16-2010 01:01 PM

BananaAlive,

Is it possible to have one entry of the form, hidden from the Actual POST, until I have been able to check that the details that a member have entered, are indeed correct. Then, once I have confirmed that, I can approve that part of the form, and it will show in the actual post, along with the other info that a user has posted.

It is just one part of the form that I need to check - all the other details can be listed straight away.

Many Thanks.

bananalive 09-16-2010 04:35 PM

Quote:

Originally Posted by Welshy2008 (Post 2099041)
BananaAlive,

Is it possible to have one entry of the form, hidden from the Actual POST, until I have been able to check that the details that a member have entered, are indeed correct. Then, once I have confirmed that, I can approve that part of the form, and it will show in the actual post, along with the other info that a user has posted.

It is just one part of the form that I need to check - all the other details can be listed straight away.

Many Thanks.

sorry no

bananalive 09-16-2010 04:36 PM

Quote:

Originally Posted by Veer (Post 2099022)
v4.1.9 change log?

Quote:

Originally Posted by Alfa1 (Post 2099028)
Is there a changelog for the last version?

Edit: i missed the post above this one.

I have updated version history:
https://vborg.vbsupport.ru/showpost....62&postcount=2

bananalive 09-16-2010 04:38 PM

Quote:

Originally Posted by sulasno (Post 2099009)
I created a form; exported it; make amendments to the file and imported it; and the id is increased

how do I delete the old forms (which are not displaying)

When you import a form it creates a new form independent of all other forms.

If you go to form list, there will be 'Delete Form' link for each form.

bananalive 09-16-2010 04:40 PM

Quote:

Originally Posted by Lazorbeam (Post 2098752)
I want users to be able to create their own form, or simply copy a standard premade form. Right now, there is no way to allow my users to copy a from a standard form without also giving them the permission to delete other forms.

So I figured I would provide users with the xml of a premade form, and they could upload from there. But I'm getting the common permissions error:

Sterling, you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.


Not sure what is causing this. Can anyone use the import feature?

Edit: Fixed by setting "Users are only allowed to edit forms they created" to no.

Edit 2: I would suggest further expanding the permissions area to something like this:

Usergroups allowed to view own forms.
Usergroups allowed to view all forms.

Usergroups allowed to copy own forms.
Usergroups allowed to copy all forms.

Usergroups allowed to delete own forms.
Usergroups allowed to delete all forms.

And so forth.

Warning: there are major security risks allowing users who you do not trust to access this modification as they can eval php code, etc.

bananalive 09-16-2010 04:43 PM

Quote:

Originally Posted by ct2k7 (Post 2098209)
I've installed thanks bananalive.

Just one thing. The viewing permissions is currently dependant on "View Forum" permission for the usergroup. Is there a way to make the mod independent of it?

No, vbulletin checks this permission very early in each page so there is no easy way to bypass it.

bananalive 09-16-2010 04:52 PM

Quote:

Originally Posted by nakedanvil (Post 2098424)
Now I see. Wasn't understanding "output". I was thinking form display.

Try my form again please, you'll see now what I'm trying to do.

Quote:

Originally Posted by nakedanvil (Post 2098172)
1) Except it should be bold, centered and size 5. And the "description" text right under should not be bold.

2) Thank, I'll try it! I sure appreciate it.

For title being bold, centered and size 5
  1. Open template form_view
  2. Find line:
    HTML Code:

    <h2 class="blockhead">{vb:raw form.title}</h2>
  3. Replace with:
    HTML Code:

    <h2 class="blockhead" style="font-weight: bold; text-align: center;"><font size="5">{vb:raw form.title}</font></h2>

For description not being bold
  1. Open template form_view
  2. Find line:
    HTML Code:

    <div class="blocksubhead restore">{vb:raw form.description}</div>
  3. Replace with
    HTML Code:

    <div class="blocksubhead restore" style="font-weight:normal;">{vb:raw form.description}</div>

bananalive 09-16-2010 04:54 PM

Quote:

Originally Posted by sulasno (Post 2098112)
I hope suggestion to add sections to the form would be considered;

eg

Personal

<questions>


Work details

<questions>

Hobbies

<questions>

You can...

Edit Form -> Add Question

Question Type: Section

bananalive 09-16-2010 04:59 PM

Quote:

Originally Posted by riskofficer (Post 2098053)
Thank you!

Im sorry for my english, I will try to paraphrase.

1. Cron job, that will generate file by schedule, users can download only that file. Just an idea. Your suggestion is greate!

2. Thank you, is it possible to code that into Easyforms? So if I change the name of option, it will change it in base?

3. No-no, I meant only hyperlink to edit form result in database. We have this hyperlink in Form Results, how to add it to posts?

4. Thank you! And from export, yes?

2. No, because there is not an id associated with each option, it cannot work out whether an option is new/old/altered/etc.
3. That code adds the link to the end of the post in forum/thread.
4. Yes

dippetas 09-16-2010 07:00 PM

is it good for vbulletin version 4.0.7 any bugs reported? sorry to ask this, but i want to upgrade my site to vbulletin 4.0.7

nakedanvil 09-17-2010 03:49 AM

Quote:

Originally Posted by bananalive (Post 2099132)
For title being bold, centered and size 5
  1. Open template form_view
  2. Find line:
    HTML Code:

    <h2 class="blockhead">{vb:raw form.title}</h2>
  3. Replace with:
    HTML Code:

    <h2 class="blockhead" style="font-weight: bold; text-align: center;"><font size="5">{vb:raw form.title}</font></h2>

For description not being bold
  1. Open template form_view
  2. Find line:
    HTML Code:

    <div class="blocksubhead restore">{vb:raw form.description}</div>
  3. Replace with
    HTML Code:

    <div class="blocksubhead restore" style="font-weight:normal;">{vb:raw form.description}</div>

Mine looks like this:
HTML Code:

<form class="vbform block" action="{vb:raw action}" method="post" name="vbform"<vb:if condition="$editorreturn"> onsubmit="return({vb:raw editorreturn})"</vb:if>>
<vb:if condition="$preview"><h2 class="blockhead">{vb:rawphrase preview}</h2>
<div class="blockbody postpreview">
        <div class="blocksubhead">
                <vb:if condition="$threadtitle"><strong>{vb:raw threadtitle}</strong><vb:else /><strong>{vb:raw form.title}</strong></vb:if>
        </div>

Second one is right.

sulasno 09-17-2010 04:04 AM

Quote:

Originally Posted by bananalive (Post 2099136)
You can...

Edit Form -> Add Question

Question Type: Section

You are the CHAMP !!!

In Username of User to PM:

how do I separate the additional users ? by "," or ";"

similar for additional email ?

sulasno 09-17-2010 04:39 AM

Quote:

Originally Posted by dippetas (Post 2099210)
is it good for vbulletin version 4.0.7 any bugs reported? sorry to ask this, but i want to upgrade my site to vbulletin 4.0.7

have not encountered any bugs in 4.0.7

bananalive 09-17-2010 02:46 PM

Quote:

Originally Posted by sulasno (Post 2099439)
You are the CHAMP !!!

In Username of User to PM:

how do I separate the additional users ? by "," or ";"

similar for additional email ?

Semi colon ";" for both

nakedanvil 09-17-2010 07:22 PM

Bananalive: I sent you an email asking about doing a forms project for me for $$ Did you get that?

The title code above does not work for me. The description one is fine.

ascroft 09-18-2010 02:59 AM

Form is all going really well but I would love to let the form completer select from the available thread prefixes for the forum that I have the form attached to rather than having to specify this up front - is this possible please??

stastka 09-23-2010 09:01 AM

Hi bananalive.

I'd like to thank you for this great mod!

However, there is one thing I can't figure out. Is it possible to post the form to custom page / subforum so that the users can fill in and submit the form there?

I apologize if somebody has already asked about this, but I didn't find it in about 30 pages of comments I read.

Thank you!

sulasno 09-23-2010 09:11 AM

users can fill in the form and submit the form to a designated forum depending on the creator of the form

stastka 09-23-2010 12:26 PM

I know users can submit their answers to the thread I choose, but that's not what I want. I want the form itself to be in the thread so they can fill it in when reading the thread (similar to polls) without having to go to forms tab.

sulasno 09-23-2010 02:40 PM

that would be allowing everyone to edit a common post

Budget101 09-27-2010 02:15 PM

Is there any way to add an "Upload Photo" field??

ramymostafa 09-27-2010 06:35 PM

first of all
thank u very much for this greaaat mod !

it works perfect !

but i have one problem

when i press

"Form Results Poll"

https://vborg.vbsupport.ru/


there is nothing :(

also other result types work fine

https://vborg.vbsupport.ru/

Bouncer222 09-28-2010 02:22 AM

Hey i'm about to install this and use it for our gaming community applications.
one question.
Is it possible to make it so certain usergroups cannot reply until at least one user from certain usergroups has replied?

OR better yet, certain usergroups cannot reply until thread prefix has changed to a certain prefix?

thanks.

bananalive 10-02-2010 01:11 PM

Quote:

Originally Posted by Bouncer222 (Post 2104034)
Hey i'm about to install this and use it for our gaming community applications.
one question.
Is it possible to make it so certain usergroups cannot reply until at least one user from certain usergroups has replied?

OR better yet, certain usergroups cannot reply until thread prefix has changed to a certain prefix?

thanks.

To achieve this you would have to have knowledge of php and use Form Hooks.

bananalive 10-02-2010 01:12 PM

Quote:

Originally Posted by ramymostafa (Post 2103854)
first of all
thank u very much for this greaaat mod !

it works perfect !

but i have one problem

when i press

"Form Results Poll"

http://img713.imageshack.us/img713/516/testzi.png


there is nothing :(

also other result types work fine

http://img828.imageshack.us/img828/2916/test2y.png

What have you got in?:

vBulletin Options -> Easy Form Options -> Question Types to Hide in Form Results Poll

If the question types are in this list then they wont show on Form Results as Poll

bananalive 10-02-2010 01:14 PM

Quote:

Originally Posted by Budget101 (Post 2103711)
Is there any way to add an "Upload Photo" field??

You can allow attachments, when the form creates new thread.

bananalive 10-02-2010 01:15 PM

Quote:

Originally Posted by stastka (Post 2102156)
Hi bananalive.

I'd like to thank you for this great mod!

However, there is one thing I can't figure out. Is it possible to post the form to custom page / subforum so that the users can fill in and submit the form there?

I apologize if somebody has already asked about this, but I didn't find it in about 30 pages of comments I read.

Thank you!

Yes it can post to any forum or sub-forum.

bananalive 10-02-2010 02:55 PM

Quote:

Originally Posted by ascroft (Post 2099900)
Form is all going really well but I would love to let the form completer select from the available thread prefixes for the forum that I have the form attached to rather than having to specify this up front - is this possible please??

Create Custom Question
  • Reference Name:
    Code:

    prefix
  • PHP Code:
    PHP Code:

    require_once(DIR '/includes/functions_prefix.php'); 
    $thisanswer $q[$formbit[id]]; 
    $prefix_options fetch_prefix_html($form['forumid'], $thisanswertrue); 
    $answer '<select name="' $formbit[id] . '" id="q_' $formbit[id] . '" class="bginput">'
    $answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>'
    $answer .= $prefix_options
    $answer .= '</select>'


Add the following to Form Hook: Before Submit:

PHP Code:

$form['prefix']  = $form['prefixid'] = $qo['prefix']; 


bananalive 10-02-2010 02:59 PM

Quote:

Originally Posted by nakedanvil (Post 2099765)
The title code above does not work for me. The description one is fine.

Add the following code to Form Hook: Form Start:

PHP Code:

$style['title'] = 'font-weight: bold; font-size: large; text-align: center;';
$style['description'] = 'font-weight:normal;'



All times are GMT. The time now is 04:43 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.03107 seconds
  • Memory Usage 1,873KB
  • 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
  • (9)bbcode_html_printable
  • (4)bbcode_php_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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