• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Rate Own Resources

Rate Own Resources 1.0

No permission to download
Includes a new permission that allows resource authors to rate and review their own resources.

Chris D

XenForo developer
Staff member
#1
Chris Deeming submitted a new resource:

Rate Own Resources - Includes a new permission that allows resource authors to rate and review their own resources.

The idea for this add-on came from a thread created by @BamaStangGuy:
http://xenforo.com/community/threads/allow-resource-creator-to-review.68287

I thought it was a good idea, so thought I'd knock it up quickly.

The add-on adds a new permission (global/category) that will allow a resource author to rate/review their own resources (subject to the usual permissions with regards to rating resources).

View attachment 66870

View attachment 66871

Enjoy! :)
Read more about this resource...
 

Mike Edge

Formerly Da Bookie Mon
#3
Nice! Now we just need a add-on to like your own posts option, just like you can like your own posts on facebook.
 

Brogan

XenForo moderator
Staff member
#4
That would be a simple bit of code.
Extremely narcissistic though - I can safely say I have never "liked" one of my own posts on FB.
 

Brogan

XenForo moderator
Staff member
#7
Apologies to Chris for taking his thread off topic.

The actual code which prevents you liking your own posts is:
Code:
        if ($post['user_id'] == $viewingUser['user_id'])
        {
            $errorPhraseKey = 'liking_own_content_cheating';
            return false;
        }
In \library\XenForo\Model\Post.php

Commenting that out will allow post authors to like their own posts.
Further code changes would be required to deal with alerts, etc.
 

Mike Edge

Formerly Da Bookie Mon
#8
I think people do it ironically :D, I know I do. But yeah, some just think they say interesting things.
Have some tell me too they do it as it gets more people to read it. Seems people these days are more interested in content you like then content you write.
 

Chris D

XenForo developer
Staff member
#12
Not with this add-on, no.

You would have to search for another resource in the Resource Manager. I'm not currently planning to make any changes to this add-on.