PDA

View Full Version : Custom Field...


Mythotical
09-12-2005, 02:45 AM
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.
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.



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...



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.


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

Erwin
09-12-2005, 03:41 AM
In the What's Going On box, use $bbuserinfo[field5].

In the PM, try $userinfo[field5] or $post[field5].

Mythotical
09-12-2005, 03:54 AM
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.

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.

bigcurt
09-12-2005, 03:12 PM
Well did you add them in your user profile?

~Curt