Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #21  
Old 11-26-2002, 09:49 PM
mishkan's Avatar
mishkan mishkan is offline
 
Join Date: Jun 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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? aranoid:

Thanks again!
Reply With Quote
  #22  
Old 11-26-2002, 10:51 PM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes.... bbuserinfo only works when you're logged in, but the new array $userdata[] always works when error_moderateuser is displayed.
Reply With Quote
  #23  
Old 12-04-2002, 03:33 AM
mishkan's Avatar
mishkan mishkan is offline
 
Join Date: Jun 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #24  
Old 12-04-2002, 05:05 AM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #25  
Old 12-04-2002, 01:52 PM
mishkan's Avatar
mishkan mishkan is offline
 
Join Date: Jun 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #26  
Old 12-04-2002, 02:24 PM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #27  
Old 12-04-2002, 04:12 PM
mishkan's Avatar
mishkan mishkan is offline
 
Join Date: Jun 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I would rather use the HTML form --- with a submit button, thank you! --- 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.
Reply With Quote
  #28  
Old 12-13-2002, 05:59 PM
mishkan's Avatar
mishkan mishkan is offline
 
Join Date: Jun 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #29  
Old 12-16-2002, 11:47 PM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm glad to hear that!

Happy holidays too!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:53 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.20923 seconds
  • Memory Usage 2,278KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete