How to make guests not see links? Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
+3
SarkZKalie
YoshiGM
skouliki
7 posters

    How to make guests not see links?

    Perfe <3
    Perfe <3
    Forumember


    Male Posts : 49
    Reputation : 1
    Language : Bulgarian
    Location : Haskovo, Bulgaria

    Solved How to make guests not see links?

    Post by Perfe <3 October 18th 2020, 2:52 pm

    Hello! I wonder how to make guests to not see links in my forum and how to make custom messages like "You need registration to see links and images!"?
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: How to make guests not see links?

    Post by skouliki October 18th 2020, 2:59 pm

    Hello

    You must set it from the advanced permissions in the category you want

    Perfe <3
    Perfe <3
    Forumember


    Male Posts : 49
    Reputation : 1
    Language : Bulgarian
    Location : Haskovo, Bulgaria

    Solved Re: How to make guests not see links?

    Post by Perfe <3 October 18th 2020, 3:27 pm

    skouliki wrote:Hello

    You must set it from the advanced permissions in the category you want

    Ok this worked, but i want to create custom message? How to do it?
    YoshiGM
    YoshiGM
    Active Poster


    Male Posts : 1557
    Reputation : 146
    Language : Spanish & English
    Location : Mexico

    Solved Re: How to make guests not see links?

    Post by YoshiGM October 18th 2020, 4:36 pm

    You cannot add a custom image with that..
    If you set up in the advanced permissions of the forum, the members that not have authorizarion will see a message in brackets like this:

    [Only Moderator/administrators can see this image] (In red)
    SarkZKalie
    SarkZKalie
    Support Moderator
    Support Moderator


    Male Posts : 1442
    Reputation : 220
    Language : English

    Solved Re: How to make guests not see links?

    Post by SarkZKalie October 18th 2020, 6:19 pm

    @Perfe <3 could you please provide your forum URL here? Smile with a limited post's link to guest also



    How to make guests not see links? Sarkzk10
    Perfe <3
    Perfe <3
    Forumember


    Male Posts : 49
    Reputation : 1
    Language : Bulgarian
    Location : Haskovo, Bulgaria

    Solved Re: How to make guests not see links?

    Post by Perfe <3 October 19th 2020, 11:15 am

    SarkZKalie wrote:@Perfe <3 could you please provide your forum URL here? Smile with a limited post's link to guest also

    https://amongus.bulgarianforum.net
    Perfe <3
    Perfe <3
    Forumember


    Male Posts : 49
    Reputation : 1
    Language : Bulgarian
    Location : Haskovo, Bulgaria

    Solved Re: How to make guests not see links?

    Post by Perfe <3 October 19th 2020, 11:21 am

    YoshiGM wrote:You cannot add a custom image with that..
    If you set up in the advanced permissions of the forum, the members that not have authorizarion will see a message in brackets like this:

    [Only Moderator/administrators can see this image] (In red)

    I want to create custom text -
    "[You must be registered and logged in to see this link.]"
    to
    "[Моля, регистрирайте се, за да виждате линкове!]" - This is the bulgarian version of the text above
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: How to make guests not see links?

    Post by skouliki October 19th 2020, 11:34 am

    Please don't double post. Your posts need to be separated by 24 hours before bumping. Please use the edit button, instead!
    Please read our forum rules:  ESF General Rules

    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: How to make guests not see links?

    Post by skouliki October 19th 2020, 11:45 am

    create a javascript ( to all pages ) and insert this code

    Code:


    $(function() {
      if (_userdata["session_logged_in"] == 0) {
        $("dl.codebox").html(' Моля, <a href="/register">регистрирайте</a> се, за да виждате линкове!');
      }
    });

    sivastar and TonnyKamper like this post

    Perfe <3
    Perfe <3
    Forumember


    Male Posts : 49
    Reputation : 1
    Language : Bulgarian
    Location : Haskovo, Bulgaria

    Solved Re: How to make guests not see links?

    Post by Perfe <3 October 19th 2020, 2:30 pm

    skouliki wrote:create a javascript ( to all pages ) and insert this code

    Code:


    $(function() {
      if (_userdata["session_logged_in"] == 0) {
        $("dl.codebox").html(' Моля, <a href="/register">регистрирайте</a> се, за да виждате линкове!');
      }
    });

    it works only on codes

    How to make guests not see links? Za_a_111

    How to make guests not see links? Za_a_110
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: How to make guests not see links?

    Post by skouliki October 19th 2020, 4:15 pm

    YoshiGM wrote:You cannot add a custom image with that..
    If you set up in the advanced permissions of the forum, the members that not have authorizarion will see a message in brackets like this:

    [Only Moderator/administrators can see this image] (In red)

    the links will have this automatic message for guests

    How to make guests not see links? Scre2203

    TonnyKamper likes this post

    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: How to make guests not see links?

    Post by skouliki October 25th 2020, 8:31 am

    hello

    is this solved?

    Perfe <3
    Perfe <3
    Forumember


    Male Posts : 49
    Reputation : 1
    Language : Bulgarian
    Location : Haskovo, Bulgaria

    Solved Re: How to make guests not see links?

    Post by Perfe <3 October 28th 2020, 1:03 pm

    skouliki wrote:hello

    is this solved?

    No :/
    I said that your code works only on codes

    How to make guests not see links? Za_a_111

    How to make guests not see links? Za_a_110
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: How to make guests not see links?

    Post by skouliki October 28th 2020, 2:02 pm

    YoshiGM wrote:You cannot add a custom image with that..
    If you set up in the advanced permissions of the forum, the members that not have authorizarion will see a message in brackets like this:

    [Only Moderator/administrators can see this image] (In red)


    Perfe <3
    Perfe <3
    Forumember


    Male Posts : 49
    Reputation : 1
    Language : Bulgarian
    Location : Haskovo, Bulgaria

    Solved Re: How to make guests not see links?

    Post by Perfe <3 October 28th 2020, 2:26 pm

    skouliki wrote:
    YoshiGM wrote:You cannot add a custom image with that..
    If you set up in the advanced permissions of the forum, the members that not have authorizarion will see a message in brackets like this:

    [Only Moderator/administrators can see this image] (In red)


    [Only Moderator/administrators can see this image] (In red)
    i want to change the text of this message, but the code which you gave me
    Code:
    CODE:SELECT CONTENT
     
     
    $(function() {
      if (_userdata["session_logged_in"] == 0) {
        $("dl.codebox").html(' Моля, <a href="/register">регистрирайте</a> се, за да виждате линкове!');
      }
    });

    works only on "
    Code:
    "
    + i dont want to add custom image i just want to change the text.
    tikky
    tikky
    Forumember


    Posts : 922
    Reputation : 159
    Language : 🇵🇹

    Solved Re: How to make guests not see links?

    Post by tikky October 28th 2020, 2:43 pm

    Hello @Perfe <3,

    Do you want to change the text or add the text to other elements (code, quote, ...)?
    Perfe <3
    Perfe <3
    Forumember


    Male Posts : 49
    Reputation : 1
    Language : Bulgarian
    Location : Haskovo, Bulgaria

    Solved Re: How to make guests not see links?

    Post by Perfe <3 October 30th 2020, 10:41 am

    pedxz wrote:Hello @Perfe <3,

    Do you want to change the text or add the text to other elements (code, quote, ...)?

    i want to change the text
    smurfavr
    smurfavr
    Active Poster


    Male Posts : 1881
    Reputation : 22
    Language : Bulgarian

    Solved Re: How to make guests not see links?

    Post by smurfavr November 3rd 2020, 9:07 pm

    Code:
    $(function() {
      replaceText('.postbody div', /\[You must be.*?to see this [A-Z]+.\]/ig, 'Трябва да си регистриран за да виждаш линковете!!!');
      replaceText('.attachbox', /You don't have permission to download attachments./ig, 'Вие нямате права за сваляне !');
      replaceText('.attachbox', /(\(\d+ [A-Z]+\)) Downloaded (\d+) times/ig, '$1 Свален $2 пъти.');
      replaceText('.attachbox', /Attachments/g, 'Прикачени файлове.');
     
      function replaceText(element, reg, rep){var el=$('.post '+element);for(i=0;i<el.length;i++)if(reg.test(el[i].innerHTML))el[i].innerHTML=el[i].innerHTML.replace(reg,rep)}
    });

    TonnyKamper and Perfe <3 like this post

    Perfe <3
    Perfe <3
    Forumember


    Male Posts : 49
    Reputation : 1
    Language : Bulgarian
    Location : Haskovo, Bulgaria

    Solved Re: How to make guests not see links?

    Post by Perfe <3 November 3rd 2020, 9:28 pm

    smurfavr wrote:
    Code:
    $(function() {
      replaceText('.postbody div', /\[You must be.*?to see this [A-Z]+.\]/ig, 'Трябва да си регистриран за да виждаш линковете!!!');
      replaceText('.attachbox', /You don't have permission to download attachments./ig, 'Вие нямате права за сваляне !');
      replaceText('.attachbox', /(\(\d+ [A-Z]+\)) Downloaded (\d+) times/ig, '$1 Свален $2 пъти.');
      replaceText('.attachbox', /Attachments/g, 'Прикачени файлове.');
     
      function replaceText(element, reg, rep){var el=$('.post '+element);for(i=0;i<el.length;i++)if(reg.test(el[i].innerHTML))el[i].innerHTML=el[i].innerHTML.replace(reg,rep)}
    });

    Topic is solved!
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19324
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: How to make guests not see links?

    Post by Ape November 3rd 2020, 9:54 pm

    Problem solved & topic archived.
    Please read our forum rules: ESF General Rules



    How to make guests not see links? Left1212How to make guests not see links? Center11How to make guests not see links? Right112
    How to make guests not see links? Ape_b110
    How to make guests not see links? Ape1010