Current time: 07-30-2014, 07:14 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Award POstbit
01-28-2012, 02:14 PM (This post was last modified: 02-02-2012 10:10 AM by Yoshi Oak.)
Post: #1
Award POstbit
I am using awards v2 from mybbsource which is free and i want awards to be displayed on profile.

The only templare ive edited is postbit

Quote:{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
<tbody>
<tr>
<td class="tcat">
<div class="float_left smalltext">
{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
</div>
{$post['posturl']}
</td>
</tr>

<tr>
<td class="trow1 {$unapproved_shade}">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
<tr>
<td class="post_avatar" width="1" style="{$post['avatar_padding']}">
{$post['useravatar']}
</td>
<td class="post_author">
<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
<span class="smalltext">
{$post['usertitle']}<br />
{$post['userstars']}
{$post['groupimage']}
</span>
</td>
<td width="600">
<fieldset style="color:#FF0000">
<legend>
<a href="{$mybb->settings['bburl']}/award.php" title="View Awards">Awards Showcase</a>
</legend>
<div>

</div>
</fieldset>
</td>
<td class="smalltext post_author_info" width="165">
{$post['user_details']}{$post['awards']}
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="trow2 post_content {$unapproved_shade}">
<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>

<div class="post_body" id="pid_{$post['pid']}">
{$post['message']}
</div>
{$post['attachments']}
{$post['signature']}

<div class="post_meta" id="post_meta_{$post['pid']}">
{$post['iplogged']}
</div>
</td>
</tr>

<tr>
<td class="trow1 post_buttons {$unapproved_shade}">
<div class="author_buttons float_left">
{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
</div>
<div class="post_management_buttons float_right">{$post['button_spam']}{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
</div>
</td>
</tr>
</tbody>
</table>

A awards showcase box is appearing in the posts but awards are not appearing inside it,what can be the problem ? why the award are not appearing inside the box ? please check the template whats wrong.
Find all posts by this user
Quote this message in a reply
01-28-2012, 02:36 PM (This post was last modified: 01-28-2012 02:36 PM by ranjani.)
Post: #2
RE: Award POstbit
you have {$post['awards']} like this {$post['user_details']}{$post['awards']}
cut {$post['awards']} AND paste it after Awards Showcase</a> like below :

PHP Code:
<legend>
<
a href="{$mybb->settings['bburl']}/award.php" title="View Awards">Awards Showcase</a><br />
{
$post['awards']}
</
legend
Find all posts by this user
Quote this message in a reply
01-28-2012, 02:45 PM (This post was last modified: 01-28-2012 02:53 PM by Yoshi Oak.)
Post: #3
RE: Award POstbit
Quote:{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
<tbody>
<tr>
<td class="tcat">
<div class="float_left smalltext">
{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
</div>
{$post['posturl']}
</td>
</tr>

<tr>
<td class="trow1 {$unapproved_shade}">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
<tr>
<td class="post_avatar" width="1" style="{$post['avatar_padding']}">
{$post['useravatar']}
</td>
<td class="post_author">
<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
<span class="smalltext">
{$post['usertitle']}<br />
{$post['userstars']}
{$post['groupimage']}
</span>
</td>
<td width="600">
<fieldset style="color:#FF0000">
<legend>
<a href="{$mybb->settings['bburl']}/award.php" title="View Awards">Awards Showcase</a><br />
{$post['awards']}
</legend>
<div>

</div>
</fieldset>
</td>
<td class="smalltext post_author_info" width="165">
{$post['user_details']}{$post['awards']}
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="trow2 post_content {$unapproved_shade}">
<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>

<div class="post_body" id="pid_{$post['pid']}">
{$post['message']}
</div>
{$post['attachments']}
{$post['signature']}

<div class="post_meta" id="post_meta_{$post['pid']}">
{$post['iplogged']}
</div>
</td>
</tr>

<tr>
<td class="trow1 post_buttons {$unapproved_shade}">
<div class="author_buttons float_left">
{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
</div>
<div class="post_management_buttons float_right">{$post['button_spam']}{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
</div>
</td>
</tr>
</tbody>
</table>

this is how my code is now and what happened is

[Image: untitl17.png]

please edit the code and gimme full code so no problems.

Thanks
Find all posts by this user
Quote this message in a reply
01-28-2012, 02:55 PM
Post: #4
RE: Award POstbit
first please remove [php] from your postbit code ..
it appears that plugin is not functioning as expected AND it needs littile modification . see this response on plugin's site
Find all posts by this user
Quote this message in a reply
01-28-2012, 03:28 PM
Post: #5
RE: Award POstbit
[Image: untitl18.png]

the award is being is displayed at 2 places and the award is very much top,it shud be in middle.
Find all posts by this user
Quote this message in a reply
01-28-2012, 03:36 PM
Post: #6
RE: Award POstbit
remove {$post['awards']} in {$post['user_details']}{$post['awards']}

AND replace below code
<fieldset style="color:#FF0000">
<legend>
<a href="{$mybb->settings['bburl']}/award.php" title="View Awards">Awards Showcase</a><br />
{$post['awards']}
</legend>
<div>

</div>
</fieldset>

with this code

<fieldset style="color:#FF0000">
<legend>
<a href="{$mybb->settings['bburl']}/award.php" title="View Awards">Awards Showcase</a><br />
</legend>
<div>
{$post['awards']}
</div>
</fieldset>
Find all posts by this user
Quote this message in a reply
01-29-2012, 06:13 AM
Post: #7
RE: Award POstbit
Thanks a lot and now its working fine.
Find all posts by this user
Quote this message in a reply
05-06-2012, 09:41 AM
Post: #8
RE: Award POstbit
This user has been denied support. This user has been denied support.
please help I've already added this code {$post['awards']} but still its not showing please help.

the award showcase is okay. the only problem is this code {$post['awards']} the awards is not showing in postbit
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication