The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How can I change this inscription. You must be registered and logged in to see this link

View previous topic View next topic Go down

Solved How can I change this inscription. You must be registered and logged in to see this link

Post by smurfavr on June 23rd 2014, 1:52 pm



How can I change this label to do it in my language. [You must be registered and logged in to see this link.]

This inscription also want to change it.
You don't have permission to download attachments

Downloaded 1 times

smurfavr
Active Poster

Male Posts : 1422
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by smurfavr on June 26th 2014, 9:52 pm

Some help me???

smurfavr
Active Poster

Male Posts : 1422
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by Jophy on June 27th 2014, 10:31 am

Hello,

I believe we don't have the option to change that, sorry.

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by smurfavr on June 27th 2014, 1:52 pm

This is been shown to the topics placed in my forum. Is there no way to change what is written in another language.

smurfavr
Active Poster

Male Posts : 1422
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by smurfavr on July 7th 2014, 2:43 pm

up

smurfavr
Active Poster

Male Posts : 1422
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by qmars(pkq) on July 7th 2014, 2:55 pm

i need too change it too

qmars(pkq)
Forumember

Posts : 219
Reputation : 1
Language : english,persian
Location : iran

http://lemon-13.full-forum.com

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by smurfavr on July 7th 2014, 3:03 pm

How?

smurfavr
Active Poster

Male Posts : 1422
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by Ange Tuteur on July 7th 2014, 4:59 pm

Hi smurfavr,

Give this a try :
Administration Panel > Modules > JavaScript codes management > Create a new script

Title : your choice
Placement : in the topics
Paste the code below :
Code:
$(function() {
  var replace = 'Your message here.';
 
  var post = $('.postbody div:contains(You must be registered and logged in to see this)');
  if (post.length) post.html(post.html().replace(/\[You must be.*?to see this [A-Z]+.\]/ig,replace));
});


There is a variable at the top of the script :
Code:
var replace = 'Your message here.';

Replace the texts Your message here. with the texts you wish to display. (You can use HTML for links ex : <a href="/">link</a>)

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by smurfavr on July 7th 2014, 5:22 pm

I put the code but the text does not change. http://smurfa.bulgarianforum.net/t1729-topic

Code:
$(function() {
  var replace = 'Трябва да си регистриран за да виждаш линковете..';
 
  var post = $('.postbody div:contains(You must be registered and logged in to see this)');
  if (post.length) post.html(post.html().replace(/\[You must be.*?to see this [A-Z]+.\]/ig,replace));
});
Replace the texts Трябва да си регистриран за да виждаш линковете. with the texts you wish to display. (You can use HTML for links ex : <a href="/">link</a>)

smurfavr
Active Poster

Male Posts : 1422
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by SLGray on July 7th 2014, 7:58 pm

Try in all pages.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by Ange Tuteur on July 7th 2014, 9:18 pm

I have it working here :
http://generaltesting.forumotion.com/t47-images#132

Replace your javascript by :
Code:
$(function() {
    var replace = 'Трябва да си регистриран за да виждаш линковете..';
   
    var post = $('.postbody div:contains(You must be registered and logged in to see this)');
    if (post.length) post.html(post.html().replace(/\[You must be.*?to see this [A-Z]+.\]/ig,replace));
});

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by smurfavr on July 7th 2014, 9:29 pm

For me, why does not work.


smurfavr
Active Poster

Male Posts : 1422
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by SLGray on July 8th 2014, 3:13 am

Do you have other JavaScripts?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by smurfavr on July 8th 2014, 11:37 am

@SLGray wrote:Do you have other JavaScripts?

I have 4.

smurfavr
Active Poster

Male Posts : 1422
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by Ange Tuteur on July 8th 2014, 6:53 pm

I made an update to the script, see if this works :
Code:
$(function() {
  var replace = 'Трябва да си регистриран за да виждаш линковете..';
 
  var post = $('.postbody div');
  var reg = /\[You must be.*?to see this [A-Z]+.\]/ig;
  for (i=0;i<post.length;i++)if(reg.test(post[i].innerHTML))post[i].innerHTML=post[i].innerHTML.replace(reg,replace);
});

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by smurfavr on July 8th 2014, 7:05 pm

Now caption changes.

Can you flush the inscription is a little pale because it is now a font as written text on the subject.

smurfavr
Active Poster

Male Posts : 1422
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by Ange Tuteur on July 8th 2014, 7:11 pm

Try adjusting the color with this CSS :
Display > Colors > CSS stylesheet
Code:
.post .postbody div span[style="color:#f00"] { color:#FF0 !important; }

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by smurfavr on July 9th 2014, 5:18 pm

Now works well.

Stay one more sign change.


smurfavr
Active Poster

Male Posts : 1422
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by Ange Tuteur on July 9th 2014, 11:49 pm

Try this :
Code:
$(function() {
  var replace1 = 'Трябва да си регистриран за да виждаш линковете..';
  var replace2 = 'You don\'t have permission !';
  var replace3 = '$1 Downloaded a total of $2 times.';
 
  var post = $('.postbody div');
  var atbox = $('.attachbox');
  var reg1 = /\[You must be.*?to see this [A-Z]+.\]/ig;
  var reg2 = /You don't have permission to download attachments./ig;
  var reg3 = /(\(\d+ [A-Z]+\)) Downloaded (\d+) times/ig;
 
  for (i=0;i<post.length;i++)if(reg1.test(post[i].innerHTML))post[i].innerHTML=post[i].innerHTML.replace(reg1,replace1);
  for (i=0;i<atbox.length;i++)if(reg2.test(atbox[i].innerHTML) || reg3.test(atbox[i].innerHTML))atbox[i].innerHTML=atbox[i].innerHTML.replace(reg2,replace2).replace(reg3,replace3);
});

There's some more replacement variables at the top for you to modify. For the last one don't delete the values $1 and $2 these store the following data :
$1 = (205 kb) that is the size of the file
$2 = 3 that is the total times the file has been downloaded

Just write around them or move them around if needed. Wink
Code:
var replace3 = '$1 Downloaded a total of $2 times.';

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by smurfavr on July 9th 2014, 11:58 pm

Where do I place the code.

smurfavr
Active Poster

Male Posts : 1422
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by Ange Tuteur on July 10th 2014, 12:00 am

Replace your old script with the new one I provided. Smile

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by smurfavr on July 10th 2014, 12:22 am

Now it all works. thank youAnge Tuteur

smurfavr
Active Poster

Male Posts : 1422
Reputation : 13
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How can I change this inscription. You must be registered and logged in to see this link

Post by Ange Tuteur on July 10th 2014, 12:23 am

You're welcome !

Topic archived

Have a good day. Very Happy

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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