vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vb3 User Forum Activeness Hack v1.4 (https://vborg.vbsupport.ru/showthread.php?t=60100)

g-force2k2 01-11-2004 10:00 PM

vb3 User Forum Activeness Hack v1.4
 
Alright I decided to port this hack over from vb2 since it was one of my favorite hacks, but this time I did a bit more tweaking to improve its preformance and accuracy. Hack comes with auto-installer / un-installer / uses bitwise permissions / fully vbphrased.

What does this hack do?
In the user profile it displays the forum that that user is most active in, the number of posts they have made and the percentage of total posts.
It does require one extra query in the member.php when viewing profiles
Also uses bitwise permissions to check to see if users have access to that forum, which I used a cache for to prevent this hack from using two queries as it did in the past.

What to do?
Queries to run: 2
File Modifications: 2
Template Modifications: 1

Just simply upload the install_ufactive.php to the admincp directory and run the installer for the rest of the steps and information.

Comments, suggestions, etc. are always welcomed. Enjoy my 3rd vb3 hack as I've had just as much fun making it, and trying to make my hacks the best possiblem, from feature wise to performance.

See attachments for screenshots below, first one shows a user that doesn't have the right permissions to view the user's most active forum so it takes from the next most active forum, but the second screenshot shows with regular permissions as the user has permission to the forum.

Please respect my work and I would appreciate if you clicked install.

Note all upgrades are included in the new install_ufactive.php only needed if you installed before February 5th 2004 else the auto-installer has been updated.

Upgrade To 1.1 - Changes
--
MEMBERINFO template ( 1 )
member.php file ( 1 )

You can view information and the attachment on this [ HERE ] AND the information [ HERE ]

Upgrade To 1.2 - Changes
--
member.php file ( 1 )

You can view information adn the attachment on this [ HERE ] AND the information [ HERE ]

Upgrade To 1.3 - Changes
--
member.php file ( 1 )

You can view the information and the attachment by viewing this [ POST ].

Upgrade To 1.4 - Changes
--
install_ufactive.php ( 1 )
member.php ( 1 )
MEMBERINFO template ( 1 )

You can view the attachment [ HERE ] and the post information [ HERE ].

It is advised that you updated changes if you use the Firebird Browser or if you use TABLE_PREFIX on your forum. I will update the install file to include these changes shortly. Big thumbs up to Natch and buro9 for helping me sort out the issues :)

Cheers,
g-force2k2

Allan 01-12-2004 09:02 AM

thank you, nice hack :)

???`S?LV?R???` 01-12-2004 09:24 AM

nice job

squawell 01-12-2004 09:37 AM

well done:D:D

[high]* squawell clicked install[/high]

Blago 01-12-2004 03:54 PM

Nice hack! Will try later.

dede1 01-12-2004 04:28 PM

The computation is however somehow wrongly schau here:

Beitr?ge insgesamt: 1.793 (10,23 Beitr?ge pro Tag) Letzter Beitrag:Wi?t Ihr wer gestern online war?
11.01.2004 22:55
Finde alle Beitr?ge von stargate2068
Finde alle gestarteten Themen von stargate2068
Forum Activeness Statistics
stargate2068 hat in dem Forum Radio - Moderation 63 Beitr?ge geschrieben, da? sind 3513.66% aller seiner Beitr?ge.

Mijae 01-12-2004 04:29 PM

Quote:

Originally Posted by Blago
Nice hack! Will try later.

I'll install this later, definetly!

g-force2k2 01-12-2004 05:26 PM

Quote:

Originally Posted by dede1
The computation is however somehow wrongly schau here:

Beitr?ge insgesamt: 1.793 (10,23 Beitr?ge pro Tag) Letzter Beitrag:Wi?t Ihr wer gestern online war?
11.01.2004 22:55
Finde alle Beitr?ge von stargate2068
Finde alle gestarteten Themen von stargate2068
Forum Activeness Statistics
stargate2068 hat in dem Forum Radio - Moderation 63 Beitr?ge geschrieben, da? sind 3513.66% aller seiner Beitr?ge.

I don't follow exactly what you're saying, but I think I see the problem. Perhaps someone on the forum has an exagerrated post count? Don't know exactly what to think as of right now, because I can't view the profiles at your forum. Besides I am not even sure what language you're speaking, sorry.

Regards,
g-force2k2

dede1 01-12-2004 05:36 PM

I speak German

I have a test user:

User: Pr?ferr
Pass :28x09x88

http://63.246.136.220/Board/index.php?

g-force2k2 01-12-2004 05:46 PM

Quote:

Originally Posted by dede1
I speak German

I have a test user:

User: Pr?ferr
Pass :28x09x88

http://63.246.136.220/Board/index.php?

Does the German number system go by base 10 because the number is right just the decimal place is off by five places which is strange.

I would probably tweak it with a file mod since its the decimal places off.

open member.php

find:

PHP Code:

    $_activeperc round ( ( ( $_activeposts $userinfo['posts'] ) * 100 ), ) . "%" 

replace with:

PHP Code:

    $_activeperc round ( ( ( $_activeposts $userinfo['posts'] ) * 0.01 ), ) . "%" 

See if that helps the situation.

Regards,
g-force2k2


All times are GMT. The time now is 11:24 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01084 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete