php forum
php mysql forum
php mysql smarty
 
Page 1 of 3 1 2 3 >
Topic Options
#35888 - 01/09/00 07:45 AM Total Posts in Ultimate.cgi
Dave# Offline
Member

Registered: 01/09/00
Posts: 78

   Total Posts in Ultimate.cgi to Del.icio.us Add to del.icio.us
  Digg Total Posts in Ultimate.cgi Digg it
Total Posts in Ultimate.cgi
Example http://cpfc.org/cgi-bin/ubbcgi/Ultimate.cgi

Files to edit: Ultimate.cgi
Versions: tested on 5.39

Right after the require files statements add
Quote:
quote:


next insert $TotPosts anywhere in the $MemberLine

heres mine
Quote:
quote:

Top
#35889 - 01/09/00 08:04 AM Re: Total Posts in Ultimate.cgi
Menno Offline
Junior Member

Registered: 03/20/01
Posts: 200
A delicious hack, if I may say so

------------------
Cougar's here, so have no fear
Webmaster of www.artbeast.de

Top
#35890 - 01/09/00 08:23 AM Re: Total Posts in Ultimate.cgi
Dave# Offline
Member

Registered: 01/09/00
Posts: 78

Top
#35891 - 01/09/00 02:27 PM Re: Total Posts in Ultimate.cgi
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
Me2Be, it worked for me on 5.40..
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35892 - 01/09/00 10:38 PM Re: Total Posts in Ultimate.cgi
Charles Capps Offline
Admin Emeritus
Resident Code Hacker

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
You'll prolly need to change your Members path....
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
#35893 - 01/09/00 10:57 PM Re: Total Posts in Ultimate.cgi
Charles Capps Offline
Admin Emeritus
Resident Code Hacker

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
Something just hit me...

This is going to be inaccurate. What about boards that prune? They'll have an artificially inflated post count.

The total number of posts EVER made (through profiles) shouldn't be counted - the total number of posts, PERIOD, should.
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
#35894 - 01/10/00 04:25 AM Re: Total Posts in Ultimate.cgi
Dave# Offline
Member

Registered: 01/09/00
Posts: 78
It says total posts not total active posts

Top
#35895 - 01/10/00 10:41 AM Re: Total Posts in Ultimate.cgi
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5115
Loc: Portland, OR, USA
damn, i tried that, and it worked, but said i had one regestered user, i'm alll WTF?!? anyone help?
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#35896 - 01/11/00 07:10 AM Re: Total Posts in Ultimate.cgi
Parker Clack Offline
Member

Registered: 01/11/00
Posts: 98
Loc: Midwest Missouri
This is a great hack but is there anyway to give you just the number of posts that are still active?

Ulimate.cgi gives you the total number of posts for each category. Is there anyway to just add these totals up and then display them as one number?

I have totals of over 500,000 and it takes about 2 minutes for the server to return a total as it is written.

Thanks,
Parker

Top
#35897 - 01/12/00 12:49 AM Re: Total Posts in Ultimate.cgi
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
I've been asked this before.
Again, it IS possible, but I personally don't know how to do this, since I'm not that good at perl, and haven't learned UBB all the way yet
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#35898 - 01/12/00 01:00 AM Re: Total Posts in Ultimate.cgi
Charles Capps Offline
Admin Emeritus
Resident Code Hacker

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
I'm working on it, but it's actually a bit harder than I thought... *L*
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
#35899 - 01/12/00 01:57 AM Re: Total Posts in Ultimate.cgi
Charles Capps Offline
Admin Emeritus
Resident Code Hacker

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
http://flare.solareclipse.net/accurateposts.txt

100% accurate. Counts the posts and topics in all OPEN forums.

You can place the blurb elsewhere in Ultimate.cgi, but it may not perform as advertised... *L*
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
#35900 - 01/12/00 08:20 AM Re: Total Posts in Ultimate.cgi
Dave# Offline
Member

Registered: 01/09/00
Posts: 78

Top
#35901 - 01/14/00 10:18 AM Re: Total Posts in Ultimate.cgi
Parker Clack Offline
Member

Registered: 01/11/00
Posts: 98
Loc: Midwest Missouri
Charles:

Great hack as usual. Just what I was looking for. Works like a charm. The only other thing that would be great to add is the ability to show you the total number of posts that have been made in the last 24 hours too.

You really should submit this to Ted to include in the release version.

Thanks again for a great hack.

Parker

Top
#35902 - 01/14/00 03:21 PM Re: Total Posts in Ultimate.cgi
Charles Capps Offline
Admin Emeritus
Resident Code Hacker

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
Well, this particular version of the hack is a bit more intense than Dave's, and would add enough load to the stock UBB to make it a 'problem'...

I'll see what I can do about the past 24 hours... I might need to rework the Today's Active Topics bit.
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
#35903 - 01/15/00 02:02 AM Re: Total Posts in Ultimate.cgi
Parker Clack Offline
Member

Registered: 01/11/00
Posts: 98
Loc: Midwest Missouri
Charles:

I have a fairly large site with 9,300 members so your hack works for our site better as I really only want to see the active message count and not a total of all the messages that have been posted. This takes, on our board, about 2 minutes to compile as its total is about 500,000.

Parker

Top
#35904 - 01/15/00 03:42 AM Re: Total Posts in Ultimate.cgi
Menno Offline
Junior Member

Registered: 03/20/01
Posts: 200
great hack, charles

------------------
Cougar's here, so have no fear
Webmaster of www.artbeast.de

Top
#35905 - 01/21/00 01:04 PM Re: Total Posts in Ultimate.cgi
RageAgnst Offline
Member

Registered: 01/21/00
Posts: 32
Loc: Saint Louis, Missouri - USA
Im not sure where this hack pulls its information from, but it shows me having a total of 10 posts when I only have 1 post total on my site?? Where is it getting its info?

Thanks,

------------------
Chris Miller
http://www.webtrixter.com/
_________________________
Chris Miller
http://www.webtrixter.com/

Top
#35906 - 01/21/00 02:23 PM Re: Total Posts in Ultimate.cgi
Charles Capps Offline
Admin Emeritus
Resident Code Hacker

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
Rage: Be sure that you're counting the number of POSTS, not threads.

Me2Be: It will count ANY forum that is ON. If the forum is off, it won't be counted.
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
#35907 - 01/21/00 04:01 PM Re: Total Posts in Ultimate.cgi
RageAgnst Offline
Member

Registered: 01/21/00
Posts: 32
Loc: Saint Louis, Missouri - USA
Ha! I just figured out my problem. The file 000001 or whatever that is my members folder had me listed as having posted 8 topics. (I probally have but i have deleted them cause they were just tests) Thats why it was showing 10!

Thanks all!

------------------
Chris Miller
http://www.webtrixter.com/
_________________________
Chris Miller
http://www.webtrixter.com/

Top
Page 1 of 3 1 2 3 >


Top Posters Last 30 Days
AllenAyres 18
Gizmo 12
sirdude 6
GEN 3
tackaberry 2
Philipp 2
willing 2
Who's Online
0 Registered (), 36 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
[7.2.1] - Naked shoutbox
by Iann128
08/22/08 07:27 PM
Nice Ajax Chat
by M4D
08/21/08 10:02 PM
51-card NVIDIA folding rig cranks out 265,200 ppd
by AllenAyres
08/13/08 10:10 PM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.x] AddThis - Social Networking
by Gizmo
08/01/08 01:30 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
Newest Members
welcomeback1, Paug, Tim Keating, anscers, Murphdog
13324 Registered Users

 

 

 
fusionbb message board php hacks