MyBB Community Forums

Full Version: Portal announcemments image
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
inside portal show extra the announcements image instead of users avatar

View: http://img143.imageshack.us/img143/7496/...sineh6.jpg
Note: Announcement pictures in the images directory.
Pictures name's announcementnumber.gif
Example :   >> 1.gif

Portal.php , Find:



$avatar = "<td class=\"trow1\" width=\"1\" align=\"center\" valign=\"top\"><img src=\"images/$announcement[avatar]\" alt=\"0\" {$avatar_width_height} /></td>";
	}
	else
	{
		$avatar = '';
	}



Replace:



$portalresim = "<td class=\"trow1\" width=\"1\" align=\"center\" valign=\"top\"><img src=\"images/$announcement[tid].gif\" alt=\"{$announcement['subject']} \" /></td>";//glcn
	} 
	else
	{
		$portalresim = '';
	}



And,

Portal Templates >> portal_announcement

Find:

{$avatar}

Replace:

{$portalresim}

Yasin