Author |
Message |
Topic: Empty value in Foreach - causes onscreen error |
sarahfoxnz
Replies: 3
Views: 17593
|
Forum: General Posted: Mon May 16, 2022 1:01 pm Subject: Empty value in Foreach - causes onscreen error |
Ive got the same error in another tenplate now.
fixed it in the main PHP script (I didn't want to wait a few days to get it fixed).
Does anyone know the cause - with the template?
Ive never ... |
Topic: Empty value in Foreach - causes onscreen error |
sarahfoxnz
Replies: 3
Views: 17593
|
Forum: General Posted: Mon May 16, 2022 9:34 am Subject: Empty value in Foreach - causes onscreen error |
Fixed it - adjusting the main PHp script. (removed preg from main template). |
Topic: Empty value in Foreach - causes onscreen error |
sarahfoxnz
Replies: 3
Views: 17593
|
Forum: General Posted: Sun May 15, 2022 10:35 am Subject: Empty value in Foreach - causes onscreen error |
Ive changed the tempalte slightly, But still get the error in the Preg.
1. {$v.DOB}<br />
{if isset($v.DOB)}
{assign var="DOB1" value=$v.DOB}
{else}
{assign var="DOB1" ... |
Topic: Empty value in Foreach - causes onscreen error |
sarahfoxnz
Replies: 3
Views: 17593
|
Forum: General Posted: Sun May 15, 2022 9:55 am Subject: Empty value in Foreach - causes onscreen error |
Hello.
I'm getting an error in a foreach loop.
Warning: Creating default object from empty value in PATHNAME/templates/compiled/d69f786086b63424b6203cc9ba5bba679235ae76_0.file.view_cats_list.tpl ... |
Topic: get a previous year |
sarahfoxnz
Replies: 0
Views: 13689
|
Forum: General Posted: Sat May 14, 2022 5:17 am Subject: get a previous year |
using the TEMPLATE (not PHP file)
is there a way I can get the 'year' into a variable or get the year (5 years ago) into a variable etc?
I do know of $smarty.now - but unsure of how to assign it ... |
Topic: save HTML output? |
sarahfoxnz
Replies: 0
Views: 13355
|
Forum: General Posted: Thu May 05, 2022 6:05 am Subject: save HTML output? |
Hi,
if I specify in my code a specific user - Could we use Smarty to 'save' thE HTML output (that they received) |
Topic: Template file is there but not loading |
sarahfoxnz
Replies: 1
Views: 14078
|
Forum: General Posted: Sat Feb 12, 2022 11:46 pm Subject: Template file is there but not loading |
NEVER MIND - Ive found that my PATH directory has somehow changed - I'll need to figure out how/why |
Topic: Template file is there but not loading |
sarahfoxnz
Replies: 1
Views: 14078
|
Forum: General Posted: Sat Feb 12, 2022 11:34 pm Subject: Template file is there but not loading |
Hi, I'm wondering if anyone can suggest a resolution ?
Smarty: Unable to load template 'file:en/html/login/login.tpl' <-- thrown in /PATHDIR/subdomains/tib/smarty-4.0.0/libs/sysplugins/smarty_in ... |
Topic: BLOCK or modifier - suggestions |
sarahfoxnz
Replies: 0
Views: 14084
|
Forum: General Posted: Sat Jan 08, 2022 5:27 am Subject: BLOCK or modifier - suggestions |
Hello.
i post on redit but see very few replies (if any) - isa nyone using it ?
i have the following code -
{if isset($v12.word)}{if $v12.word|@count >0}{assign var="word" value ... |
Topic: ODD problem with PATH NAMES |
sarahfoxnz
Replies: 8
Views: 11264
|
Forum: General Posted: Tue Apr 28, 2020 12:55 pm Subject: ODD problem with PATH NAMES |
Slowly fixing the site
1) hard-coding the full pathnames into a global variable & using that for each path name i need.
2) installed latest Smarty version & updating each script to use the n ... |
Topic: ODD problem with PATH NAMES |
sarahfoxnz
Replies: 8
Views: 11264
|
Forum: General Posted: Tue Apr 28, 2020 1:52 am Subject: ODD problem with PATH NAMES |
Make sure your template/cache directory settings use absolute paths to begin with.
Other than that, it's very hard to give any directions without very specific knowledge.
Ok, I'll try that when i ... |
Topic: ODD problem with PATH NAMES |
sarahfoxnz
Replies: 8
Views: 11264
|
Forum: General Posted: Mon Apr 27, 2020 8:49 pm Subject: ODD problem with PATH NAMES |
Ps the htdocsincludes directory is mine - Not suspicious..
I'll try & fix things after i come back from work.. |
Topic: ODD problem with PATH NAMES |
sarahfoxnz
Replies: 8
Views: 11264
|
Forum: General Posted: Mon Apr 27, 2020 8:32 pm Subject: ODD problem with PATH NAMES |
>Possible issues:
>1. Your Smarty settings were changed.
In what way do we change our settings ? I just upload the Smarty code/programme to the /usr/ folder & access it from my subdomain ... |
Topic: ODD problem with PATH NAMES |
sarahfoxnz
Replies: 8
Views: 11264
|
Forum: General Posted: Sun Apr 26, 2020 2:00 pm Subject: ODD problem with PATH NAMES |
ODD problem with PATH NAMES.
Version: smarty-3.1.33
Ive got an odd problem with my web host. I'm certain that its the HOSTS problem & nothing to do with my PHP (or Smarty templates) scripts, ... |
Topic: Help create BLOCK function |
sarahfoxnz
Replies: 6
Views: 12272
|
Forum: General Posted: Wed Apr 15, 2020 6:10 am Subject: Help create BLOCK function |
Ive fixed the script.. (see below).
Basically, I create PHP scripts & end up with lots of "white space" between lines of HTML output.
The plugin below basically removes the exces ... |
|