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 8 matches
Smarty Forum Index
Author Message
  Topic: best way to build a multi-language site with smarty
mcdronkz

Replies: 210
Views: 1206250

PostForum: Tips and Tricks   Posted: Sun Apr 20, 2008 12:03 am   Subject: best way to build a multi-language site with smarty
Your system looks very good, but I think it's a bit overkill for my website. I'd like to have everything as lightweight as possible (except for the templateparser), and everything is custom made and s ...
  Topic: best way to build a multi-language site with smarty
mcdronkz

Replies: 210
Views: 1206250

PostForum: Tips and Tricks   Posted: Sat Apr 19, 2008 9:15 pm   Subject: best way to build a multi-language site with smarty
I did the following for my website;

<p class="title">
{t l=en}Edition of {$smarty.now|date_format:"%d %B %Y"}{/t}
{t l=nl}Uit ...
  Topic: Friendly dates
mcdronkz

Replies: 1
Views: 10846

PostForum: Plugins   Posted: Mon Sep 04, 2006 1:38 pm   Subject: Friendly dates
Hi, this is my friendly date plugin:

<?php
function smarty_modifier_friendlydatetime($timestamp) {
$curTimestamp = time();
$difference = $curTimestamp - $timestamp;

switch($difference ...
  Topic: Variables Problem
mcdronkz

Replies: 1
Views: 4118

PostForum: General   Posted: Sat May 27, 2006 2:00 pm   Subject: Variables Problem
I have this code:


$smarty->assign("replycount".$items_result

If I'm outputting {$replycount84}, I get a Result, but {$replycount.$item.id} wont work.

Anyone knows how to fix this ?
  Topic: Array Problem
mcdronkz

Replies: 2
Views: 5520

PostForum: General   Posted: Wed Apr 26, 2006 7:56 am   Subject: Array Problem
JOIN worked fine for me, thanks ! First time I used it Embarassed
  Topic: Array Problem
mcdronkz

Replies: 2
Views: 5520

PostForum: General   Posted: Tue Apr 25, 2006 10:58 pm   Subject: Array Problem
Hello,

I got a replies table in MySQL, it includes the user id's # and replies, of course. But, I want to retrieve the username and things like that from the user table. What's the best way to do t ...
  Topic: MYSQL Loop
mcdronkz

Replies: 2
Views: 5255

PostForum: General   Posted: Wed Mar 01, 2006 7:28 pm   Subject: MYSQL Loop
Does'nt really work for me, I get the following output: N U Confused

Edit;

Did something wrong. I had this:

$content

Should be this:

$content

Works right now.

I'm figuring out now how ...
  Topic: MYSQL Loop
mcdronkz

Replies: 2
Views: 5255

PostForum: General   Posted: Tue Feb 28, 2006 8:00 pm   Subject: MYSQL Loop
I am writing a script, and I want to do it the correct way with Smarty.

This is what I have:

//haal project items op uit database
$items_sql = mysql_query("SELECT * FROM project_items WHER ...
 
Page 1 of 1
All times are GMT
Jump to:  


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