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=113002)

orban 05-18-2006 12:24 AM

Well, instead of adding

Code:

if ($badfadf)
{
$post['blabdfd'] = '234324'324'324234'34;
$do
$some
$very
$complicated
$stuff
}
else
{
$more stuff
}

to, for example, the hook "post_display_complete", you move the code to a function and just call the function "do_very_complicated_things()" in the hook "post_display_complete". The function itself is in the file plugins.php and gets include('plugins.php'); in the hook "global_start"

Robbed 05-18-2006 12:47 AM

How does it compare to this hack

https://vborg.vbsupport.ru/showthread.php?t=107615

Would it have to be unistalled?

orban 05-18-2006 11:18 AM

If you are using gzip the template compression hack is near to useless I think.

But it *should* work with it (you should be able to use both at the same time).

MissKalunji 05-18-2006 11:25 AM

Ok i get it orban
Thanks

Still chineese for me tho :(

orban 05-18-2006 11:31 AM

Hehehe :)

almqdad 05-18-2006 02:26 PM

Hello

thanks orban

I have instaled the plugin

I also have Vbulletin Template Compressor

no problem so far

Robbed 05-18-2006 03:27 PM

Quote:

Originally Posted by orban
If you are using gzip the template compression hack is near to useless I think.

But it *should* work with it (you should be able to use both at the same time).

OK, I will give it a try

Zia 05-20-2006 09:50 AM

Hello Orban,

We need a real urgent help...
The folder "Template's" chmood needed to be 777.
But our host doesnt allow 777.They are allowing 755 instead of 777.

Could we have an alternate way to install this hack using chmood 755.

Waiting for ur help.

orban 05-20-2006 10:29 AM

Is he running SuEXEC? Then even 700 is fine.

The problem is that usually PHP runs as a different user than the script is, so to write in folders they have to writeable by world.

You could also ask him to chown the templates/ folder "to PHP" so PHP can write files there.

Zia 05-21-2006 02:57 AM

Quote:

Originally Posted by orban
Is he running SuEXEC? Then even 700 is fine.

Here Is our System :
System :FreeBSD clust07-www02.powweb.com 4.11-RELEASE FreeBSD 4.11-RELEASE #0: Thu Ma i386

Quote:

Originally Posted by orban
The problem is that usually PHP runs as a different user than the script is, so to write in folders they have to writeable by world.
You could also ask him to chown the templates/ folder "to PHP" so PHP can write files there.

In our host, the host provider does'nt allow ssh. We use Flash FXP for ftp..
would u mind to provide lil.bit more help..how could we do that "to PHP" using FlashFXP ?

Waiting for ur help..

Thnx.

Edit:I search host's forum

http://forum.powweb.com/showpost.php...55&postcount=5
Quote:

As PowWeb uses SuEXECed CGI/PHP, you don't need to use these unsafe permissions of 666/777,
unless the script is badly written and checks the permission explicitly even they are not required.
Reasonable vendors should be able to correct their code without ptoblem.
Using these unsafe permissions on shared hosting is a suicidal act, with the current situation of the internet.
Can we step forward now?


All times are GMT. The time now is 09:30 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.02062 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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