vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - User's Last XX Threads + Posts in UserCP (https://vborg.vbsupport.ru/showthread.php?t=79759)

tnguy3n 04-10-2005 10:00 PM

User's Last XX Threads + Posts in UserCP
 
Last XX Threads + Posts in UserCP
Author: tnguy3n (Thinh Nguyen)
Support site: http://vbviet.org

Description:
This hack shows user's last X posts + threads in User CP. It's useful for returning users who'r away from the board, and it's give the users a briefing of their posts/threads and where they last discussing.
To change the number of post/thread display in UserCP, replace 5 with your own value in line:
$limit = 5;

Queries: none
File Mod: 1
Template Mod: 1
New template: 4
Installation Time: 4-5 mins

TTG 04-11-2005 06:04 AM

Looks like a very useful hack ..

One small error in the instructions :-

"------------------
FILE MODIFICATION:

1. OPEN .. ???"

tnguy3n 04-11-2005 06:06 AM

Oops, my bad. open usercp.php. ;)
*update 1st post*

TTG 04-11-2005 06:18 AM

Clicked install ..

No problems installing on 3.0.6

The Realist 04-11-2005 06:39 AM

Excellent, works 100% in 3.0.7 :)

Clicks Install.

Nordinho 04-11-2005 10:35 AM

quick install (on 3.03)...only the added templates don't seem to be cached ;)

tnguy3n 04-11-2005 11:15 AM

Quote:

Originally Posted by Nordinho
quick install (on 3.03)...only the added templates don't seem to be cached ;)

thanks for pointing that out. To pre-cache these new templates, in usercp.php,

FIND:
PHP Code:

    'usercp_reputationbits' 

REPLACE WITH:
PHP Code:

    'usercp_reputationbits',
    
'usercp_lastthreads',
    
'usercp_lastthreadsbit',
    
'usercp_lastposts',
    
'usercp_lastpostsbit' 


Allan 04-11-2005 11:25 AM

yeee, very nice this hack, thank tnguy3n ;)



~~~~~~~~~~~~~~~~~~~
"Click install"
~~~~~~~~~~~~~~~~~~~

vulture 04-11-2005 11:33 AM

Nice one. Works in 3.0.7
*Clicks install*

tnguy3n 04-11-2005 11:45 AM

thanks, guys. I tested this hack in 3.0.3 + 3.0.5 + 3.0.7, and I assume it would work with other versions of vb3 gold as well.


All times are GMT. The time now is 01:46 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.01214 seconds
  • Memory Usage 1,733KB
  • 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
  • (1)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
  • (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