Gossamer Forum
Quote Reply
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???
Quote Reply
Re: [David_D] Total Posts In reply to
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:


Total threads is:


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:


And the simplistic stats on my main site page:

http://www.heavybombers.com (top of page in box)

Last edited by:

heavybombers: Jan 18, 2002, 6:53 AM
Quote Reply
Re: [David_D] Total Posts In reply to
As for the second question, it's quite easy to do. What you need, at a minimum, is the following HTML:


<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!">


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

'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 Threads
Quote Reply
Re: [jagerman] Total Posts In reply to
Now if I had put some thought into it, I could have come up with that. Crazy

Put it into action, still working on the "jazzing it up" part.


Quote Reply
Re: [jagerman] Total Posts In reply to
Once again, many thanks.....I've off on a mission now....Smile
Quote Reply
Re: [heavybombers] Total Posts In reply to
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....