Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Joined: Feb 2001
Posts: 273
Member
Member
Offline
Joined: Feb 2001
Posts: 273
Some people tried to get the total posts from the member files but these tries weren't very efficient, so I wrote a hack which displays the total posts and topics on forum home.

Name: Total Posts and Topics Hack 1.1
Description: Adds total posts and topics to forum home
By: Tovok7 < webmaster@Tovok7.de >
Date: 03-25-2001
Link: http://UBB.Tovok7.de

edit: It works now even if you have only categories displayed on your forum home and it should be working with mod_perl, now.

Sponsored Links
Joined: Sep 2000
Posts: 116
Member
Member
Offline
Joined: Sep 2000
Posts: 116
So.. This makes it so that... It tells you how many posts are on the forum, or how many are have been made on the forum total, even with pruning and such?

Joined: Feb 2001
Posts: 273
Member
Member
Offline
Joined: Feb 2001
Posts: 273
It tells you how posts have been made and how many topics exist on the entire board.

You can see it in action here http://www.the-predator.de/users/ubs/cgi-bin/ultimatebb.cgi
This hack uses existing wordlets, so on my Board the german words are "Beiträge and Themen" instead of "posts and topics".

[ March 25, 2001: Message edited by: Tovok7 ]

Joined: Feb 2001
Posts: 15
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 15
looks nice, ill test it out.

Joined: Feb 2001
Posts: 143
Member
Member
Offline
Joined: Feb 2001
Posts: 143
Hey Man, well done!
THX for that.
I use it now.
laugh
cu

Sponsored Links
Joined: Feb 2001
Posts: 15
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 15
looks nice, ill test it out.

Joined: Mar 2001
Posts: 335
Member
Member
Offline
Joined: Mar 2001
Posts: 335
it don't work!!!!

EDITED OUT BY MM.
NOT NEEDED

i pasted that into ubb_forums_summery.cgi from my cgi-bin/ubb directory, nothing shows up on the main page!

i have the ICQ/AIM addon, news fader, Custom font/Glow, please HELP! (i have UBB 6.0)

[ March 25, 2001: Message edited by: MasterMind ]

Joined: Feb 2001
Posts: 273
Member
Member
Offline
Joined: Feb 2001
Posts: 273
I think U forgot to clear your cache!
Please edit you last post and remove the code block!

Joined: Mar 2001
Posts: 64
Member
Member
Offline
Joined: Mar 2001
Posts: 64
great work tivok7
but i've got one question..
how can u insert TOTAL for the posts and topic
wordlets?

Joined: Feb 2001
Posts: 273
Member
Member
Offline
Joined: Feb 2001
Posts: 273
NutZFTP, U want to have it written like this: Total Posts: 10 Total Topics: 15 ???
If yes do that:
Serch in your hacked file for:
Code
code:
replace it with:
Code
code:

Can some moderator please edit CNCR[CR]'s post and remove the code block?

Sponsored Links
Joined: Mar 2001
Posts: 37
Member
Member
Offline
Joined: Mar 2001
Posts: 37
ahh! remove that block of code! the spacing is pissin me off!


Nice ezboard... for me to poop on!
Joined: Feb 2001
Posts: 169
Member
Member
Offline
Joined: Feb 2001
Posts: 169
Thank you guy, really apperciate it ! Works fine here wink
Here is an example of Italian version: http://www.inpiega.com/

Bye
Rutto

Joined: Aug 2000
Posts: 1,083
Kahuna
Kahuna
Offline
Joined: Aug 2000
Posts: 1,083
Works great on my boards too. Man someone edit that post...


.::First place winner in the June 2001 Member Spotlight ::.
.::Zelda Xtreme::.
Joined: Feb 2000
Posts: 64
Member
Member
Offline
Joined: Feb 2000
Posts: 64
thanx, worked liek a charm

Joined: Feb 2001
Posts: 127
Member
Member
Offline
Joined: Feb 2001
Posts: 127
perfecto

Joined: Feb 2001
Posts: 41
Member
Member
Offline
Joined: Feb 2001
Posts: 41
works perfect
again some nice work from you

thnx
life long and ( you know )

Grtx
Wizkid

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
It doesn't work if you're only displaying Categorys on the main page, how can this be fixed?

Joined: Feb 2001
Posts: 273
Member
Member
Offline
Joined: Feb 2001
Posts: 273
Hmm... you're right maybe I gonna fix it in a later release!

Joined: Mar 2001
Posts: 335
Member
Member
Offline
Joined: Mar 2001
Posts: 335
that suxz, wot was the point in releasing it? loads of ppl use categorieS!

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
CNCR - Because he probably didn't realize it, take it easy.

Also, it would be nice to be able to use the $AllPosts and $AllTopics variable anywhere on the public_forum_summary.pl page.

Joined: Dec 2000
Posts: 26
TOC Offline
Junior Member
Junior Member
Offline
Joined: Dec 2000
Posts: 26
HI

nice work...

how can edit the code to look like this

Total Posts: 10000 | Topics: 1100 | Registed Members: 10000
Greetings to your .....

could you add:

- How many postings today
- How many forums are activ

Forums: 20 | New Postings today: 200 | Total Posts: 10000 | Topics: 1100 | Registed Members: 10000

keep one doing good work!!!
Greetings
TOC

Joined: Feb 2001
Posts: 273
Member
Member
Offline
Joined: Feb 2001
Posts: 273
Quote
quote:
I tried to make my hacks as simple as possible, the changes you requested would take more code and more work.
But the major problem I see is the mod_perl issue. The only thing I know 'bout it is that all variables have to be declared before using. (oops I forgot that in my EditTime Hack 1.0)
If someone tells me what I have to heed with mod_perl or that this hack shouldn't be compatible with mod_perl, I will try to release another version this week.

TOC, currently I have no idea how to implement New Postings today: 200, but Forums: 20 is possible!

Maybe, I should put it all in a statistik situated at the end of the ubb, part of the forums table!??

[ March 26, 2001: Message edited by: Tovok7 ]

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Yes, but again remember those of us who use the 'Category Display Only' feature on the main page - we'd also like to see the stats.

Lots of hackers forget about that, things such as the original Who's Online for UBB5 screwed up with cat's only - nobody loves us =).

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Yep tovok I understand, I have run into problems trying to incorporate your hack into my News Fader hack, so that's why I asked. Can't seem to use the variables anywhere but where you have them.

Joined: Mar 2001
Posts: 5
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 5
Great job, testing it out now!!
Works great m8!! laugh wink smile

Joined: Feb 2001
Posts: 273
Member
Member
Offline
Joined: Feb 2001
Posts: 273
Ok, I gonna start to get this hack working with categories, now.

Slurpee, can you explain the exact problem with the Newsfader Hack?
But nevertheless I try to make the variables working everythere on form home.

There is still the mod_perl problem! Anyone may tell me what I have to do to make this hack compatible with mod_perl!

If I solved the problem with this hack I will start working on the statistik hack.

Regards
Tovok7

Joined: Feb 2001
Posts: 273
Member
Member
Offline
Joined: Feb 2001
Posts: 273
Finished, updated the download!

All those who don't want to display only categories on their forum home should stay with the old hack if it's installed already and working as desired.

Joined: Mar 2001
Posts: 335
Member
Member
Offline
Joined: Mar 2001
Posts: 335
Once again it doesnt work! geez.

- i followed the instructions.

i pasted all of

##############
# below add: #
##############

and then saved, cleared cash blah

and it still doesnt show up.

i have whos online hack, news fader hack, flag hack, and AIM/ICQ status, and custom glow.

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Tovok - I want to set an option in my News Fader hack to allow people to display the current posts and topics in their forum, so I installed your hack and tried to call the $AllPosts and $AllTopics variable from the public_forum_summary.pl template, since your hack affects the ubb_forum_summary.cgi file. Unfortunately I couldn't use the variables, as nothing showed up. Ideas?

Joined: Mar 2001
Posts: 335
Member
Member
Offline
Joined: Mar 2001
Posts: 335
i NEED this hack!

Joined: Feb 2001
Posts: 273
Member
Member
Offline
Joined: Feb 2001
Posts: 273
CNCR[CR], can you please send me your ubb_forum_summary.cgi?
I don't use these hacks and it worked on my board, with only categories displayed and without!
Currently, I can't imagine why it doesn't work frown Theoreticly it must work perfect!
Maybe it's due to the newsfader hack which both of you have installed. I gonna download this hack now and analyse it.

edit: I downloaded the News Fader V1.4Hack by Slurpee, but I can't find anything that may interfere the Total Posts and Topics Hack!
And there are other boards that get this working even with the Newsfader hack!
So, I really need the ubb_forum_summary.cgi to analyse the problem.
Slurpee, I inserted the $AllTopics and $AllPosts variables nearly everythere in my forum_summary template and they worked everthere.
It's late here in Germany, so hope to have the files tomorrow.

(Maybe someone should move this thread to beta hacks frown )

[ March 27, 2001: Message edited by: Tovok7 ]

Joined: Feb 2001
Posts: 273
Member
Member
Offline
Joined: Feb 2001
Posts: 273
Quote
quote:
No, I think that's not necessary because I took a fresh ubb_forum_summary.cgi and followed exactly my instructions from the .txt file and it worked perfectly!

You both must be exceptions, but I want to get rid of them, too.
Please send me your ubb_forum_summary.cgi to webmaster@Tovok7.de and I will check it tomorrow (my time).

Joined: Mar 2001
Posts: 335
Member
Member
Offline
Joined: Mar 2001
Posts: 335
Doesnt matter its worked, phew! smile

what do i edit from;

Posts: 10 Topics: 3

to

Total Posts: # | Total Topics: #

Joined: Feb 2001
Posts: 273
Member
Member
Offline
Joined: Feb 2001
Posts: 273
CNCR[CR], Do this in ubb_forum_summary.cgi:

Code
code:

Slurpee, I think now that you just forgot to clear your cache everytime then you try something out. It happens to me, too several times.
Hope that this will work smile

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Tovok, nope not a cache issue I have cleared it. Also people are using it in conjunction with the fader, not IN in it, like I am trying to do it. The board you gave as an example put the $AllPosts, $AllTopics as part of the $RegisteredMemberLine like in your standard hack. Maybe I am not calling it right somewhere but I'm pretty proficient with this stuff.

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Tovok,

"I don't use these hacks and it worked on my board, with only categories displayed and without!"

Does that mean you got 'Total Post & Topics' to display with 'ONLY CATS ON MAIN FORUM PAGE' = Enabled? It shouldn't work with the current version because the hack doesn't work like that, so what do you mean?

Joined: Feb 2001
Posts: 273
Member
Member
Offline
Joined: Feb 2001
Posts: 273
Slurpee, what do you mean with in it? Part of your hack?
It should work if ubb_forum_summary.cgi is called before your hack is displayed.
Did you try to put the variables in your forum_summary template? That works definitly on my board, I can set it into a HTML comment to show you.

mark99, I updated the hack (before you did your post) it works now independent from the way categories are displayed.

Joined: Mar 2001
Posts: 335
Member
Member
Offline
Joined: Mar 2001
Posts: 335
http://cncrev.virtualgn.com/cgi-bin/ubb/ultimatebb.cgi

look, i have a problem...it repeats itself.

Why?

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Tovok I got it to work, just had to call the variables in a different place on public_forum_summary.pl than I was. Thanks for all the help!

Joined: Mar 2001
Posts: 25
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 25
Thanks a lot! This hack works great on my board.

Page 1 of 2 1 2

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)