MyBB Community Forums

Full Version: Additional Group Images.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Welcome
My forum: CS-Namyslow.pl
Version Mybb: 1.8
Problem: I have plugins Additional Group Images.
I want to redo the action on the screen as in the.


[attachment=33494]
ACP >> Templates >> Your theme's Templates >> Post Bit Templates >> postbit_classic change the order as follows

{$post['groupimage']}
{$post['useravatar']}
{$post['additional_groups']}
It does not work Sad

My postbit_classic:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table width="100%" cellspacing="0" cellpadding="{$theme['tablespace']}" border="0" align="center">
<tr>
<td valign="top" width="18%" class="arrow_box"><br/>

    
<div class="post_author scaleimages" style="/*margin-left: 20px; margin-top: 10px;*/">
 	{$post['onlinestatus']} <strong><span class="largetext" style="font-size: 18px; padding-top: 10px;">{$post['profilelink']}</span></strong> 
  	
  	<div class="author_information">
			<div style="margin-top: 10px;">
              <span class="smalltext">
				{$post['usertitle']}<br />
				{$post['userstars']}
				{$post['groupimage']}
			</span></div></div>
  
  <div style="margin-top: 5px;">{$post['useravatar']}</div>
	
	<div class="author_statistics">
		{$post['user_details']}
	</div>
</div>
    

<br/><br/><br/>
</td>
<td>&nbsp;</td>
<td valign="top">

  
  <div class="post_content">
	<div class="post_head">
		{$post['posturl']}
		{$post['icon']}
		<span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
	{$post['subject_extra']}
	</div><div class="border2">
	<div class="post_body scaleimages" id="pid_{$post['pid']}">
	<br/>{$post['customrep']}{$post['message']}<br/>
	</div>
	<center>{$post['attachments']}
  {$post['signature']}</center>
</div>
</div>
  
<br/><br/><br/>
</td>
</tr>
</table>
<div class="post_controls">
	<div class="postbit_buttons author_buttons float_leftp">
		{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}{$post['iplogged']}
	</div>
	<div class="postbit_buttons post_management_buttons float_right">
		{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote_fast']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
	</div>
</div>

My postbit

<br />{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">
<div class="post_author">
	{$post['useravatar']}
	<div class="author_information">

      
  {$post['onlinestatus']} <strong><span class="largetext" style="font-size: 18px; padding-top: 10px;">{$post['profilelink']}</span></strong> <br />
			<span class="smalltext">
				{$post['usertitle']}<br />
				{$post['userstars']}
				{$post['groupimage']}
			</span>
	</div>
	<div class="author_statistics">
		{$post['user_details']}
	</div>
</div>
<div class="post_content">
	<div class="post_head">
		{$post['posturl']}
		{$post['icon']}
		<span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
	</div>
	<div class="post_body scaleimages" id="pid_{$post['pid']}">
		{$post['customrep']}{$post['message']}
	</div>
<center>	{$post['attachments']}
	{$post['signature']}</center>	
	<div class="post_meta" id="post_meta_{$post['pid']}">
	</div>
</div>
<div class="post_controls">
	<div class="postbit_buttons author_buttons float_left" >
		{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}{$post['iplogged']}
	</div>
	<div class="postbit_buttons post_management_buttons float_right">
		{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote_fast']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
	</div>
</div>
</div>

I think you need to modify the plugin . Ex . Add it
  <div style="margin-top: 5px;">{$post['useravatar']}</div><div>
  {$post['additional_groups']} </div>

But I do not know php

PHP file inc / plugins for the corresponding plugin I found:
$post['groupimage'] = $post['groupimage'].$additionalimg; 

swapped for
$post['additionalgroupimage'] = $additionalimg; 

Then in the template postbit_classic the avatar place { $ post [' groupimage '] } , and POD place { $ post [' additionalgroupimage '] }

Sorry for my English . Smile
So is it solved?
Yes, very thanks
Do you have to have a plugin to accomplish this? Or can I just have additional usergroup images in postbit?