The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
profile field
Trying to add a hidden extra profile field to my global nav bar so clients can login to their cpanel account. (See link at http://forum.hostareus.com)
Thing is not all customers will have entered their domain (not the same as their profile website address...this is an extra profile field called Domain). If they have entered a doain, I want to enter http://domainname.com/cpanel as the link. If they haven't I want to NOT display the cpanel link. Question is, I guess, what's the best way to get that field on that global nav bar? Aaron |
#2
|
|||
|
|||
if you want to display the link globally then you can make good use of the phpinclude template.
Include in it: (note: not sure if the customfieldx is the proper name) PHP Code:
|
#3
|
|||
|
|||
I follow you but customfield5 doesn't work...
|
#4
|
|||
|
|||
ok, figured it our...$bbuserinfo[field5]
Anyways, see http:forum.hostareus.com to see wha tI mean. This is the code I'm using in phpinclude: PHP Code:
PHP Code:
1) No cpanel link is supposed to be displayed if profile field 5 is blank. 2) that link is supposed to link to THEIRDOMAIN:2082. Instead it points to the page the user is on... Any clues whats going on? |
#5
|
|||
|
|||
come on, anybody?
|
#6
|
|||
|
|||
Try this:
PHP Code:
|
#7
|
|||
|
|||
thanks. It works.
|
#8
|
|||
|
|||
OH , and not to ruin your mood of your announcements forum, this ireally a template modification, not a code hack.
Feel free to ask if you need any more help doing something with vb. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|