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

Prefix Actions 1.0.6

Open, close, stick or unstick threads by prefix selection

  1. Snog

    Snog Well-Known Member

    Snog submitted a new resource:

    Prefix Actions - Open or close threads by prefix selection

    Read more about this resource...
     
  2. Solmak

    Solmak Member

    @Snog Thanks for uploading this resource. This add-on has caused a bit of an issue for me with Google indexing.
    I believe this add-on creates a template which is viewed on front-end with the URL parameter like forum.com/threads/thread-title.123/edit-prefix
    This edit-prefix page is being indexed by Google with a warning that it is blocked for guests. Is there a way to get rid of this edit-prefix page entirely from the forum structure so Google does not crawl it? I don't see the need to edit prefixes using this front-end page, unless this also drives other functions in the add-on.

    Any help will be appreciated! Please inform if something can be done. Thanks
     
  3. Snog

    Snog Well-Known Member

    Check your permissions for the forum. Unregistered users (which Google is) should not even see the Thread Tools menu, which is where that link would be.
     
  4. Solmak

    Solmak Member

    @Snog Thanks for replying. Are you talking about user group permissions or is this some global setting? I don't have any Thread Tools permission for Unconfirmed usergroup. Moreover, is this permission set in core XF or add-on permissions?
     
  5. Snog

    Snog Well-Known Member

    To be honstest I haven't check the exact permissions that might be wrong.

    I'd start with the prefixes and make sure the unregistered user group isn't allowed to use them. Then I'd check the forum permissions to be sure they can't edit threads.
     
  6. Snog

    Snog Well-Known Member

    I just double checked what activates the Thread Tools menu.

    If you allow unregistered users to post threads in the forum in question and you allow the thread prefixes to be used by unregistered users, then the menu will appear. So, with Google, the menu would appear because Google is for all intents and purposes an uregistered user.

    The key is not to allow unregistered users to post. The other thing that MAY have happened (and I haven't checked this) is if a user was deleted, any posts by them MAY be labeled as being from user ID 0. That also MIGHT cause the menu to appear IF any prefixes are set where unregistered users can use them.
     
    Last edited: Dec 18, 2015
  7. Solmak

    Solmak Member

    @Snog Thanks for replying. The issue is not that unconfirmed users can modify the prefix, but rather entering the URL directly in the browser opens a permissions error page and asks users to login to continue for users who do not have permission to modify the prefix. And Google reports these pages, 1 page for every thread as an error due to permissions. Just like the conversation URLs or profile settings pages are NOT even visible to the public, these edit-prefix URLs should not be accessible by directly entering in the browser. I am not sure how it works technically but Google does not report errors for conversation URLs or Profile Settings page URLs.

    I guess the easier fix would be to try and block this URL parameter using robots.txt so Google does not even look at these.
    If anyone else is wondering, I just added this line to robots.txt to disallow crawling by Google:

    Disallow: */edit-prefix
     
  8. Snog

    Snog Well-Known Member

    That will work, but the question remains, how did google get the link if it doesn't appear to unregistered users (and thus not to Google)? Google had to get it from somewhere, it just doesn't create links on it's own. At some point in time, the link had to appear for Google to try to parse it.

    I've been using the prefix add-on since it's release and that link has never appeared for my site in any reports or searches.
     
  9. Solmak

    Solmak Member

    I really have no idea, unconfirmed users never had any permissions except viewing threads, nodes and media albums and media items.
     
  10. viper357

    viper357 Active Member

    I can't seem to get this to show up under Thread Tools. Does it take into account the time limit of being able to edit the thread title?
     
  11. Solmak

    Solmak Member

    @viper357 I don't think this shows up separately, Thread Tools > Edit Thread > Change the Prefix. If user had permission to change prefix, automatically they have permission to use this feature.

    Which prefix will close the thread - that setting is in the prefix setting itself in admin cp.
     
  12. viper357

    viper357 Active Member

    Thanks, but according to the Overview it says the link shows up after the Editing Time Limit has lapsed? But after the time limit has lapsed the users can no longer Edit Thread? So I'm not sure how this mod works exactly? I've tried by testing the permissions of a user from the admincp but nothing shows up, no Edit Thread and no Change Prefix link.
     
  13. Solmak

    Solmak Member

    Sorry I missed that part. Can the user visit a URL which is this structure: www. forum.com/threads/thread-title.123/edit-prefix ? I have never seen a separate link to edit prefix, didn't know users without permission to edit thread (or permission elapsed) could still edit the thread prefix.
     
  14. Snog

    Snog Well-Known Member

    The 'Change Thread Prefix' link in Thread Tools only shows up for regular members and only after the 'Time limit on editing/deleting own posts (minutes)' time limit has expired.

    The link does not show up for Administrators or Moderators that automatically have the ability to use 'Edit Thread' link in Thread Tools.
     
  15. viper357

    viper357 Active Member

    Thanks, is it specific to the Registered users usergroup only? I have my users promoted into a different usergroup, maybe that is why it is not working?

    If I log in as a user using the Test Permissions from admincp will I be able to see the link in Thread Tools?
     
  16. Snog

    Snog Well-Known Member

    Yes it is specific to registered users.

    If you are promoting users to different user groups, their primary group should still be registered users. And groups they are promoted to should be additional user groups to the registered user group. If you are changing their primary user group, then you aren't using the XF user group system properly. See this...
    https://xenforo.com/community/resources/implementing-permissions-across-multiple-user-groups.358/

    If you have specifically revoked the edit time limit for any user group the member belongs to, then the link will never appear because the registered group will no longer have the time limit enforced.

    No, the test permissions funtion will not work for this addon.
     
  17. viper357

    viper357 Active Member

    Ok, thanks for the info, I'll do a bit more testing.
     
  18. Peugeot405srd

    Peugeot405srd New Member

    Very useful modification. I just have a suggestion. Instead of just closing or reopening the thread, it could be useful to also move the thread to a specific forum after closing or reopening the thread. For example for recruitement threads for clans.
    Its just a thought.
     
    DroidOne and Snog like this.
  19. DroidOne

    DroidOne Well-Known Member

    This seems great! Just spotted it. Will use for a classifieds forum.

    One question: Has anyone tried this with XF 1.5.8? Does it work as expected?

    Thanks!
     
  20. Peugeot405srd

    Peugeot405srd New Member

    It does works, but i did notice that when you change it from the forum list, you need to refresh before you see the lock icon.
    When you change it when viewing the thread you see the changes instantly.
     
    DroidOne likes this.

Share This Page