Latest topics
» Mobile Version
by  Yesterday at 21:03

» Icons
by  Yesterday at 21:03

» Change the style of tooltips with tooltipster !
by white Yesterday at 05:25

» [GAME] What are you doing right now?
by Valoish Mon 16 Jan 2017, 21:24

» Star in navbar
by Kisskiss Mon 16 Jan 2017, 13:10

» Chit Chat Thread
by  Mon 16 Jan 2017, 12:25

» Starred Forums
by Milouze14 Mon 16 Jan 2017, 12:11

» [GAME] Post a random picture
by  Sun 15 Jan 2017, 22:31

» [GAME] Count to 999 using odd numbers Van-Helsing Edition
by Valoish Sun 15 Jan 2017, 17:23

» [GAME] What are you listening to right now?
by Valoish Sun 15 Jan 2017, 17:23

» Flat Browser Buttons
by  Sun 15 Jan 2017, 12:15

» #12 Pick a Theme
by SLGray Sat 14 Jan 2017, 20:07

» IconSkouliki
by skouliki Sat 14 Jan 2017, 03:07

» _userdata.usergroup
by STBW Sat 14 Jan 2017, 01:11

» Add more topic title colors
by Samantha Fri 13 Jan 2017, 19:43

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

Dr Jay

[ 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 : 615
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 : 4202
Points : 8667
Reputation : 2108
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 : 615
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 : 615
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 : 2069
Points : 2536
Reputation : 70
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 : 615
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 : 2069
Points : 2536
Reputation : 70
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 : 615
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 : 2069
Points : 2536
Reputation : 70
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 : 615
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 : 2069
Points : 2536
Reputation : 70
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 : 615
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 : 2069
Points : 2536
Reputation : 70
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 : 615
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 : 2069
Points : 2536
Reputation : 70
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 : 615
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 : 3421
Points : 4137
Reputation : 286
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 : 615
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 : 2069
Points : 2536
Reputation : 70
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 : 615
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 : 2069
Points : 2536
Reputation : 70
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 : 615
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 : 2069
Points : 2536
Reputation : 70
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 : 615
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 : 2069
Points : 2536
Reputation : 70
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