Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

disabling flash in smarty framework

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
boipelom
Smarty n00b


Joined: 18 Nov 2021
Posts: 2

PostPosted: Thu Nov 18, 2021 12:52 pm    Post subject: disabling flash in smarty framework Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Thu Nov 18, 2021 4:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
boipelom
Smarty n00b


Joined: 18 Nov 2021
Posts: 2

PostPosted: Mon Nov 22, 2021 3:08 pm    Post subject: disabling flash in smarty framework Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Tue Nov 30, 2021 6:31 pm    Post subject: Re: disabling flash in smarty framework Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP