How to make guests not see links?
+3
SarkZKalie
YoshiGM
skouliki
7 posters
Page 1 of 1
How to make guests not see links?
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!"?
Re: How to make guests not see links?
Hello
You must set it from the advanced permissions in the category you want
You must set it from the advanced permissions in the category you want
Re: How to make guests not see links?
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?
Re: How to make guests not see links?
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)
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)
Re: How to make guests not see links?
@Perfe <3 could you please provide your forum URL here? with a limited post's link to guest also
Re: How to make guests not see links?
SarkZKalie wrote:@Perfe <3 could you please provide your forum URL here? with a limited post's link to guest also
https://amongus.bulgarianforum.net
Re: How to make guests not see links?
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
Re: How to make guests not see links?
Please don't double post. Your posts need to be separated by 24 hours before bumping. Please use the edit button, instead!
|
Re: How to make guests not see links?
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
Re: How to make guests not see links?
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
TonnyKamper likes this post
Re: How to make guests not see links?
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)
Re: How to make guests not see links?
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.
Re: How to make guests not see links?
Hello @Perfe <3,
Do you want to change the text or add the text to other elements (code, quote, ...)?
Do you want to change the text or add the text to other elements (code, quote, ...)?
Re: How to make guests not see links?
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
Re: How to make guests not see links?
- 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
Re: How to make guests not see links?
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!
Re: How to make guests not see links?
Problem solved & topic archived.
|
Similar topics
» How to censure links only for the guests?
» Disable links to guests?
» Hide links from guests
» hide links just from guests
» Guests cannot post links?
» Disable links to guests?
» Hide links from guests
» hide links just from guests
» Guests cannot post links?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum