darkrider366 Posted July 18, 2009 Share Posted July 18, 2009 Hey, i have installed phpbb forums, and i want to show how many users are online, and total members on my index page (not forums index) when i include'forum/index.php'; and echo $total_members; i get errors about session starting. All i want is to print the members, but iit wants me to start a session, and include other files like ./config and includes/....... but i dont want it to load all that crap... so can anyone make me a code that will get the information for me, without including the page. cheers. Quote Link to comment https://forums.phpfreaks.com/topic/166442-forums-count/ Share on other sites More sharing options...
The Little Guy Posted July 18, 2009 Share Posted July 18, 2009 Maybe this is what you are looking for: http://beta.phpsnips.com/snippet.php?id=22 I am not to familiar with phpbb, but you could try it. Quote Link to comment https://forums.phpfreaks.com/topic/166442-forums-count/#findComment-877712 Share on other sites More sharing options...
ldougherty Posted July 19, 2009 Share Posted July 19, 2009 My suggestion is to look at existing scripts that shows users online for phpbb and manipulate the code to meet your needs. http://www.doobdee.net/index.php?act=phpbb&resource=5 Quote Link to comment https://forums.phpfreaks.com/topic/166442-forums-count/#findComment-877793 Share on other sites More sharing options...
.josh Posted July 19, 2009 Share Posted July 19, 2009 I'm pretty sure phpbb has a certain script file included in the install that acts as an interface for main site integration. Read their documentation. Quote Link to comment https://forums.phpfreaks.com/topic/166442-forums-count/#findComment-877804 Share on other sites More sharing options...
Daniel0 Posted July 19, 2009 Share Posted July 19, 2009 I'm pretty sure phpbb has a certain script file included in the install that acts as an interface for main site integration. Read their documentation. If it's as "good" as SMF's, good luck trying to integrate it with anything. These kind of things are typically written so you will have to build your site around them and not so you can use them as a library. Quote Link to comment https://forums.phpfreaks.com/topic/166442-forums-count/#findComment-877898 Share on other sites More sharing options...
.josh Posted July 19, 2009 Share Posted July 19, 2009 I don't know what all it offers or what it takes to use it. I vaguely remember the file being called ssi.php or something along those lines and you could include it and call certain functions in it to get random things like how many users are registered on the forum, etc...but the last time i looked at it was like 4 years ago so even if I was remembering correct, that was a long time ago. Quote Link to comment https://forums.phpfreaks.com/topic/166442-forums-count/#findComment-878137 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.