MyBB-Plugins Forums
online location on own new subpage - Printable Version

+- MyBB-Plugins Forums (http://forums.mybb-plugins.com)
+-- Forum: MyBB General Discussion (http://forums.mybb-plugins.com/Forum-MyBB-General-Discussion)
+--- Forum: Coding Help (http://forums.mybb-plugins.com/Forum-Coding-Help)
+--- Thread: online location on own new subpage (/Thread-online-location-on-own-new-subpage)



online location on own new subpage - Supryk - 07-01-2014

Hi

I have no idea how simple do this

i have new subpage

cards.php

PHP Code:
<?php
define
('IN_MYBB'1); 
require 
"./global.php"
 
add_breadcrumb("Cards""cards.php");
 
eval(
"\$podstr = \"".$templates->get("podstrona")."\";"); /
output_page($podstr); 
?>

if user action is "cards.php" in online.php I can see unknown location. How to change this "unknown location" to own text?
i must use fetch_wol_activity() but how?
I greet


RE: online location on own new subpage - Diogo Parrinha - 07-01-2014

You need to add a hook to the part of MyBB which processes online users. Look at my Help Center plugin for example.


RE: online location on own new subpage - Supryk - 07-02-2014

thanks it helped