Hey DI
,
Quick question: Is there any specific reason in the template
dark_postrating_input
Code:
<ul class="dark_postrating_inputlist {xen:if $postrating_has_rated, 'dark_postrating_inputlist_undo'}">
<xen:if is="{$postrating_can_rate}">
<xen:if is="{$postrating_has_rated}">
<li><a href="{xen:link posts/rate, $post, 'rating=del','_xfToken={$visitor.csrf_token_page}'}">{xen:phrase dark_undo_rating}</a></li>
<xen:else />
<xen:foreach loop="$postrating_ratings" value="$rating" key="$id">
<xen:if is="!{$rating.disabled}">
<xen:if is="{$rating.name}">
<li><a href="{xen:link posts/rate, $post, 'rating={$id}','_xfToken={$visitor.csrf_token_page}'}" class="Tooltip" data-offsetY="-13" data-offsetX="-8" title="{$rating.title}"><xen:if is="{$rating.sprite_mode}"><img src="styles/default/xenforo/clear.png" alt="{$rating.title}" style="background: url('styles/dark/ratings/{$rating.name}') no-repeat {$rating.sprite_params.x}px {$rating.sprite_params.y}px; width: {$rating.sprite_params.w}px; height: {$rating.sprite_params.h}px;" /><xen:else /><img src="styles/dark/ratings/{$rating.name}" alt="{$rating.title}" /></xen:if></a></li>
<xen:else />
<li class='dark_postrating_textonly'><a href="{xen:link posts/rate, $post, 'rating={$id}','_xfToken={$visitor.csrf_token_page}'}">{$rating.title}</a></li>
</xen:if>
</xen:if>
</xen:foreach>
</xen:if>
</xen:if>
</ul>
Why the "<xen:if is="{$postrating_can_rate}">" is inside the ul instead of outside of it?
I tried styling the UL with css and it looks good, but noticed if you can't rate(say your own post) the styling still carries over because the ul isn't hidden.
I just moved the <xen:if is="{$postrating_can_rate}"> out side the UL and it seems to fix the issue but wasn't too sure if I would be messing with other settings(looks good now at least from what I can see).
P.S. I am working on a legitimate paid version of this that the other admin bought.