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

Reply
 
Thread Tools Display Modes
  #11  
Old 11-25-2002, 01:38 AM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm a little bit confused here. In my first post in this thread, I told you to use the $bbuserinfo[] array, but you told me that it didn't work. And now, you say it's working?

The fields displayed by $bbuserinfo are correct? If so, you don't need to hack register.php, leave the file unchanged.
Reply With Quote
  #12  
Old 11-25-2002, 01:56 AM
mishkan's Avatar
mishkan mishkan is offline
 
Join Date: Jun 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's correct. Before I inserted the php code you gave me, into the register.php file, the $bbuserinfo[] array didn't work! See my post # 4 above, to see that the variables didn't display any data.

After I inserted the php code you gave me, the $bbuserinfo[] array works.

Doesn't this count as a "hack" to the register.php file?
Or is this called something else?
Reply With Quote
  #13  
Old 11-25-2002, 02:02 AM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Strange... The modifications I told you doesn't modify the $bbuserinfo array...

Try to undo the changes I told you, and see if it still works.
Reply With Quote
  #14  
Old 11-25-2002, 02:11 AM
mishkan's Avatar
mishkan mishkan is offline
 
Join Date: Jun 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay... on my way to revert the register.php file.
Reply With Quote
  #15  
Old 11-25-2002, 02:19 AM
mishkan's Avatar
mishkan mishkan is offline
 
Join Date: Jun 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I deleted that one line of php code, from the register.php file.

I kept the error_moderateuser template code the way it was.
PHP Code:
 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>
email $email <br>
================== <
br>
field 5 $userprofile[field5] <br>
field 6 $userprofile[field6] <br>
email $userinfo[email] <br>
================== <
br
<
br>
Thank you for registering$username
And here's what was displayed by the error_moderateuser template.

[color=sky blue]field 5 =
field 6 =
username = Unregistered
email =
==================
field 5 =
field 6 =
email =
==================
field 5 =
field 6 =
email = my-email-address@my-domain.com
==================

Thank you for registering, test.
[/color]


The only variables that work now, are these...

- email = $userinfo[email]

- username = $username
Reply With Quote
  #16  
Old 11-25-2002, 10:00 PM
mishkan's Avatar
mishkan mishkan is offline
 
Join Date: Jun 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Julian, you're not giving up, are you? :cry:
Reply With Quote
  #17  
Old 11-25-2002, 11:22 PM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, I'm not giving up... hehe..

Well... I did some modifications to my register.php and it should work now.

I had to add an extra query to the database to get the user information from the database... I hope you don't mind


In register.php find:

PHP Code:
if ($moderatenewmembers) { 
After it, add:

PHP Code:
        $userdata getuserinfo($userid); 

In the same file, find:

PHP Code:
            $DB_site->query("UPDATE user SET usergroupid=4$dotitle WHERE userid='$u'"); 
after it, add:

PHP Code:
      $userdata getuserinfo($u); 

And now, in error_moderateuser you can use:

$userdata[username] to get the user name
$userdata[email] to get the email
$userdata[field5] to get userfield 5, etc...

Tell me if it works.
Reply With Quote
  #18  
Old 11-25-2002, 11:25 PM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BTW, nice avatar
Reply With Quote
  #19  
Old 11-25-2002, 11:41 PM
mishkan's Avatar
mishkan mishkan is offline
 
Join Date: Jun 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for sticking with me. I really appreciate your help.

Okay, should I also put the code back in, that you gave me in post # 9? I have to get off the computer now, but I'll try all your suggestions tomorrow! I'll let you know right away how it goes.

And thanks for the compliment on my avatar. Yours is great too. It looks like it should be in a museum!
Reply With Quote
  #20  
Old 11-25-2002, 11:45 PM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, don't use the old code I gave you. You only have to follow the instructions in my last post
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 10:45 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.05521 seconds
  • Memory Usage 2,281KB
  • 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
  • (5)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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