vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Is This Possible?.... (https://vborg.vbsupport.ru/showthread.php?t=44520)

Xenon 10-13-2002 09:29 AM

the fieldid you'll get when you highlight the edit profilefield link and look into the status bar.

you must use the right numbers or it cannot work

groovesalad 10-13-2002 10:20 AM

Yeah, used the correct numbers. Have you tried it on your site? Maybe I have a conflicting hack interfering with it? .....don't know. Either way, thanks for your help :)

Xenon 10-13-2002 10:43 AM

yes i've tried it on my testboard now and it works perfectly.

you must have made a small mistake while hacking...

an normally there shouldn't be a conflicting hack, because it just uses a form value if the hack doesn't empty this val it should work...

groovesalad 10-13-2002 11:40 PM

Ok, let's see if I did this wrong. Here's the steps I did.

1. Went to ACP and went to ACP > User Groups > Add ( under Title, I gave it DVD ), then clicked Save

2. I placed my cursor over the EDIT link for the newly created DVD group. It showed a number of 13

3. Went to Forums & Moderators > Add. I created a private group (maybe this is the problem - it being private?) called DVD. Then clicked on Save Forum.

4. Ran my cursor over the newly created Forum and got a number of 35.

For the code, I put this:

if($field13=="test") $newusergroupid=35;

Then I went to my board as an unregistered user. I registered with a random username and put the password as "test" (w/o quotes). Then I replied to the user authentication email.

However, now when I go into my ACP and look at the newly created user, they are placed in the "Registered" category instead of the "DVD" category.

Was this correct? Thanks again for your help.

Xenon 10-14-2002 04:17 PM

ahh no i see what you've made wrong, you've missmatched some general vb terms.

step 1 and 2 are ok, usergroupid=13
step 3 and 4 are completly wrong for the instructions i meant:
section User Profile Fields > Add
add a new field lenght what you want, editable by user yes, hidden for other users in profile
after creating this field get the id and then chage the ifclause to:
if($fieldX=="test") $newusergroupid=13;
Replace the x with profilefield id

groovesalad 10-15-2002 12:11 PM

Works perfectly! Thank you :)

Do you know if there is a way to send the DVD subscribers a different User Confirmation Email once they subscribe? Something that is different than the normal "Registered" users?

If that's not possible, then maybe this:

I signed up on a board once, replied to the user confirmation email, and once I signed into the board, I got a pop up box saying I had a private message. The message was just greeting me to the board. I noticed that the PM Popup button is always set to NO when my subscribers sign up. Is there any way to get it to default to YES?

Xenon 10-15-2002 04:16 PM

you have to edit the registeroption templates to set defaults from YES to NO or the other way ;)

yes, as i say most of the time: Nearly everything is possible, but a secound email isnt as easy as this hack here, because you have to edit more than just one file ;)

groovesalad 10-15-2002 04:29 PM

Great. Well, i really appreciate your help. :)


All times are GMT. The time now is 12:59 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.01007 seconds
  • Memory Usage 1,723KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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