MyBB Community Forums

Full Version: Where is the Postbit Userstar template??
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I've having issues finding where the User Star template for this is:
[attachment=29543]

Basically this:
<img border="0" alt="*" src="images/star.gif"></img>
is rendering out stacked vertically but I'm not finding this in any logically named template... eg anywhere in postbit templates or showthread templates.... or misc.. or uncategorized...
{$post['userstars']} is used in the postbit templates and it comes from /inc/functions_post.php file
I am aware that it's used in postbit as that's what I'm editing:
<!-- start user data -->
<div class="row trow1 {$unapproved_shade} postbituserdata">
<div class="small-12 large-12 columns">
<div class="row"><!-- this is here to align left -->

<!-- Section 1 -->
<div class="small-2 large-2 columns">
<!-- s1 row 1 -->
<div class="row">
<div class="small-6 large-6 columns">
<div class="row">
{$post['useravatar']}
</div>
</div>
<div class="small-6 large-6 columns">
<div class="row">
{$post['groupimage']}
</div>
</div>
</div><!-- end s1r1 -->
<!-- s1 row 2 -->
<div class="row">
<div class="small-12 large-12 columns">
<div class="row">
{$post['onlinestatus']}<strong><span class="largetext">{$post['profilelink']}</span></strong>
{$post['usertitle']}
</div>
</div>
</div><!-- end s1r2 -->
<!-- s1 row 3 -->
<div class="row" style="height:1em;">
<div class="small-12 large-12 columns">
<div class="row">
{$post['userstars']}
</div>
</div>
</div><!-- end s1r3 -->
</div><!-- end Section 1 -->

<!-- Section 2 -->
<div class="small-2 large-2 columns">
{$post['user_details']}
</div><!-- Section 2 -->

<!-- Section 3 -->
<div class="small-8 large-8 columns">
<div class="row">
<!-- Postbit Member Awards and extras go here -->
</div>
</div><!-- end Section 3 -->

</div>
</div>
</div><!-- end user data -->

I need to know if the variable has it's own template somewhere that's given an unintuitive name as some of the other template variables have templates that aren't named the same as the variable such as:
postbit_author_user and {$post['user_details']} instead of being named postbit_userdetails_user or postbit_userdetails_guest

anyway I need to avoid editing any core php files to make these stars go horizontal instead of vertical.
<div class="row" style="height:1em;">
<div class="small-12 large-12 columns">
<div class="row">
{$post['userstars']}
what style is used for class row - above code is a bit mess!
No it's not mess... but the inline style is in the wrong place and isn't needed so i removed it... see this documentation for styling I'm using:
http://foundation.zurb.com/docs/components/grid.html

with the inline style removed things look like this:
[attachment=29544]
^ if you are working on a live forum, can we have the link please
I would have done that on my first post but yea it's offline for this PITA theme I'm making... it's a table-less responsive theme... AND for the life of me I'm stumped on why the stars html would be hard coded and not template edit-able. As it seems they're pumped out from php file code and not a change-able template? Like I said, I want (actually have to) avoid any core edits.
^ just for the testing, add {$post['userstars']} at the top of postbit template and check if it shows normal above the post message
no, same deal... stars come out vertical
here's a snapshot:
[attachment=29545]
^ that is strange. please run file verification tool to check for changed / corrupt files
Pages: 1 2