1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Rate Own Resources 1.0

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

  1. Chris D

    Chris D XenForo Developer Staff Member

    Chris Deeming submitted a new resource:

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

    Read more about this resource...
     
  2. BamaStangGuy

    BamaStangGuy Well-Known Member

    :golfclap:
     
    Mike Creuzer likes this.
  3. The Forum Heroes

    The Forum Heroes Well-Known Member

    Nice! Now we just need a add-on to like your own posts option, just like you can like your own posts on facebook.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    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.
     
  5. The Forum Heroes

    The Forum Heroes Well-Known Member

    Agree, same here but many do. Could you post the code change somewhere or PM me it?
     
  6. Mike Creuzer

    Mike Creuzer Well-Known Member

    I think people do it ironically :D, I know I do. But yeah, some just think they say interesting things.
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    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.
     
    The Forum Heroes likes this.
  8. The Forum Heroes

    The Forum Heroes Well-Known Member

    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.
     
  9. The Forum Heroes

    The Forum Heroes Well-Known Member

    Thank you @Brogan and yes, sorry @Chris Deeming for this going a bit off topic.. You know we <3 you man!
     
    Mike Creuzer likes this.
  10. Allan

    Allan Well-Known Member

    Thank you, Work with xF 1.4.
     
  11. asusforo

    asusforo Member

    Is it possible to let the users rate/review more than one time? Like every day a new rating?
     
  12. Chris D

    Chris D XenForo Developer Staff Member

    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.
     

Share This Page