![]() |
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 |
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:
|
I follow you but customfield5 doesn't work... :(
|
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? |
come on, anybody?
|
Try this:
PHP Code:
|
thanks. It works. :)
|
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. |
All times are GMT. The time now is 10:00 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|