The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Hello,
I am not sure if this is possible, but I had an ide. I am using the Journal Modification. Currently, when the call to display the journalpage template is made, it has already called on the avatar by using this code: Code:
require_once(DIR . '/includes/functions_user.php'); $avatar = fetch_avatar_url($journalinfo['journalist_id']); if ($avatar == '') { $show['avatar'] = false; } else { $show['avatar'] = true; // $userinfo['avatarsize'] = $avatarurl[1]; $avatarurl = $avatar[0]; } I was thinking that it may be impossible to insert a hook location prior to the template being called. If this is possible, I am trying to learn WHICH hook to call and how I would call the data in the template. I am not sure if this is even possible. I have reviewed the hooks tutorial and I have also reviewed the member.php file trying to see how they handle the profile pictures. I am not afraid to modify php files, so feel free to get me editting. I would appreciate any assistance with this. Thanks. |
#2
|
||||
|
||||
![]()
This seems to be the code to get the profile pic ;
PHP Code:
This is all untested, just a quick look at the code. |
#3
|
||||
|
||||
![]()
I couldn't get it to work and I played with it for 45 minutes. I know I am doing something wrong as I am pretty new to this. I can edit templates all day, but the PHP bites me in the ass.
|
#4
|
|||
|
|||
![]()
Wasn't really sure if I should bump this.. but what the heck.
I was looking to do the same thing for the Journal, and I think I've got it figured out. PHP Code:
Code:
<if condition="$show['profilepic']"><td class="alt2" nowrap="nowrap" align="top"> <img src="$profpic[profilepicurl]" $profpic[profilepicsize] alt="$profpic[username]" border="0" /> </td></if> Big thanks to Paul M for helping and Rich for asking!! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|