vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [release a minihack---personal glamour for vb2] (https://vborg.vbsupport.ru/showthread.php?t=17116)

ztsky 07-17-2001 05:11 PM

Quote:

Originally posted by webhost
ztsky

I don't know how hard it would be for you to do but the best thing would to be somehow take your hack count numbers of personalpageviews and total them up. That way you could use that number for total views of the entire site instead of using the other hack for total views. That way they would always match.

I think you misunderstand this hack's function.

webhost 07-17-2001 05:15 PM

ok then so to get the numbers to match up, I need to change the numbers below.

PHP Code:

$personal3*$userinfo[posts]+2$personal0[personalviews]; 
edit this code,you can figure your own,like
$personal$userinfo[posts]+$personal0[personalviews]; 
or: 
$personal1/2*$userinfo[posts]+$personal0[personalviews]; 


ShadowTech 07-19-2001 02:35 PM

Quote:

Originally posted by webhost
ok then so to get the numbers to match up, I need to change the numbers below.

PHP Code:

$personal3*$userinfo[posts]+2$personal0[personalviews]; 
edit this code,you can figure your own,like
$personal$userinfo[posts]+$personal0[personalviews]; 
or: 
$personal1/2*$userinfo[posts]+$personal0[personalviews]; 


the reason you are getting numbers that don't match is because of the "$personal= 2*$userinfo[posts]+$personal0[personalviews]; "

what it is doing is multiplying the number of posts a person has made .. and then adding it to the number of views their threads have had. So I think if you wanted to get the same number of views for your user totals and the board total.. you would change "$personal= 2*$userinfo[posts]+$personal0[personalviews]; " to "$personal= $personal0[personalviews]"

But, I am not a vB guru or anything.. just going by what I see in the code and applying some common sense,

webhost 07-19-2001 02:43 PM

thanks I will try it and see if it works?

webhost 08-02-2001 01:25 PM

ztsky Help Please

Will you probably know by now how everything has chnaged with the new
version of vb 2.0.3, now alot of stuff got moved from the showthread.php file to the functions.php file.
Your hack still works in the member profile section but does not in the showthread page, text shows up personalviews but no data to the right of it. Can you tell me what I need to do to fix this.

Joey:(


All times are GMT. The time now is 06:41 AM.

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.01103 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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