The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
str_replace member field
I've had all sorts of problems trying to convert a members profile field to URL.
My example is a MySpace field which allows a member to enter their account ID. What I am trying to turn the field entry into a hyperlink shown in the users profile page. Example: User enters MySpace ID of 123456 I want to create a plugin to replace the field so when viewing their profile, it shows as: http://www.myspace.com/123456 Below is what I have been trying but I am definitely going wrong somewhere. Template: profile_myspace MySpace Field: 5 Hook: member_customfields Code:
global $vbulletin; if ($vbulletin->options['profilefieldid==5']) { eval('$profilefield[field5] = "' . fetch_template('profile_myspace') . '";'); } Thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|