test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • tvanhoeck Friend
    #116804

    Can someone help me please with this template…

    I want to put the newsflash at the right side of the pictures
    (newsflash = top) (random image = user5)

    Thanks for your help
    Tom

    Malika Boekobot Friend
    #209629

    Hi Tom,

    Try this…
    Go 2 Administrator>Modules>Site Modules>Newsflash

    Open newsflash

    I think u can see now that you can chanche the position of the module

    Greetz from Den Bosch

    tvanhoeck Friend
    #209631

    Doesn’t work
    here is the php file I changed… Maybe someone can help me with this
    Thanks again

    <?php
    defined( ‘_VALID_MOS’ ) or die( ‘Restricted access’ );
    $iso = split( ‘=’, _ISO );
    //echo ‘<?xml version=”1.0″ encoding=”‘. $iso[1] .'”?’ .’>’;

    require($mosConfig_absolute_path.”/templates/ja_spica/ja_submenu.php”);

    # TEMPLATE CONFIGURATIONS ##########
    # Change the width of the template
    $width = “1”; // 1: 800×600; 0: 1024×768
    # Cnable users option – ONLY ENABLE IF $WIDTH IS SET TO 1
    $tool = “1”; // 1: Enable; 0: Disable
    # Choose color(s) for the template. Play with them by removing/adding some colors and/or reordering the sequence.
    $topnav = ja_topNav(‘mainmenu’, array(‘green’,’yellow’,’cyan’,’brick’,’magenta’,’blue’,));
    # END: TEMPLATE CONFIGURATIONS ##########

    $subnav = ja_subNav(‘mainmenu’);

    # Auto Collapse Divs Functions ##########
    $ja_right = mosCountModules( ‘right’ );
    $ja_left = mosCountModules( ‘left’ ) || ($subnav);

    if ( $ja_left && $ja_right ) {
    $divid = ‘content’;
    } elseif ( $ja_left ) {
    $divid = ‘content-full-right’;
    } elseif ( $ja_right ) {
    $divid = ‘content-full-left’;
    } else {
    $divid = ‘content-full’;
    }

    if ( mosCountModules( ‘user1’ ) && mosCountModules( ‘user2’ ) ) {
    $divwidth = ‘49.5%’;
    } else {
    $divwidth = ‘100%’;
    }

    # Define the template path ##########
    $ja_template_path = $mosConfig_live_site.’/templates/ja_spica’;

    ?>

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
    <html xmlns=”http://www.w3.org/1999/xhtml”>

    <head>
    <?php mosShowHead(); ?>
    <meta http-equiv=”Content-Type” content=”text/html; <?php echo _ISO; ?>” />
    <meta http-equiv=”Content-Style-Type” content=”text/css” />
    <link href=”<?php echo $ja_template_path;?>/css/template_css.css” rel=”stylesheet” type=”text/css” />
    <link href=”<?php echo $ja_template_path;?>/css/colors/<?php echo $color; ?>.css” rel=”stylesheet” type=”text/css” />
    <?php
    if ($width) { ?>
    <link href=”<?php echo $ja_template_path;?>/css/wide_layout.css” rel=”alternate stylesheet” type=”text/css” title=”WideScreen” />
    <?php } else { ?>
    <link href=”<?php echo $ja_template_path;?>/css/wide_layout.css” rel=”stylesheet” type=”text/css”/>
    <?php }

    if ( $my->id ) { initEditor(); } ?>

    <script language=”javascript” type=”text/javascript” src=”<?php echo $ja_template_path;?>/scripts/ja_script.js”></script>

    <script language=”javascript” type=”text/javascript”>
    preloadimages(
    “<?php echo $ja_template_path;?>images/arrow-on.gif”,
    “<?php echo $ja_template_path;?>images/arrow-off.gif”,
    “<?php echo $ja_template_path;?>images/topnav-bg.gif”,
    “<?php echo $ja_template_path;?>images/topnav-hover.gif”
    );
    </script>

    </head>

    <body id=”bd” onload=”preloadimages();setUserOptions();”>
    <div id=”ja-wrapper”>
    <div id=”ja-container”>
    <div id=”ja-container-shadow1″>
    <div id=”ja-container-shadow2″>
    <div id=”ja-container-shadow3″>

    <a name=”Top” id=”Top”></a>

    <!– BEGIN: HEADER –>
    <div id=”ja-header”>
    <h1>
    <a href=”index.php”><img src=”<?php echo $ja_template_path;?>/images/logo.png” alt=”<?php echo $mosConfig_fromname?>” /></a>
    </h1>

    <?php if ( mosCountModules( ‘user4’ ) ) { ?>
    <div id=”search”>
    <?php mosLoadModules ( ‘user4’, -1 ); ?>
    </div>
    <?php } ?>

    <span id=”ja-user-bar”>
    <?php if ($tool) { ?>
    <a title=”Default screen” href=”#800×600″ onclick=”setActiveStyleSheet(”); return false;”><img src=”<?php echo $ja_template_path;?>/images/user-screen1.gif” alt=”Default screen resolution” /></a> 
    <a title=”Wide screen” href=”#1024×768″ onclick=”setActiveStyleSheet(‘WideScreen’); return false;”><img src=”<?php echo $ja_template_path;?>/images/user-screen2.gif” alt=”Wide screen resolution” /></a> 
    <?php } ?>
    <a title=”Increase size” href=”#Size+” onclick=”changeFontSize(1);return false;”><img src=”<?php echo $ja_template_path;?>/images/user-increase.gif” alt=”Increase font size” /></a> 
    <a title=”Decrease size” href=”#Size-” onclick=”changeFontSize(-1);return false;”><img src=”<?php echo $ja_template_path;?>/images/user-decrease.gif” alt=”Decrease font size” /></a> 
    <a title=”Default size” href=”#DefaultSize” onclick=”revertStyles(); return false;”><img src=”<?php echo $ja_template_path;?>/images/user-reset.gif” alt=”Default font size” /></a> 
    <a title=”Skip to content” href=”#Content”><img src=”<?php echo $ja_template_path;?>/images/user-skipintro.gif” border=”0″ alt=”Skip to content” /></a>
    </span>

    <!– BEGIN: MAIN MENU –>
    <div id=”ja-topnav”>
    <?php echo $topnav; ?>
    </div>
    <div class=”topnav-border”></div>
    <!– END: MAIN MENU –>

    <?php
    // If there is NewFlash Module (Top Module Position) then show the Spotlight Div
    if ( mosCountModules( ‘top’ ) ) { ?>
    <!– BEGIN: HEADER SPOTLIGHT –>
    <!–div id=”ja-header-spotlight” class=”clearfix” door tom uitgeschakeld–>
    <!–div style=”position: relative; margin-top: 10px;” class=”clr” door tom uitgeschakeld–>
    <?php mosLoadModules ( ‘user5’,0 ); ?>
    <?php mosLoadModules ( ‘top’,-2 ); ?>
    </div>
    <!– END: HEADER SPOTLIGHT –>
    </div>
    <!– END: HEADER –>
    <?php }
    // If not then show the Shadow Div
    else { ?>
    <div class=”shadow”></div>
    </div>
    <!– END: HEADER –>
    <?php } ?>

    <div id=”ja-main” class=”clearfix”>

    <?php if ( mosCountModules( ‘left’ ) || ($subnav) ) { ?>
    <!– BEGIN: LEFT SIDE –>
    <div id=”ja-leftcol”>
    <?php if ($subnav) { ?>
    <div id=”ja-subnav”>
    <h3><?php echo $menuname; ?></h3>
    <?php echo $subnav; ?>
    </div>
    <?php }
    echo
    mosLoadModules ( ‘left’,-2 );
    ?>
    </div>
    <!– END: LEFT SIDE –>
    <?php } ?>

    <!– BEGIN: CONTENT –>
    <div id=”ja-<?php echo $divid ?>”>
    <a name=”Content” id=”Content”></a>
    <div id=”pathway”><?php mosPathway(); ?></div>

    <?php mosMainBody(); ?>

    <!– BEGIN: CONTENT SPOTLIGHT –>
    <?php if ( mosCountModules( ‘user1’) || mosCountModules( ‘user2’) ) { ?>
    <div class=”clr”></div>
    <div style=”position: relative; margin-top: 10px;” class=”clearfix”>
    <?php if ( mosCountModules( ‘user1’) ) { ?>
    <div id=”ja-spotlight-1″ style=”width: <?php echo $divwidth ?>; float: left;”>
    <?php mosLoadModules(‘user1’,-2); ?>
    </div>
    <?php }
    if ( mosCountModules( ‘user2’) ) { ?>
    <div id=”ja-spotlight-2″ style=”width: <?php echo $divwidth ?>; float: right;”>
    <?php mosLoadModules(‘user2’,-2); ?>
    </div>
    <?php } ?>
    </div>
    <?php } ?>
    <!– END: CONTENT SPOTLIGHT –>

    </div>
    <!– END: CONTENT –>

    <?php if ( mosCountModules( ‘right’ ) ) { ?>
    <!– BEGIN: RIGHT SIDE –>
    <div id=”ja-rightcol”>
    <?php mosLoadModules ( ‘right’,-2 ); ?>
    </div>
    <!– END: RIGHT SIDE –>
    <?php } ?>
    </div>

    <!– BEGIN: FOOTER –>
    <div id=”ja-footer”>
    <?php mosLoadModules ( ‘user3’,-1 ); ?>
    </div>
    <div class=”shadow”></div>

    <div id=”ja-bottomline”>

    <?php include_once( $GLOBALS[‘mosConfig_absolute_path’] . ‘/templates/ja_spica/footer.php’ ); ?>

    <span style=”position: absolute; right: 10px;”>
    <a href=”http://jigsaw.w3.org/css-validator/validator?uri=<?php echo $mosConfig_live_site;?>” target=”_blank” title=”Our site is valid CSS” style=”text-decoration: none;”>
    <img src=”<?php echo $ja_template_path;?>/images/but-css.gif” alt=”Our site is valid CSS” />
    </a>
    <a href=”http://validator.w3.org/check/referer” target=”_blank” title=”Our site is valid XHTML 1.0 Transitional” style=”text-decoration: none;”>
    <img src=”<?php echo $ja_template_path;?>/images/but-xhtml.gif” alt=”Our site is valid XHTML 1.0 Transitional” />
    </a>
    </span>
    </div>
    <!– END: FOOTER –>

    </div>
    </div>
    </div>
    </div>
    </div>

    <?php mosLoadModules( ‘debug’, -1 );?>
    </body>

    </html>

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  tvanhoeck 18 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum