-
- 1,145 Posts
TinymceWrapper: Complete back/frontend content solution.
Harden your MODX site by
passwording your three main folders:
core, manager, connectors and renaming your
assets (thank me later!)
5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
-
- 932 Posts
Try this
if ($modx->user->isAuthenticated('web') === false) {
$modx->setPlaceholder('show','display: block');
} else {
$modx->setPlaceholder('show','display: none');
}
return true;
-
- 1,145 Posts
$modx->setPlaceholder just does not do anything
Can someone test this?
TinymceWrapper: Complete back/frontend content solution.
Harden your MODX site by
passwording your three main folders:
core, manager, connectors and renaming your
assets (thank me later!)
5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
-
- 1,145 Posts
I managed to use an external snippet to set the placeholders, and then let my Login.Register preHook handle the values via getValue
TinymceWrapper: Complete back/frontend content solution.
Harden your MODX site by
passwording your three main folders:
core, manager, connectors and renaming your
assets (thank me later!)
5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
-
- 1,145 Posts
After trying all kinds of variation to setValue/setPlaceholder with a hook, no dice!
Finally fixed my issue by another way
[[!spamChecker? &snippetSource=`Register`]]
<div>
[[!Register? &submitVar=`registerbtn` &activationResourceId=`198` &placeholderPrefix=`reg.` &preHooks=`spamCheckerHook` &postHooks=`notifyAdmin` ]]
</div>
If someone could test filling up a random placeholder with a prehook, I'd like to report that this stuff don't work by default for Login.Register
TinymceWrapper: Complete back/frontend content solution.
Harden your MODX site by
passwording your three main folders:
core, manager, connectors and renaming your
assets (thank me later!)
5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.