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)
-   -   Template Cache System (https://vborg.vbsupport.ru/showthread.php?t=110144)

DementedMindz 03-12-2006 04:03 PM

is there a way to fix the uncached templates?? it still shows it for the buddy list, also i have vbshout installed and in the archieve page it shows them.... also i just installed ecdownloads and it has it in there major.... mostly every page is a uncached templates.. dont mean to be a pain just tryin to help others and myself if they have the same problem

Trigunflame 03-12-2006 04:05 PM

Quote:

Originally Posted by DementedMindz
is there a way to fix the uncached templates?? it still shows it for the buddy list, also i have vbshout installed and in the archieve page it shows them.... also i just installed ecdownloads and it has it in there major.... mostly every page is a uncached templates.. dont mean to be a pain just tryin to help others and myself if they have the same problem

USE the new code in the install.txt, and REMOVE all the files from that template_cache directory after you do so.

There should be no uncached templates for buddylist page as Im viewing it myself and its fine.

puertoblack2003 03-12-2006 04:09 PM

Quote:

Originally Posted by Trigunflame
Update:

Now caches all action templates.
The cache cleaner will not delete index.htm or index.html files.
Also updated the install.txt

PLEASE clear the template_cache directory, after you redo the modifications. The new changes cache the actiontemplates as well.

hey i updated to new i edited it and now i get this error before that the old one was fine...
Code:

Parse error: syntax error, unexpected T_VARIABLE in /home/.debit/myusername/puertotech.com/admincp/template.php on line 85

Edited: sorry should have looked above fixed it works well thank you

DementedMindz 03-12-2006 04:14 PM

that worked like a charm thanks :)

Trigunflame 03-12-2006 04:40 PM

So glad, im tired and need to rest...

puertoblack2003 03-12-2006 04:43 PM

Quote:

Originally Posted by Trigunflame
So glad, im tired and need to rest...



just noticed that the shout box disappeared..

Trigunflame 03-12-2006 04:49 PM

Quote:

Originally Posted by puertoblack2003
just noticed that the shout box disappeared..

Did you clear your template directory after you made the new modifications, make sure to do that.

Also anytime you edit/delete/add styles, templates, plugins; you need to clean the cache directory for now.

In the future I will add code to handle this automatically.

puertoblack2003 03-12-2006 05:02 PM

Quote:

Originally Posted by Trigunflame
Did you clear your template directory after you made the new modifications, make sure to do that.

Also anytime you edit/delete/add styles, templates, plugins; you need to clean the cache directory for now.

In the future I will add code to handle this automatically.

yes i did that as well it may be one of the hack you have the plugin acc. or the template compressor...don't know which one because i installed both hack this morning i even disabled them too but no luck.

just curious anybody else don't see shout box????

forte 03-12-2006 05:08 PM

Quote:

Originally Posted by puertoblack2003
yes i did that as well it may be one of the hack you have the plugin acc. or the template compressor...don't know which one because i installed both hack this morning i even disabled them too but no luck.

just curious anybody else don't see shout box????

It is the template compressor hack. You should to the thread of the compressor's and look for the fix.

puertoblack2003 03-12-2006 05:11 PM

Quote:

Originally Posted by forte
It is the template compressor hack. You should to the thread of the compressor's and look for the fix.


ok thanks will do

Obsequium 03-12-2006 06:31 PM

One thing I've noticed after running this for a while I have a large number of cron_x.db and vbshout_x.db files in my cache directory.

The Realist 03-12-2006 06:48 PM

How do you stop peeps gaining access to the template_cache without CHMOD the actual file?

And are the files harmfull if the folder is open wide security wise?

Laters

DementedMindz 03-12-2006 07:36 PM

i would at least put a index.html file in there for now this way you cant open the folder in a browser

hotwheels 03-12-2006 10:07 PM

clicks install

MentaL 03-12-2006 11:32 PM

Fantastic

http://forum.ragezone.com

Prob 1 of my fav mods up there with vbseo :)

Desihunk 03-13-2006 01:43 AM

Thanks.

/me clicks install

Trigunflame 03-13-2006 06:10 AM

Quote:

Originally Posted by Obsequium
One thing I've noticed after running this for a while I have a large number of cron_x.db and vbshout_x.db files in my cache directory.

Ya cause they are files that use templates as well due to including global.php, it shouldnt hurt anything.

Trigunflame 03-13-2006 06:11 AM

Quote:

Originally Posted by The Realist
How do you stop peeps gaining access to the template_cache without CHMOD the actual file?

And are the files harmfull if the folder is open wide security wise?

Laters

Its just template code.. nothing really "Important" is being exposed anyway. But you could stick an index.html file in there.

Trigunflame 03-13-2006 06:12 AM

Quote:

Originally Posted by mentalrz
Fantastic

http://forum.ragezone.com

Prob 1 of my fav mods up there with vbseo :)

Thanks, im glad you like ;)

DementedMindz 03-13-2006 01:56 PM

i was wondering i have vbjournal installed and since i installed this it gives a error here is the error ... Warning: Invalid argument supplied for foreach() in /global.php on line 438

and here is that line

foreach ($actiontemplates AS $k => $v)

what could i do to fix that???

hmm seemed to fix itself lol

buro9 03-13-2006 02:01 PM

Quote:

Originally Posted by DementedMindz
i was wondering i have vbjournal installed and since i installed this it gives a error here is the error ... Warning: Invalid argument supplied for foreach() in /global.php on line 438

and here is that line


foreach ($actiontemplates AS $k => $v)

what could i do to fix that???

https://vborg.vbsupport.ru/showpost....4&postcount=38

DementedMindz 03-13-2006 02:06 PM

thank you im trying it now so far so good :)

Trigunflame 03-13-2006 02:42 PM

Massive Critical Update:

Huge updates to the template cache:

1. Automatically caches any uncached templates.
2. Files are now stored as .php files to prevent easy viewing.

I strongly recommend you update ASAP.
Just follow the INSTALL.txt and go through the procedures again.

PS. Make sure to empty the template_cache directory after upgrading. Thankyou.

Thankyou,
Dusty Burns aka Trigunflame

hotwheels 03-13-2006 02:45 PM

How can i delete all of this from my database.........I finished the install of the 3 hack's listed above and it literally killed my site......I no longer am able to use shoutbox, attachment's in quickreply, photoshop images on forum home, etc...........

I really really need help trying to figure out how to get this problem resolved. All of the hack's show they are still installed on my site, but yet, none of them will appear now......

I have removed the hack's here, in reverse order and still no luck getting my forum's to work correctly......

www.insanemustangs.com username: test Password: tester feel free to have a look and see.......we really miss the shoutbox feature.

MentaL 03-13-2006 02:52 PM

Updated, no problems, noticed it now outputs as php.

http://forum.ragezone.com

Trigunflame 03-13-2006 03:02 PM

Quote:

Originally Posted by mentalrz
Updated, no problems, noticed it now outputs as php.

http://forum.ragezone.com

What do you mean exactly... the filename? .db files were open to be seen by the browser.. so i opted to change it.

PabloAM 03-13-2006 03:08 PM

Whos update??

Trigunflame 03-13-2006 03:26 PM

Update:

Update code in global.php to "Hopefully" be more compatible.
Moved the code in functions.php to the top of the function.

Trigunflame 03-13-2006 03:47 PM

Typo Update: There was a typo in the global.php edit, please re-do that step.

hotwheels 03-13-2006 11:12 PM

do you have a way that i can uninstall all 3 of these program's? I just rebuilt my entire site, and still have a these 3 showing in my software......I tried to undo them in the reverse order, but they aren't totaly gone.

vampireus 03-14-2006 03:49 AM

This is one weird thing I get. Everything is fine for a while, then get blank page on some random file, clear the cache and everything is fine, then it happens again like a cycle

Trigunflame 03-14-2006 10:02 AM

Updates:

3/14/2006 7:07am : Cleaned up the code a little bit, no need to redo the edits unless you are a perfectionist like myself ;)

Trigunflame 03-14-2006 10:05 AM

Quote:

Originally Posted by vampireus
This is one weird thing I get. Everything is fine for a while, then get blank page on some random file, clear the cache and everything is fine, then it happens again like a cycle

Thats odd... try keeping track of how long it takes for it to happen, note the file, it may be a concurrency problem..

Trigunflame 03-14-2006 11:30 AM

Large update:

3/14/2006 8:34am : Added additional file locking code as well as moved some redundant code into functions. If you have an active site I recommend that you update with the newest version.

DementedMindz 03-14-2006 03:33 PM

do you have the old install from the previous version it sucks going back in and trying to find which lines were edited without seeing the code from before????

Trigunflame 03-14-2006 03:37 PM

Quote:

Originally Posted by DementedMindz
do you have the old install from the previous version it sucks going back in and trying to find which lines were edited without seeing the code from before????

oO, its only like 4 edits

1 in global.php
2 in functions.php
1 in template.php

and unfortunately i dont have it lol, once i update my local code.. i only keep that copy.

DementedMindz 03-14-2006 03:41 PM

yeah i know its only 4 edits but i cant seem to see which code i changed i have changed it so much in the last few days lol im just not sure which code it was on the bottom of functions.php thats where im stuck lol

DementedMindz 03-14-2006 04:13 PM

ok i think i got it i compared the 2 php files with Beyond Compare to see what edits hopefully all goes well :) just cleaned the cache and checking now... maybe for future version have a update on what was in last version compared to this version??

Trigunflame 03-14-2006 07:42 PM

Quote:

Originally Posted by DementedMindz
ok i think i got it i compared the 2 php files with Beyond Compare to see what edits hopefully all goes well :) just cleaned the cache and checking now... maybe for future version have a update on what was in last version compared to this version??

A general description of what was changes is generally what everyone does ;)

DementedMindz 03-14-2006 07:45 PM

its just hard to see what was changed from the last version... maybe comment out a bottom line at the end of each code with your name on each this way its easier to go back in and edit kinda like the top of the code?


All times are GMT. The time now is 11: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.01524 seconds
  • Memory Usage 1,824KB
  • 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_code_printable
  • (15)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
  • (40)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