vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Integration with vBulletin - Smarty Integration With Vbulletin - BETA (https://vborg.vbsupport.ru/showthread.php?t=171502)

Jafo232 02-29-2008 01:24 PM

Ok, and I assume you uploaded the files to their proper places, and set the directory permissions on the templates_c folder to 777?

Could you paste the code exactly as you put it in the template here (not the entire template please).

alessai 02-29-2008 02:04 PM

yup uploaded templates_c and smarty inside the forum folder (vb) and i did set the permissions to 777
the code is
Quote:

<%php%>
echo "Hello World! The timestamp for now is " . TIMENOW;
<%/php%>

Jafo232 02-29-2008 02:27 PM

Sorry so many questions, but you did install the product file too right? And you have plugins turned on in your vbulletin options?

alessai 02-29-2008 02:52 PM

yes its activatied

p.s. ask as much as u want i really want the php thing works

GCC LLC 02-29-2008 04:10 PM

Have you had any experience using this on a load balanced server setup? I have 2 web front end servers and a shared (can use either CIFS or NFS) filesystem but when I enable this plugin, the servers all seem to slow down quite a bit. Do you know if I absolutely need to have the templates_c directory shared between all web servers? It seems that when smarty compiles to a remote filesystem that is where the slowdown occurs. I know this isn't a problem related specifically to your plugin, but thought I'd ask here anyway. BTW, my link between servers is all at 100mbps so there is plenty of bandwidth there to take care of things, but I may be limited by either the NFS or the CIFS services throughput. Your thoughts?

Jafo232 02-29-2008 04:45 PM

Quote:

Originally Posted by alessai (Post 1453716)
yes its activatied

p.s. ask as much as u want i really want the php thing works

Look in your templates_c directory, are there any files in there other than index.html?

Jafo232 02-29-2008 04:51 PM

Quote:

Originally Posted by GCC LLC (Post 1453758)
Have you had any experience using this on a load balanced server setup? I have 2 web front end servers and a shared (can use either CIFS or NFS) filesystem but when I enable this plugin, the servers all seem to slow down quite a bit. Do you know if I absolutely need to have the templates_c directory shared between all web servers? It seems that when smarty compiles to a remote filesystem that is where the slowdown occurs. I know this isn't a problem related specifically to your plugin, but thought I'd ask here anyway. BTW, my link between servers is all at 100mbps so there is plenty of bandwidth there to take care of things, but I may be limited by either the NFS or the CIFS services throughput. Your thoughts?

Hmm, probably more of a Smarty question. I am not very experienced in the load balancing area but if you want to, you can try using a local directory for the templates_c. You would have to edit the plugin code. The plugin named "Start Up Smarty", find:

Code:

$smarty->compile_dir = DIR . '/templates_c';
You can change that to whatever you wish, example:

Code:

$smarty->compile_dir = '/some/other/path/onyour/server';
Just make sure the directory is writable.

alessai 02-29-2008 05:24 PM

i found :
%%1E^1E8^1E8F45E3%%db%3Anewpost_quote.php
%%40^403^40326BD9%%db%3Aeditor_jsoptions_size.php
%%67^676^67664761%%db%3Aeditor_jsoptions_font.php

and no index file

Jafo232 02-29-2008 06:17 PM

Hmm, then it is processing it..

Can you put that PHP code in the header template and confirm it still isn't working?

alessai 03-01-2008 08:40 AM

still doesnt work,,,,
i use 3.6.8,,, is it possibe that the server disabled some things that affecting the addon ? or another addon ?


All times are GMT. The time now is 09:57 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.02229 seconds
  • Memory Usage 1,737KB
  • 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_code_printable
  • (3)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