vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   register.php (https://vborg.vbsupport.ru/showthread.php?t=46058)

mishkan 11-26-2002 09:49 PM

I reverted the register.php file and made the new changes.
Then I changed the code in the error_moderateuser template, as follows.
PHP Code:

================== <br>
field 5 $bbuserinfo[field5] <br>
field 6 $bbuserinfo[field6] <br>
username $bbuserinfo[username] <br>
email $bbuserinfo[email] <br>
================== <
br>
field 5 $field5 <br>
field 6 $field6 <br>
username $username <br>
email $email <br>
================== <
br>
field 5 $userprofile[field5] <br>
field 6 $userprofile[field6] <br>
username $userinfo[username] <br>
email $userinfo[email] <br>
================== <
br>
field 5 $userdata[field5] <br>
field 6 $userdata[field6] <br>
username $userdata[username] <br>
email $userdata[email] <br>
================== <
br

Here's what got displayed by the error_moderateuser template.

[color=sky blue]
==================
field 5 =
field 6 =
username = Unregistered
email =
==================
field 5 =
field 6 =
username = test
email =
==================
field 5 =
field 6 =
username = test
email = my-email@my-domain.com
==================
field 5 = Jane Doe
field 6 = 123
username = test
email = my-email@my-domain.com
==================
[/color]



So, the $userdata[] array definitely works. :) :) :)

Quick question. In post # 9, you gave me a code change that made the $bbuserinfo[] array work correctly. Why didn't you want me to stick with that? Is the $userdata[] array better or more secure than the $bbuserinfo[] array? :paranoid:

Thanks again! :cool:

JulianD 11-26-2002 10:51 PM

Yes.... bbuserinfo only works when you're logged in, but the new array $userdata[] always works when error_moderateuser is displayed.

mishkan 12-04-2002 03:33 AM

Hi Julian :),

Do you think the variables in the $userdata[] array can be passed into html form variables?

I'd like to add a FormMail script to the error_moderateuser template. The idea is that, when the user loads that template into their browser, an email containing that user's data gets sent to their group leader.

BTW, in case you need to know, group leaders don't have moderator access. They're just people who help keep thread discussions on track, for their group.

Thanks again for all your help! And I hope you're enjoying the holiday season. :)

JulianD 12-04-2002 05:05 AM

you can use the $userdata array anywhere in error_moderateuser. I don't know how you're planning to use formmail to send the email to the group leader, but I'd rather use PHP to send the email.

mishkan 12-04-2002 01:52 PM

Well, I would have the FormMail script uploaded to my cgi bin. And then there would be an HTML form on error_moderateuser, which would hopefully pass the variable data to the script.

Would that work? Do I have to do anything special to make the HTML form recognize the $userdata array as variables? Thanks. :)

JulianD 12-04-2002 02:24 PM

OK, now I get it.. but AFAIK, you need that the user press a submit button to send the information to the FormMail script.

It would be more easy if you use PHP to send the email.

But if you still want to use the FormMail method, you can use those variables in error_moderateuser anywhere you want :)

mishkan 12-04-2002 04:12 PM

Yeah, I would rather use the HTML form --- with a submit button, thank you! :p --- than do more php coding. At least I feel somewhat familiar with HTML, but I know nothing about php. When I have some time, I'll try this out and I'll let you know what happened. :)

mishkan 12-13-2002 05:59 PM

Hiya Julian,

Just wanted to follow up and let you know how it went. Everything is working great.

I'm using an html form on error_moderateuser to collect the variable data, and I'm using the FormMail script to process the email. By the way, I'm using the FormMail script from the NMS Project --- http://nms-cgi.sourceforge.net/ --- so it's more secure.

Thanks again for all your help!
Enjoy the holidays! :)

JulianD 12-16-2002 11:47 PM

I'm glad to hear that! :)

Happy holidays too!


All times are GMT. The time now is 07:11 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.03003 seconds
  • Memory Usage 1,745KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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