View Single Post
  #7  
Old 4th May 2013, 15:06
dclardy dclardy is offline
Senior Member
 
Join Date: Sep 2009
Location: Dallas, TX
Posts: 347
Thanks: 10
Thanked 47 Times in 28 Posts
Default

After looking through the files some, I thought that I had found the way to load the value. I put this code in my file.

Code:
class page_action extends tform_actions {

	//* Customisations for the page actions will be defined here
	function onShow() {
		global $app, $conf;
		
		$logo_sql = $app->db->queryOneRecord("SELECT * FROM `tpl_ispc_clean` where id = 1 ");
		$logo = $logo_sql['logo_url'];

		$app->tpl->setVar('logo_url', $logo);
		
		parent::onShow();
	}

}
This did not work for the admin pages.

I can get the information to show on the login page. I added a template variable inside of the index.php for that module.

Code:
$logo_sql = $app->db->queryOneRecord("SELECT * FROM `tpl_ispc_clean` where id = 1 ");
		$logo = $logo_sql['logo_url'];

		$app->tpl->setVar('error', $error);
        $app->tpl->setVar('pw_lost_txt', $app->lng('pw_lost_txt'));
		$app->tpl->setVar('username_txt', $app->lng('username_txt'));
		$app->tpl->setVar('password_txt', $app->lng('password_txt'));
		$app->tpl->setVar('login_button_txt', $app->lng('login_button_txt'));
		$app->tpl->setVar('logo_url', $logo);
Reply With Quote