[BF3/BF4/BFH][v1.7][27.06.2016] Show Map Rotation - Better Battlelog Forums #126352

Sitemap
Post edited 40 x times, last by
Topicstarter
Show Map Rotation by
GreatApo
&
DarkThanos

☰ About :

This plug in shows the map rotation of each server as small map icons on the server browser. A must-have plugin for battlelog! This is the most used plugin of BBlog!

☰ Preview :

Features
- Show maps in rotation on servers
- Map rotation slideshow on click
- Map name & mode as tooltip
- Style same as the avatars
- Blue style on current map
- Works on BF3, BF4 & BFH
Images
Server Browser
(BF3 / BF4 / BFH)

Server Browser Popup Modal
(BF3 / BF4 / BFH)

☰ Nerd Stuff :

Changelog
v 1.7
(27.06.2016)
- BFH support added
v 1.6
(04.09.2015)
- CPU overload bug found and fixed
v 1.5
(26.9.2014)
- Style fixes (on style errors caused by bblog v4.5)
v 1.4
(12.09.2014)
- Several fixes pointed out by BrainFooLong (http://getbblog.com/en/board/post/126815)
- Quality code fixes
- Added minified version of the script
v 1.3
(07.09.2014)
- Rewrited bblog import code
- Also works on favourites & history
- CSS optimizations
- Added BF3 support
- Fixed chat bug
v 1.2
(06.09.2014)
- Map rotation slideshow on image click
v 1.1
(05.09.2014)
- Firefox images fix
- images optimizations
- ajax fixes
- css improvements
v 1.0
(04.09.2014)
- First release
Bugs
- BF3: current map cannot always be specified (BF3 set as current every map based on title, so if you play metro, and the map rotations is 3 metro all are set as current)


☰ PlugIn Links :

(The plugin is also available in the PlugIn Gallery. You are adviced to load it from the Gallery.)
(
Full Code
)
https://github.com/DinoDevs/Show-Map-Rotation/blob/master/client/show-map-rotation.latest.bblog.js

(
Minified Code
)
https://github.com/DinoDevs/Show-Map-Rotation/blob/master/client/show-map-rotation.latest.bblog.min.js

Mirrors:
(
Full Code
)
http://alites.tk/battlelog-plugins/show-map-rotation/show-map-rotation.latest.bblog.js

(
Minified Code
)
http://alites.tk/battlelog-plugins/show-map-rotation/show-map-rotation.latest.bblog.min.js


☰ Other Links :

Now available on Github:
https://github.com/DinoDevs/Show-Map-Rotation
That is pretty cool. I like the idea!
Post edited 1 x times, last by
great one thanks :)
Works great! :)
this plugin has some options to turn on?


it doesn't work for me
Post edited 2 x times, last by
WasserGrosskatze wrote:
this plugin has some options to turn on?


No, it has no option to turn on.

Please delete it from your plugins, and install it from the one-click button.
Then check again.

If it still don't work please report me your browser (name - version) and sent me a message with the console report (on your browser : F12 -> Console )

**EDIT**
One-click button no longer exist. Please use bblog's plug-in gallery to install it.
Post edited 1 x times, last by
Topicstarter
It has a small bug where it is not working if your have a chat on.
Post edited 3 x times, last by
hmm...


My web browser is Chrome(37.0.2062.103 m)



These methods are not work for me.

1. delete and re-install by one-click button
2. no chat



Console
Post edited 1 x times, last by
Topicstarter
I don't see any error from my script BUT there are some errors from other Chrome addons you have install. Try this, disable all your chrome addons exept from BBLog and try again...

If this works, one of your addons is messing with battlelog's code.
awesome, though it does not show up on favorites. with that it would be perfect.
Post edited 1 x times, last by
We are working on it.

Edit : Support added on version 1.3
nice plugin, good job!
Post edited 4 x times, last by
This plugin contains a lot of bugs that make it in most cases unusable.

Bugs i've found

* Only work on native english pages (http://battlelog.battlefield.com/bf4/server..), pages with the language in the url doesn't work (http://battlelog.battlefield.com/bf4/de/server...)
* There are much unitialized variables which is not allowed in strict javascript code.
for(page in ...)
must be
for(var page in ...)

Before you use a variable the first time you need to initliaze it with
var myvar = ...
* instance.checkIf.loggedIn() is not required - BBLog only will be initialized when the user is already logged in.
* To check in which mode the page is you just need this
BBLog.cache("mode") // return bf4,bf3,mohw,bfh

I recommend to inactivate the plugin in the plugin gallery and work on fixes.
Plugins in plugin gallery should only be well tested.

I tested in chrome and i tried several changes in the code to make it working, but everytime a new error appears.
Post edited 2 x times, last by
Topicstarter
Thanks for the feedback! We will fix these :D
nice work dude! :D
Topicstarter
BrainFooLong, i believe everything is fixed. Check it out...
I am waiting for your approval to enable it on the Plugin Gallery.
Works in chrome without errors in my test.
Topicstarter
Me and Darkthanos created this plugin because we felt like this was a necessary feature that battlelog lucks... Now, i just can't choose a server without it...

I can see that there are 700 users per day using this addon... maybe it should be in BetterBattleLog's main code or default on?

@ BrainFooLong: I talked to DarkThanos and we agreed that if you want to implement it in BBLog (and improve it) you should go ahead.
It's a good plugin and it's better to let it as a plugin.
Simply because there is a lot of work in this plugin and you deserve it that it is the most used plugin.

To integrate it into bblog this will cost me a lot of time, the code of the plugin is 20% of the whole bblog code :)

I don't have much time for bblog since a year or so, therefore i created the plugin and theme system to keep bblog active even if i have less time.

Greetz
Topicstarter
Even with your narrow time limits, you manage to keep BBLog alive... thats hard and everybody knows it :)
Post edited 2 x times, last by
Topicstarter
☰ Plugin update:
v 1.6

- CPU overload bug found and fixed
Topicstarter
☰ Plugin update:
v 1.7

- BFH support added