vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Retaining values submitted on a form (https://vborg.vbsupport.ru/showthread.php?t=265320)

TalkVirginia 06-16-2011 10:38 PM

Retaining values submitted on a form
 
I'm trying to create a hack that will show a list of members based on certain form entered criteria and I would like to be able to retain the criteria from page to page on the resulting form if there is more than one page. How can I do this in vb4? So far I can pass the values and get the resultset and get the first page, however when I click buttons to go to the next page I lose my criteria values. Would anyone have a short code example on how to do this or point me in the right direction?

Thanks,
Jim

HMBeaty 06-16-2011 10:41 PM

Have a look at the code used in my staff application modification. Pretty sure that's set up either close or exactly how you are looking for

TalkVirginia 06-16-2011 10:53 PM

Quote:

Originally Posted by HMBeaty (Post 2208723)
Have a look at the code used in my staff application modification. Pretty sure that's set up either close or exactly how you are looking for

Very cool! thanks a bunch! :)

HMBeaty 06-16-2011 10:56 PM

No problem. Let me know if you need any additional help. I'm almost always available via instant messenger as well

TalkVirginia 06-16-2011 11:09 PM

1 Attachment(s)
Quote:

Originally Posted by HMBeaty (Post 2208731)
No problem. Let me know if you need any additional help. I'm almost always available via instant messenger as well

Ok. Actually I just checked it out. This hack/addon I'm doing will be solely in the admincp. I've attached the screens I have so far. When I click on the buttons at the bottom of the result screen to go to the next page, I lose the criteria for my query for the next page and it displays all users instead.

HMBeaty 06-16-2011 11:19 PM

Hmm.....as far as retaining the values in the AdminCP, I'm not sure how to go about doing that. Templates though, that's a different story lol


All times are GMT. The time now is 09:35 PM.

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.02320 seconds
  • Memory Usage 1,724KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete