Ah yeah this is still a work in progress ... that has been put on hold for a bit but so far to get what I do have was not hard at all. Basiclly the df system has a avatar function that will use the correct avatar based off the user decission in there cp weather it were to be one on the system, uploaded, linked or default. So What I have done was made all parts of this function use the path for the siggens avatars to get me started which all users will now use the siggen images even if they are not apart of the roster. In time I would like for it to do checks against the df users and roster users and would probably get to that when roster has a user system setup.
so lines ~ 285 - 304 of
{dfroot}/includes/ForumsPro/display_posts.php
- Code: Select all
$poster_avatar = '';
if ($board_config['show_avatars'] && $userinfo['user_show_avatars']) {
if (!$poster_anonymous) {
switch($post['user_avatar_type']) {
case _FPRO_CONSTUSER_AVATAR_UPLOAD:
$poster_avatar = getlink('wowrosterdf&file=addon&roster_addon_name=siggen&mode=avatar&member='.$poster_name.'&etag=0');
//$poster_avatar = ($MAIN_CFG['avatar']['allow_upload'] ? $MAIN_CFG['avatar']['path'].'/'.$post['user_avatar'] : '');
break;
case _FPRO_CONSTUSER_AVATAR_REMOTE:
$poster_avatar = getlink('wowrosterdf&file=addon&roster_addon_name=siggen&mode=avatar&member='.$poster_name.'&etag=0');
//$poster_avatar = ($MAIN_CFG['avatar']['allow_remote'] ? $post['user_avatar'] : '');
break;
case _FPRO_CONSTUSER_AVATAR_GALLERY:
$poster_avatar = getlink('wowrosterdf&file=addon&roster_addon_name=siggen&mode=avatar&member='.$poster_name.'&etag=0');
//$poster_avatar = ($MAIN_CFG['avatar']['allow_local'] ? $MAIN_CFG['avatar']['gallery_path'].'/'.$post['user_avatar'] : '');
break;
}
}
if (empty($poster_avatar)) {
$poster_avatar = getlink('wowrosterdf&file=addon&roster_addon_name=siggen&mode=avatar&member='.$poster_name.'&etag=0');
Now as you notice I have commented out a few lines here which try to use DF for avatars which I really only wanted my site to use siggen but if you wanted to allow your users to use the df avatar system and use siggen for all default images you can also do this. Now this file is only for forums pro and I know there are blocks and other files also use a avatar function which can be changed in the same way.
Now for any of the extra buttons like the recipes or links to the character profile you can set them up with in this file for forums pro by creating new template variables for them. Like for using Rosters sigs for each post
around line 562 under poster_signiture i added a new variable that I can use in the template file which creates the posters sig from roster
- Code: Select all
'S_ROSTER_SIGNATURE' => '<hr><br><img src="'.getlink(wowrosterdf&file=addon&roster_addon_name=siggen&mode=signature&member='.$poster_name.'&etag=0').' " />',
I hope this helps you guys out and maybe one of you can help in finishing this project for forumspro