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['groupimage']}<br />

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 ]

			$post['stars'] = $usergroup['stars'];

			$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
			$language = $mybb->user['language'];
			$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