Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 05:41:51 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: **resolved**Want to use show menu 2 with template TEMPLERON  (Read 1515 times)
DjangoScroll

Offline Offline

Posts: 5



« on: September 18, 2007, 05:47:19 PM »

Hello !

First sorry for the "Frenglish" ! i dont know how to use and where put show_menu2 (); in the template i use.

here is the index.php
Code:
<?php

/*

 WebsiteBaker Project <http://www.websitebaker.org/>
 Copyright (C) 2004-2005, Ryan Djurovich

 WebsiteBaker is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 WebsiteBaker is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with websitebaker; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

*/

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!--
__________________________________________________________
|                                                         |
|    DESIGN + http://www.top.rebalton.com Francesco Zambotti
|      DATE + 2006.06.12                                  |
| COPYRIGHT + free use if this notice is kept in place    |
|_________________________________________________________|

-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title><?php page_title(); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else { echo 'utf-8'; }?>" />
<meta name="description" content="<?php page_description(); ?>" />
<meta name="keywords" content="<?php page_keywords(); ?>" />
<link href="<?php echo TEMPLATE_DIR?>/topmenu.css" rel="stylesheet" type="text/css" media="screen" />
<link href="<?php echo TEMPLATE_DIR?>/base.css" rel="stylesheet" type="text/css" media="screen" />
</head>

<body id="pagetop" class="en">
<!-- Main site container -->
<div id="generale" class="home">
<!-- Upper border -->
<div id="bordosopra">
</div>
<!-- // Upper border -->
<!-- Main site header : holds the img, search and top menu -->
<div id="top" >
<div id="menup">
<div id="header">
</div>

<!-- Top Menu -->
<ul id="menu">
<li class="divisoremenu"></li>
<?php $count 0;
// Loop 
while($page $menu1->fetchRow()) {
// Controllo pagina
if(!isset($admin) OR $admin->show_page($page)) {
?>

<li class="premuto">
<a class="menuHead" href="<?php echo page_link($page['link']); ?>"><?php echo stripslashes($page['menu_title']); ?></a></li>
<li class="divisoremenu"></li>
<?php
$count 
$count+1;
}
}
?>

</ul>
<!-- // Top Menu -->
</div>
</div>
<!-- // Main site header -->
<!-- contents -->
<div id="content">
<!-- Container of "center page" -->
<div id="main">
<!-- ============================== -->
<!-- Contents -->
<!-- ============================== -->

<div id="contenuti" class="container">
<?php page_content(); ?>

<div class="section">
<div class="secbody">
<p>&nbsp;</p>
</div>
</div>

</div>

</div>

<!-- ============================== -->
<!-- Right Side -->
<!-- ============================== -->

<div id="destra">
 
<div align="center" id="risorse" class="section">
    <?php if(FRONTEND_LOGIN == 'enabled' AND VISIBILITY != 'private' AND $wb->get_session('USER_ID') == '') { ?>
       
    <?php ?>
<div class="surround">
              <p><img src="http://francor.free.fr/images/login.gif"></p>
            <?php
        
if(FRONTEND_LOGIN == 'enabled' AND VISIBILITY != 'private' AND $wb->get_session('USER_ID') == '') {
        
?>

        <form action="<?php echo LOGIN_URL?>" method="post" class="login_table">
            <p><?php echo $TEXT['USERNAME']; ?>:
            <input type="text" name="username" style="text-transform: lowercase;" /></p>
            <?php echo $TEXT['PASSWORD']; ?>:
            <input type="password" name="password" />
            <input type="submit" name="submit" value="<?php echo $TEXT['LOGIN']; ?>" style="margin-top: text-transform: uppercase;" />
            <p><a href="<?php echo FORGOT_URL?>"><?php echo $TEXT['FORGOT_DETAILS']; ?></a>
                <?php if(is_numeric(FRONTEND_SIGNUP)) { ?></p>
                    <a href="<?php echo SIGNUP_URL?>"><?php echo $TEXT['SIGNUP']; ?></a>
                <?php ?>
        </form>
        <?php
        
} elseif(FRONTEND_LOGIN == 'enabled' AND is_numeric($wb->get_session('USER_ID'))) {
        
?>

        <form action="<?php echo LOGOUT_URL?>" method="post" class="login_table">
            <p><?php echo $TEXT['LOGGED_IN']; ?></p>
            <p><?php echo $TEXT['WELCOME_BACK']; ?>, <?php echo $wb->get_display_name(); ?></p>
            <p>
            <input type="submit" name="submit" value="<?php echo $MENU['LOGOUT']; ?>" />
            <br />
            <a href="<?php echo PREFERENCES_URL?>"><?php echo $MENU['PREFERENCES']; ?></a></p>
        </form>
        <?php
        
}
        
?>

      </div>
    </div>

<div align="center" id="segnalibri" class="section">
<p><a href="http://feeds.feedburner.com/scrollvideo" rel="alternate" type="application/rss+xml"><img src="http://www.feedburner.com/fb/images/pub/feed-icon16x16.png" alt="" style="vertical-align:middle;border:0"/></a>&nbsp;<a href="http://feeds.feedburner.com/scrollvideo" rel="alternate" type="application/rss+xml">RSS Videos</a></p>
<p><a href="http://feeds.feedburner.com/scrollvideo"><img src="http://feeds.feedburner.com/~fc/scrollvideo?bg=CC9900&amp;fg=000000&amp;anim=0&amp;label=Scrolls" height="26" width="88" style="border:0" alt="" /></a></p>
</div>
</div>
<!-- // End Right side -->



<div id="bottom">
</div><!-- // #bottom -->

<div id="footer">
<ul>
<li id="footertx"><?php page_footer(); ?></li>
</ul>
</div><!-- // #footer -->
<div id="close">
</div><!-- // #close site -->
<div id="spaziovuoto">
</div>
</div><!-- // #close contents -->

</div><!-- // #close main site container -->
</body>
</html>

and the topmenu.css :
Code:
   /* MENU SUPERIORE */
   
div#menup {
    text-align:center;
}

ul#menu {
    height: 47px;
    line-height:47px;
    padding-left: 29px;
    padding-right: 39px;
    list-style: none;
    background: url(images/menu.gif) no-repeat 0 0;
    color: White;
    font-size: 12px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;    
}
ul#menu li {
    float: left;
    height: 47px;
    color: White;
    font-size: 12px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;    

   
}
   
ul#menu li a {
    height: 47px;
    color: White;
    font-size: 12px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;    

}


li.premuto a {
    color: White;
    font-size: 12px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    width:auto;
    height: 47px;


}
   
div.premuto li#premuto a,
li.premuto a:active,
li.premuto a:hover {
    background: url(images/menupremuto.gif);
    color: White;
    font-size: 12px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;    

}

.menuHead
{
    color: White;
    font-size: 12px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;    

}

a.menuHead
{
    color: White;
    font-size: 12px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;    
    padding-bottom: 12px;
    padding-top: 16px;

    }



li.divisoremenu {
    width: 2px;
    height: 47px;
    padding-left: 0px;
    padding-right: 0px;
    background: url(images/separatore.gif) no-repeat 0 0;
}

if its possible i would the menu stays as here

hope you can help me !

 cool
« Last Edit: September 23, 2007, 12:56:02 AM by DjangoScroll » Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #1 on: September 18, 2007, 06:07:41 PM »

Hello,

if you wanna use show_menu2 please do the following:

1. Download the latest version of show_menu2 from our addons page

2. Install it as Module in WB-admin

3.Replace:
Code:
<!-- Top Menu -->
<ul id="menu">
<li class="divisoremenu"></li>
<?php $count 0;
// Loop 
while($page $menu1->fetchRow()) {
// Controllo pagina
if(!isset($admin) OR $admin->show_page($page)) {
?>

<li class="premuto">
<a class="menuHead" href="<?php echo page_link($page['link']); ?>"><?php echo stripslashes($page['menu_title']); ?></a></li>
<li class="divisoremenu"></li>
<?php
$count 
$count+1;
}
}
?>

</ul>
<!-- // Top Menu -->

with:
Code:
<!-- Top Menu -->
<?php show_menu2(); ?>
<!-- // Top Menu -->

4. Adapt the menu-call and the css of your template to your wishes. The Modul comes with a README where all paramters are explained.

Hope this helps

Matthias
Logged
DjangoScroll

Offline Offline

Posts: 5



« Reply #2 on: September 18, 2007, 06:45:50 PM »

OK ! Thank you very much for your speedy gonzales answer ! lol

it works and the permissions too. here you can see

the reason why i want use show menu 2 its when users login i want they see private folder, with the original menu it don't works!
it's the last thing i must do and my site is finish !

Quote
Adapt the menu-call and the css of your template to your wishes

i have any idea to do this  cry i'm noob of programming ! i'm copy/paste user lol

if you can help me you are great else thanks a lot and hope you understand my neanderthal english

bye
Logged
doc
Guest
« Reply #3 on: September 18, 2007, 08:07:27 PM »

@DjangoScroll
Quote
i have any idea to do this  cry i'm noob of programming ! i'm copy/paste user lol
Visit the bookmarks section on http://help.websitebaker.org. There are many links to solve your styling issues (CSS, HTML...). As this is a WB forum and no designer guide forum, please search for answers outside of WB. Also check out the http://code.jellycan.com/show_menu2/

Regards Christian
Logged
DjangoScroll

Offline Offline

Posts: 5



« Reply #4 on: September 18, 2007, 09:04:46 PM »

yes you're right  grin

thanks to matthias for resolved my initial problem

and thanks to Christian for the links

and all website baker team !

bye
Logged
DjangoScroll

Offline Offline

Posts: 5



« Reply #5 on: September 23, 2007, 12:51:15 AM »

hello ! ok i've made it !

so if someone want to use the template TEMPLERON with show_menu2 here it is the template:

Scroll Templeron

cu  cool
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!