User/Serverradar and the new feature - Better Battlelog Forums #1826

Sitemap
Topicstarter
Where can i find the .json File to put it on our server to share the blacklists with people?
Every .json file is described bellow the textarea of the external list feature.
Copy and modify that for your needs and put on your server, than add the link to the file on your server in the textarea.
Thats it.
Topicstarter
Ok, but when i open the sample with the editor it´s very uncomfortable to read and understand:

// EXAMPLE FILE
BBLog.sourceCallback(
{
type : 'user',
list : {
// name could also be empty but for better reading you should also add the name
// the user id is the URL user id which can be extracted from the user statistic page link
// example:
http://battlelog.battlefield.com/bf3/soldier/
{user-name}/stats/{user-id}/
'344922784' : {"name" : 'DJ-Brainnrg'},
'123456789' : {"name" : 'FooBar123'}
}
}
);

Is it possible to copy the own list into this sample whitout the {} and stuff?
Otherwise it´s not too simple.
No, this structure is required to get it working.
Therefore the example file exists.
And moved, no bug.
=[KsK wrote:
= Podracer]Ok, but when i open the sample with the editor it´s very uncomfortable to read and understand:

// EXAMPLE FILE
BBLog.sourceCallback(
{
type : 'user',
list : {
// name could also be empty but for better reading you should also add the name
// the user id is the URL user id which can be extracted from the user statistic page link
// example:
http://battlelog.battlefield.com/bf3/soldier/
{user-name}/stats/{user-id}/
'344922784' : {"name" : 'DJ-Brainnrg'},
'123456789' : {"name" : 'FooBar123'}
}
}
);

Is it possible to copy the own list into this sample whitout the {} and stuff?
Otherwise it´s not too simple.


Use
http://www.flos-freeware.ch/
to edit these files.

And this is simple. Just edit the numbers with UserID, "name" stays name (it's a function) and change 'FooBar123' with username.
Lines starting with // are comment lines, so you can comment some updates.

So, you just edit example file deleting (or commenting) 2 exemple lines and add your lines, with format below (inside original {}:
'00000000' : {"name" : 'Username'},

Final file:
// My Radar File
BBLog.sourceCallback(
{
type : 'user',
list : {
// name could also be empty but for better reading you should also add the name
// the user id is the URL user id which can be extracted from the user statistic page link
// example:
http://battlelog.battlefield.com/bf3/soldier/
{user-name}/stats/{user-id}/
//Original lines
//'344922784' : {"name" : 'DJ-Brainnrg'},
//'123456789' : {"name" : 'FooBar123'}
'00000000' : {"name" : 'Username'},
'11111111' : {"name" : 'Player2'},
'1234567890' : {"name" : 'PlayerName'}
}
}
);


Spaces in front of line are purely aesthetic.
Topicstarter
Userradar not longer working or just invisible after v3 update?
There is no visible Button nearby the original triangle one in Battlelog.
Userradar features had changed completly.
You need to read the option tooltips.
Topicstarter
Ok, but where can i find it?
Post edited 1 x times, last by
Try here :)
https://dl.dropbox.com/u/65189162/Sk%C3%A4rmklipp.PNG
Topicstarter
That works, but the complete List on our server (the .json File) seems to not work any longer.
The list contains over 670 names.
Post edited 1 x times, last by
Are you sure?

BBLog Options -> General Improvements -> Soldier Radar -> Radar Sources -> Add the .json URL.
The Radar Sources button is in the top right corner.

It should work as long as you add it that way and the .json file is structured/formatted the right way.
Post edited 4 x times, last by
Topicstarter
Ah, found the missing link!

first line changes from
BBLog.sourceCallback(

in
BBLog.handle("source.callback",


Now it works fine.

Thank you!