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 57 matches
Smarty Forum Index
Author Message
  Topic: truncating at (x) amount of lines
mikeken

Replies: 2
Views: 6713

PostForum: General   Posted: Wed Aug 24, 2005 1:33 pm   Subject: truncating at (x) amount of lines
I was kinda hoping that's what it would come to. Sweet!
  Topic: truncating at (x) amount of lines
mikeken

Replies: 2
Views: 6713

PostForum: General   Posted: Tue Aug 23, 2005 3:53 pm   Subject: truncating at (x) amount of lines
Hi,
I've looked through the docs and briefly searched the forums for this but couldn't find anything.

I have a new's submission through a form on a website. That is stored in a db. I wanna be able ...
  Topic: Displaying In rows, using section
mikeken

Replies: 2
Views: 6243

PostForum: General   Posted: Sun Jul 31, 2005 12:40 am   Subject: Displaying In rows, using section
I think what's on the page is a little different than what I want.

This is what I ended up using

{section name=pictures loop=$PH_PICTURES}
{if (($smarty.section.picture ...
  Topic: Displaying In rows, using section
mikeken

Replies: 2
Views: 6243

PostForum: General   Posted: Sat Jul 30, 2005 6:48 pm   Subject: Displaying In rows, using section
Hi. I have images that I would like to display 4 in a row.. and then have 10 rows. If I have the image in the section loop, how could I do something such as print an "<br />" after every fourth ...
  Topic: filters won't run
mikeken

Replies: 6
Views: 11391

PostForum: General   Posted: Wed Jul 27, 2005 4:11 am   Subject: filters won't run
thanks messju.. I don't know how I didn't think of that.
  Topic: filters won't run
mikeken

Replies: 6
Views: 11391

PostForum: General   Posted: Tue Jul 19, 2005 1:29 am   Subject: filters won't run
I've used just an edited version of the load_filter function thats in the smart docs. Edited to fit the filter name and stuff. For a filter I've even tried returning nothing.. but I still get the page ...
  Topic: filters won't run
mikeken

Replies: 6
Views: 11391

PostForum: General   Posted: Mon Jul 18, 2005 5:59 pm   Subject: filters won't run
I can't check right now but upper and capitalize are working.. they're plugins right?
  Topic: filters won't run
mikeken

Replies: 6
Views: 11391

PostForum: General   Posted: Mon Jul 18, 2005 12:36 pm   Subject: filters won't run
Hi. I cannot get any type of filter to work (pre, post, and output)
It's not just that the code inside of the filter function doesn't work but it I am pretty sure that the file is never loaded or any ...
  Topic: html entities being capitalized...
mikeken

Replies: 3
Views: 7367

PostForum: General   Posted: Sat Jun 11, 2005 2:25 pm   Subject: html entities being capitalized...
I dont know why it would be doing that.. maybe there is some kind of conflict in your html that's causing it to do that.

However, are you running the latest version of smarty?
I tried it out and i ...
  Topic: prefilter: lang_vars - Auto Language variable assigning
mikeken

Replies: 5
Views: 12290

PostForum: Plugins   Posted: Fri Jun 10, 2005 5:28 pm   Subject: prefilter: lang_vars - Auto Language variable assigning
*Bumped*

This is a way old plugin and thread.
One problem with this plugin that I've noticed is that you cannot use any kind of variable modifiers on it. If you don't understand why not just say s ...
  Topic: Smarty Designers wanted
mikeken

Replies: 3
Views: 14586

PostForum: Help Wanted (commercial)   Posted: Tue Aug 10, 2004 4:13 pm   Subject: Smarty Designers wanted
Could you please post some more information?
  Topic: smarty and headers
mikeken

Replies: 2
Views: 9574

PostForum: General   Posted: Sun Aug 08, 2004 3:28 am   Subject: smarty and headers
No content can be sent to the browser before any headers are sent(redirecting)

This includes all html, and whitespaces(tabs, space, enters)

simple example, use header('Location: http://ebay.com' ...
  Topic: prefilter: lang_vars - Auto Language variable assigning
mikeken

Replies: 5
Views: 12290

PostForum: Plugins   Posted: Sat Jul 31, 2004 3:32 pm   Subject: prefilter: lang_vars - Auto Language variable assigning
Those are both incorrect, because the echo statement needs to be a string.
Here's the corrected, tested version.
<?php
function smarty_prefilter_lang_vars($source, &$smarty)
{
$ld = preg_quot ...
  Topic: prefilter: lang_vars - Auto Language variable assigning
mikeken

Replies: 5
Views: 12290

PostForum: Plugins   Posted: Fri Jul 30, 2004 12:52 am   Subject: prefilter: lang_vars - Auto Language variable assigning
Well, after many attempts and a couple hours of coding, I came up with a
one line smarty plugin that could do you ton's of good. I was orignally developing this plugin just for personal use, and I t ...
  Topic: Editing Smarty: No assigning for prefixed tmpl vars
mikeken

Replies: 8
Views: 15801

PostForum: General   Posted: Thu Jul 29, 2004 10:51 pm   Subject: Editing Smarty: No assigning for prefixed tmpl vars
maybe create a class variable and print using $this->?

I know I can do it this way but is there a better way?

Edit: Even this does not work...I may be doing it wrong but I create a class vari ...
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT
Jump to:  


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