1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

ragtek Advanced Link Permissions and Linkchecker

Discussion in 'Add-on Releases [Archive]' started by ragtek, Jul 15, 2011.

  1. ragtek

    ragtek Guest

    1. thx to borbole who "allowed" me to implement & release my own version of this
    2. thx to king kovifor and his bb code tutorial which gave me the idea for this

    This add-on allows you disallow links in posts & signatures on a usergroup or forum basis. (this will work only for NEW posts and new signature changes, if somebody have already a link in his signature, it will stay until somebody deletes it;)
    forum perm.PNG
    sig perm.PNG
    Also you're able to activate a option, which checks, if the linked pages exist.
    If they don't exist, the link will be shown as a plain text instead of an link. www.ragtek.org/xenforo
    (It's disabled by default, because this COULD be a heavy operation
    On my netbook it takes several seconds to check 20 links, on the webserver it's very fast...)


    Planned Features for the gold version:
    Link Limit (you'll be able to set how many links you want to allow in the posts & signature)

    Attention, this is ATM not a gold version!
    I've tested it only on several test boards.

    After the installation, check & set all the new permissions
    EQnoble, Bain, erich37 and 7 others like this.
  2. Sadik B

    Sadik B Well-Known Member

    This is brilliant... off to test on my test board. I unfortunately can't put this live until the post count based usergroup promotion feature comes in, as I want to allow people to post links after 10 posts...
    Veer likes this.
  3. dieketzer

    dieketzer Well-Known Member

    why not create a new trophy that is awarded when somebody posts ten posts, then use the trophy promotion addon to promote people to the new usergroup when they receive that trophy?
    thats how i have been doing this sort of thing, and how i will be using this addon. the trophy promotion addon is rock solid and, in conjunction with this addon here, will do exactly what youre needing.
  4. Veer

    Veer Well-Known Member

    Nice work ragtek, will this also work on Profile Messages & Private Conversations?
    erich37 and Sadik B like this.
  5. ragtek

    ragtek Guest

    not with the current version.
    maybe i'll add it to the next version.
    Veer likes this.
  6. Sadik B

    Sadik B Well-Known Member

    I am getting a lot of Profile SPAM, where people are creating accounts and posting links on other people's profiles. Looking forward to the next version.
  7. ShadyX

    ShadyX Well-Known Member

    So many recent releases, another great addon Ragtek :)
  8. ragtek

    ragtek Guest

    Every day ~2 releases is my plan;)
    Veer and thewizard like this.
  9. JVCode

    JVCode Well-Known Member

    Great little feature.
  10. ragtek

    ragtek Guest

    Check in conversations is working and will be probably released today. (i need to finish my automatic tests for this)

    ok it's too slow on my netbook, release will be delayed
  11. erich37

    erich37 Well-Known Member

    great to have links allowed only for a specific usergroup, e.g. paying members.
  12. ragtek

    ragtek Guest

    Everybody who use this for monetization should donate some euros to me:p
    Peggy and dieketzer like this.
  13. dieketzer

    dieketzer Well-Known Member

    i just realised that this breaks user registrations.
    after submitting the registration people are redirected to a failed register/register with an error 'you are not allowed to post links'.
  14. ragtek

    ragtek Guest

    Hm, i can't confirm this:(

    New users have a empty signature on registration, so this is really strange.
    Do you have any add-on which sets a default signature or something similar?
  15. dieketzer

    dieketzer Well-Known Member

    it never actually creates the user.
  16. erich37

    erich37 Well-Known Member

    great idea!!!

    is this actually working now?
  17. dieketzer

    dieketzer Well-Known Member

    not for me, but it may be due to something on my end.
    so far nobody else has had the issue, go give it go. but maybe make a test registration afterward.
  18. ragtek

    ragtek Guest


    today i noticed this error also on one of my testboards

  19. ragtek

    ragtek Guest

    got it:)

    i bet you have installed NUNS and it creates an welcome post / welcome thread?;)

    that's the problem
    the user which is creating the welcome post/welcome thread have links in signature but my add-on is checking the permissions of the current user....:)

    oh man, very bad mistake...
    took me some time to reproduce it:D

    if anybody needs a fix ASAP:

    replace the complete content of ragtek\lc\dw\discussionmessage_post with
    class Ragtek_LC_DW_DiscussionMessage_Post extends
        protected function 
            if (!
    $message $this->get('message');

    $thread $this->getModelFromCache('XenForo_Model_Thread')->getThreadById($this->get('thread_id'));

                if (!
    $thread) {
    $nodeId $this->getDiscussionDataWriter()->get('node_id');

                else {
    $nodeId $thread['node_id'];


                if (
    $error != '') {

    dieketzer and Floris like this.
  20. ragtek

    ragtek Guest

    ok, there are several other problems with NUNS and this add-on

    i recommend to stop using the link checker until (if:p ) i release a new version...

Share This Page