vBulletin Modifications

putting 2 profile fields together in the same statement

Welcome to vBHackers.com! - vBHackers Updates:

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

Reply
 
LinkBack Thread Tools
Old 08-15-2006, 11:52 AM   #1
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default putting 2 profile fields together in the same statement

so ive got a custom profile field as you could see from my other thread, and ive also created another one.

Im not sure what to do to make both of them display side by side if the user fills in both fields OR either/or if the user picks one and not the other.

Here is the code for the two fields .... they BOTH need to show in the same div class, weather or not the user has selected 1 or both.

You must first be a registered member to view any code.
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
Sponsored Links
Old 08-15-2006, 01:48 PM   #2
Michael Biddle
Staff
Michael Biddle's Avatar
Join Date: Feb 2005
Real Name: Michael Biddle
Location: Anaheim
Michael Biddle is on a distinguished road

Default

try

You must first be a registered member to view any code.
__________________
Support will ONLY be offered through forums
Michael Biddle / vBHackers.com
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Crawlability Network: vBulletin SEO | vBulletin Hackers




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-15-2006, 02:00 PM   #3
Michael Biddle
Staff
Michael Biddle's Avatar
Join Date: Feb 2005
Real Name: Michael Biddle
Location: Anaheim
Michael Biddle is on a distinguished road

Default

nvm try

You must first be a registered member to view any code.
__________________
Support will ONLY be offered through forums
Michael Biddle / vBHackers.com
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Crawlability Network: vBulletin SEO | vBulletin Hackers




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-16-2006, 11:55 AM   #4
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

well dude the last bit works the closest but the problem is, if NOTHING is selected, that div is still showing up as a little empty table.... where it shouldnt show at all if the user has not filled in these profile fields.




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

Default

hm, it should... Did you set a default or soemthing? If you look in the userfields table then you can see the avlue is NULL (blank) meaning that if should work.

Of course you could try:
You must first be a registered member to view any code.
Havn't changed much at all just removed a fwe things, some times it pays to keep things neat




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-16-2006, 05:25 PM   #6
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

rogers that seems to have cleaned it up man... thanks bro.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-16-2006, 06:01 PM   #7
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 problem




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-16-2006, 07:08 PM   #8
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

Just to finish off the thread, i wanted to also place these fields into the memberinfo template right above the reputation display.
I had done it successfully, but then later realized that if i turned off the rep display these wouldnt show up, and if i moved the code to a different location it would put the buttons everywhere but above the rep display.

Then it hit me, i needed to tie this code in with the rputation code in such a way that reputation could be turned off and still have these images/fields displayed.

Here is the soloution for any interested... only one question ... wtf is $userinfo[rank] and how do i turn it on so i can show it?


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
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
Posting Back User Profile Field chugger93 General vBulletin Support 3 08-06-2008 01:43 PM
Extra Threadfields Lite(Add Text, Radio, Drop Down, & Checkbox Fields To Threads!) gio~logist vBulletin 3.5 / 3.6 Hack Releases 6 05-29-2007 09:35 PM
vs- Interactive Profiles Ark vBulletin Modification Requests 2 07-29-2006 04:58 PM
someone help me with an if statement please BigJohnny General vBulletin Support 5 07-27-2006 05:55 PM
User Profile Fields Nick R General vBulletin Support 28 06-21-2006 02:10 PM


All times are GMT -3. The time now is 04:35 AM.


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