Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 12 matches
Smarty Forum Index
Author Message
  Topic: ? on table_foreach and advanced td attributes
BenFromTokyo

Replies: 4
Views: 10493

PostForum: Plugins   Posted: Sun Mar 13, 2005 12:44 pm   Subject: html_table
Dear Jake,

You can escape the quotations with \ (antislash):

td_attr=" onmouseover = \"this.className='over_class3'\""


I have tested it and it worked fine.

As per cy ...
  Topic: table_foreach
BenFromTokyo

Replies: 0
Views: 6179

PostForum: Plugins   Posted: Sat Feb 26, 2005 6:13 am   Subject: table_foreach

<?php
require_once("Smarty.class.php");
$smarty = new Smarty();
$smarty->compile_dir = '../../inc/smarty/templates_c/';
$smarty->template_dir = './';
$image ...
  Topic: Error message in conf file... best practice ?
BenFromTokyo

Replies: 2
Views: 11616

PostForum: Tips and Tricks   Posted: Fri Jan 07, 2005 10:42 am   Subject: and the magic code is:
ok it was not so terrible:


{config_load file="messages.conf"}
{assign var=msg value=$smarty.config.$msg_code}
error = {$msg}


hope it will help some ...
  Topic: Error message in conf file... best practice ?
BenFromTokyo

Replies: 2
Views: 11616

PostForum: Tips and Tricks   Posted: Fri Jan 07, 2005 9:48 am   Subject: Error message in conf file... best practice ?
Hi all,
I would like to use the following pattern:

index.php:
<?php
$smarty->assign("msg_code","TOO_BIG");
?>
message.conf:

TOO_BIG = "The file size is limited to 10 Mb.&qu ...
  Topic: Dynamic Table Columns
BenFromTokyo

Replies: 17
Views: 324250

PostForum: Tips and Tricks   Posted: Fri Jan 07, 2005 5:41 am   Subject: New plugin for advanced html tables
Hi everyone,
I have just posted a(noter) plugin for advanced html tables:

table_foreach - The beauty of foreach with the power of html_table... (smarty code inside each cell as with foreach / $ite ...
  Topic: bug with inner param in html_table ?
BenFromTokyo

Replies: 3
Views: 7468

PostForum: Bugs   Posted: Thu Jan 06, 2005 9:37 am   Subject: bug with inner param in html_table ?
Hi,
Thank you for your quick reply, but it still does not work for me. This is quite weird...

I use Php 4.2.4 and Smarty 2.6.3

Here is all my code:

<?php
require_once("Smarty.class.php") ...
  Topic: Plugin at WIki
BenFromTokyo

Replies: 3
Views: 10932

PostForum: Plugins   Posted: Thu Jan 06, 2005 6:24 am   Subject: I want to share my plugin!!!
Hi,
1) Set your user Preferences to set your username

What is the username to use when saving the preferences ?

The autentification box says username = topic of this wiki, leave password blank ...
  Topic: bug with inner param in html_table ?
BenFromTokyo

Replies: 3
Views: 7468

PostForum: Bugs   Posted: Thu Jan 06, 2005 5:15 am   Subject: bug with inner param in html_table ?
Hi,
Either I don't understand the "inner"param or there is a bug :

I get twice the same result here :

<?php
for($i=0;$i<13;$i++)
{
$array

{html_table loop=$array inner=' ...
  Topic: how to submit a plugin ?? [mb_trim trim modifiefor Japanese]
BenFromTokyo

Replies: 1
Views: 9091

PostForum: Plugins   Posted: Fri Dec 17, 2004 4:57 am   Subject: how to submit a plugin ?? [mb_trim trim modifiefor Japanese]
Hi all,
I would like to submit this modifier into the wiki plugins .
I did not have time to find out how to do that...
cheers,
Ben

<?php
/**
* Smarty plugin
* @package Smarty
* @subpa ...
  Topic: default function for all variables
BenFromTokyo

Replies: 2
Views: 8341

PostForum: Smarty Development   Posted: Fri Oct 15, 2004 5:45 am   Subject: Thanks !
It works great !
  Topic: while loop/ {section}
BenFromTokyo

Replies: 3
Views: 4910

PostForum: General   Posted: Fri Oct 15, 2004 5:42 am   Subject: What output do you get ?
does fair_id show up ?

what do you get with print_r($fare) in php after your while{}
  Topic: default function for all variables
BenFromTokyo

Replies: 2
Views: 8341

PostForum: Smarty Development   Posted: Fri Oct 15, 2004 4:07 am   Subject: default function for all variables
Hi,
I would like to use nl2br with all my variables in my template.
Is there a way to do this ?
Thanks for your help,
Ben
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP