Search found 20 matches

by tomphantoo
Sun Mar 16, 2025 12:06 am
Forum: CMSMS Core
Topic: Does CMSMS Supports Dynamic Content Blocks in Templates?
Replies: 4
Views: 5709

Re: Does CMSMS Supports Dynamic Content Blocks in Templates?

Are the intra-loop assignments needed? Would the following suffice ? (Admin-only usage for ECB2 fieldset* fields) {$sections=[ ['id' => 'section01', 'legend' => 'Section 1', 'default_class' => 'my-0 py-0 header-stick', 'default_bgcolor' => 'bg-transparent'], ['id' => 'section02', 'legend' => 'Sectio...
by tomphantoo
Mon Jan 13, 2025 10:11 am
Forum: CMSMS Core
Topic: canonical domain and a domainname with german umlauts
Replies: 7
Views: 3661

Re: canonical domain and a domainname with german umlauts

I guess you're working with the SitemapMgr module, which is a bit out of date. But mere freshening of that might not help much, unless some new logic is applied, possibly in that module, or upstream of that. It seems to me that the process for populating sitemap URLs for content pages goes something...
by tomphantoo
Sun Jan 12, 2025 6:56 am
Forum: CMSMS Core
Topic: canonical domain and a domainname with german umlauts
Replies: 7
Views: 3661

Re: canonical domain and a domainname with german umlauts

Snippets adapted from several online places: Umlauts in domain names are translated by the browser into a so-called Punycode . An "xn--" is put at the front of the domain and other changes follow that. A visitor to the website does not see this in the browser but this coding can sometimes ...
by tomphantoo
Sun Jan 12, 2025 2:33 am
Forum: CMSMS Core
Topic: Large number of cache files
Replies: 25
Views: 11500

Re: Large number of cache files

CMSMS up to V.2.2.16 should work with PHP 5.6.
by tomphantoo
Mon May 27, 2024 11:54 am
Forum: CMSMS Core
Topic: Plugin 'smarty_cms_function_cms_action_url' not callable
Replies: 5
Views: 8806

Re: Plugin 'smarty_cms_function_cms_action_url' not callable

Smarty since V.3.1.30-something has been stripping all whitespace in a context where quoted whitespace should be retained. In file <root path>/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php is a function public function getVarExport($value) Pending a more elegant solution, you could ...
by tomphantoo
Tue Oct 17, 2023 2:05 am
Forum: CMSMS Core
Topic: Smarty Updates
Replies: 7
Views: 9350

Re: Smarty Updates

FYI Among other changes, Smarty 4.3 deprecates use of PHP functions (built-in or application-defined) as modifiers in templates e.g. {$somestring|md5} even when such is permitted by the Smarty security-policy settings. One response to that might have been to replace such modifiers with function-call...
by tomphantoo
Mon Sep 11, 2023 8:28 am
Forum: CMSMS Core
Topic: Out of nowhere...
Replies: 5
Views: 18412

Re: Out of nowhere...

Which plugin(s) caused the reported error?
by tomphantoo
Thu Jan 11, 2018 10:32 pm
Forum: Developers Discussion
Topic: Staus of URL's created in e.g. CMSModule::CreateReturnLink
Replies: 1
Views: 3017

Staus of URL's created in e.g. CMSModule::CreateReturnLink

Do any of you have experience with, and/or can you suggest a use-case for, CMSModule::CreateReturnLink() ? I'm wondering because the method produces a string with an embedded URL which can be partially -'entitized' (not e.g. urlencoded). I think such anchor would (if actually modified) be unusable v...
by tomphantoo
Fri Oct 06, 2017 10:14 pm
Forum: The Lounge
Topic: Template error upon page re-display
Replies: 0
Views: 1872

Template error upon page re-display

I surmise that non-cached UTD- and plugin-generated content cannot survive end-of-browser-session, and so page-re-display in a later session will always fail e.g. in the example below, how is smarty_cms_function_mobile_detect() supposed to re-run, unless the page is re-generated? Should that functio...
by tomphantoo
Wed Apr 15, 2015 6:00 am
Forum: Developers Discussion
Topic: Front-end-initiated action to just do something, not display
Replies: 1
Views: 2764

Front-end-initiated action to just do something, not display

Is there a way to block all changes to the frontend display, after a site url has been requested? Something akin to SuppressAdminOutput() for backend display? I want to be able to just "do something" instead of "display something", after receiving a relevant URL request. Sofar I ...
by tomphantoo
Tue Sep 20, 2011 8:35 am
Forum: Closed Issues
Topic: [closed] Per-backend-user password salting
Replies: 1
Views: 13167

[closed] Per-backend-user password salting

It's good that password salting is coming for backend users. I have 1.10-beta1, and there at least, the process uses the same salt (or none) for everyone. AFAIK, it's more secure to use per-person salting, even when someone malicious can access the tabled password data, hence the individual salts. C...
by tomphantoo
Tue Sep 20, 2011 8:08 am
Forum: Closed Issues
Topic: [closed] Path separators in DisplayImage()
Replies: 1
Views: 10463

[closed] Path separators in DisplayImage()

There are quite a few instances of hardcoded path separator '/' in DisplayImage() (in file class.admintheme.inc.php).

It seems that this func deals with paths, not URL's, and in that case, should the separators be DIRECTORY_SEPARATOR ?

Same for 1.9.
by tomphantoo
Mon Sep 19, 2011 11:28 pm
Forum: Closed Issues
Topic: SetParameters deprecated in 1.10
Replies: 2
Views: 2770

Re: SetParameters deprecated in 1.10

This works for me: after re-crafting module initialization for 1.10

Code: Select all

	//setup for pre-1.10
	function SetParameters()
	{
		$this->InitializeAdmin();
		$this->InitializeFrontend();
	}
by tomphantoo
Sat Sep 03, 2011 10:34 pm
Forum: Layout and Design (CSS & HTML)
Topic: How can I change tab using jquery?
Replies: 0
Views: 1441

How can I change tab using jquery?

Upon clicking a relevant link, I'd like to be able to select/activate a tab directly, instead of reloading an entire page, with an 'active-tab-name' parameter. This relates to tabs of an admin page, so jquery is present, in my case, jquery-ui-1.8.4.custom.min.js. The documented approach, something l...
by tomphantoo
Thu Jun 16, 2011 3:25 am
Forum: Modules/Add-Ons
Topic: FEUMailer's email with special character?
Replies: 1
Views: 925

Re: FEUMailer's email with special character?

Mails sent as html need to have this inserted: <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/></head> I've fixed my mailer module, I'll try to persuade George to agree to this. Meanwhile, it may be sufficient to send the mail as non-html.

Go to advanced search