Author |
Message |
Topic: New Smarty function: substring (code included) |
jotango
Replies: 1
Views: 137501
|
Forum: Feature Requests Posted: Wed Dec 13, 2006 12:41 pm Subject: New Smarty function: substring (code included) |
Hello,
we needed substr in our application, so we built a 1:1 wrapper for the PHP substr function. Perhaps its useful for someone else.
Best regards
Jan
<?php
/**
* Smarty plugin
... |
Topic: Cachebuster function |
jotango
Replies: 1
Views: 4464
|
Forum: General Posted: Fri Nov 03, 2006 10:45 am Subject: Cachebuster function |
Hello,
I wrote a function which is essentially a wrapper for mt_rand.
I often need to include web bugs or other images and make sure the image is not loaded from the cache. I include a random nu ... |
Topic: Possible Bug & Fix in GoogleMapsAPI |
jotango
Replies: 1
Views: 6920
|
Forum: Add-ons Posted: Fri May 19, 2006 10:55 pm Subject: Oops, another bug |
When I run the .tpl straight out of the box I get an error because of the { } brackets in the header. The JS section needs to be enclosed in {literal} to stop Smarty from breaking. |
Topic: Possible Bug & Fix in GoogleMapsAPI |
jotango
Replies: 1
Views: 6920
|
Forum: Add-ons Posted: Fri May 19, 2006 10:53 pm Subject: Possible Bug & Fix in GoogleMapsAPI |
Hi,
I'm using GoogleMapsAPI Version 2.0 - April 27th, 2006.
When I run it straight out of the box using the example code I get
Notice: Undefined variable: _output in /XXX/include/GoogleMapA ... |
Topic: Formcat 1.01 (client-side validation plugins) Released. |
jotango
Replies: 11
Views: 83082
|
Forum: Add-ons Posted: Thu May 18, 2006 9:04 am Subject: justto.com refuses connections |
I would like to try this plugin, but can't download it, host seems to be down |
Topic: Caching of included templates |
jotango
Replies: 1
Views: 5280
|
Forum: General Posted: Tue Mar 28, 2006 11:21 pm Subject: Caching of included templates |
Hello,
I have set up our pages in a way that the .php file calls a template (filetoshow.tpl). Inside this template at the top I include the header.tpl, on the left the menu.tpl in the middle I writ ... |
Topic: New modifier for Smarty |
jotango
Replies: 4
Views: 13292
|
Forum: Smarty Development Posted: Thu Feb 16, 2006 4:18 pm Subject: Re: one more thing |
Interesting, but personally, I think it's easier to handle this in my dataobjects so that I just have 1 place to change it if the scheme changes.
<a href="{$dvd->getURL() ... |
Topic: New modifier for Smarty |
jotango
Replies: 4
Views: 13292
|
Forum: Smarty Development Posted: Wed Feb 15, 2006 4:14 pm Subject: one more thing |
all this does is build the text. You'll have to build the url, htaccess etc. for yourself. I typically do something like
<a href="dvd_{$dvd.title|seo_url}_{$dvd.id}.html ... |
Topic: New modifier for Smarty |
jotango
Replies: 4
Views: 13292
|
Forum: Smarty Development Posted: Wed Feb 15, 2006 4:09 pm Subject: New modifier for Smarty |
We use a custom modifier at
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
* @author fabian.jager@hitflip.de
* @author jan@hitflip.de
*/
/**
* Smarty regex_replace mo ... |
Topic: Sorting an array in Smarty |
jotango
Replies: 1
Views: 5724
|
Forum: General Posted: Thu Feb 02, 2006 5:28 pm Subject: Sorting an array in Smarty |
Hello,
like probably everyone else, I have tables in my app which are sorted by clicking on the headers.
Currently all the resorting is done inside the php code. This seems a bit unnecessary, as ... |
Topic: Caching just a few pages |
jotango
Replies: 1
Views: 4405
|
Forum: General Posted: Thu Oct 27, 2005 1:50 pm Subject: Caching just a few pages |
Hello,
I run a large, dynamic site. Activating caching on all pages just hasn't worked for us ("foreign" content showing up in user session etc.). Luckily, maybe 70% of our impressions are on one o ... |
Topic: Feature for Debug Window |
jotango
Replies: 3
Views: 13718
|
Forum: Feature Requests Posted: Tue Aug 30, 2005 7:23 pm Subject: Feature for Debug Window |
No, not really. Zend seemed a bit expensive right now. Can you recommend one? That would be very helpful!
Thanks! |
Topic: Feature for Debug Window |
jotango
Replies: 3
Views: 13718
|
Forum: Feature Requests Posted: Tue Aug 30, 2005 7:15 pm Subject: Feature for Debug Window |
I really like the feature that shows me how long the various parts of the template took to load (e.g. files). However, this level of detail is not enough and I frequently resort to microtiming stuff. ... |
|