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

Reply
 
Thread Tools Display Modes
  #1  
Old 07-17-2002, 10:21 PM
Mephisteus's Avatar
Mephisteus Mephisteus is offline
 
Join Date: Dec 2001
Location: The Netherlands
Posts: 288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Users can select wich group of standerd titles they want

ok, I thought it could be somethin like this. In the usercp --> edit options area an extra field like
What side?
Do you want to be good or evil.

And then radiobuttons with either good or evil.

And that you can edit the titles for both groups in the admin center.

So that you have either good or evil And that other members see your title the way you selected it.

Hope you understand what I mean
Reply With Quote
  #2  
Old 07-18-2002, 09:50 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm, wouldn't be easy to do, because there are more than one file where the usertitle changes

steps to do (theoretically)
add one field to usertitle table for example titlesetid

add one field to usertable titlesetid

edit file admin/user.php to alter the autotitling when editing a user
edit file admin/usertitle.php to add a inputbox for titleset id..
edit file newreply.php (same as in user.php)
i think also newthread.php too

also member.php to give users the chance to select setid and at least one templatemod

i'd say you better wait for vb3 because i saw in the already suggested:
User title ladder sets for specific usergroups
than it should be easier to make what ya want
Reply With Quote
  #3  
Old 07-19-2002, 05:38 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess a workaround might be possible:

Add a new mandatory user profile field via Admin CP, then edit register.php and member.php to add a small "if" conditional which changes its default textbox behaviour to a select box (or radio button) with 2 options: evil/good (btw why dont u include nautral? hehe)

Then you can add this profile field to postbit template..
Reply With Quote
  #4  
Old 01-29-2003, 06:56 PM
SHalliday's Avatar
SHalliday SHalliday is offline
 
Join Date: Jan 2002
Location: Norwalk, CT
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

has anyone done this yet?
Reply With Quote
  #5  
Old 01-30-2003, 10:17 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why this can be a full release hack? Because one section of the code (the part where users past selection is auto selected in edit profile page) requires a custom code which will change in every user according to the profile field info you are using in this hack. But other than that part, here is the hack you wanted:

1- First note profile field id of the profile field you want to convert to radio button or select menu.

2- Now create a new template with this info:
TEMPLATE NAME: select_field
CONTENT:
PHP Code:
<tr>
    <
td bgcolor="$bgcolor"><normalfont><b>$profilefield[title]:</b></normalfont><br>
    <
smallfont>$profilefield[description]</smallfont></td>
    <
td bgcolor="$bgcolor"><normalfont><select name="$profilefieldname">
<
option value="item1" selected>item1</option>
<
option value="item2">item2</option>
<
option value="item3">item3</option>
</
select></normalfont></td>
</
tr
(Edit select items in the menu or change them to radio buttons etc. if you want..)

3- In member.php AND register.php, find:

PHP Code:
eval("\$customfields .= \"".gettemplate("register_customfields")."\";"); 
Replace it as:
PHP Code:
if ($profilefield[profilefieldid]==XX) {eval("\$customfields .= \"".gettemplate("select_field")."\";");}
    else {    eval(
"\$customfields .= \"".gettemplate("register_customfields")."\";");} 
Replace XX with your profile fieldid and you are done.

But please remember my warning above: this does not auto-select previous selection of the user when user edits his profile because this section's code would be different according to your select menu items..

Enjoy..
Reply With Quote
  #6  
Old 04-25-2003, 07:20 PM
SHalliday's Avatar
SHalliday SHalliday is offline
 
Join Date: Jan 2002
Location: Norwalk, CT
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am very interested in using this. Is it a full release hack yet and/or has anyone implemented it yet?
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 09:39 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.04428 seconds
  • Memory Usage 2,222KB
  • Queries Executed 11 (?)
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
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete