MyBB Community Forums

Full Version: Where is the {$post['userstars']} and {$post['groupimage']} code located?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need to apply an align="absmiddle" to these images, but I can't find where the HTML code for them in the language files.

Anyone know where they are located?
Lang file ? =/ Those are vars used in templates. And in this case, the postbit_author_user template.
That template only has this...

<strong><span class="largetext">{$post['profilelink']}</span></strong><br />
<span class="smalltext">
	{$post['usertitle']}<br />( {$post['onlinestatus']} )<br /><br />
	{$post['useravatar']}<p></p>
	{$post['userstars']}
	{$post['groupimage']}<br />
</span>

I need to find what file/lang piece/etc. creates the <img> tag that wraps around the userstars or groupimage.
User stars [ ./inc/functions_post ]

		if($usergroup['stars'])
		{
			$post['stars'] = $usergroup['stars'];
		}

		if(!$post['starimage'])
		{
			$post['starimage'] = $usergroup['starimage'];
		}
		for($i = 0; $i < $post['stars']; $i++)
		{
			$post['userstars'] .= "<img src=\"".$post['starimage']."\" border=\"0\" alt=\"*\" />";
		}
		if($post['userstars'] && $post['starimage'] && $post['stars'])
		{
			$post['userstars'] .= "<br />";
		}

Groupimage : postbit_groupimage template
	if(!empty($usergroup['image']))
	{
		if(!empty($mybb->user['language']))
		{
			$language = $mybb->user['language'];
		}
		else
		{
			$language = $mybb->settings['bblanguage'];
		}
		$usergroup['image'] = str_replace("{lang}", $language, $usergroup['image']);
		eval("\$post['groupimage'] = \"".$templates->get("postbit_groupimage")."\";");
	}
Thanks, that worked like a charm. Smile