Users Browsing Custom Pages
#1
In creating custom pages, I wanted to keep the {$usersbrowsing}

So, I simply copied the code from showthread.php (lines 1441-1520) and inserted it into the custom PHP page. While it mostly works, it seems to not be contacting the languages files correctly; the custom pages are outside the /forum/ directory where MyBB is installed, but I tried the same configuration in the /forum/ directory with no resolve. 

https://www.dota2reborn.net/scripts/Rand...or-PHP.php

This is the only custom page I put the code on, so I could test the code and correct bugs (like this) prior to adding the code to my other pages. 

{$lang->users_browsing_thread}

In the template for showthread_usersbrowsing, there is this language bit that is used to say "Users browsing this thread". I'm also having trouble showing what the user is doing. If you hover over the name of a user, it should say what they're doing on the page and at what time. The only thing I get is the time. Also, it adds an extra comma to the end of users shown on the page for some reason.
[Image: sU7dBPH.png]
Reply


Messages In This Thread
Users Browsing Custom Pages - by Tyler E. - 2015-08-03, 03:31 AM
RE: Users Browsing Custom Pages - by dragonexpert - 2015-08-03, 04:11 PM
RE: Users Browsing Custom Pages - by Destroy666 - 2015-08-03, 09:50 PM
RE: Users Browsing Custom Pages - by Tyler E. - 2015-08-04, 01:21 AM
RE: Users Browsing Custom Pages - by Destroy666 - 2015-08-04, 04:35 AM
RE: Users Browsing Custom Pages - by Tyler E. - 2015-08-04, 09:18 PM
RE: Users Browsing Custom Pages - by dragonexpert - 2015-08-06, 03:11 PM
RE: Users Browsing Custom Pages - by Tyler E. - 2015-08-08, 03:31 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)