Latest topics
» make the legends color when u go in
by Wolfuryo Today at 04:45

» [GAME] Count to 999 using odd numbers Van-Helsing Edition
by mr.blake214 Today at 01:13

» how to do this
by mr.blake214 Today at 00:04

» make the topic a color
by Wolfuryo Today at 00:04

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Yesterday at 23:55

» [GAME] What are you doing right now?
by SLGray Yesterday at 20:03

» change navbar name
by SLGray Yesterday at 20:01

» Forumotion & Edge
by SLGray Yesterday at 19:58

» [GAME] Count to 1000 using even numbers Van-Helsing Edition
by SLGray Yesterday at 15:52

» [GAME] Count to One Million!
by SLGray Yesterday at 15:51

» [GAME] Count to 30 - Ange Edition
by SLGray Yesterday at 15:51

» User - Made Creations
by SLGray Yesterday at 15:47

» FM Themes
by SLGray Yesterday at 15:45

» Emoticon Search
by SLGray Yesterday at 15:40

» Live Search
by SLGray Yesterday at 15:38

Recent Tutorials
Who is online?
In total there are 9 users online :: 0 Registered, 0 Hidden and 9 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17
Keywords

[IN PROGRESS] How to change the captions in another language?

Page 1 of 2 1, 2  Next

View previous topic View next topic Go down

avatar
smurfavr

Title :
Gender : Male
Posts : 66
Points : 809
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://smurfa.bulgarianforum.net/

Postsmurfavr on Tue 03 May 2016, 05:46

How to change the captions in another language? @Ange Tuteur Can you help me.

Code:
he length of the title for this topic must be ranging between 5 and 255 characters

Code:
Uploaded file is not valid: invalid attachment name.
Uploaded file is not valid: invalid attachment name.
Uploaded file is not valid.
Could not upload file : exceeded total storage space. (Free space : xxxx)

Code:
Start watching forum
You are currently watching this forum
Stop watching forum
You are no longer watching this forum
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4641
Points : 9609
Reputation : 2324
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Tue 03 May 2016, 11:29

When I get a chance I'll see what I can do, but just to clarify your forum version is phpbb2, correct ?
avatar
smurfavr

Title :
Gender : Male
Posts : 66
Points : 809
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://smurfa.bulgarianforum.net/

Postsmurfavr on Wed 04 May 2016, 02:21

Yes phpbb2
avatar
smurfavr

Title :
Gender : Male
Posts : 66
Points : 809
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://smurfa.bulgarianforum.net/

Postsmurfavr on Tue 20 Sep 2016, 05:39

Up
avatar
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 2092
Points : 2758
Reputation : 78
Location : druid hill Park
Language : Eng, Fr, Loud
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://fmdesign.forumotion.com/u190

PostAce 1 on Tue 20 Sep 2016, 20:15

@smurfavr Maybe I can help. Just shoot me your forum URL
avatar
smurfavr

Title :
Gender : Male
Posts : 66
Points : 809
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://smurfa.bulgarianforum.net/

Postsmurfavr on Wed 21 Sep 2016, 06:51

@Ace 1 wrote:@smurfavr Maybe I can help. Just shoot me your forum URL

http://smurfa.bulgarianforum.net/
avatar
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 2092
Points : 2758
Reputation : 78
Location : druid hill Park
Language : Eng, Fr, Loud
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://fmdesign.forumotion.com/u190

PostAce 1 on Wed 21 Sep 2016, 17:28

@smurfavr

@smurfavr wrote:
Code:
he length of the title for this topic must be ranging between 5 and 255 characters

Admin Panel > Modules > HTML & Javascript > Javascript codes management > Create new javascript (make sure Javascript code management is enabled)

Code:
$(function() {
  if (document.post && document.post.subject) document.post.subject.title == 'The length of the title for this topic must be ranging between 5 and 255 characters';
});

Change the text to the language that you want it to be in Wink


Last edited by Ace 1 on Thu 22 Sep 2016, 06:54; edited 1 time in total
avatar
smurfavr

Title :
Gender : Male
Posts : 66
Points : 809
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://smurfa.bulgarianforum.net/

Postsmurfavr on Thu 22 Sep 2016, 06:32

You have given two code and I did not understand where and how to put them.
avatar
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 2092
Points : 2758
Reputation : 78
Location : druid hill Park
Language : Eng, Fr, Loud
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://fmdesign.forumotion.com/u190

PostAce 1 on Thu 22 Sep 2016, 06:55

I edited my post so you know where to go.

And only use the the second code. The first one was what you wrote in your original post.
avatar
smurfavr

Title :
Gender : Male
Posts : 66
Points : 809
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://smurfa.bulgarianforum.net/

Postsmurfavr on Thu 22 Sep 2016, 07:03

No change.
avatar
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 2092
Points : 2758
Reputation : 78
Location : druid hill Park
Language : Eng, Fr, Loud
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://fmdesign.forumotion.com/u190

PostAce 1 on Thu 22 Sep 2016, 18:13

Can you show me a screenshot of where it's not working on the forum.

Also can you show me a screenshot of where on your forum you're having these problems:

@smurfavr wrote:
Code:
Uploaded file is not valid: invalid attachment name.
Uploaded file is not valid: invalid attachment name.
Uploaded file is not valid.
Could not upload file : exceeded total storage space. (Free space : xxxx)

Code:
Start watching forum
You are currently watching this forum
Stop watching forum
You are no longer watching this forum
avatar
smurfavr

Title :
Gender : Male
Posts : 66
Points : 809
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://smurfa.bulgarianforum.net/

Postsmurfavr on Fri 23 Sep 2016, 01:58

It appears in my forum when attach files to a topic when the topic title is less than 3 characters.
avatar
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 2092
Points : 2758
Reputation : 78
Location : druid hill Park
Language : Eng, Fr, Loud
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://fmdesign.forumotion.com/u190

PostAce 1 on Sat 24 Sep 2016, 21:24

@smurfavr I think I got it all to work.

Code:
document.post && document.post.subject && $(function() {
  document.post.subject.title = 'The length of the title for this topic must be ranging between 5 and 255 characters';
  if ( $('td[align="center"].row1 span.gen') ) {
    var n,
 
    statements = {
      'Uploaded file is not valid: invalid attachment name.' : 'New Text',
      'Uploaded file is not valid: an error occured while uploading attachment.': 'New Text',
      'Uploaded file is not valid.' : 'New Text',
      'Could not upload file : exceeded total storage space. (Free space :' : 'New Text'
    },
 
    i;
 
    for ( i in statements ) {
      if ( i == $('td[align="center"].row1 span.gen').text() ) $('td[align="center"].row1 span.gen').text(statements[i])
      else if ( $('td[align="center"].row1 span.gen').text().indexOf(i) !== -1 ) {
        var x = $('td[align="center"].row1 span.gen').text();
        $('td[align="center"].row1 span.gen').text( statements[i] + ' ' + x.replace(/[^0-9]/g, '') + ')');
      }
    }
 }
});

Just change
Code:
'The length of the title for this topic must be ranging between 5 and 255 characters'
in line 2 to what you want the title to be and change each
Code:
New Text
in lines 7-10 to each corresponding one you want.

The rest should work itself out
avatar
smurfavr

Title :
Gender : Male
Posts : 66
Points : 809
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://smurfa.bulgarianforum.net/

Postsmurfavr on Sun 25 Sep 2016, 08:36

Did not work.
avatar
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 2092
Points : 2758
Reputation : 78
Location : druid hill Park
Language : Eng, Fr, Loud
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://fmdesign.forumotion.com/u190

PostAce 1 on Sun 25 Sep 2016, 13:33

Screenshot your code and screenshot the location of the problem on your forum.
avatar
smurfavr

Title :
Gender : Male
Posts : 66
Points : 809
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://smurfa.bulgarianforum.net/

Postsmurfavr on Mon 26 Sep 2016, 08:24



avatar
Valoish
Graphic Designer
Title :
Gender : Female
Age : 20
Posts : 3617
Points : 4614
Reputation : 348
Location : NYC
Language : English, Russian, Hebrew
Browser : Browser : Opera Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://www.canvasforums.com https://twitter.com/https://twitter.com/Valoishx3

PostValoish on Mon 26 Sep 2016, 09:18

@smurfavr wrote:

Set the placement of your Javascript code from In the homepage to In all the pages

--------

"I was afraid. And my own insecurity crushed him." - Youku x Boku SS
avatar
smurfavr

Title :
Gender : Male
Posts : 66
Points : 809
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://smurfa.bulgarianforum.net/

Postsmurfavr on Mon 26 Sep 2016, 09:30


I have tried all options and not working.
avatar
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 2092
Points : 2758
Reputation : 78
Location : druid hill Park
Language : Eng, Fr, Loud
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://fmdesign.forumotion.com/u190

PostAce 1 on Sun 02 Oct 2016, 14:19

@smurfavr

Placement: All the pages

Code:
document.post && document.post.subject && $(function() {
  document.post.subject.title = 'The length of the title for this topic must be ranging between 5 and 255 characters';
  $('td[align="center"].row1 span.gen').ready(function() {
    var x,
 
    statements = {
      'Uploaded file is not valid: invalid attachment name.' : 'New Text',
      'Uploaded file is not valid: an error occured while uploading attachment.': 'New Text',
      'Uploaded file is not valid.' : 'New Text',
      'Could not upload file : exceeded total storage space. (Free space :' : 'New Text'
    },
 
    i;
 
    for ( i in statements ) {
      if ( i == $('td[align="center"].row1 span.gen').text() ) $('td[align="center"].row1 span.gen').text(statements[i])
      else if ( $('td[align="center"].row1 span.gen').text().indexOf(i) !== -1 ) {
        x = $('td[align="center"].row1 span.gen').text();
        $('td[align="center"].row1 span.gen').text( statements[i] + ' ' + x.replace(/[^0-9]/g, '') + ')');
      }
    }
  });
});


Last edited by Ace 1 on Mon 03 Oct 2016, 09:33; edited 1 time in total
avatar
smurfavr

Title :
Gender : Male
Posts : 66
Points : 809
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://smurfa.bulgarianforum.net/

Postsmurfavr on Sun 02 Oct 2016, 16:35

not work.
avatar
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 2092
Points : 2758
Reputation : 78
Location : druid hill Park
Language : Eng, Fr, Loud
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://fmdesign.forumotion.com/u190

PostAce 1 on Sun 02 Oct 2016, 17:21

Have you enabled javascripts on your forum?

avatar
smurfavr

Title :
Gender : Male
Posts : 66
Points : 809
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://smurfa.bulgarianforum.net/

Postsmurfavr on Mon 03 Oct 2016, 05:39

Yes
avatar
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 2092
Points : 2758
Reputation : 78
Location : druid hill Park
Language : Eng, Fr, Loud
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://fmdesign.forumotion.com/u190

PostAce 1 on Mon 03 Oct 2016, 10:30

Did you change the
Code:
'New Text'
to what you wanted the text to be?
avatar
smurfavr

Title :
Gender : Male
Posts : 66
Points : 809
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://smurfa.bulgarianforum.net/

Postsmurfavr on Mon 03 Oct 2016, 15:21

@Ace 1 wrote:Did you change the
Code:
'New Text'
to what you wanted the text to be?
Yes
avatar
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 2092
Points : 2758
Reputation : 78
Location : druid hill Park
Language : Eng, Fr, Loud
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://fmdesign.forumotion.com/u190

PostAce 1 on Mon 03 Oct 2016, 19:04

@smurfavr I think I found the problem with my other code. This SHOULD work. If it doesn't, just let me know and I'll see what I can do.

Code:
document.post && document.post.subject && $(function() {
  document.post.subject.title = 'The length of the title for this topic must be ranging between 5 and 255 characters';
  if ( $('td[align="center"].row1 span.gen').html() ) {
    var x,
 
    statements = {
      'The length of the title for this topic must be ranging between 5 and 255 characters' : 'New Text',
      'Uploaded file is not valid: invalid attachment name.' : 'New Text',
      'Uploaded file is not valid: an error occured while uploading attachment.': 'New Text',
      'Uploaded file is not valid.' : 'New Text',
      'Could not upload file : exceeded total storage space. (Free space :' : 'New Text'
    },
 
    i;
 
    for ( i in statements ) {
      if ( i == $('td[align="center"].row1 span.gen').text() ) $('td[align="center"].row1 span.gen').text(statements[i])
      else if ( $('td[align="center"].row1 span.gen').text().indexOf(i) !== -1 ) {
        x = $('td[align="center"].row1 span.gen').text();
        $('td[align="center"].row1 span.gen').text( statements[i] + ' ' + x.replace(/[^0-9]/g, '') + ')');
      }
    }
  }
});

Page 1 of 2 1, 2  Next

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

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