vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Some things I need help with (https://vborg.vbsupport.ru/showthread.php?t=47143)

Mijae 12-30-2002 06:10 PM

Some things I need help with
 
I want to have the following info displayed on my forum front page:

User's Posts
User's Title
User's Registry date
User's ID
Total Members registered today
Total Forum Hits
Total Thread/Post views
Top 5 posters

I have the following hacks installed: New Statistiks, vbStats

What do I have to edit in index.php to get all the above to display?

Mijae 01-03-2003 08:13 PM

Bah, anyone? This should be easy for someone >_<

Logik 01-03-2003 08:22 PM

I think i know a few :). Im new to php so..

User id
PHP Code:

$post[userid

User number
PHP Code:

#$post[userid] 

And i uno the rest.. :ermm:

Logik 01-03-2003 08:24 PM

I could be wrong

Mijae 01-03-2003 08:46 PM

But I need the code to be placed into index.php, not the variables I have to use.

Logik 01-03-2003 08:52 PM

Oh... Uhm... Might want to ask someone else. Lol..

Dean C 01-03-2003 08:55 PM

1/ $bbuserinfo[posts]
2/ $bbuserinfo[title] (i think)
3/ requires hacking
4/ $bbuserinfo[userid]
5/ requires hacking
6/ requires hacking
7/ $totalthreads | requires hacking
8/ requires hacking

Regards

- miSt

filburt1 01-03-2003 10:20 PM

8: put this in phpinclude:
PHP Code:

if (strpos($_SERVER['PHP_SELF'], "index.php") != false)
{
    
$result $DB_site->query("SELECT userid, username, posts FROM user ORDER BY posts DESC LIMIT 5");
    
$top5 = array();
    
$shash $session['sessionhash'];
    while (
$bits $DB_site->fetch_array($result))
    {
        
$userid $bits['userid'];
        
$username $bits['username'];
        
$posts $bits['posts'];
        
array_push($top5"<a href=\"member.php?s=$shash&action=getinfo&userid=$userid\" target=\"blank\">$username</a> with $posts posts");
    }
    
$top5 implode("<br>\n"$top5);


Then put $top5 where you want the list to show up in forumhome.

Dean C 01-04-2003 11:44 AM

That adds one query - right?

- miSt

Logik 01-04-2003 07:23 PM

thats nice filburt. :)


All times are GMT. The time now is 11:10 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.01098 seconds
  • Memory Usage 1,734KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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