![]() |
is their any way to make this a hack with a user interface?
|
It's not the kind of mod that's really conducive for a user interface. It's one of those set it once and never touch it again kinds of things.
|
hmm.. i'd like to have it so that people can select from the list. the thing is, if i have a list of five options, say A B C D E, and then I end up adding a 6th option and still wanted to maintain the ABC order, I'd place it between the A and the B. the problem with that is, users who selected B are now changed because the list changed by one line. any ideas?
|
ok this is what i did:
1. created new profile field: gender 2. value = 'M' or 'F' 3. created new usergroup: female usergroup id: 10 i have made the neccesary changes to the xml file and now the silly question. how do i upload it to my plug in manager. i just save text and upload? thanks and great hack. |
AdminCP > Plugin System > Plugin Manager > Add New Plugin
I think this is what your looking for. Thanks, Paul |
Oh, if you already have the plugin installed and you just want to make a code edit. Inside the Plugin Manager, click on the plugin you want to edit. Once the next page has loaded, located Plugin PHP Code... To the right of that is where you can edit your code.
Thanks, Paul |
Quote:
|
Right click - > 'Save As'
|
lol. that easy uh?
well i just wanted to make sure, i havent uploaded a plug in yet. thanks again, this is a great hack, that i am going to use. |
hello amy can you help me out. i thought i did everything right.
1. i added new usergroup = 10 2. i have gender field '7' 3. i have required email verification 4. i have gender required at time of registration 5. M or F this is what i have as php code: // Get the value for field 7 $user = $db->query_first(" SELECT field7 FROM " . TABLE_PREFIX . "userfield WHERE userid = " . $vbulletin->userinfo['userid'] . " "); if ($user['field7'] == 'F') { $membergroupids = $userdata->fetch_field('membergroupids'); if ($membergroupids) { $membergroupids = $membergroupids . ", 10"; } else { $membergroupids = 10; } $userdata->set('membergroupids', $membergroupids); } but when i enable the plug in, everything seems to go fine when registerring, but i get this message after following my registration link and logging in: Your account has already been activated so please try logging in. everytime i try to log in. can you please help with any suggestions. thanks. |
All times are GMT. The time now is 11:24 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|