vBulletin Modifications

User Profile Fields

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 06-20-2006, 05:04 PM   #21
vB User
Join Date: Apr 2004
Location: Des Moines, IA
Boofo is on a distinguished road

Default

Where and link?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 06-20-2006, 05:06 PM   #22
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

http://www.vbulletin.org/forum/showthread.php?t=118863




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-20-2006, 10:20 PM   #23
Coder
Bugtap's Avatar
Join Date: May 2006
Real Name: Dave
Bugtap is on a distinguished road

Default

shouldn't it be likee

<if condition="$post[field8] == 'Show Join date.'">$vbphrase[join_date]: $post[joindate]</if>

I guess?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-21-2006, 11:38 AM   #24
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

$post[field8] holds the variable value itself, so no need for the " == 'Show Join date.'" part .




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-21-2006, 02:04 PM   #25
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

No it's the like bitfields:
You must first be a registered member to view any code.
so change X to the id of the field and change 1 to whgat you want to get. So the first option is <if condition="$post['fieldX'] & 1"> and then second is <if condition="$post['fieldX'] & 2">. So if you have 8 then you will get:
You must first be a registered member to view any code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-21-2006, 02:26 PM   #26
vBulletin Guru
Ken Iovino's Avatar
Join Date: Mar 2004
Real Name: Ken Iovino
Location: Miami, Florida
Ken Iovino is on a distinguished road

Default

Okay I miss understood your question, but now I understand what you want to do and why your having problems. I'll try to explaine it the best I can. The value that that variable holds is going to be a number. It uses vBulletin bitfields to set the number depending on the users input. Heres an example.

Lets say the question for that option is "What is your favorite Color". Then we have 5 checkbox options for the user to check from; allowing users to select multiable choices.

- Red = (option 1) value = 1
- Yellow = (option 2) value = 2
- Green = (option 3) value = 4
- Orange = (option 4) value = 8
- Pink = (option 5) value = 16

See a pattern? Each option/answer multiplies into each other to determine the next value. 1,2,4,8,16,32,64, etc...

So.....

Single Selections
if a user selects Red (option1) then the value is stored in the database, the value is 1.
if a user selects Yellow (option2) then the value is stored in the database, the value is 2.
if a user selects Green (option3) then the value is stored in the database, the value is 4.
if a user selects Orange (option4) then the value is stored in the database, the value is 8.
if a user selects Pink (option5) then the value is stored in the database, the value is 16.

Mutiable Selections
if a user selects Red (option1) and Yellow (option2) then the value is stored in the database, the value is 3 because the values of Red and Yellow = 3 ( 1 + 2 = 3)
if a user selects Green (option3) and Orange (option4) then the value is stored in the database, the value is 12 because the values of Green and Orange = 12 ( 4 + 8 = 12)
if a user selects all the options then the value is stored in the database, the value is 31 because the values of all the colors together = 31 ( 1 + 2 + 4 + 8 + 16 = 31)

This seems like a cheap way to add the templates, but you can do something like.

You must first be a registered member to view any code.
Or

You must first be a registered member to view any code.

There has to be a better way, but I havn't dug that deep into this yet.
__________________
Ken Iovino / Escalate Media




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-21-2006, 02:28 PM   #27
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

But on my site if you do that then it works for everyone elses Personal Info but not the own users.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-21-2006, 02:30 PM   #28
vBulletin Guru
Ken Iovino's Avatar
Join Date: Mar 2004
Real Name: Ken Iovino
Location: Miami, Florida
Ken Iovino is on a distinguished road

Default

That will display on the postbit what the posting user has selcted.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-21-2006, 03:10 PM   #29
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

ok, me with dodgy template edits. It's kind of fixed now.

when all options are checked no info displays for anyone whenit should display normally. When it is uncheked the info should go away which it does for others posts but not my own. Any ideas. ps. if you need my postbit template just ask.

Last edited by Nick R; 06-21-2006 at 03:22 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[How to] Set User Titles Rex vBulletin Modification Tutorials 24 11-20-2007 06:25 PM
User Notes xfile vBulletin Modification Requests 5 05-28-2006 07:02 PM
user profile and info on LEFT GrendelKhan{TSU} General vBulletin Support 1 08-13-2005 10:47 AM
User Credits to see/reply to threads xpto vBulletin Modification Requests 7 03-14-2005 07:16 AM


All times are GMT -3. The time now is 04:10 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)