Welcome To Agriya FAQ

ID #0

Share and Repeat button in the player shows even when turned off

Issue: Share and Repeat button in the player shows even when turned off from the admin panel

Fix:
Files to be modified:
videoConfigXmlCode.php, elite_videoConfigXmlCode.php, videoMiniPlayerConfigXmlCode.php

Replace the method selectVideoPlayerSettings() with the following code

public function selectVideoPlayerSettings()
{
$sql = 'SELECT play_settings, title, skin, play_list_settings,'.
' show_play_list_by, skin, share_link, repeat_link FROM '.$this->CFG['db']['tbl']['video_player_settings'];

$stmt = $this->dbObj->Prepare($sql);
$rs = $this->dbObj->Execute($stmt);
if (!$rs)
trigger_error($this->dbObj->ErrorNo().' '.$this->dbObj->ErrorMsg(), E_USER_ERROR);

if($row = $rs->FetchRow())
{
$this->CFG['admin']['videos']['AutoPlay'] = $row['play_settings'];
$this->CFG['admin']['videos']['Header'] = $row['title'];
$this->CFG['admin']['videos']['SelectedThemes'] = $row['skin'].'.xml';
$this->CFG['admin']['videos']['play_list_settings'] = $row['play_list_settings'];
$this->CFG['admin']['videos']['show_play_list_by'] = $row['show_play_list_by'];
$this->CFG['admin']['videos']['ShowShareButton'] = $row['share_link'];
$this->CFG['admin']['videos']['ShowReplyButton'] = $row['repeat_link'];
}
}

Tags:

-