- Code: Select all
$module_name = "basename(dirname(__FILE__))";
$roster_dir = "modules/";
Replace to:
- Code: Select all
$module_name = basename(dirname(__FILE__));
$roster_dir = "modules/".$module_name;
you can now use $roster_dir to fix path in include and such
Find in roster_header.tpl
- Code: Select all
<link rel="stylesheet" type="text/css" href="<?php echo $roster_conf['roster_dir']; ?>/<?php echo $roster_conf['stylesheet'] ?>">
<script type="text/javascript" src="<?php echo $roster_conf['roster_dir']; ?>/<?php echo $roster_conf['roster_js']; ?>"></script>
<script type="text/javascript" src="<?php echo $roster_conf['roster_dir']; ?>/<?php echo $roster_conf['overlib']; ?>"></script>
<script type="text/javascript" src="<?php echo $roster_conf['roster_dir']; ?>/<?php echo $roster_conf['overlib_hide']; ?>"></script>
replace to:
- Code: Select all
<link rel="stylesheet" type="text/css" href="<?php echo $roster_dir ?>/<?php echo $roster_conf['stylesheet'] ?>">
<script type="text/javascript" src="<?php echo $roster_dir ?>/<?php echo $roster_conf['roster_js']; ?>"></script>
<script type="text/javascript" src="<?php echo $roster_dir ?>/<?php echo $roster_conf['overlib']; ?>"></script>
<script type="text/javascript" src="<?php echo $roster_dir ?>/<?php echo $roster_conf['overlib_hide']; ?>"></script>
this will fix the .js include in roster
More to come