Author |
Message |
Topic: best way to build a multi-language site with smarty |
mcdronkz
Replies: 210
Views: 1206250
|
Forum: 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
|
Forum: 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
|
Forum: 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
|
Forum: 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
|
Forum: General Posted: Wed Apr 26, 2006 7:56 am Subject: Array Problem |
JOIN worked fine for me, thanks ! First time I used it |
Topic: Array Problem |
mcdronkz
Replies: 2
Views: 5520
|
Forum: 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
|
Forum: 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
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
|
Forum: 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 ... |
|