Activity Stats Mod & Whois Online Block
Posted: 2. November 2008 06:53
I was able to incorporate the Activity Stats Mod into the whois_online.html portal block.
However, I wanted to prevent anybody other than moderators to view the detailed stats. In index.php, I included "<!-- IF not S_IS_BOT and U_MCP -->" to accomplish this. However, when I use the same IF statement in whois_online.html, it doesn't seem to recognize U_MCP even though it seems to be defined in portal.php. If I delete the "and U_MCP" part, the activity stats show up. Also, I am certain I have moderator access as well as being admin.
Am I overlooking something?
However, I wanted to prevent anybody other than moderators to view the detailed stats. In index.php, I included "<!-- IF not S_IS_BOT and U_MCP -->" to accomplish this. However, when I use the same IF statement in whois_online.html, it doesn't seem to recognize U_MCP even though it seems to be defined in portal.php. If I delete the "and U_MCP" part, the activity stats show up. Also, I am certain I have moderator access as well as being admin.
Am I overlooking something?