1
vadimv82
Template preview problem
  • 2010/6/9 7:43

  • vadimv82

  • Just popping in

  • Posts: 16

  • Since: 2008/9/9 9


When i try to preview template of a module it is blank.
Any way to preview template?

2
webmystar
Re: Template preview problem

perhaps a bug in the template. please enable the debug - on mode.

3
vadimv82
Re: Template preview problem
  • 2010/6/9 8:19

  • vadimv82

  • Just popping in

  • Posts: 16

  • Since: 2008/9/9 9


I use Xoops 2.4.4

And yes i made debug mode to be ON.
But there is no any errors.

And it is not just a single template not working, i can't preview any of templates. Means there is something wrong with template preview engine or canvas.

4
vadimv82
Re: Template preview problem
  • 2010/6/9 8:50

  • vadimv82

  • Just popping in

  • Posts: 16

  • Since: 2008/9/9 9


I made fresh install of Xampp.
PHP: 5.3.1

Fresh install of Xoops 2.4.4
Install went well, not a single warning or error.

Template preview is not working.

Anybody wanna check?

5
bjuti
Re: Template preview problem
  • 2010/6/9 14:59

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


It never worked for me :) AFAIK from the 2.0.16 or even lower version :)

6
ghia
Re: Template preview problem
  • 2010/6/9 23:08

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Try the following modification in /modules/system/admin/tplsets/main.php around lines 1200 in the
case 'previewtpl':

section :
$csscount count($css);
//+gv001 Missing start tag?
$dummylayout .= "<style>"
//-gv001 Missing start tag?
for ($i 0$i $csscount$i++) {

Move these lines
$lines preg_split("/(rn|r|n)( *)/"$xoopsTpl->fetch('file:'.XOOPS_CACHE_PATH.'/'.$dummyfile));
$xoopsTpl->clear_compiled_tpl('file:'.XOOPS_CACHE_PATH.'/'.$dummyfile);
unlink(XOOPS_CACHE_PATH.'/'.$dummyfile);

from before
foreach ($lines as $line) {
to before
include_once XOOPS_ROOT_PATH.'/modules/system/admin/tplsets/tplform.php';


7
vadimv82
Re: Template preview problem
  • 2010/6/14 8:21

  • vadimv82

  • Just popping in

  • Posts: 16

  • Since: 2008/9/9 9


Yes, it works! Thnx a lot!

Login

Who's Online

246 user(s) are online (173 user(s) are browsing Support Forums)


Members: 0


Guests: 246


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits