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 09-12-2005, 02:45 AM
Mythotical Mythotical is offline
 
Join Date: Jun 2004
Location: Booneville, AR, USA
Posts: 1,428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Custom Field...

Ok here is what I am needing to do, take field5 and make it so its whats viewed in the Whats Going On box instead of the username. How would I do that? I believe there is a query I must do in forumdisplay but for the life of me I can't figure it out.

Next is when PMing I want to give a drop down box that will show the senders username and field5 which is a custom name.

Then whatever is selected, I want it to be seen on the other end, the person who received the pm.

So lets say I send a pm to john dough, I use field5 to send it under, on John's end he will see field5 and not my username. I need to have that done as well.

I asked at vbulletin.com, here is how I explained it to Jake Bunce.
Quote:
Originally Posted by Mythotical
Ok let me give you an example:

I PM you, at the top it has the 'to' field, well we have added a drop down box above that which asks which name would you like to send it as, the drop down shows the senders username and field5 which is custom name.

We are wanting that to show when the other person receives the PM.

As well, in the Whats Going On box, how would I get field5 to show instead of usernames? I got it figured out for when you click: Currently Active Users but not for the Whats Going On box.

I know I gotta do a query call in the forumdisplay.php file but I have no clue what query section to put it at.

Thanks
Myth
and now I will quote Jake's response and I hope it helps you figure out what I'm asking.

Quote:
Originally Posted by Jake Bunce
Quote:
Originally Posted by Mythotical
I PM you, at the top it has the 'to' field, well we have added a drop down box above that which asks which name would you like to send it as, the drop down shows the senders username and field5 which is custom name.
Before you start working on a menu with that additional option...


Quote:
Originally Posted by Mythotical
We are wanting that to show when the other person receives the PM.
You would need to alter the database and files to accommodate an extra field like that. That is a www.vbulletin.org question. The additional information needs to be stored somewhere before it can be displayed in PMs.

Quote:
Originally Posted by Mythotical
As well, in the Whats Going On box, how would I get field5 to show instead of usernames? I got it figured out for when you click: Currently Active Users but not for the Whats Going On box.
User profile fields are not available for the logged in users in the forumhome_loggedinuser template. You would need to modify the files which is a www.vbulletin.org question.
Thanks in advance to anyone who can help with this.

Cheers
Myth
Reply With Quote
  #2  
Old 09-12-2005, 03:41 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the What's Going On box, use $bbuserinfo[field5].

In the PM, try $userinfo[field5] or $post[field5].
Reply With Quote
  #3  
Old 09-12-2005, 03:54 AM
Mythotical Mythotical is offline
 
Join Date: Jun 2004
Location: Booneville, AR, USA
Posts: 1,428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Erwin
In the What's Going On box, use $bbuserinfo[field5].
Tried that, only showed what I had in that field not what other users were online and what they had in that field.

Quote:
Originally Posted by Erwin
In the PM, try $userinfo[field5] or $post[field5].
Tried that but the drop down box showed up with blank fields, it had 2 fields, but they were blank.
Reply With Quote
  #4  
Old 09-12-2005, 03:12 PM
bigcurt's Avatar
bigcurt bigcurt is offline
 
Join Date: Nov 2004
Location: KierDarby.php
Posts: 1,009
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well did you add them in your user profile?

~Curt
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 06:56 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.04011 seconds
  • Memory Usage 2,192KB
  • 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
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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