[BF3/BF4][v3.0] Platoon Dropdown - Better Battlelog Forums #107331

Sitemap
Post edited 25 x times, last by
Topicstarter
This plugin adds a submenu to the Platoons item in the header and you can add your platoons to the menu.

Feedback and translations to other languages will be appreciated.

Changelog
3.0 - major rewrite (again), better user experience and stability, notice when there are no platoons set up, ability to choose a game for each platoon, nicer settings menu
2.1.1 - added french (thanks to MajorSheppardI), portuguese (thanks to ArnoldLayne) and german (thanks to Brady_The) translations
2.1 - full support for BF4
2.0 - saving system rewritten, partial support for BF4
1.0.1 - prepared the plugin for BF4 (
http://getbblog.com/board/topic/108455/1/Theme-and-Plugin-Preparations-for-BF4
)
1.0 - initial version

You can install this plugin from the plugin gallery:
http://getbblog.com/plugin/126693/Platoon-Dropdown


Github repository:
https://github.com/dpeukert/bblog
Post edited 1 x times, last by
Until DICE comes out with the button, could you do this and add the drop down to it? :)
if(BBLog.cache("mode") == "bf4"){
if($(".main-nav .base-section-menu").children().children("a[href*='platoon']").length < 1){
$(".main-nav .base-section-menu").append("<li data-page='platoons'><a class='wfont' href='/bf3/platoon/landing/'target='_blank'>Platoons</a></li>");
}}
Post edited 2 x times, last by
Topicstarter
New URL, new rewritten saving system. Should be less buggy now.

New URL:
http://dapil.github.io/platoon-dropdown-bblog/platoon-dropdown.js


GameFreakBoy wrote:
Until DICE comes out with the button, could you do this and add the drop down to it? :)


Menu item added, but the BF4 Battlelog doesn't seem to like my dropdown :( Will look into it more.
Topicstarter
This plugin supports both BF3 and BF4 from now.
dapil wrote:
This plugin supports both BF3 and BF4 from now.


Portuguese Version...

"pt" : {
"plugin.description" : "Gerenciar Tropas exibidas",
"text.description" : "Aqui você pode escolher quais tropas serão exibidas. Você pode obter o ID de uma tropa na URL da seguinte página, por exemplo:
http://battlelog.battlefield.com/bf3/en/platoon/2832655241424190855/
o ID é <strong>2832655241424190855</strong>.",
"button.add" : "Adicionar",
"hint.name" : "Nome Exibido",
"hint.id" : "ID da Tropa",
},
Post edited 3 x times, last by
German translation
"de" : {
"plugin.description" : "Verwalte angezeigte Platoons",
"text.description" : "In diesem Dialog kannst du ausw&auml;hlen welche Platoons angezeigt werden sollen. Die ID des gew&uuml;nschten Platoons kannst du der Seiten-URL entnehmen. Beispiel: URL =
http://battlelog.battlefield.com/bf4/platoons/view/4726603585846748181/
Platoon-ID = <strong>4726603585846748181</strong>.",
"button.add" : "Hinzuf&uuml;gen",
"hint.name" : "Anzeigename",
"hint.id" : "Platoon-ID",
},

Hello. What are we supposed to see ? Because i have the dropdown but nothing is written. I'm using latest Chrome. Thanks
Topicstarter
MajorSheppardI wrote:
Hello. What are we supposed to see ? Because i have the dropdown but nothing is written. I'm using latest Chrome. Thanks


Did you configure the platoons in the settings?
Topicstarter
ArnoldLayne wrote:
dapil wrote:
This plugin supports both BF3 and BF4 from now.


Portuguese Version...

"pt" : {
"plugin.description" : "Gerenciar Tropas exibidas",
"text.description" : "Aqui você pode escolher quais tropas serão exibidas. Você pode obter o ID de uma tropa na URL da seguinte página, por exemplo:
http://battlelog.battlefield.com/bf3/en/platoon/2832655241424190855/
o ID é <strong>2832655241424190855</strong>.",
"button.add" : "Adicionar",
"hint.name" : "Nome Exibido",
"hint.id" : "ID da Tropa",
},


Brady_The wrote:
German translation
"de" : {
"plugin.description" : "Verwalte angezeigte Platoons",
"text.description" : "In diesem Dialog kannst du ausw&auml;hlen welche Platoons angezeigt werden sollen. Die ID des gew&uuml;nschten Platoons kannst du der Seiten-URL entnehmen. Beispiel: URL =
http://battlelog.battlefield.com/bf4/platoons/view/4726603585846748181/
Platoon-ID = <strong>4726603585846748181</strong>.",
"button.add" : "Hinzuf&uuml;gen",
"hint.name" : "Anzeigename",
"hint.id" : "Platoon-ID",
},




Thanks, both are added.
I didn't join any platoon yet. So i am not able to set name and id.
Anyway yes i checked it on the settings.
Topicstarter
MajorSheppardI wrote:
I didn't join any platoon yet. So i am not able to set name and id.
Anyway yes i checked it on the settings.


Nothing is shown if you do not fill in any platoons
Okay. Anyway each time i refresh Chrome; the Platton Dropdown settings are unchecked.
If it's working it's maybe my browser
Topicstarter
MajorSheppardI wrote:
Okay. Anyway each time i refresh Chrome; the Platton Dropdown settings are unchecked.
If it's working it's maybe my browser


It shouldn't matter if it is checked or not. Did you tried putting some random data in the popup to see if it works?
I made some random platoon name and his id and i am not able to press Enter button too.
Topicstarter
Oh, I see what you mean. Try to click the add button and then refresh the page. It should work. The list isn't automatically updated, I will probably change it to do it so.
For me it doesn't work. I filled my platoon id and refreshed but nothing happens. The dropdown stays empty.
Topicstarter
Krayziesoldier wrote:
For me it doesn't work. I filled my platoon id and refreshed but nothing happens. The dropdown stays empty.


I'll look into it on Sunday.
Post edited 2 x times, last by
I'll suggest to add some information to the empty dropdown.
I searched some minutes until i checked that i need to goto the BBLog settings :)

Maybe add the button to the entry editor also to the dropdown.
Topicstarter
BrainFooLong wrote:
I'll suggest to add some information to the empty dropdown.
I searched some minutes until i checked that i need to goto the BBLog settings :)

Maybe add the button to the entry editor also to the dropdown.


This is now fixed, along with many improvements and new features.