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.

How to make guests not see links?

+3
SarkZKalie
YoshiGM
skouliki
7 posters

Go down

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!"?
Perfe <3
Perfe <3
Forumember

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

View user profile https://.bg-bunker.bulgarianforum.net

Back to top Go down

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
skouliki
skouliki
Manager
Manager

Female Posts : 12695
Reputation : 1544
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

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?
Perfe <3
Perfe <3
Forumember

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

View user profile https://.bg-bunker.bulgarianforum.net

Back to top Go down

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)
YoshiGM
YoshiGM
Active Poster

Male Posts : 1251
Reputation : 133
Language : Spanish & English
Location : Mexico

View user profile http://asistencia.foroactivo.com/u21373

Back to top Go down

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
SarkZKalie
SarkZKalie
Support Moderator
Support Moderator

Male Posts : 1355
Reputation : 217
Language : English

View user profile https://rotavn.forumotion.com/

Back to top Go down

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

View user profile https://.bg-bunker.bulgarianforum.net

Back to top Go down

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
Perfe <3
Perfe <3
Forumember

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

View user profile https://.bg-bunker.bulgarianforum.net

Back to top Go down

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 : 12695
Reputation : 1544
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

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> се, за да виждате линкове!');
  }
});
skouliki
skouliki
Manager
Manager

Female Posts : 12695
Reputation : 1544
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

TonnyKamper likes this post

Back to top Go down

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
Perfe <3
Perfe <3
Forumember

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

View user profile https://.bg-bunker.bulgarianforum.net

Back to top Go down

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
skouliki
skouliki
Manager
Manager

Female Posts : 12695
Reputation : 1544
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

TonnyKamper likes this post

Back to top Go down

Solved Re: How to make guests not see links?

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

hello

is this solved?
skouliki
skouliki
Manager
Manager

Female Posts : 12695
Reputation : 1544
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

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
Perfe <3
Perfe <3
Forumember

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

View user profile https://.bg-bunker.bulgarianforum.net

Back to top Go down

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)

skouliki
skouliki
Manager
Manager

Female Posts : 12695
Reputation : 1544
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

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.
Perfe <3
Perfe <3
Forumember

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

View user profile https://.bg-bunker.bulgarianforum.net

Back to top Go down

Solved Re: How to make guests not see links?

Post by pedxz 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, ...)?
pedxz
pedxz
Forumember

Posts : 702
Reputation : 137
Language : 🇵🇹

View user profile https://www.forumotion.com/create-forum/modernbb

Back to top Go down

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
Perfe <3
Perfe <3
Forumember

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

View user profile https://.bg-bunker.bulgarianforum.net

Back to top Go down

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)}
});
smurfavr
smurfavr
Active Poster

Male Posts : 1876
Reputation : 22
Language : Bulgarian

View user profile http://smurfa.bulgarianforum.net/

TonnyKamper and Perfe <3 like this post

Back to top Go down

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!
Perfe <3
Perfe <3
Forumember

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

View user profile https://.bg-bunker.bulgarianforum.net

Back to top Go down

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? Keep_s10
How to make guests not see links? Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 17973
Reputation : 1913
Language : fluent in dork / mumbojumbo & English haha

View user profile http://chatworld.forumotion.co.uk/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum