|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
boipelom Smarty n00b
Joined: 18 Nov 2021 Posts: 2
|
Posted: Thu Nov 18, 2021 12:52 pm Post subject: disabling flash in smarty framework |
|
|
How do i disable the flash on smarty framework without any harm on the system. My smarty system doesn't work on latest Firefox, Buttons functionality doesn't do anything, it just hang. |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Thu Nov 18, 2021 4:21 pm Post subject: |
|
|
Ask the author of your "framework". Smarty by itself is a templating library that knows nothing about Flash or anything else GUI related. |
|
Back to top |
|
boipelom Smarty n00b
Joined: 18 Nov 2021 Posts: 2
|
Posted: Mon Nov 22, 2021 3:08 pm Post subject: disabling flash in smarty framework |
|
|
protected function browserFlashEnabled()
{
if ( isset ( $_COOKIE[ 'flashplayerEnabled' ] ) && $_COOKIE[ 'flashplayerEnabled' ] > 0 )
{
if ( !$this->cache->verifyEntry( 'flashPlayerVersion' , 'System' ) )
{
$flash = array(
'flashPlayerVersion' => $_COOKIE[ 'flashplayerEnabled' ]
);
$this->cache->createEntry( 'System' , $flash );
}
}
}
public function flashEnabled()
{
$flashEnabled = false;
if ( $this->cache->verifyEntry( 'flashPlayerVersion' , 'System' ) )
{
$flashEnabled = $this->cache->retrieveEntry( 'flashPlayerVersion' , 'System' );
}
return $flashEnabled;
}
protected function initializeSystemUserContext()
{
$this->requireInitializeScript('trimDataEntry.php');
//$this->smarty->assign( 'flashEnabled' , $this->flashEnabled() );
// get the menus that will be displayed to the user
$menuLibrary = LibraryFactory::getInstance( 'Menu' );
$this->smarty->assign ( 'menus' , $menuLibrary->getNavitems() );
If I comment the code attached on my AppCore, all my bttons on the system disappear. |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Tue Nov 30, 2021 6:31 pm Post subject: Re: disabling flash in smarty framework |
|
|
boipelom wrote: | Code: | protected function browserFlashEnabled()
{
if ( isset ( $_COOKIE[ 'flashplayerEnabled' ] ) && $_COOKIE[ 'flashplayerEnabled' ] > 0 )
{
if ( !$this->cache->verifyEntry( 'flashPlayerVersion' , 'System' ) )
{
$flash = array(
'flashPlayerVersion' => $_COOKIE[ 'flashplayerEnabled' ]
);
$this->cache->createEntry( 'System' , $flash );
}
}
}
public function flashEnabled()
{
$flashEnabled = false;
if ( $this->cache->verifyEntry( 'flashPlayerVersion' , 'System' ) )
{
$flashEnabled = $this->cache->retrieveEntry( 'flashPlayerVersion' , 'System' );
}
return $flashEnabled;
}
protected function initializeSystemUserContext()
{
$this->requireInitializeScript('trimDataEntry.php');
//$this->smarty->assign( 'flashEnabled' , $this->flashEnabled() );
// get the menus that will be displayed to the user
$menuLibrary = LibraryFactory::getInstance( 'Menu' );
$this->smarty->assign ( 'menus' , $menuLibrary->getNavitems() ); |
If I comment the code attached on my AppCore, all my bttons on the system disappear. |
None of it is Smarty code. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|