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
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: 5091
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
#35908 - 01/21/00 04:07 PM Re: Total Posts in Ultimate.cgi
Jake Offline
Junior Member

Registered: 01/19/00
Posts: 7
Yep, nice hack!

However I cant seem to get it to work. I put your code in the right place and tried to put it in like this:
Code:
code:

But it doesnt show up. Board is at http://www.wrestlingtalks.com Any ideas? BTW, it works if I put it say right below the header.

------------------
Jake Lawson
WrestlingTalks.com
_________________________
Jake Lawson
WrestlingTalks.com

Top
#35909 - 02/10/00 07:34 AM Re: Total Posts in Ultimate.cgi
KoolBear Offline
Junior Member

Registered: 06/08/01
Posts: 3
Loc: Houston, TX
Excellent Hack thanks, I did and still do have one little problem. tipsy

The last user to register isn't showing up, I well lets just say programming illeriate (sp?)

Anyway thanks for the mod and any suggestions that might solve my simple problem.

http://www.DescentBB.net

KoolBear
_________________________
KoolBear

Top
#35910 - 02/10/00 06:22 PM Re: Total Posts in Ultimate.cgi
Micah Kritzman Offline
Junior Member

Registered: 02/10/00
Posts: 17
Loc: Chtsworth, CA
Dave,

I just added this hack and I am getting an Internal Server Error.

I ran the Ultimate.cgi from a Unix prompt and I get an error message with this line:

open (MEMBFILE, "<../../Ultimate_BBS/Members/memberslist.cgi") or die ("Can't open file: $MembersPath/memberslist.cgi!");


It's telling me it can't find the users file.

My UBB is located in /cgi-bin/Ultimate_BBS
and the users directory and forum variable files are located at /Ultimae_BBS. All web based files are lcoated at /public_html/Ultiamte_BBS.

Any ideas?

Thanks

------------------
Micah Kritzman
_________________________
Micah Kritzman

Top
#35911 - 02/11/00 02:41 PM Re: Total Posts in Ultimate.cgi
Raven Steve Offline
Junior Member

Registered: 02/08/00
Posts: 2
Errr...the reason that the last person to register does not show with this hack is because it is a hack for total post count

You need the 'last person to register' hack which is on this site.

See them both in action at www.ravensnest2.com/ubb/cgi-bin/Ultimate.cgi

Steve

Top
#35912 - 02/12/00 12:24 PM Re: Total Posts in Ultimate.cgi
KoolBear Offline
Junior Member

Registered: 06/08/01
Posts: 3
Loc: Houston, TX
DOH,umm thanks Raven Steve. I knew that all alongg


------------------
KoolBear
http://wwwdescentbb.net
http://www.koolbear.com
_________________________
KoolBear

Top
#35913 - 02/13/00 10:42 AM Re: Total Posts in Ultimate.cgi
Canelo_kid Offline
Junior Member

Registered: 02/13/00
Posts: 1
Loc: Arizona
This hack is bugged, once your member total exceeds 1000 it wil cause a server error. I have posted this on other UBB hack sites and yet to get anyone to address the bug. I wish I knew how but I don't, so be warned once all the UBB boards hit 1000 members this hack will cause the Ultimate.cgi to error and make your BBS unusable until the code is removed.

Top
#35914 - 02/16/00 01:16 PM Re: Total Posts in Ultimate.cgi
KoolBear Offline
Junior Member

Registered: 06/08/01
Posts: 3
Loc: Houston, TX
Hack worked fine for me after I corrected my boo-boo.

I have over 2300 members, with no problems that I'm aware of.

Descent BB Forums
_________________________
KoolBear

Top
#35915 - 02/17/00 09:40 AM Re: Total Posts in Ultimate.cgi
pgowder Offline
Member

Registered: 02/17/00
Posts: 57
I'm trying to get this hack to work, but I get a message about my can't open my members directory. I have it in /cgi-bin/members.


thanks

Top
#35916 - 02/18/00 11:49 AM Re: Total Posts in Ultimate.cgi
az-it.com Offline
Junior Member

Registered: 02/14/00
Posts: 15
Loc: London, United Kingdom
When I installed it nothing... no problems and nothing telling me how many posts!!
http://www.xtras.az-it.com/ubbcgi/Ultimate.cgi

Top
#35917 - 02/19/00 08:55 PM Re: Total Posts in Ultimate.cgi
az-it.com Offline
Junior Member

Registered: 02/14/00
Posts: 15
Loc: London, United Kingdom
Managed to sort the problem...

http://ubbcodehacking.com/ubb/Forum7/HTML/000054.html



Patrick

Top
#35918 - 03/09/00 04:46 PM Re: Total Posts in Ultimate.cgi
Perk0314 Offline
Junior Member

Registered: 03/09/00
Posts: 5
Loc: USA
Ok, just so you all know, I'm a major newbie at this stuff. I've put in other hacks before and such, but when I put CC's in and then replace the current $MemberLine with
Code:
code:
I get a Internal Server 500 Error. HELP!!?!?!?!?!?


I used CC's code and inserted it above print <<INTROHTML;
<HTML>
<HEAD><TITLE>$BBName - powered by the Ultimate Bulletin Board</title> like I was supposed to, but ugh!

BTW I'm on 5.44a

-Thanks DPP

Top
#35919 - 03/13/00 04:04 PM Re: Total Posts in Ultimate.cgi
Perk0314 Offline
Junior Member

Registered: 03/09/00
Posts: 5
Loc: USA
Please - someone help me!

Top
#35920 - 03/28/00 10:55 AM Re: Total Posts in Ultimate.cgi
orca Offline
Junior Member

Registered: 03/24/00
Posts: 10
Loc: Lucerne, Switzerland
Code:
quote:</font><HR>Originally posted by Jake:
[b]Yep, nice hack!

However I cant seem to get it to work. I put your code in the right place and tried to put it in like this:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code:

But it doesnt show up. Board is at http://www.wrestlingtalks.com Any ideas? BTW, it works if I put it say right below the header.

[/b]<HR></BLOCKQUOTE>

Hi Jake,

Well, don't put the code above INTROHTML...
put it right above the following:

Code:
code:


After that, it will work.

------------------
Ueli von Ah

Webmaster of Arachid.org
_________________________
Ueli von Ah

Webmaster of Arachid.org

Top
#35921 - 04/11/00 10:52 AM Re: Total Posts in Ultimate.cgi
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
URL to my board: http://board.bomb.net

I tried this for my board, and i never shows the user registered correctly. I even tried registering a new user to try that. When i modify my Member path near the top i get internal server error.
heres My Member Line and sub

Code:
code:


[This message has been edited by fizz (edited April 11, 2000).]

Top
#35922 - 04/11/00 01:34 PM Re: Total Posts in Ultimate.cgi
Greg Hard Offline
Member

Registered: 02/21/00
Posts: 5533
Loc: My Room
Wonderful hack!
Easy and cool.

Top
#35923 - 04/21/00 04:40 PM Re: Total Posts in Ultimate.cgi
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
Thanks for the great and simple hack. Works like a charm!

Fred

Top
#35924 - 04/30/00 01:25 AM Re: Total Posts in Ultimate.cgi
Big Ray Offline
Junior Member

Registered: 04/02/00
Posts: 7
Loc: Wichita,Ks USA
I have 5.44b and no matter where I put the initial code, I get an ISE. I assume that Charles Capp's addon code is not a stand alone and must be implemented with Dave's original code, but the conflict that I am having is that when I put n Dave's code, where exactly am I supposed to put it?

After the substitue all required files statement? or after
"require "ubb_library.pl";"

I'm just getting the error....and I wanna get rid of it.
http://www.witnessesonline.com/cgi-bin/cgiwrap/witnessesonline/Ultimate.cgi

Top
#35925 - 05/06/00 08:38 PM Re: Total Posts in Ultimate.cgi
Big Ray Offline
Junior Member

Registered: 04/02/00
Posts: 7
Loc: Wichita,Ks USA
Nebbermind...
I got it worked out.

Top
#35926 - 05/07/00 03:13 PM Re: Total Posts in Ultimate.cgi
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
Could someone post the Total Posts Hack for version 5.44a?

Top
#35927 - 05/19/00 12:38 AM Re: Total Posts in Ultimate.cgi
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
Charles ,
Is there a way to move the accurate total posts to the members line..
I sure would like it there...
Thanx
Jumbo

Top
#35928 - 05/19/00 06:18 AM Re: Total Posts in Ultimate.cgi
jello Offline
Junior Member

Registered: 06/16/00
Posts: 1
Great HAck!, I hope i'm not off topic here but here is my question,
the front page of my site is a perl script, i would like to print the "total post hack" on my front page, does anyone have a quick idea of how i can do this?
thanks for you time,
jello http://www.dork.com

Top
#35929 - 06/04/00 07:40 PM Re: Total Posts in Ultimate.cgi
codyrush Offline
Junior Member

Registered: 06/01/00
Posts: 10
Loc: Fallbrook
Got it to work! Great hack, if anyone needs an example just visit my board:
http://www.poltz.com/cgi-bin/ubb/Ultimate.cgi?action=intro


over
cody
_________________________
http://www.poltz.com
webmaster@poltz.com

Pork: noun or verb? [ Vote now by clicking here! | View the Results ]

Top
#312557 - 01/06/07 10:24 PM Re: Total Posts in Ultimate.cgi [Re: Gizmo]
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Originally Posted By: Gizmo
damn, i tried that, and it worked, but said i had one regestered user, i'm alll WTF?!? anyone help?


some things never change wink
_________________________
Code monkey like Fritos

Top
#312559 - 01/06/07 10:39 PM Re: Total Posts in Ultimate.cgi [Re: Ian Spence]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5091
Loc: Portland, OR, USA
Sush you! lol
_________________________