FM Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.

IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49

» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

Recent Tutorials
Top posting users this month

Who is online?
In total there are 20 users online :: 0 Registered, 0 Hidden and 20 Guests :: 2 Bots

None

[ View the whole list ]


Most users ever online was 515 on Tue 14 Sep 2021, 15:24

[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
smurfavr

Gender : Male
Posts : 66
Points : 3489
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
http://smurfa.bulgarianforum.net/

Postsmurfavr 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
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12255
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur 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
smurfavr

Gender : Male
Posts : 66
Points : 3489
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
http://smurfa.bulgarianforum.net/

Postsmurfavr Wed 04 May 2016, 02:21

Yes phpbb2
smurfavr
smurfavr

Gender : Male
Posts : 66
Points : 3489
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
http://smurfa.bulgarianforum.net/

Postsmurfavr Tue 20 Sep 2016, 05:39

Up
Ace 1
Ace 1
Valued Member
Gender : Unspecified
Age : 25
Posts : 2153
Points : 5530
Reputation : 95
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://fmdesign.forumotion.com/u190

PostAce 1 Tue 20 Sep 2016, 20:15

@smurfavr Maybe I can help. Just shoot me your forum URL
smurfavr
smurfavr

Gender : Male
Posts : 66
Points : 3489
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
http://smurfa.bulgarianforum.net/

Postsmurfavr 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
Ace 1
Valued Member
Gender : Unspecified
Age : 25
Posts : 2153
Points : 5530
Reputation : 95
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://fmdesign.forumotion.com/u190

PostAce 1 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
smurfavr

Gender : Male
Posts : 66
Points : 3489
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
http://smurfa.bulgarianforum.net/

Postsmurfavr Thu 22 Sep 2016, 06:32

You have given two code and I did not understand where and how to put them.
Ace 1
Ace 1
Valued Member
Gender : Unspecified
Age : 25
Posts : 2153
Points : 5530
Reputation : 95
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://fmdesign.forumotion.com/u190

PostAce 1 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
smurfavr

Gender : Male
Posts : 66
Points : 3489
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
http://smurfa.bulgarianforum.net/

Postsmurfavr Thu 22 Sep 2016, 07:03

No change.
[IN PROGRESS] How to change the captions in another language? 8917439w
Ace 1
Ace 1
Valued Member
Gender : Unspecified
Age : 25
Posts : 2153
Points : 5530
Reputation : 95
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://fmdesign.forumotion.com/u190

PostAce 1 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
smurfavr

Gender : Male
Posts : 66
Points : 3489
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
http://smurfa.bulgarianforum.net/

Postsmurfavr 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
Ace 1
Valued Member
Gender : Unspecified
Age : 25
Posts : 2153
Points : 5530
Reputation : 95
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://fmdesign.forumotion.com/u190

PostAce 1 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
smurfavr

Gender : Male
Posts : 66
Points : 3489
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
http://smurfa.bulgarianforum.net/

Postsmurfavr Sun 25 Sep 2016, 08:36

Did not work.
Ace 1
Ace 1
Valued Member
Gender : Unspecified
Age : 25
Posts : 2153
Points : 5530
Reputation : 95
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://fmdesign.forumotion.com/u190

PostAce 1 Sun 25 Sep 2016, 13:33

Screenshot your code and screenshot the location of the problem on your forum.
smurfavr
smurfavr

Gender : Male
Posts : 66
Points : 3489
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
http://smurfa.bulgarianforum.net/

Postsmurfavr Mon 26 Sep 2016, 08:24

[IN PROGRESS] How to change the captions in another language? 8921662F
[IN PROGRESS] How to change the captions in another language? 8921663y
[IN PROGRESS] How to change the captions in another language? 8921665S
Valoish
Valoish
Graphic Designer
Gender : Female
Age : 28
Posts : 3671
Points : 7360
Reputation : 360
Location : NYC
Language : English, Russian, Hebrew
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
http://www.canvasforums.com https://twitter.com/Valoishx3

PostValoish Mon 26 Sep 2016, 09:18

smurfavr wrote:[IN PROGRESS] How to change the captions in another language? 8921662F
[IN PROGRESS] How to change the captions in another language? 8921663y
[IN PROGRESS] How to change the captions in another language? 8921665S
Set the placement of your Javascript code from In the homepage to In all the pages
smurfavr
smurfavr

Gender : Male
Posts : 66
Points : 3489
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
http://smurfa.bulgarianforum.net/

Postsmurfavr Mon 26 Sep 2016, 09:30


I have tried all options and not working.
Ace 1
Ace 1
Valued Member
Gender : Unspecified
Age : 25
Posts : 2153
Points : 5530
Reputation : 95
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://fmdesign.forumotion.com/u190

PostAce 1 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
smurfavr

Gender : Male
Posts : 66
Points : 3489
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
http://smurfa.bulgarianforum.net/

Postsmurfavr Sun 02 Oct 2016, 16:35

not work.
Ace 1
Ace 1
Valued Member
Gender : Unspecified
Age : 25
Posts : 2153
Points : 5530
Reputation : 95
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://fmdesign.forumotion.com/u190

PostAce 1 Sun 02 Oct 2016, 17:21

Have you enabled javascripts on your forum?

[IN PROGRESS] How to change the captions in another language? B4c8ad5110714c96bdeb58558e68d979
smurfavr
smurfavr

Gender : Male
Posts : 66
Points : 3489
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
http://smurfa.bulgarianforum.net/

Postsmurfavr Mon 03 Oct 2016, 05:39

Yes
Ace 1
Ace 1
Valued Member
Gender : Unspecified
Age : 25
Posts : 2153
Points : 5530
Reputation : 95
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://fmdesign.forumotion.com/u190

PostAce 1 Mon 03 Oct 2016, 10:30

Did you change the
Code:
'New Text'
to what you wanted the text to be?
smurfavr
smurfavr

Gender : Male
Posts : 66
Points : 3489
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
http://smurfa.bulgarianforum.net/

Postsmurfavr 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
Ace 1
Valued Member
Gender : Unspecified
Age : 25
Posts : 2153
Points : 5530
Reputation : 95
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://fmdesign.forumotion.com/u190

PostAce 1 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, '') + ')');
      }
    }
  }
});
Sponsored content

PostSponsored content

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