Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Just got this working today. Don't know if there is a better way to code it, but the way I did it works. Basically what this does is show how many posts a user makes per day based on how long they've been a member, and it also shows how long they've been a member in days. You can put the info a user's displayed profile and into to the thread, next to their total post count. I have done both, see my links below.

http://www.vhforums.com/cgi-bin/vhlforum/ultimatebb.cgi?ubb=get_profile&u=00000002

http://www.vhforums.com/cgi-bin/vhlforum/ultimatebb.cgi?ubb=get_topic&f=9&t=000141#00 0008

Ok readme is all set up. Get it here:

Individual Poster Stats 1.0

Enjoy!

[ July 17, 2001 12:20 AM: Message edited by: Slurpee ]

Sponsored Links
Joined: Jan 2001
Posts: 75
Member
Member
Offline
Joined: Jan 2001
Posts: 75
I'm very Interested!!! Let me know if you need help with anything like testing!!!

Joined: Jul 2001
Posts: 109
Member
Member
Offline
Joined: Jul 2001
Posts: 109
"8.14 posts per day??? Geez Brett, get a life bro. laugh laugh "
- says Glenn that himself has 16,86 post pr. day

LOL laugh laugh

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Writing it up now guys. Glenn is a cool cat, he is WELL AWARE that he is a posting nut. We got one guy who averages almost 30 a day. Code should be ready in about 45 guys.

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Ok all done guys, link is in my first post.

Sponsored Links
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Is it only me or the public_topic_page.pl code is incorrect?

BTW,
Quote
quote:

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Looks good Brett, I'd like to add at least the profile piece here, that'd be cool info smile


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Well I did make one correction, but nothing to public_topic_page.pl, so let me know if something is wrong guys.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I can't find "$date_registered" and "$user_profile[7]" in public_topic_page.pl...

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Now I put the registration part of public_topic_page.pl part in ubb_lib_posting.cgi right after
Code
code:
and replaced
Code
code:
with the posts part of public_topic_page.pl and
Code
code:

In your instructions you replaced it with a Wordletâ„¢...

Hope it helped, and great mod btw smile

[ July 17, 2001 02:02 AM: Message edited by: LK ]

Sponsored Links
Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Thanks LK!

Ok I think I caught all fixes. File above should have them all. It's real late so my head probably isn't on straight and I missed something, or left something out. If I did I apologize. I had to code this different on here because my board has so many changes it doesn't even look like the stock code in parts, so that's why I had to make adjustments. I used a stock UBB 6.05 to write this readme file. So if there are problems I will address them tomorrow, but hopefully things are cool now.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Slurpee, can I post a URL to my attempt? tipsy

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Are you saying it's still screwy LK?

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Yeah wink
PM'd you the URL to the updated file

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Well in support of Slurpee, I installed it on my 6.04e based forum, which has around 31 hacks installed and it works perfectly.

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Excellent, changes made and the file aboove is updated. Should be working fine now. Like I said it was late and my ubb_lib_posting.cgi is way different than the stock one.

Thanks LK! smile

Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
Like the idea. Checked it out and works great on my test board!

Joined: Feb 2001
Posts: 251
Member
Member
Offline
Joined: Feb 2001
Posts: 251
Great Mod!!!
How can I only made it show up in the profiles, and not under each post?

Joined: Jul 2001
Posts: 81
Member
Member
Offline
Joined: Jul 2001
Posts: 81
Quote
quote:
I would think just dont do the code modified in ubb_lib_posting.cgi.

Im not sure tho.

PS: Slurpee Im not sure but isnt the vars_wordlets_mods code supposed to be

Poster_Stats_Day => "day",
Poster_Stats_Days => "days",
Poster_Stats_PerDay => "per day",

instead of

Poster_Stats_Day => q~day~,
Poster_Stats_Days => q~days~,
Poster_Stats_PerDay => q~per day~,


or does it not matter?

[ July 17, 2001 12:49 PM: Message edited by: rzeznik 787 ]

Joined: Dec 2000
Posts: 20
Junior Member
Junior Member
Offline
Joined: Dec 2000
Posts: 20
Nice hack... looks and works great smile


ICQ - 28882963
Email - [email protected]
Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Maurice - Just don't do the editing of the ubb_lib_posting.cgi file.

Rzenik - Should work either way.

Finally there is a fix guys, so MAKE SURE you do this. I have updated the readme file. If you don't, profiles of your users will display blank if a new user posts on the same day he registers.

Look for TWO instances of this. One in ubb_lib_posting.cgi and one in public_display_profile.pl:

Code
code:

Replace BOTH instances with the following:

Code
code:

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Sorry I take it all back, that last piece of code totally screwed my forum. Now once you've posted a reply it states:

Content-type: text/html
Software error:
Illegal division by zero at /home/******/************/cgi-bin/ubb2/ubb_lib_posting.cgi line 723.

Not only that but uploading from backups doesn't resolve the problem, jesus I'm screwed.

UPDATE: Well I completely removed the original hack from the four files (manually) and went back to all old code and that seemed to work. Now I'll just wait for this one to have all the more diffecult bugs resolved before trying again.

[ July 18, 2001 04:43 AM: Message edited by: mark99 ]

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Mark, try to get the new TXT and rehack ubb_lib_posting.cgi.

Joined: Aug 2000
Posts: 594
Member
Member
Offline
Joined: Aug 2000
Posts: 594
works great smile Thanks Brett


jeremiah
Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Mark - Problem has been fixed, that's why I posted above. Go back to the readme file, the fix is there. Try rehacking it, all should be fine.

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
You haven't made any OTHER changes have you since the 'updated' file you mention to have been issued above. In other words, you haven't introduced 'EXTRA' changes to it in the last 10-11 hours or so?

I say this because after the screw up with the older code this morning I downloaded the newer file and edited the readme since your instructions are quite ugly =). Added more spaces and made the 'HACK HINTS' stand out from the code, don't want to do it all again =).

Will try hacking again later.

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Mark - What do you mean my instructions are ugly? It's just find and replace bro, seems to me they are pretty clear. Anyways the problem you were having was a result of the change I made, whether you applied to correctly or not I do no know. So try it again, believe me the fix works.

Joined: Mar 2001
Posts: 74
Member
Member
Offline
Joined: Mar 2001
Posts: 74
Interfers with last post in profile, i think.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
zero, it works fine in Van Halen Forums and my forums with Last Post in Profile hack.

Joined: Mar 2001
Posts: 74
Member
Member
Offline
Joined: Mar 2001
Posts: 74
sorry it was calendar trouble i forgot about the user profile limit, hehe i was gonna change it but now u make me look like a dope laugh

Joined: Jan 2001
Posts: 75
Member
Member
Offline
Joined: Jan 2001
Posts: 75
Thanks Slurpee works like a champ!
(I used the original docs, then the update you posted)!!!

Thanks for the notes on compensating for the Active Topics Hack!!

Much appreciated!!!
laugh

[ July 18, 2001 06:26 PM: Message edited by: humble [ThC] ]

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
What I mean is that you'll have something like:

'Find me:' on the line directly above some code, but with such complex stuff on the screen it's easy to miss that.

Always good to use a lot of spaces and put '>>>>' before instruction lines. I'm going to give the hack another go today and we'll see how things are.

UPDATE: Ok as hoped, the new code works without conflict. Now to upgrade my poll system and somehow get from Who's Online 3.8d to v4 without screwing the forum.

I'll leave things 'un-edited' for a couple more days just in case readers start to report a problem.

[ July 19, 2001 10:04 AM: Message edited by: mark99 ]

Joined: Jun 2001
Posts: 62
Eel Offline
Member
Member
Offline
Joined: Jun 2001
Posts: 62
Quote
quote:
this hack did work, but only after I changed that... maybe you shuld update the zip, slurp...

otherwise, big thumbs up, as usual... will you be my valentine? wink

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Eel, it doesn't matter unless you use " in the Wordlets.

Joined: Apr 2001
Posts: 164
Member
Member
Offline
Joined: Apr 2001
Posts: 164
Awesome!!

Goals: 138 (1.74 per game) | From: Los Angeles | Acquired: May 2001 (79 days) | IP: Logged

[ July 21, 2001 01:29 PM: Message edited by: Rinkrat ]

Joined: Jul 2001
Posts: 3
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 3
The scripts says I should have this file VARS_WORDLET_MODS.CGI I can not find it anywhere on this forum can someone please help me out??? thank you.... you can also email me at [email protected]

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394

Joined: Jul 2001
Posts: 3
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 3
alright im try it out thank you....

Joined: Feb 2001
Posts: 283
Member
Member
Offline
Joined: Feb 2001
Posts: 283
slurpee..how about some way to count how many topics that person has started also?

Joined: Jan 2001
Posts: 38
Member
Member
Offline
Joined: Jan 2001
Posts: 38
Cool mod! I had no problems installing it at all! Thanks!!

Eliza

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
hatter
hatter
USA
Posts: 69
Joined: January 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)