vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Show Newest PM If Unread On Forum Home (https://vborg.vbsupport.ru/showthread.php?t=82767)

burnist 06-10-2005 10:29 AM

working, nice mod :)

[high]* burnist licks install[/high]

Dan 06-11-2005 09:03 PM

A good idea to eliminate a query or two would be to do the following file modifaction. It basically caches the forumhome_pmshow template eliminating 2 queries if I remember it right.

Open index.php

Find:
Code:

'forumhome_subforumbit_post',
Add After:
Code:

'forumhome_pmshow',
Enjoy!

Nice plugin btw :)

Link14716 06-12-2005 12:37 AM

Quote:

Originally Posted by Dan
A good idea to eliminate a query or two would be to do the following file modifaction. It basically caches the forumhome_pmshow template eliminating 2 queries if I remember it right.

Open index.php

Find:
Code:

'forumhome_subforumbit_post',
Add After:
Code:

'forumhome_pmshow',
Enjoy!

Nice plugin btw :)

IIRC, you can also plug in some code into fetch_userinfo to cache it.

mholtum 06-12-2005 06:03 AM

/me installs!

Nice work!

burnist 06-12-2005 08:32 AM

Quote:

IIRC, you can also plug in some code into fetch_userinfo to cache it.
what like,

PHP Code:

if (THIS_SCRIPT == "index")
     {
     
$globaltemplates = array(
     
'forumhome_pmshow'
     


I assume this is wrong and would mess something up, but is that the general idea?

eXtremeTim 06-12-2005 07:01 PM

This hack already has the code for the template catch.

Zero Tolerance 06-12-2005 09:22 PM

eXtemeTim is correct, this adds in the code to cache the template, globally however, but i doubt it would make any resource difference at all since the template is rather small.

- Zero Tolerance

fraghappy 06-17-2005 11:33 AM

I only have one suggestion: add a "Reply to PM" link down at the bottom with the other stuff. ;)

Azhrialilu 07-06-2005 08:07 AM

I loved this on 3.0.7 and now I can continue to love it on 3.5 *smiles happily*

burnist 07-16-2005 09:49 PM

been trying this on beta 4 its generating an error in the admin cp on all pages

Quote:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in *****\****\****\*****\includes\functions.php(1030) : eval()'d code on line 3
It would appear that this if from the use of the fetch_userinfo hook, but I could be wrong.

please fix it, I liked this plugin ;)


All times are GMT. The time now is 06:16 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.02321 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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