FAP CUSTOMIZATION - Link Avatar To FAP Gallery


Subject: FAP CUSTOMIZATION - Link Avatar To FAP Gallery
<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}</span><br />

The part above is the code in my viewtopic_body file. How can I make it so when someone clicks a members avatar is goes to there FAP Gallery?

Profile PM  
Subject: Re: Link Avatar To FAP Gallery
Give this a try:

OPEN viewtopic.php

FIND
Code: [Download] [Hide] [Select]
switch( $postrow[$i]['user_avatar_type'] )
{
case USER_AVATAR_UPLOAD:
$poster_avatar = ( $board_config['allow_avatar_upload'] ) ? '<img src="' . $board_config['avatar_path'] . '/' . $postrow[$i]['user_avatar'] . '" alt="" border="0" />' : '';
break;
case USER_AVATAR_REMOTE:
$poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $postrow[$i]['user_avatar'] . '" alt="" border="0" />' : '';
break;
case USER_AVATAR_GALLERY:
$poster_avatar = ( $board_config['allow_avatar_local'] ) ? '<img src="' . $board_config['avatar_gallery_path'] . '/' . $postrow[$i]['user_avatar'] . '" alt="" border="0" />' : '';
break;
}

REPLACE WITH
Code: [Download] [Hide] [Select]
switch( $postrow[$i]['user_avatar_type'] )
{
case USER_AVATAR_UPLOAD:
$poster_avatar = ( $board_config['allow_avatar_upload'] ) ? '<a href="album.php?user_id=' . $poster_id . '"><img src="' . $board_config['avatar_path'] . '/' . $postrow[$i]['user_avatar'] . '" alt="" border="0" /></a>' : '';
break;
case USER_AVATAR_REMOTE:
$poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '<a href="album.php?user_id=' . $poster_id . '"><img src="' . $postrow[$i]['user_avatar'] . '" alt="" border="0" /></a>' : '';
break;
case USER_AVATAR_GALLERY:
$poster_avatar = ( $board_config['allow_avatar_local'] ) ? '<a href="album.php?user_id=' . $poster_id . '"><img src="' . $board_config['avatar_gallery_path'] . '/' . $postrow[$i]['user_avatar'] . '" alt="" border="0" /></a>' : '';
break;
}

Profile PM  
Subject: Re: Link Avatar To FAP Gallery
Thank You Very Much Sir!

Profile PM  

Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1482s (PHP: 12% SQL: 88%)
SQL queries: 10 - Debug Off - GZIP Enabled