#1 (permalink)  
Old 02-22-2007, 07:23 PM
Registered User
 
Join Date: Nov 2006
Posts: 56
Test71 is on a distinguished road
Default IF cause template bug ?!

Hello,

this IF loop force a template bug in Smarty (blank page), please can you look to it and tell me what is wrong ?

Code:
Content visible to License Owner only.
Should be an easy IF EQ ?!

Regards
Frank
  #2 (permalink)  
Old 02-23-2007, 03:51 AM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

take off the gzip page compression in setup or application.php file and it will output an error - be easier to trouble shoot. looks fine to me as well, I always use

== instead of EQ, but other than that it looks just like a million others.
  #3 (permalink)  
Old 02-23-2007, 03:56 AM
Registered User
 
Join Date: Nov 2006
Posts: 56
Test71 is on a distinguished road
Default where ?

Hi,

where can I do that ?

By the way, I think smarty won't produce a message in case of template errors ?

Frank
  #4 (permalink)  
Old 02-24-2007, 05:21 AM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

it usually outputs an error message, if the page is blank its because of the gzip page compression./ best to turn it off when yoru troubleshooting - usually its not that useful, but at least it may give a few clues. laod application.php and change

$enable_page_compression = 1;

to

$enable_page_compression = 0;


see what happens...
  #5 (permalink)  
Old 02-24-2007, 05:23 AM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

hi again, looks like your trying to use the variable in the header? you would probably have to make the variable available for the header.

try your code in detail_link.html to see if it works their, if it does then this is probably the problem (although, no reason why it should cuase an error, this would just mean the If statment would always be false)
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Template Tag ime Templates 10 05-01-2006 12:31 PM
hot template Mythotical Templates 4 02-03-2005 02:32 PM
php in template snaip Templates 1 10-01-2004 05:31 AM
Add a template to the modify template list? abm193xc v5.x 3 04-24-2003 05:31 PM
Template csengine Templates 3 04-12-2003 08:01 PM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 06:35 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate