Post Ratings - taking likes to the next level [Deleted]

(likes system replacement)
sounds blah.
what about: (Likes enhancement) or (Likes Addon) ?
I like: Taking Likes to the next Level (but it is too long).
 
HTML:
<xen:require css="xenforo_member_list_item.css" />
 
<li class="primaryContent memberListItem{xen:if $extended, ' extended'}"{xen:if $id, ' id="{$id}"'}>
 
    <xen:avatar user="$user" size="s" class="{xen:if $noOverlay, 'NoOverlay'}" />
 
    <xen:if is="{$extraTemplate}"><div class="extra">{xen:raw $extraTemplate}</div></xen:if>
 
    <div class="member">
 
        <xen:if is="{$user.user_id}">
     
            <h3 class="username"><xen:username user="$user" rich="true" class="StatusTooltip{xen:if $noOverlay, ' NoOverlay'}" title="{xen:string censor, $user.status}" /></h3>
            <xen:hook name="dark_member_list_info" params="{xen:array 'user={$user}'}">
            <div class="userInfo">
                <div class="userBlurb dimmed">{xen:helper userBlurb, $user}</div>
                <dl class="userStats pairsInline">
                    <dt title="{xen:phrase total_messages_posted_by_x, 'name={$user.username}'}">{xen:phrase messages}:</dt> <dd>{xen:number $user.message_count}</dd>
                    <dt title="{xen:phrase number_of_times_something_posted_by_x_has_been_liked, 'name={$user.username}'}">{xen:phrase likes_received}:</dt> <dd>{xen:number $user.like_count}</dd>
                    <dt>{xen:phrase trophy_points}:</dt> <dd title="{xen:phrase trophy_points}">{xen:number $user.trophy_points}</dd>
                </dl>
            </div>
            </xen:hook>
        <xen:else />
            <h3 class="username guest dimmed">{xen:phrase guest}</h3>
        </xen:if>
     
        <xen:if hascontent="true">
            <div class="contentInfo"><xen:contentcheck>{xen:raw $contentTemplate}</xen:contentcheck></div>
        </xen:if>
     
    </div>
 
</li>

I have tested and verified the issue can be caused by the hook tags being present twice (from TMS and manual edits present simultaneously) - try removing both xen:hook lines from the template.


(likes system replacement)
sounds blah.
what about: (Likes enhancement) or (Likes Addon) ?
I like: Taking Likes to the next Level (but it is too long).

I considered quite a few titles, but it's hard to express that post ratings is a total replacement for likes rather than just something that involves them or slightly enhances them. I think the current title does a fairly decent job, given that 'replacement' sounds pretty bad like you said. I'm not hugely fussed about length :P
 
This is something really tiny, but I thought I would suggest changing the links:
account/ratingsReceived
account/ratingsGiven

In the templates:
dark_postrating_navigation_visitor_tab
dark_postrating_account_ratings_received
dark_postrating_account_wrapper

To:
account/ratings-received
account/ratings-given

Camel case is kind of ugly in the URL, but more importantly it would be more consistent with XF URLs. I believe most, if not all front end URLs use lowercase and dashes. The previous URL should continue to work too (I wonder if XF should do anything about this, or is it a Zend thing) in case users had bookmarked that URL.
 
This is something really tiny, but I thought I would suggest changing the links:
account/ratingsReceived
account/ratingsGiven

In the templates:
dark_postrating_navigation_visitor_tab
dark_postrating_account_ratings_received
dark_postrating_account_wrapper

To:
account/ratings-received
account/ratings-given

Camel case is kind of ugly in the URL, but more importantly it would be more consistent with XF URLs. I believe most, if not all front end URLs use lowercase and dashes. The previous URL should continue to work too (I wonder if XF should do anything about this, or is it a Zend thing) in case users had bookmarked that URL.

Noted for the next update :)
 
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.
 
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.

IIRC there was a style issue with no ul vs empty ul, not sure if that's still the case though
 
Just bought this, it's awesome but I have a minor issue.

When I click the Like button (only the like button, all the rest of them work), I get this error.

fd6d99173d499a424579eb058e0aa546.png
 
Just bought this, it's awesome but I have a minor issue.

When I click the Like button (only the like button, all the rest of them work), I get this error.

fd6d99173d499a424579eb058e0aa546.png

As Russ said it's a conflict with MyPoints. As it's a premium addon I can't easily investigate further, but the error stems from a function being called in a way identical to how XenForo itself does so (so the issue is likely on the other end). If you can PM me the URL of your forum along with FTP and admin CP details I will see what I can do in terms of a workaround.
 
Unfortunately I don't have a workaround so if DI is going to find a workaround I'll gladly provide a copy of MyPoints to him.
 
for some reason im not getting the rating bar in my forum , and another thing is that i dont get it under username in my forum , even thought i was looking in style properties. help
 
for some reason im not getting the rating bar in my forum , and another thing is that i dont get it under username in my forum , even thought i was looking in style properties. help
If you don't have permission to rate, then you don't see the rating bar. Check usergroup permissions.
 
Top Bottom