Author |
Message |
Topic: {IF} {ELSE} Statements |
JasonDS
Replies: 6
Views: 47408
|
Forum: Plugins Posted: Fri Mar 09, 2007 6:30 pm Subject: {IF} {ELSE} Statements |
You should be more respectful, not everyone knows everything, get lost dumbass |
Topic: {IF} {ELSE} Statements |
JasonDS
Replies: 6
Views: 47408
|
Forum: Plugins Posted: Fri Mar 09, 2007 4:09 pm Subject: {IF} {ELSE} Statements |
You're using invalid Smarty syntax, you can't use '==', you should use 'eq'
{if $foo eq 1}
|
Topic: have a smarty something like isset() in php? |
JasonDS
Replies: 2
Views: 6027
|
Forum: General Posted: Tue Mar 06, 2007 4:01 pm Subject: have a smarty something like isset() in php? |
You can mix PHP and Smarty functions together |
Topic: Smarty error: unable to read resource |
JasonDS
Replies: 6
Views: 15629
|
Forum: Installation and Setup Posted: Wed Feb 28, 2007 4:43 pm Subject: Smarty error: unable to read resource |
<link type="text/css" rel="stylesheet" href="{#CSS_DIR#}/general.css" media="all" >
You don't need the "/"
The variable definiti ... |
Topic: opposite a negative/positive number? |
JasonDS
Replies: 2
Views: 15608
|
Forum: General Posted: Wed Feb 28, 2007 4:39 pm Subject: opposite a negative/positive number? |
The mathematical function being
abs()
|
Topic: AJAX plugins....any help?? |
JasonDS
Replies: 4
Views: 10447
|
Forum: Plugins Posted: Thu Feb 22, 2007 4:53 pm Subject: AJAX plugins....any help?? |
{literal}
<script type="text/javascript" src="js/yahoo.js"></script>
{/literal}
^^ |
Topic: Adding images problem |
JasonDS
Replies: 4
Views: 7164
|
Forum: General Posted: Tue Feb 13, 2007 9:22 am Subject: Adding images problem |
$t->assign('html_image_file', 'http://mysite.com/picture.JPG');
That's just defining a variable, you need to actually put it into play for it to do anything
{html_image file=$html_ ... |
Topic: PHP und Smarty template " IF ELSE " Problem |
JasonDS
Replies: 1
Views: 5333
|
Forum: General Posted: Sun Feb 11, 2007 9:28 am Subject: PHP und Smarty template " IF ELSE " Problem |
$tpl->display( 'whois.tpl' );
$tpl->assign( 'Domainfrei', $frei);
$tpl->assign( 'Domainbelegt', $belegt);
I think you should assign them before you display the page
Übersetz ... |
Topic: New Plugin: contains |
JasonDS
Replies: 7
Views: 43011
|
Forum: Plugins Posted: Sun Feb 11, 2007 8:54 am Subject: New Plugin: contains |
About: contains() finds the number of times a phrase is found in a string, and counts how many times it was found.
Usage: {$foo|contains:"bar"}
Optional Arguments: By default it isn't case ... |
Topic: My Framework (Rate It) |
JasonDS
Replies: 4
Views: 29529
|
Forum: Frameworks Posted: Sun Feb 11, 2007 5:06 am Subject: My Framework (Rate It) |
Ok, it's uploaded to my server at:
http://www.tibialog.net/files/Framework.zip
Have fun, I hope you find it useful
- You do not need to edit anything to test it, just upload it to your web ... |
Topic: Alternating Row Colors |
JasonDS
Replies: 8
Views: 58318
|
Forum: Tips and Tricks Posted: Sun Feb 04, 2007 2:39 pm Subject: Alternating Row Colors |
Maybe {cycle} should support more than 2 entries |
Topic: Weird template problem |
JasonDS
Replies: 3
Views: 6633
|
Forum: General Posted: Fri Feb 02, 2007 4:29 pm Subject: Weird template problem |
Maybe you are seeing linebreaks and returns? |
Topic: Smarty based Textbox problem |
JasonDS
Replies: 4
Views: 10329
|
Forum: General Posted: Fri Feb 02, 2007 4:28 pm Subject: Smarty based Textbox problem |
Section should do the trick..
{assion var='i' value=1}
{section name=tb loop=$results}
<input type="text" name="textbox_{$i++}" value=&quo ... |
Topic: Help ! How to this {array[$row][0]} ??? |
JasonDS
Replies: 5
Views: 8598
|
Forum: General Posted: Thu Feb 01, 2007 6:37 pm Subject: Help ! How to this {array[$row][0]} ??? |
If you want, you can just use PHP, you can use the {php} tag to seperate Smarty and PHP stuff
{* Smarty Stuff *}
{$foo}
{php}
/* PHP Stuff */
$foo
{/php& ... |
Topic: notempty plugin (shorthand conditional statement) |
JasonDS
Replies: 6
Views: 16877
|
Forum: Plugins Posted: Thu Feb 01, 2007 6:33 pm Subject: notempty plugin (shorthand conditional statement) |
You may want to use count_characters:
{* Example: {$foo|count_characters} *}
{if $foo|count_characters > 0}
{/if}
Also, for default just ... |
|