Search found 15 matches

by tomphantoo
Tue Oct 17, 2023 2:05 am
Forum: CMSMS Core
Topic: Smarty Updates
Replies: 3
Views: 3053

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: 4727

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: 2635

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: 1508

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: 2467

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: 5450

[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: 5435

[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: 2340

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: 1171

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: 732

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.
by tomphantoo
Thu Jun 09, 2011 2:02 am
Forum: Modules/Add-Ons
Topic: How to get 'returnto' to work after user logout?
Replies: 4
Views: 1580

Re: How to get 'returnto' to work after user logout? SOLVED

Plowing through the code of the FrontEndUsers module, I found that it effectively ignores the 'returnto' parameter during any logout. I've fixed mine , and would be happy to post the changes. However I also needed, and implemented, some hooks for returning to anywhere after logout, not just to a spe...
by tomphantoo
Mon Apr 25, 2011 1:47 am
Forum: Modules/Add-Ons
Topic: How to get 'returnto' to work after user logout?
Replies: 4
Views: 1580

How to get 'returnto' to work after user logout?

I can't get 'returnto' to work after user logs out. With the setup detailed below, clicking the logout button on the logout page clears the content of that page, and displays the login link in the header, but does not change page. What can I do to fix this? I've tested with omitted parameter(s) (com...
by tomphantoo
Tue Apr 12, 2011 8:38 pm
Forum: CMSMS Core
Topic: Show menu on page that itself is not in menu?
Replies: 4
Views: 1631

Re: Show menu on page that itself is not in menu?

[SOLVED]
My bad - poor design of my menu template.
Sorry to have wasted your time.
by tomphantoo
Tue Apr 12, 2011 11:14 am
Forum: CMSMS Core
Topic: Show menu on page that itself is not in menu?
Replies: 4
Views: 1631

Re: Show menu on page that itself is not in menu?

The page shows as expected, except for the navigation menu. The page-source has none of the relevant ul's li's etc. It's as if the {menu} tag were not there.
by tomphantoo
Tue Apr 12, 2011 6:58 am
Forum: CMSMS Core
Topic: Show menu on page that itself is not in menu?
Replies: 4
Views: 1631

Show menu on page that itself is not in menu?

I have various pages using the same template, which includes a {menu ....}. I want some of those pages not to be accessed via main navigation menus (instead - buttons, links etc), so I disabled the pages' respective 'show in menu' setting. But doing this seems to also prevent any menu being shown on...

Go to advanced search