Replace COOP - Better Battlelog Forums #67411

Sitemap
Post edited 8 x times, last by
Topicstarter
Hi guys,

here is my first Plugin. Since i never touched the COOP mode after i had all the weapons from there,
I thought of creating a plugin that replaces COOP with somethin else, e.g. my favourite servers.

* Changelog
* v1.4: RELEASE
* code cleanup
* added "History" as an option
* v1.3: RELEASE
* some small code improvements
* to be more extendable
* v1.2: RELEASE
* added czech language support
* (thanks to dapil - getbblog.com)
* v1.1: RELEASE
* added french language support
* (thanks to Amkhatar - getbblog.com)
* v1.0: RELEASE
* some code-cleanup, bug fixes
* v0.2: BETA
* added leaderboard options
* v0.1: ALPHA
* main features implemented


Features
- replace COOP with FAVOURITES
- replace COOP with FRIENDS
- replace COOP with LEADERBOARD (GLOBAL)
- replace COOP with LEADERBOARD (FRIENDS)
- supported languages so far: english, german, french, czech




Link to the Addon:
http://bblog.ind3x.de/v3/CoopTo.js


Screenshots:
Options:
http://bblog.ind3x.de/v3/images/CoopTo/options.png

Before:
http://bblog.ind3x.de/v3/images/CoopTo/coop.png

After:
http://bblog.ind3x.de/v3/images/CoopTo/favourites_friends.png

http://bblog.ind3x.de/v3/images/CoopTo/leaderboards.png
Good job

Here is french translations

"lang.name" : "Remplacer COOP ...",
"lang.fav" : "Serveurs favoris",
"lang.friends" : "Amis",
"lang.leader" : "Classements généraux",
"lang.fleader" : "Classements amis",


An improvement :
- replace checkbox system by radio button system to avoid warning message
Post edited 1 x times, last by
Topicstarter
Thanks for the french localisation!

I wanted to use radio buttons, but this is not explained in the example.js from bblog3.
I don't really know how to realise this, but i will look into it.

EDIT:
@Amkhatar:
You forgot some parts of the translation, i added them anyway, could you check if they are correct?

Thanks in Advance!
Here you have a czech translation!
//czech language strings

"cs" : {
"lang.name" : "Nahradit KOOP ...",

"lang.fav" : "Oblíbené servery",
"lang.friends" : "Přátelé",
"lang.leader" : "Žebříčky (globální)",
"lang.fleader" : "Žebříčky (přátelé)",

"option.fav" : "oblíbenými servery",
"option.friends" : "přáteli",
"option.leader" : "globálními žebříčky",
"option.fleader" : "žebříčky přátel"
},
Post edited 1 x times, last by
dapil wrote:
Here you have a czech translation!
Is it just me or is that just a bunch of random letters and numbers?

This is what it looks like for me: -PICTURE REMOVED, NO NEED FOR IT-
Topicstarter
I think thats ok, these are HTML codes for special characters.
I will implement and test them, but the translation seems legit.

Thank you very much dapil!
Ah, okay then.
It's OK, without these HTML entities, BBlog will replace them with question marks or random symbols.
Post edited 2 x times, last by
Topicstarter
xXJumpyXx wrote:
Is it just me or is that just a bunch of random letters and numbers?


If you are still interested, it looks like this:

http://bblog.ind3x.de/v3/images/CoopTo/czech.png
The name of plugin (Replace COOP ...) is not showing translated.
Topicstarter
dapil wrote:
The name of plugin (Replace COOP ...) is not showing translated.


Jep, i have recognized this too, but the title is stored in this part:

// plugin name
name : "replace COOP ...",


And is not part of the language section.
So no translation here.
hey guys i need really help. now i am trying to insrall this plugins for ca. 30mins and i dont check this
*grrrrr*
can anyone of you make a picture tutorial or something i would really prechiate that.

and sorry for bad english i do my best
i am from germany
Post edited 4 x times, last by
Topicstarter
twm-killerkeks wrote:
hey guys i need really help. now i am trying to insrall this plugins for ca. 30mins and i dont check this
*grrrrr*
can anyone of you make a picture tutorial or something i would really prechiate that.

and sorry for bad english i do my best
i am from germany


http://bblog.ind3x.de/v3/images/CoopTo/installation1.png


1. Click
2. Click
3. insert the URL from the first post.
4. Enter
5. F5

Grüße aus Rheinland Pfalz Kumpel :)
jau danke ebenfalls aus M-V
but i speak english for the rules :P
i do that but i dont got a window that i can change what in the coop field is.
so i activate it pressed F5 yeah
i try it again
Post edited 2 x times, last by
Topicstarter
twm-killerkeks wrote:
jau danke ebenfalls aus M-V
but i speak english for the rules :P
i do that but i dont got a window that i can change what in the coop field is.
so i activate it pressed F5 yeah
i try it again


To choose what replaces COOP you use the new bblog menu entry:

http://bblog.ind3x.de/v3/images/CoopTo/installation2.png


If there is no new menu entry be sure you have the newest version of bblog installed.
Feel free to ask again if there are any further problems.
Post edited 1 x times, last by
i have installed it
when anyone teach me how i can copie picturefiles in here
i can show it xD
but on my screen/bblog isnt the field with that change coop... (...bla bla bla ^^) so i cannot pick another field :/

Edit: find it out-->
Unbenannt.png
Post edited 1 x times, last by
Topicstarter
What bblog version do you use?
This plugin will only work with Better Battlelog 3.0.0 or higher!
i use 3.1.3
do i am doing it wrong or what do you mean other people can help too ^^
Maybe use some seconds after a page refresh before you open the bblog options?
Possible reason is that the plugin file is not loaded when you open the bblog options.
Post edited 1 x times, last by
aljsdui.png



i really dont know :|
Post edited 1 x times, last by
i am still waiting but in the time where the problem isnt clear i wouldn't use it
i am really sorry because i finds its really fantastic idea ..
when anyone knows the problem plese write me a PM or somthing.
i am looking still in this thread maybe anyone knows ^^
or is it possible that you can make other link to use, but i have really no minds in this so i don't know ^^
GosuSan wrote:

@Amkhatar:
You forgot some parts of the translation, i added them anyway, could you check if they are correct?
Thanks in Advance!



Right, sorry...

here it is right translation
(in this case we don't use standard translation of "with" in french)

"option.fav" : "par Serveurs favoris",
"option.friends" : "par Amis",
"option.leader" : "par Classements généraux",
"option.fleader" : "par Classements amis"
Topicstarter
Amkhatar wrote:

Right, sorry...

here it is right translation
(in this case we don't use standard translation of "with" in french)

"option.fav" : "par Serveurs favoris",
"option.friends" : "par Amis",
"option.leader" : "par Classements généraux",
"option.fleader" : "par Classements amis"


Hey no problem, i am really happy that this plugin is now already translated in 3 languages,
i did not expect this :)

And thanks for the correction, i just had some french in school,
but i was never actually good at it. *g*

I will add this in a few minutes!
Post edited 1 x times, last by
I think it would better if the name will be only "Replace COOP" without three dots. It will look better with translated text.

New version of translation reflecting the fact, that the title is not translated:
//czech language strings

"cs" : {
"lang.name" : "Nahradit KOOP ...",

"lang.fav" : "Oblíbené servery",
"lang.friends" : "Přátelé",
"lang.leader" : "Žebříčky (globální)",
"lang.fleader" : "Žebříčky (přátelé)",

"option.fav" : "Nahradit oblíbenými servery",
"option.friends" : "Nahradit přáteli",
"option.leader" : "Nahradit globálními žebříčky",
"option.fleader" : "Nahradit žebříčky přátel"
},
i have found the Solution!


Unbenannt.png




here my anti-scriptvirus-plugin blocked the script what activate your plugin :/
sorry for all i have found the mistakes!
all who have this plugin too should check "Not-Scripts" for not activated scripts!
Post edited 2 x times, last by
Topicstarter
@dapil:
Yes, I removed the dots and this part of the translation:

"lang.name" : "replace COOP ...",

Thanks for the hint, it is cleaner now.
Topicstarter
If anyone of you has more ideas for replacements of the COOP-button, just let me know.
I don't really need more features, but if you have more ideas i will try to do the changes.
Updated Czech translation:

//czech language strings

"cs" : {
"lang.fav" : "Oblíbené servery",
"lang.hist" : "Historie",
"lang.friends" : "Přátelé",
"lang.leader" : "Žebříčky (globální)",
"lang.fleader" : "Žebříčky (přátelé)",

"option.fav" : "Nahradit oblíbenými servery",
"option.hist" : "Nahradit historií",
"option.friends" : "Nahradit přáteli",
"option.leader" : "Nahradit globálními žebříčky",
"option.fleader" : "Nahradit žebříčky přátel"
},
Topicstarter
And thanks for this too :)
maybe you can script the button that you come over here:

http://battlelog.battlefield.com/bf3/platoon/2832655391300702826/listmembers/


so you can check if a dice emplyer is playing like stalking dice xD
thats my idea
Because forum now supports special characters, here is new version of translation:

//czech language strings

"cs" : {
"lang.fav" : "Oblíbené servery",
"lang.hist" : "Historie",
"lang.friends" : "Přátelé",
"lang.leader" : "Žebříčky (globální)",
"lang.fleader" : "Žebříčky (přátelé)",

"option.fav" : "Nahradit oblíbenými servery",
"option.hist" : "Nahradit historií",
"option.friends" : "Nahradit přáteli",
"option.leader" : "Nahradit globálními žebříčky",
"option.fleader" : "Nahradit žebříčky přátel"
},

BrainFooLong wrote:
@dapil

No need to special encode the characters here or in the plugin file.
Use native chars to prevent encoding errors in the plugin and the board.
Topicstarter
dapil wrote:
Because forum now supports special characters, here is new version of translation:

//czech language strings

"cs" : {
"lang.fav" : "Oblíbené servery",
"lang.hist" : "Historie",
"lang.friends" : "Přátelé",
"lang.leader" : "Žebříčky (globální)",
"lang.fleader" : "Žebříčky (přátelé)",

"option.fav" : "Nahradit oblíbenými servery",
"option.hist" : "Nahradit historií",
"option.friends" : "Nahradit přáteli",
"option.leader" : "Nahradit globálními žebříčky",
"option.fleader" : "Nahradit žebříčky přátel"
},


Updated!
Post edited 2 x times, last by
Here it is the last "prettier" version for french


//french language strings
"fr" : {
"lang.fav" : "Serveurs favoris",
"lang.hist" : "Historique",
"lang.friends" : "Amis",
"lang.leader" : "Classements généraux",
"lang.fleader" : "Classements amis",

"option.fav" : "Remplacer par Serveurs favoris",
"option.hist" : "Remplacer par Historique",
"option.friends" : "Remplacer par Amis",
"option.leader" : "Remplacer par Classements généraux",
"option.fleader" : "Remplacer par Classements amis"
Post edited 2 x times, last by
Greek Translation

//greek language strings
"gr" : {
"lang.fav" : "αγαπημένα",
"lang.hist" : "παρελθόν",
"lang.friends" : "φίλοι",
"lang.leader" : "κατάταξη (παγκόσμια)",
"lang.fleader" : "κατάταξη (φίλοι)",

"option.fav" : "με τα αγαπημένα",
"option.hist" : "με το παρελθόν",
"option.friends" : "με τους φίλους",
"option.leader" : "με την κατάταξη (παγκόσμια)",
"option.fleader" : "με την κατάταξη (φίλοι)"
}
New version of Czech translation:
//czech language strings

"cs" : {
"plugin.name" : "Nahradit KOOP..."

"lang.fav" : "Oblíbené servery",
"lang.hist" : "Historie",
"lang.friends" : "Přátelé",
"lang.leader" : "Žebříčky (globální)",
"lang.fleader" : "Žebříčky (přátelé)",

"option.fav" : "...oblíbenými servery",
"option.hist" : "...historií",
"option.friends" : "...přáteli",
"option.leader" : "...globálními žebříčky",
"option.fleader" : "...žebříčky přátel"
},
Post edited 1 x times, last by
Updated for french...Please see my previous post
You need to update the URL, it isn't working anymore! ;)