Sign in to follow this  
Followers 0
giller

Plugin Konstante global verfügbar machen klapt nicht

1 post in this topic

Hallo Leute (oldbear) habt ihr ein tip für mich wo steckt der bolzen

box.php

defined('_VALID_CALL') or die('Direct Access is not allowed.');



if (ACTIVATE_KOH_FLASH_BOX == 'true' && isset($xtPlugin->active_modules['koh_flash'])){


	require_once _SRV_WEBROOT._SRV_WEB_PLUGINS.'/koh_flash/classes/class.koh_flash.php';


   $koh_flash_box = new koh_flash(true);

   $koh_flash_list = $koh_flash_box->getkoh_flash();


   $show_box = true;

} else {

	$show_box = false;

}


?>
class.php
<?php

defined('_VALID_CALL') or die('Direct Access is not allowed.');


class koh_flash extends products_list {



	function getkoh_flash () {

		global $xtPlugin, $xtLink, $db;


		$query_koh_flash = "SELECT products_flash_pre FROM ".TABLE_PRODUCTS." WHERE products_id='".(int)($GLOBALS[template]->content_smarty->_tpl_vars[products_id])."' LIMIT 0,1";

		$rs_koh_flash = $db->Execute($query_koh_flash);


		$flash_koh_flash =		$rs_koh_flash->fields['products_flash_pre'];

		$query = $this->sql_products->getSQL_query();


		define('FLASHCLIP',$flash_koh_flash);


		return $module_content;

	}

}

?>

in der box template möchte ich die Konstane FLASHCLIP ausgeben aber sie bleibt leer?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0