Hi this is hard to me and any help would be great… i’m trying to have a module type cms with flash buttons… i have it with img link but now i want to have flash buttons… (it’s a groupoffice cms for those who care) … please i really need help on this so if this is not clear just ask any questions that would make it easyer to get on this… So i have this code
<?php
require_once('../../Group-Office.php');
$GO_SECURITY->authenticate();
$charset= isset($charset) ? $charset : 'UTF-8';
$htmldirection= isset($htmldirection) ? $htmldirection : 'ltr';
header('Content-Type: text/html; charset='.$charset);
$getadmin = isset( $_GET['admin'] ) ? $_GET['admin'] : false;
$adminmodules = false;
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>">
<script language="javascript" type="text/javascript" src="<?php echo $GO_CONFIG->host; ?>javascript/common.js"></script>
<link href="<?php echo $GO_THEME->theme_url.'css/common.css'; ?>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="<?php echo $GO_CONFIG->host; ?>javascript/pngfix.js"></script>
</head>
<body style="padding:0px;margin:0px;" dir="<?php echo $htmldirection; ?>">
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" class="FooterBar">
<tr>
<td>
<table border="0">
<tr>
<?php
$modules = $GO_MODULES->get_modules_with_locations($getadmin);
while ( $module = array_shift( $modules ) )
{
if ( $adminmodules ||
( $GO_SECURITY->has_permission( $GO_SECURITY->user_id, $module['acl_read'] ) ||
$GO_SECURITY->has_permission( $GO_SECURITY->user_id, $module['acl_write'] ) ||
$GO_SECURITY->has_admin_permission( $GO_SECURITY->user_id ) ) ) {
$GO_THEME->load_module_theme($module['id']);
$GO_THEME->images[$module['id']] = isset($GO_THEME->images[$module['id']]) ? $GO_THEME->images[$module['id']] : $GO_THEME->images['unknown'];
//require language file to obtain module name in the right language
$language_file = $GO_LANGUAGE->get_language_file($module['id']);
if(file_exists($language_file))
{
require_once($language_file);
}
$lang_var = isset($lang_modules[$module['id']]) ? $lang_modules[$module['id']] : $module['id'];
?>
<td class="ModuleIcons" align="center" valign="top" nowrap>
<a class="FooterBar" target="main" id="<?php echo $module['id']; ?>" href="<?php echo $module['url']; ?>">
<img src="<?php echo $GO_THEME->images[$module['id']]; ?>" border="0" width="32" height="32" />
<br />
<?php echo $lang_var; ?>
</a>
</td>
<?php
}
}
if ( $GO_SECURITY->has_admin_permission( $GO_SECURITY->user_id ) ) {
?>
<td class="ModuleIcons" align="center" valign="top" nowrap>
<a class="FooterBar" target="footer" href="<?php echo $GO_THEME->theme_url.'footer.php?admin='.!$getadmin; ?>">
<?php
if($getadmin)
{
?>
<img src="<?php echo $GO_THEME->images['close']; ?>" border="0" width="32" height="32" />
<br />
<?php echo $cmdClose;
}else
{
?>
<img src="<?php echo $GO_THEME->images['admin']; ?>" border="0" width="32" height="32" />
<br />
<?php echo $menu_admin;
}
?>
</a>
</td>
<?php
}
?>
</tr>
</table>
</td>
<td align="right">
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','width','200','height','38','align','middle','src','<?php echo $GO_THEME->images['go_header']; ?>','quality','high','allowscriptaccess','sameDomain','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','<?php echo $GO_THEME->images['go_header']; ?>' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="108" height="28" title="flash botton">
<param name="movie" value="<?php echo $GO_THEME->images['go_header']; ?>.swf">
<param name="quality" value="high">
<embed src="<?php echo $GO_THEME->images['go_header']; ?>.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="108" height="28" ></embed>
</object>
</noscript>
<!-- <a target="main" href="<?php //echo $GO_CONFIG->host; ?>about.php" title="<?php //echo $menu_about; ?>">
<img src="<?php //echo $GO_THEME->images['go_header']; ?>" border="0" style="margin-right:20px;" />
</a>-->
</td>
</tr>
</table>
</body>
</html>
which is were the modules go into…
<?php
// registration of all used image files
$images['apache_logo'] = 'apache_logo.gif';
$images['attach'] = 'attach.gif';
$images['colors'] = 'colors.gif';
$images['go_header'] = 'LOGOarea';
in the image.inc file which diffines the image location
If you look in the code you will see i already made a stab at it with the help area… works but i have a non-relative link in the swf…
//loadVariablesNum("footer.php", 0, "POST");
//var Link = "<?php echo $GO_CONFIG->host; ?>about.php";
//trace (Link);
//overmap.onRelease = function () {
// getURL(Link, "main");
//}
overmap.onRelease = function () {
getURL("/PHP Barn/groupoffice-com-2.17-stable-13/about.php", "main");
}
//overmap.onRelease = function () {
// getURL("<?php echo $GO_CONFIG->host; ?>about.php", "main");
//}
overmap.onRollOver = function () {
overmap.gotoAndPlay(2);
}
overmap.onRollOut = function () {
overmap.gotoAndPlay(6);
}
stop();
note the ("<?php echo $GO_CONFIG->host; ?>about.php", “main”); did not work … and not sure on it… thank you for any help… -jeremy