vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Board Optimization - Plugin Based Template Cache (https://vborg.vbsupport.ru/showthread.php?t=121876)

Kihon Kata 12-25-2006 01:07 PM

Orban, you rock. Thanks for the updated template_cache.php. I have tested this on two template changes and it worked fine. I even tested it on Locigian's webTemplates and it worked fine after I updated them.

Thanks for working on Christmas Day and Merry Christmas to you

orban 12-25-2006 03:17 PM

Quote:

Originally Posted by RS_Jelle (Post 1144871)
Include also works if you add ./, I understand your opinion about moving servers etc.

So it would become:
PHP Code:

include_once('./template_cache.php'); 


The product.xml has "include_once" in the two admin_ hooks and just a single "include" in the style_fetch which shouldn't be called twice in any occasion anyway...hmmm...


Quote:

Originally Posted by RS_Jelle (Post 1144871)
Another small suggestion: add the version check system and an url to the product xml, that's easier to manage the products on your site.

Gonna have a look. Maybe. :)

gothicuser 12-26-2006 06:02 AM

Orban, did you have a chance to look into the vBAdvanced problem mentioned HERE?
This mod is really great, but because we use vBA is untennable at the moment.
Works perfectly from within the 'forum' folder, and has no problem whatever with the few other hacks we have installed (Zoints local/DownloadsII/VBSEO Sitemapper/GARS/GAL)

Thankyou for your time

orban 12-26-2006 08:37 AM

Did you try to set the "Full Path to the Template/ Folder" option? Enter an absolute path.

gothicuser 12-26-2006 10:10 AM

Quote:

Originally Posted by orban (Post 1145198)
Did you try to set the "Full Path to the Template/ Folder" option? Enter an absolute path.

Yes, I did that. One question though, does it need the trailing slash (as in /home/public_html/fred/forum/ ?)

I also notice that it is falling over only on the 'Header/Navbar' replacements that are entered into the vBAdvanced settings. e.g. I have entered replacements for obvious files such as login.php, private.php, memberlist.php etc. and when the template_cache is enabled these links do NOT function (they try to use the 'root' path). I have NOT entered replacements for the gallery or external FAQ installations, but these links DO work.

Clear as mud?? tell me about it :confused:

Thankyou very much for your prompt reply.

orban 12-26-2006 10:24 AM

Quote:

Originally Posted by gothicuser (Post 1145220)
Yes, I did that. One question though, does it need the trailing slash (as in /home/public_html/fred/forum/ ?)

I also notice that it is falling over only on the 'Header/Navbar' replacements that are entered into the vBAdvanced settings. e.g. I have entered replacements for obvious files such as login.php, private.php, memberlist.php etc. and when the template_cache is enabled these links do NOT function (they try to use the 'root' path). I have NOT entered replacements for the gallery or external FAQ installations, but these links DO work.

Clear as mud?? tell me about it :confused:

Thankyou very much for your prompt reply.

It's because many addons use run-time str_replace of templates (don't ask me why).
Yes, trailing slash.

/home/public_html/fred/forum/templates/

Brew 01-01-2007 09:58 PM

Is there a way to get this mod to work with mods that change messages posts?

Specifically this mod:

BBcode Manager 1.32 : New looks for your quote, html, php and code bbcodes !
https://vborg.vbsupport.ru/showthread.php?t=120073

The author of that mod has left it orphaned so I won't get any help there....so I am hoping that something can be done through this mod to make it compatible.

(crossing my fingers)

The problem seems to be that because the message is getting cached it won't allow the new graphics in the above mentioned mod. I'm not really sure why though.

Thanks!

orban 01-02-2007 07:43 AM

Exclude the following templates in the template cache settings:

bbcode_quote
bbcode_code
bbcode_highlight
bbcode_php
bbcode_html

Brew 01-02-2007 01:51 PM

Quote:

Originally Posted by orban (Post 1149006)
Exclude the following templates in the template cache settings:

bbcode_quote
bbcode_code
bbcode_highlight
bbcode_php
bbcode_html

Thank you for going through the hassle for this Orban :)

I tried butting the above in the "Exclude Templates" box in the template cache system but the image quotes still are not displayed.

Again, thanks!

Brew 01-02-2007 05:17 PM

There's another incompatibility :(

After enabling your template cache the "Count of unread posts in the welcome box" stopped working....The hack is here:
https://vborg.vbsupport.ru/showthread.php?p=1149261

Thanks again for your help!


All times are GMT. The time now is 12:58 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.01418 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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