Quote:
Originally Posted by vBNinja
Add a new plugin:
Product: vBulletin
Hook Location: member_profileblock_profilefieldbit
Name: Show Profile Field as link
Execution Order: 5
PHP Code:
if($profilefield['profilefieldid'] == X){
$profilefield['value'] = "<a href=\"{$profilefield['value']}\">{$profilefield['value']}</a>";
}
Change X to your own profiled field ID
Plugin is active: yes
this can bring some security issues depending on what the user sets the field to
|
That works great! I have two questions. 1. How do you make the field open in a new window. I tried adding target="_blank" and got some nifty PHP errors lol. Tried it a couple of different ways which leads me to believe that either I had put the code in incorrectly or in PHP it would use some other bit of code all together and 2. How can you add it in an array for more than one profile field, ssay you have several profile fields you want to do this with. Thanks