![]() |
Quote:
The incomplete code and the ?> is there just to demonstrate what it will strip out from a user's code if they try to write a script on your site with this mod installed. I guess I didn't explain it very well. I also just wanted to demonstrate that if a person was to type in some completely terrible code, it would still parse it and display something worth looking at. I know this isn't 'standard HTML' or whatever, but most people on a vbulletin site just want stuff to look good to themselves ;) |
Quote:
$mypage = unhtmlspecialchars(process_message_preview($vbulle tin->userinfo['field65'])); vbulletin happened to make the custom field '65' when I created it, so I just put that number into the above line. It could be anything. |
I have it working right, except when I go to someone's profile page it show my custom field / HTML not theirs. :( I want to go to peoples profiles and see their custom field /HTML.
|
great idea!
can't get it to work though. it will only show MY info not the info of the person i am looking at. also, i can only add the info to the MEMBERINFO template. i would like to add it to the memberinfo_block_aboutme template. |
I think that to show the info of the person (not your own info), you have to change from:
$mypage = unhtmlspecialchars(process_message_preview($vbulle tin->userinfo['field65'])); to $mypage = unhtmlspecialchars(process_message_preview($userin fo['field65'])); because the $vbulletin->userinfo referer to yourself, and $userinfo will referer to the person of the profile your are visiting ps: pay attention that the variable $userinfo wont be always available I think this variable is defined only in profile pages, so you would have to add a verification like: if($userinfo) |
Quote:
|
All times are GMT. The time now is 04:51 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:
|