The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
HOW TO show profile picture in showthread
As by topic request, profile picture locate in file storage
thanks everyone i found onlyfor database, i need for profile picture locate in file storage Quote:
|
#2
|
||||
|
||||
Follow the breadcrumbs of member profiles... Into class_userprofile.php.
|
#3
|
|||
|
|||
Hello, sorry dismounted, i still dont get it.
what to find in class_userprofile? |
#4
|
||||
|
||||
The code to fetch a profile picture...
|
#5
|
|||
|
|||
Code:
function prepare_profilepic() { if ($this->registry->options['profilepicenabled'] AND $this->userinfo['profilepic'] AND ($this->registry->userinfo['permissions']['genericpermissions'] & $this->registry->bf_ugp_genericpermissions['canseeprofilepic'] OR $this->registry->userinfo['userid'] == $this->userinfo['userid']) AND ($this->userinfo['permissions']['genericpermissions'] & $this->registry->bf_ugp_genericpermissions['canprofilepic'] OR $this->userinfo['adminprofilepic'])) { if ($this->registry->options['usefileavatar']) { $this->prepared['profilepicurl'] = $this->registry->options['profilepicurl'] . '/profilepic' . $this->prepared['userid'] . '_' . $this->userinfo['profilepicrevision'] . '.gif'; } else { $this->prepared['profilepicurl'] = 'image.php?' . $this->registry->session->vars['sessionurl'] . 'u=' . $this->prepared['userid'] . "&dateline=" . $this->userinfo["profilepicdateline"] . "&type=profile"; } if ($this->userinfo['ppwidth'] AND $this->userinfo['ppheight']) { $this->prepared['profilepicsize'] = ' width="' . $this->userinfo["ppwidth"] . '" height="' . $this->userinfo["ppheight"] . '" '; } } else { $this->prepared['profilepicurl'] = ''; } } what to put in template? sorry for trouble dismounted |
#6
|
|||
|
|||
hello?
|
#7
|
|||
|
|||
Possibly this may work,
Display an image in your style of the location PHP Code:
It should look something like: PHP Code:
|
#8
|
|||
|
|||
it returns blank web.
--------------- Added [DATE]1237094659[/DATE] at [TIME]1237094659[/TIME] --------------- hello bump up, i need this modificationplease >_< |
#9
|
||||
|
||||
The code you found tells you exactly how you can find the picture URL...
|
#10
|
|||
|
|||
Quote:
The code provided by yourself clearly has the solution. You may also want to re-think the code I posted to you, as that will indeed return a blank page. The code I provided was intended to be placed within the forum style. It requires functions to be called from another file (globals.php) to properly function. So please, re-test, be patient, and be thankful |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|