2009-10-14, 11:55 PM
Here is an example of a plugin that adds titles and links to non-standard pages in MyBB's Who's Online pages (online.php)
It also uses MyBB's SEO functionality if it is enabled.
For language support you need to use my Custom Language File plugin and add your language there or create language files specific to the new pages and edit/enable the one line that loads the file.
This is a working example based on content from my own site, so it will not work with any other existing setup without edit, but it will give you a good example of how to make the Who's Online Page show something other than "Unknown Page"
An example of the language file variable that get used are
You can see a working example for my Technical Articles plugin as well as my Garage plugin
Who's Online page
http://www.pavementsucks.com/board/online.php
Tech page
http://www.pavementsucks.com/tech.php
Garage
http://www.pavementsucks.com/garage.php
It also uses MyBB's SEO functionality if it is enabled.
For language support you need to use my Custom Language File plugin and add your language there or create language files specific to the new pages and edit/enable the one line that loads the file.
This is a working example based on content from my own site, so it will not work with any other existing setup without edit, but it will give you a good example of how to make the Who's Online Page show something other than "Unknown Page"
An example of the language file variable that get used are
$l['viewing_tech_list'] = "Viewing <a href=\"../{1}\">Technical Article List</a>";
$l['viewing_garage'] = "Viewing <a href=\"../{1}\">{2}</a> Technical Article";
You can see a working example for my Technical Articles plugin as well as my Garage plugin
Who's Online page
http://www.pavementsucks.com/board/online.php
Tech page
http://www.pavementsucks.com/tech.php
Garage
http://www.pavementsucks.com/garage.php