Latest topics
» Widget : Recent Members
by WinaTickets Today at 03:11

» How To Install the Code Snippet Button
by SLGray Yesterday at 20:56

» Select Button
by SLGray Yesterday at 20:25

» FM Themes
by SLGray Yesterday at 16:48

» User - Made Creations
by SLGray Yesterday at 16:48

» The Football Forums
by Mati Yesterday at 15:22

» [BUG] Avatar doesn't resize when reading the profile
by Samantha NL Yesterday at 12:33

» Search Bar Options
by Samantha NL Yesterday at 11:38

» Chit Chat Thread
by Jazeon Yesterday at 05:42

» Christmas logo
by Teo! Yesterday at 03:56

» SyncEditor
by keko_ferkeko Yesterday at 00:31

» Private message bg color
by Mr.Alam Thu 08 Dec 2016, 22:54

» Multi-step Login Form
by Samantha NL Thu 08 Dec 2016, 12:54

» Member of the Month
by Samantha NL Thu 08 Dec 2016, 12:38

» Forumactif Edge - Dutch Translation
by Samantha NL Thu 08 Dec 2016, 10:49

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

WinaTickets

[ View the whole list ]


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

[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

smurfavr

Title :
Gender : Male
Posts : 61
Points : 576
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
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4091
Points : 8397
Reputation : 2011
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome 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 ?
smurfavr

Title :
Gender : Male
Posts : 61
Points : 576
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
smurfavr

Title :
Gender : Male
Posts : 61
Points : 576
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
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 1927
Points : 2312
Reputation : 55
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
smurfavr

Title :
Gender : Male
Posts : 61
Points : 576
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/
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 1927
Points : 2312
Reputation : 55
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
smurfavr

Title :
Gender : Male
Posts : 61
Points : 576
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.
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 1927
Points : 2312
Reputation : 55
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.
smurfavr

Title :
Gender : Male
Posts : 61
Points : 576
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.
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 1927
Points : 2312
Reputation : 55
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
smurfavr

Title :
Gender : Male
Posts : 61
Points : 576
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.
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 1927
Points : 2312
Reputation : 55
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
smurfavr

Title :
Gender : Male
Posts : 61
Points : 576
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.
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 1927
Points : 2312
Reputation : 55
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.
smurfavr

Title :
Gender : Male
Posts : 61
Points : 576
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



Valoish
Graphic Designer
Title :
Gender : Female
Age : 20
Posts : 3202
Points : 3830
Reputation : 259
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
smurfavr

Title :
Gender : Male
Posts : 61
Points : 576
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.
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 1927
Points : 2312
Reputation : 55
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
smurfavr

Title :
Gender : Male
Posts : 61
Points : 576
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.
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 1927
Points : 2312
Reputation : 55
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?

smurfavr

Title :
Gender : Male
Posts : 61
Points : 576
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
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 1927
Points : 2312
Reputation : 55
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?
smurfavr

Title :
Gender : Male
Posts : 61
Points : 576
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
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 1927
Points : 2312
Reputation : 55
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