Total Posts

Two questions really..Firstly, is there a tag that will output on the main page the total number of posts from all Categories/Forums combined. I've looked in the stats section of the admin panel for a tag of some sort but cannot work it out. Secondly is it possible to have a login box on say the front page of a website in a html / shtml document with Who's online etc.. a bit like what you can do with UBB???

Yes on the first question. If you go to Tools, Stats, you can see an entire list of prebuilt statements and what they extract. Click on "Source" to bring up the html.

Total posts is:

<%GForum::Stats::posts_total%>

Total threads is:

<%GForum::Stats::posts_threads%>

Then you just have to muck about with the category_list.html template.

Regarding your second question, I have no idea. The best I've been able to do so far is put members/total posts onto my main page, I'd be curious to see how a login would be done. Who's online wouldn't be hard though I don't think.

Here's how I present the Total Threads/Total Posts on my category_list template:

As for the second question, it's quite easy to do. What you need, at a minimum, is the following HTML:

Code:

<form method="POST" action="/path/to/gforum/gforum.cgi">

<input type="hidden" name="login_attempt" value="1">

<input type="text" name="login_username">

<input type="text" name="login_password">

<input type="submit" value="Login to forum!">

</form>

Of course, jazzing it up a little wouldn't hurt

'login_attempt' strictly isn't needed, but if they enter an incorrect password it'll take them to GForum's login screen; without it they will go straight to the index page as a guest if using an invalid username/password. Jason Rhinelander Gossamer Threadsjason@gossamer-threads.com

Do you mind if I ask how you got your stats to appear on your front page...It's exactly what I'm trying to do. I've managed it on several pages within GT Forum and sorted out the front end Login but still can't get the stats to work....

Gossamer Threads is a Vancouver-based company with over 23
years experience in web technology. From development to hosting, we
partner with leading organizations around the globe and help to build
their web presences, strategies and infrastructures.