Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 39 matches
Smarty Forum Index
Author Message
  Topic: Getting some errors and not sure the issue
durangod

Replies: 4
Views: 2728

PostForum: General   Posted: Fri Sep 01, 2017 9:13 am   Subject: Getting some errors and not sure the issue
Very educational and makes perfect sense. Thanks for the reply, i did learn something Smile
  Topic: Getting some errors and not sure the issue
durangod

Replies: 4
Views: 2728

PostForum: General   Posted: Fri Sep 01, 2017 7:47 am   Subject: Getting some errors and not sure the issue
thanks for the reply.... its the cpanel editor

Its no big deal, i was trying to adjust some css and wanted to test it in that file first. I thought maybe because of those errors it was not parsing ...
  Topic: Getting some errors and not sure the issue
durangod

Replies: 4
Views: 2728

PostForum: General   Posted: Fri Sep 01, 2017 5:28 am   Subject: Getting some errors and not sure the issue
Hi, here is the code:


1. {* `Avatar Item` decorator template *}
2. <div class="ow_avatar{if !empty($data.class)} {$data.class}{/if}&qu ...
  Topic: using smarty with ajax and avoiding smarty system messages
durangod

Replies: 4
Views: 3515

PostForum: General   Posted: Mon Jul 25, 2016 3:28 am   Subject: using smarty with ajax and avoiding smarty system messages
ok thanks i will just add the empty html files to solve it...

Smile
  Topic: using smarty with ajax and avoiding smarty system messages
durangod

Replies: 4
Views: 3515

PostForum: General   Posted: Sun Jul 24, 2016 10:05 pm   Subject: using smarty with ajax and avoiding smarty system messages
hi, im not really sure what that means regarding my issue.

Is there an exception on the smarty side i can use ?
  Topic: using smarty with ajax and avoiding smarty system messages
durangod

Replies: 4
Views: 3515

PostForum: General   Posted: Sun Jul 24, 2016 4:49 pm   Subject: using smarty with ajax and avoiding smarty system messages
Hi,

I am doing a software plugin and they use smarty. I am doing some ajax requests which means that i do not need the index html files for those ajax php files, there would be no need for them. ...
  Topic: What is the -{ for
durangod

Replies: 4
Views: 3316

PostForum: General   Posted: Wed Mar 16, 2016 10:58 am   Subject: What is the -{ for
Hi thank you both, yes i have seen and used the {} myself in coding just never saw a custom delimeter like that lol..

Sorry for the late "thank you" i have been sick for a few days.
...
  Topic: 18 year coded site...how on earth do we bring into the now
durangod

Replies: 4
Views: 3627

PostForum: General   Posted: Sat Mar 12, 2016 6:45 am   Subject: 18 year coded site...how on earth do we bring into the now
Have you considered updating smarty and replacing the library files and such to see what happens.

I worked on one site that i was very fearful of the same thing. And yet when i replaced the files ...
  Topic: What is the -{ for
durangod

Replies: 4
Views: 3316

PostForum: General   Posted: Sat Mar 12, 2016 6:39 am   Subject: What is the -{ for
Hi,

I normally work on older versions of smarty but today i ran across something i had not seen before.

While working on a tpl file i found an if statment that was wrapped with the - sign.
...
  Topic: trying to parse a value in html from a array element
durangod

Replies: 3
Views: 3799

PostForum: General   Posted: Tue Apr 28, 2015 4:58 am   Subject: trying to parse a value in html from a array element
thanks very much that was some great help.... appreciate that Smile
  Topic: trying to parse a value in html from a array element
durangod

Replies: 3
Views: 3799

PostForum: General   Posted: Mon Apr 27, 2015 5:43 am   Subject: trying to parse a value in html from a array element
Basically how we do this is that we assign a smarty value wether it be an array or string.

if its an array we parse it on the page with a

foreach from=whatever item=item

and then we can ref ...
  Topic: pulling language var value inside js
durangod

Replies: 2
Views: 2644

PostForum: General   Posted: Mon Jan 26, 2015 9:16 am   Subject: pulling language var value inside js
got it, you have to close the literal just before the smarty var and then reopen it right after like so.



answer = {/literal}{$lang.anti_bot_answer|escape:javascript}& ...
  Topic: pulling language var value inside js
durangod

Replies: 2
Views: 2644

PostForum: General   Posted: Mon Jan 26, 2015 8:46 am   Subject: pulling language var value inside js
Hi im trying to pull the value of the language file var inside js to use it in a validation statment.

i have tried this in the template file in my js section


var answer = {$lang.anti_b ...
  Topic: parsing js on the page
durangod

Replies: 1
Views: 2035

PostForum: General   Posted: Wed Jan 21, 2015 11:57 pm   Subject: parsing js on the page
i think i found the issue, should work like i have it but its a http vrs https call issue.
  Topic: parsing js on the page
durangod

Replies: 1
Views: 2035

PostForum: General   Posted: Wed Jan 21, 2015 11:41 pm   Subject: parsing js on the page
i have a js box code and i want to actually show the box itself on the tpl page



<td colspan="2" align="center">{$code}</td>



of course i know im ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT
Jump to:  


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