vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Forms Hack (https://vborg.vbsupport.ru/showthread.php?t=93970)

bonjurkes 04-08-2006 10:59 PM

i think its pretty hard to edit that form.

for example i want to remove that longanswer section, i remove the proper parts. The text next to long answer part is disappears but there is a still long answer section here..

I couldnt made the changes that i want to do. I want to use it for application form of moderator.

Is anyone have an example form like that??

Abe1 04-08-2006 11:49 PM

Quote:

Originally Posted by WNxWakko
Hmm, when I click preview it does show me at the top, but all the stuff I entered in the form is gone. I would have to retype it all? What did I do wrong?

You have to make sure the varibles where not changed or edited.

Abe1 04-08-2006 11:51 PM

Quote:

Originally Posted by RDX1
Any idea what's wrong with mine?

Yes. You have make // to block out code. Not just one /.

Abe1 04-08-2006 11:54 PM

Quote:

Originally Posted by ChiliVB
Abe1,

Would you mind giving me an example of the impact for upgrading. I don't want to cause any downtime for my primary form when I upgrade.

I'm thinking it might be best to install this as a "new" hook and not overwrite and so a custom "answer" template can be created in parallel without causing disruption?

Also is it only the answer template that needs "lots of changes" or also the mainhook for the form.

The main template was the edited thing. I had to add mostly 'value=' or something simular so it would pull info when you use the preview.

The answer template I believe was not edited.

The hook was edited a little.

Abe1 04-08-2006 11:55 PM

Quote:

Originally Posted by bonjurkes
i think its pretty hard to edit that form.

for example i want to remove that longanswer section, i remove the proper parts. The text next to long answer part is disappears but there is a still long answer section here..


I couldnt made the changes that i want to do. I want to use it for application form of moderator.

Is anyone have an example form like that??

You have to remove the code from the template also.

RDX1 04-09-2006 12:39 AM

Quote:

Originally Posted by Abe1
Yes. You have make // to block out code. Not just one /.

Thanks :)

OrangeFlea 04-09-2006 06:31 AM

Can this thing be used for reviews? I want users to be able to submit reviews (books, movies, etc.) using a modified template of your hack, which essentially means that the form will have been completed at the time of its posting. In other words, when a user clicks on a thread titled "Flea's Review of Lord of the Rings," I want them to see an already completed form that consists of my personal ratings of the movie's elements (e.g., 5-stars for the plot; 4 stars for the score, etc.).

Also, is there a demo of this hack available?

Abe1 04-09-2006 12:28 PM

Quote:

Originally Posted by OrangeFlea
Can this thing be used for reviews? I want users to be able to submit reviews (books, movies, etc.) using a modified template of your hack, which essentially means that the form will have been completed at the time of its posting. In other words, when a user clicks on a thread titled "Flea's Review of Lord of the Rings," I want them to see an already completed form that consists of my personal ratings of the movie's elements (e.g., 5-stars for the plot; 4 stars for the score, etc.).

Also, is there a demo of this hack available?

Sorry, I have no demo but you can use this hack to do wat you want.

yayvb 04-09-2006 07:36 PM

Hi, I used your hack but was having problems with something. I would ask certain questions like average harvest time, have several radio boxes, etc. But if the person hit EDIT then they could edit the text that was output, but they could edit it as if it was a regular message as opposed to editing the various answers to the questions.

In other words when you click EDIT instead of seeing the same sort of form that you filled out originally preopulated with your answers which you can edit and save, it just shows like you're editing a message.

Is there any way that we can use a different template to edit, one that we show the correct variables, etc.? Would we have to insert an if statement into the edit the editpost.php file, or maybe there is a hook in place.

If you are curious what I am talking about, try editing your hack thread here. You get a message box, and the same checkboxes, etc. that you saw originally. How can we do this? Could you provide code samples for a basic example? I think this would make your script go from being a 8 to being a 12 (on a 1 - 10 scale)!!! :)

Abe1 04-09-2006 08:04 PM

Quote:

Originally Posted by yayvb
Hi, I used your hack but was having problems with something. I would ask certain questions like average harvest time, have several radio boxes, etc. But if the person hit EDIT then they could edit the text that was output, but they could edit it as if it was a regular message as opposed to editing the various answers to the questions.

In other words when you click EDIT instead of seeing the same sort of form that you filled out originally preopulated with your answers which you can edit and save, it just shows like you're editing a message.

Is there any way that we can use a different template to edit, one that we show the correct variables, etc.? Would we have to insert an if statement into the edit the editpost.php file, or maybe there is a hook in place.

If you are curious what I am talking about, try editing your hack thread here. You get a message box, and the same checkboxes, etc. that you saw originally. How can we do this? Could you provide code samples for a basic example? I think this would make your script go from being a 8 to being a 12 (on a 1 - 10 scale)!!! :)

This would be just about in possable since it's one varible once it's posted.


All times are GMT. The time now is 08:57 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.01729 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
  • (7)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