Displays clan members currently playing on PR:BF2 Project Reality servers
May you have recognized this sweet PRSpy widget on some PR clan websites like 3dAC and KSK.
blip2 has already started a thread about this in the restricted PR:BF2 SA Private Forums.
I just wanna reshare this project for those who are webadmins but do not hold the role PR serveradmin.
Have fun!
Example
This widget is optimized for Chromium. Please report any incompatibilities with other browsers or just do a pull request.
Standalone Version
- Copy standalone/prspy/ into the root directory of your site.
- Configure the widget settings in standalone/index.php.
Code: Select all
// refresh interval of widget in ms var interval = 30000; // you can list more than one, e.g. ["[3dAC]", "[KSK]"]; var clantags = ["[KSK]"]; // show clantag in popup before name (values: true, false) var showtag = false; // prspy data url var prspydata = '/prspy/serverdata.php'; - Copy the distinguished sections of standalone/index.php into your corresponding template page.
Joomla Module
- Run make.bat to import web files from standalone version. This is necessary to avoid duplicate files in version control which have to be adjusted twice during changes.
- Copy joomla_module/mod_prspy/ into the modules folder of your Joomla! installation.
- Acitvate and configure the settings in the administration backend.
Wordpress Plugin
- Run make.bat to import web files from standalone version.
- Copy wordpress_plugin/prspy-widget into the wp-content/plugins/ folder of your Wordpress installation.
- Acitvate and configure the settings in the administration backend.
Settings
- Clantags ([KSK],[3dAC],...) defines the clantag(s) which will be filtered.
- Show clantags (true, false) defines wether clantags are shown before names or not.
- Interval (ms) defines the refresh interval of the PRSpy widget in milliseconds.
PRSpy data url (prspy/serverdata.php) defines a relative or absolute URL to PRSpy JSON data.
Libraries (included)
Links
Contributors
- Original Concept: [3dAC] blip2
- Improvements, Joomla Module and Flags/Scores: [KSK] wenzul




