Foros del Web » Creando para Internet » CSS »

Problema creando Rollover al menu. Ayuda

Estas en el tema de Problema creando Rollover al menu. Ayuda en el foro de CSS en Foros del Web. Muy buenas de nuevo a todo el mundo bueno despues de practicar con este CMS SPHPBlog me dispuesto a personalizarlo, pero con la primera modificación ...
  #1 (permalink)  
Antiguo 08/11/2006, 08:44
Avatar de xiscomax  
Fecha de Ingreso: febrero-2006
Mensajes: 379
Antigüedad: 18 años, 2 meses
Puntos: 5
Problema creando Rollover al menu. Ayuda

Muy buenas de nuevo a todo el mundo bueno despues de practicar con este CMS SPHPBlog me dispuesto a personalizarlo, pero con la primera modificación que me dispongo a realizarle ya me atascado. :(
Lo que intento hacer es darle un efecto Roll-Over a los botones del menu lateral. hasta ahi loe conseguido el problema biene que entre boton y boton ahi un espacio muy grande no consigo que los botones queden uno sobre el otro pegados

Esto es lo que kiero
_______________
|______________|
|______________|
|______________|
|______________|

Y esto es lo que me sale

_______________
|______________|
_______________
|______________|
_______________
|______________|
_______________
|______________|

Esto es lo que eh modificado añadido, al style del theme Default.
Código PHP:
#toggleSidebarMenu
{
   
font-weightbold
   
border1px solid #999999; 
   
margin:3 0 3 0px
   
padding2px
}

#toggleSidebarMenu a
{
   
background-imageurl("images/menu1.jpg"); 
   
color#666666; 
   
text-decorationnone
   
displayblock
   
width100%; 
}

#toggleSidebarMenu a:hover
{
   
background-imageurl("images/menu2.jpg");
   
color#ffffcc; 
Y esto el el style al completo modificado

Código PHP:
 /*
--------------------
Simple PHP Blog CSS Styles
--------------------

Name: Classic Theme
Author: Alexander Palmo

Description:
This the is the css theme for the Classic theme.
You can use this as a template for your own themes.

Also refer to user_style.php...
*/

/* General */

body
{
    
color#666633; /* txt_color */
    
font-size11px;
    
margin0px;
    
padding0px;
    
text-alignleft;
    
background-color#CCCC99; /* bg_color */
    
    /* Standard. Readable */
    
font-familyArialHelveticaSans-Serif;
    
/* font-family:  'Lucida Grande', Geneva, sans-serif; */
    /* font-family: Tahoma, Geneva, sans-serif; */
    /* font-family: Geneva, Verdana, sans-serif; */
    
    /* Nice. Classic Looking */
    /* font-family: 'Times New Roman', Times, serif; */
    /* font-family: Georgia, serif; */
    /* font-family: Book Antiqua, Palatino, serif; */
    
    /* Modern. Kind of Funky */
    /* font-family: 'Gill Sans', 'Trebuchet MS', Helvetica, sans-serif; */
    
    /* Monospace */
    /* font-family: Lucida Console, Monaco, monospace; */
}

/* Typeography */

p
{
    
margin8px 0px 8px 0px
}

h1h2h3h4h5h6
{
    
font-family'Trebuchet MS''Gill Sans'Helveticasans-serif;
    
font-weightbold;
    
color#666633; /* headline_txt_color */
    
text-shadow#bbb 2px 2px 1px;
    
    
margin2px 0px 2px 0px;
}

h1
{
    
font-size20px;
}

h2
{
    
font-size18px;
}

h3
{
    
font-size16px;
}

h4
{
    
font-size14px;
}

h5
{
    
font-size12px;
}

h6
{
    
font-size10px;
}

/* NEW */
codepre {
    
font-family'Courier New'CourierFixed;
}

/* NEW */
pre {
    
overflowauto;
    
width512px;
    
border1px dotted #D9D9D9; /* inner_border_color */
    
padding5px
}

/* NEW */
blockquote {
    
color#777;
    
margin15px 30px 0 10px;
    
padding-left20px;
    
border-left5px solid #ddd
}

/* Links */

a:linka:visited
{
    
font-weightbold;
    
text-decorationnone;
    
color#993333; /* link_reg_color */
}

a:hover
{
    
text-decorationunderline;
    
color#FF3333; /* link_hi_color */
}

a:active
{
    
color#3333FF; /* link_down_color */
}

/* Images */

img
{
    
border0;
}

#img_float_left
{
    
/* Used in the [img] tag when float=left */
    
floatleft;
    
margin2px 8px 4px 2px;
}

#img_float_right
{
    
/* Used in the [img] tag when float=right */
    
floatright;
    
margin2px 2px 4px 8px;
}

/* Elements */

hr    
{
    
color#D9D9D9; /* inner_border_color */
    
background-color#D9D9D9; /* inner_border_color */
    
height1px;
    
border0px;
    
margin8px 0px 8px 0px
}

/* Forms */

/* NEW */
form {
    
font-size11px;
    
margin0px;
    
padding0px
}
    
inputselectoptiontextarea
{
    
font-size11px;
    
text-alignleft;
}

/* Theme Specific */

#header_image
{
    
border-color#4D4D45; /* border_color */
    
border-width0px 0px 1px 0px;
    
border-stylesolid;
}

#header
{
    
font-family'Trebuchet MS''Gill Sans'Helveticasans-serif;
    
color#FFFFFF; /* header_txt_color */
    
margin0px;
    
padding4px 12px 4px 12px;
    
border-color#4D4D45; /* border_color */
    
border-width0px 0px 1px 0px;
    
border-stylesolid;
    
background-color#999966; /* header_bg_color */
    
font-size14px;
    
font-weightbold;
}

#maincontent
{
    
margin0;
    
padding20px;
}

#maincontent .blog_subject
{
    
font-family'Trebuchet MS''Gill Sans'Helveticasans-serif;
    
color#666633; /* headline_txt_color */
    
font-size14px;
    
font-weightbold;
    
margin0px;
}

#maincontent .blog_byline
{
    
color#999999; /* date_txt_color */
    
font-size9px;
    
margin-bottom10px;
}

div #toggleSidebarAvatar, #toggleSidebarArchives, #toggleSidebarCalendar, #toggleSidebarCategories, #toggleSidebarSearch, #toggleSidebarLinks, #toggleSidebarPreferences, #toggleSidebarRecentComments, #toggleSidebarRecentEntries, #toggleSidebarRecentTrackbacks
{
    
displayblock;
}

#toggleSidebarMenu
{
   
font-weightbold
   
border1px solid #999999; 
   
margin:3 0 3 0px
   
padding2px
}

#toggleSidebarMenu a
{
   
background-imageurl("images/menu1.jpg"); 
   
color#666666; 
   
text-decorationnone
   
displayblock
   
width100%; 
}

#toggleSidebarMenu a:hover
{
   
background-imageurl("images/menu2.jpg");
   
color#ffffcc;
}

#sidebar
{
    
padding10px;
}

#sidebar .menu_title
{
    
font-family'Trebuchet MS''Gill Sans'Helveticasans-serif;
    
font-weightbold;
}

#sidebar .menu_title a
{
    
text-decorationnone;
    
colorinherit;
}

#sidebar .menu_title:hover
{
}

#sidebar .menu_body 
{
    
padding10px;
    
border-color#999;
    
border-width1px;
    
border-styledashed;
}

#sidebar .divider {
    
margin8px 0px 8px 0px;
}

#sidebar .calendar
{
    
font-size10px;
}

#sidebar .calendar a
{
    
font-weightbold;
    
text-decorationnone;
}

#sidebar .calendar td
{
    
padding2px;
}

/* NEW */
#archive_tree_menu ul    
{
    list-
stylenone inside;
    
padding0px 0px 0px 10px;
    
margin0px;
}

/* NEW */
#archive_tree_menu li    
{
    
margin0px;
    
padding0px;
    
/* border: 1px #F0F dashed; */
}

#footer
{
    
border0;
    
border-top1px solid #4D4D45; /* border_color */
    
color#666666; /* footer_txt_color */
    
background#EEEEEE; /* footer_bg_color */
    
padding10px;
    
text-alignleft;
    
clearboth;
}

.
divider margin20px 0px 15px 0px; } 

Aber si alguien puede hecharme una mano se lo agradecere mucho xP
Salu2
  #2 (permalink)  
Antiguo 08/11/2006, 09:15
Avatar de fearlex  
Fecha de Ingreso: septiembre-2003
Ubicación: Exiliado de mi patria
Mensajes: 1.047
Antigüedad: 20 años, 7 meses
Puntos: 5
Creo que la mejor forma de poder ayudarte seria que incluyeras el codigo HTML tambien.

De todas formas prueba con:

line-height: #;

Espero te sirva
__________________
Ya viene llegando, el comunismo en Cuba, ya se esta acabando.
www.fearlex.com | www.fearlexworld.com
  #3 (permalink)  
Antiguo 08/11/2006, 10:38
Avatar de xiscomax  
Fecha de Ingreso: febrero-2006
Mensajes: 379
Antigüedad: 18 años, 2 meses
Puntos: 5
Pues el codigo del archivo theme.php es este.
Código PHP:
<?php
    
// --------------------------
    // Simple PHP Blog Theme File
    // --------------------------
    //
    // Name: Default/Classic Theme
    // Author: Alexander Palmo
    // Version: 0.4.8
    //
    // Description:
    // This the is default theme for Simple PHP Blog. You can use
    // this as a template for your own themes.
    //
    // All graphic will be relative to the base-url (i.e. the folder
    // where index.php is located.)

    
theme_init();

    
// ---------------
    // Theme Variables
    // ---------------
    
function theme_init () {
        global 
$theme_vars;

        
$theme_vars = array();

        
// Optional:
        // "content_width" and "menu_width" area used internally
        // within the theme only. (optional but recommended.)
        
$theme_vars'content_width' ] = 550;
        
$theme_vars'menu_width' ] = 200;

        
// Required:
        // "popup_window" "width" and "height" are used to determine
        // the size of window to open for the comment view.
        
$theme_vars'popup_window' ][ 'width' ] = $theme_vars'content_width' ] + 50;
        
$theme_vars'popup_window' ][ 'height' ] = 600;

        
// Optional:
        // "popup_window" "content_width" is only used internally.
        
$theme_vars'popup_window' ][ 'content_width' ] = $theme_vars'content_width' ];

        
// Required:
        // Determines the maximum with of images within a page.
        // Make sure this value is less then "content_width" or you
        // might have wrapping problems.
        
$theme_vars'max_image_width' ] = $theme_vars'content_width' ] - 38;

        
// ------------
        // CUSTOMIZATION
        // ------------
        // New 0.3.8
        
$theme_vars'menu_align' ] = 'right'// Valid values are 'left' or 'right'
    
}

    
// Function:
    // theme_blogentry( $entry_array )
    //
    // Theme for Blog Entries
    // ----------------------
    // All data is stored the $entry_array associative array and
    // passed to the function. Keep in mind that multiple languages
    // are used. So, try not to hard-code 'english' strings. If
    // you are creating graphics for buttons, try to use icons
    // instead of words.
    //
    // (Please note, the "\n" at the end of the echo() command adds
    // a return charater in the HTML source. This is standard PHP
    // behavior. Note the '\n' will not work for this. It has to be
    // surrounded by double-quotes.)
    //
    // The array could contains the following keys:
    // $entry_array[ 'subject' ]          = String: Subject line
    // $entry_array[ 'date' ]             = String: Date posted in the appropriate language and format.
    // $entry_array[ 'entry' ]            = String: The body of the blog entry
    // $entry_array[ 'logged_in' ]       = Boolean: True if user is logged in (used to determine whether to show 'edit' and 'delete' buttons)
    // $entry_array[ 'edit' ][ 'url' ]      = String: URL
    // $entry_array[ 'edit' ][ 'name' ]     = String: The word 'edit' in the appropriate language.
    // $entry_array[ 'delete' ][ 'url' ]    = String: URL
    // $entry_array[ 'delete' ][ 'name' ]   = String: The word 'delete' in the appropriate language.
    // $entry_array[ 'comment' ][ 'url' ]   = String: URL
    // $entry_array[ 'comment' ][ 'name' ]  = String: This will be 'add comment', '1 comment', or '2 comments' in the appropriate language.
    // $entry_array[ 'comment' ][ 'count' ] = String: The number of 'views' in the appropriate language.
    // $entry_array[ 'count' ]            = Integer: Index of current entry (i.e. use this if you want to add a line after every entry except the last one...)
    // $entry_array[ 'maxcount' ]         = Integer: Total number of entries
    
function theme_blogentry $entry_array$mode='entry' ) { // New 0.4.8
        
global $blog_config$user_colors;

        
$blog_content "\n";

        
// TRACKBACKS (RDF)
        
if ( $blog_config'blog_trackback_enabled' ] ) {
            
$blog_content $blog_content '<!--' "\n";
            
$blog_content $blog_content '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"' "\n";
            
$blog_content $blog_content '         xmlns:dc="http://purl.org/dc/elements/1.1/"' "\n";
            
$blog_content $blog_content '         xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">' "\n";
            
$blog_content $blog_content '<rdf:Description' "\n";
            
$blog_content $blog_content '    rdf:about="' $entry_array'permalink' ][ 'url' ] . '"' "\n";
            
$blog_content $blog_content '    dc:identifier="' $entry_array'permalink' ][ 'url' ] . '"' "\n";
            
$blog_content $blog_content '    dc:title="' $entry_array'subject' ] . '"' "\n";
            
$blog_content $blog_content '    trackback:ping="' $entry_array'trackback' ][ 'ping_url' ] . '" />' "\n";
            
$blog_content $blog_content '</rdf:RDF>' "\n";
            
$blog_content $blog_content '-->' "\n";
        }

        
// SUBJECT
        
$blog_content $blog_content '<div class="blog_subject">' $entry_array'subject' ]  . '<a name="' $entry_array'id' ] . '">&nbsp;</a></div>' "\n";

        
// DATE
        
if ( $mode != 'static' ) { // New 0.4.8
            
$blog_content $blog_content "<div class=\"blog_byline\">" $entry_array'date' ];

            
// CATEGORIES
            
if ( array_key_exists"categories"$entry_array ) ) {
                
$blog_content $blog_content " - ";
                for ( 
$i 0$i count$entry_array'categories' ] ); $i++ ) {
                    
$blog_content .= '<a href="index.php?category=' $entry_array'categories_id' ][$i] . '">' $entry_array'categories' ][$i] . '</a>';
                    if ( 
$i count$entry_array'categories' ] ) - ) {
                        
$blog_content .= ', ';
                    }
                }
            }

            
// IP ADDRESS
            // New 0.4.8
            
if ( isset( $entry_array'logged_in' ] ) && $entry_array'logged_in' ] == true ) {
                if ( 
array_key_exists'ip-address'$entry_array ) && $mode == 'comment' ) {
                    
$blog_content $blog_content ' <span class="blog_ip_address">&lt;&nbsp;' $entry_array'ip-address' ] . '&nbsp;&gt;</span>' "\n";
                }
            }

            
$blog_content $blog_content "</div>\n\t\t";
        }

        
// EDIT/DELETE BUTTONS
        
if ( isset( $entry_array'logged_in' ] ) && $entry_array'logged_in' ] == true ) {
            if ( isset( 
$entry_array'edit' ][ 'url' ] ) ) {
                
$blog_content $blog_content '<a href="' $entry_array'edit' ][ 'url' ] . '">[ ' $entry_array'edit' ][ 'name' ] . ' ]</a>' "\n";
            }
            if ( isset( 
$entry_array'delete' ][ 'url' ] ) ) {
                
$blog_content $blog_content '<a href="' $entry_array'delete' ][ 'url' ] . '">[ ' $entry_array'delete' ][ 'name' ] . ' ]</a>' "\n";
            }

            if ( isset( 
$entry_array'ban' ][ 'url' ] ) ) {
                
$blog_content $blog_content '<a href="' $entry_array'ban' ][ 'url' ] . '">[ ' $entry_array'ban' ][ 'name' ] . ' ]</a><br /><br />' "\n";
            }
        }
Sigue en el otro Post
Gracias luego pruevo lo que me comentas.
  #4 (permalink)  
Antiguo 08/11/2006, 10:43
Avatar de JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Cita:
Iniciado por fearlex Ver Mensaje
Creo que la mejor forma de poder ayudarte seria que incluyeras el codigo HTML tambien.
xiscomax, lo que has puesto es el código PHP es probable que los que visitan este foro no tengan mucha idea de eso.

Saludos,
  #5 (permalink)  
Antiguo 08/11/2006, 10:44
Avatar de xiscomax  
Fecha de Ingreso: febrero-2006
Mensajes: 379
Antigüedad: 18 años, 2 meses
Puntos: 5
Código PHP:

        
// BLOG ENTRY
        
$blog_content $blog_content $entry_array'entry' ] . "\n";

        
// COMMENT ADD
        
if ( isset( $entry_array'comment' ][ 'url' ] ) ) {
            
// Show 'add comment' button if set...
            
$blog_content $blog_content '<br /><a href="' $entry_array'comment' ][ 'url' ] . '">[ ' $entry_array'comment' ][ 'name' ] . ' ]</a>' "\n";
        }

        
// COMMENT COUNT
        
if ( isset( $entry_array'comment' ][ 'count' ] ) ) {
            
// Show '( x views )' string...
            
$blog_content $blog_content ' ( ' $entry_array'comment' ][ 'count' ] . ' )' "\n";
        }

        
// TRACKBACK
        
if ( isset( $entry_array'trackback' ][ 'url' ] ) ) {
            
// Show 'trackback' symbol
            
$blog_content $blog_content '&nbsp;&nbsp;|&nbsp;&nbsp;<a href="' $entry_array'trackback' ][ 'url' ] . '">[ ' $entry_array'trackback' ][ 'name' ] . ' ]</a>' "\n";;
        }

        
// PERMALINK
        
if ( $blog_config['blog_enable_permalink']){// New for 0.4.6
            
if ( isset( $entry_array'permalink' ][ 'url' ] ) ) {
                
// Show 'permalink' symbol
                
$blog_content $blog_content '&nbsp;&nbsp;|&nbsp;&nbsp;<a href="' $entry_array'permalink' ][ 'url' ] . '">' $entry_array'permalink' ][ 'name' ] . '</a>';
            }
        }

        
// RELATED LINK
        
if ( isset( $entry_array['relatedlink']['url'] ) ) {
            
// Show 'relatedlink' symbol - New to 0.4.6
            
$blog_content $blog_content '&nbsp;&nbsp;|&nbsp;&nbsp;<a href="' $entry_array['relatedlink']['url'] . '">' $entry_array['relatedlink']['name'] . '</a>';
        }

        
// RATING
        
if ( isset( $entry_array'stars' ] ) ) {
            
// Show 'permalink' symbol
            
$blog_content $blog_content '&nbsp;&nbsp;|&nbsp;&nbsp;' $entry_array'stars' ];
        }

        
// END
        
$blog_content $blog_content '<hr />' "\n";

        return 
$blog_content;
    }

    function 
theme_staticentry $entry_array ) {
        
$blog_content theme_blogentry$entry_array'static' ); // New 0.4.8
        
return $blog_content;
    }

    function 
theme_commententry $entry_array ) {
        
$blog_content theme_blogentry$entry_array'comment' ); // New 0.4.8
        
return $blog_content;
    }

    function 
theme_trackbackentry $entry_array ) {
        global 
$blog_config$user_colors;

       
$blog_content "\n";

        
$blog_content $blog_content '<div class="blog_subject">' $entry_array'title' ] . '</div>' "\n";
        
$blog_content $blog_content '<div class="blog_date">' $entry_array'date' ] . '</div>' "\n";

        if ( isset( 
$entry_array'logged_in' ] ) && $entry_array'logged_in' ] == true ) {
            
// Show 'delete' button if the user is logged-in...
            
if ( isset( $entry_array'delete' ][ 'url' ] ) ) {
                
$blog_content $blog_content '<a href="' $entry_array'delete' ][ 'url' ] . '">[ ' $entry_array'delete' ][ 'name' ] . ' ]</a><br /><br />' "\n";
            }
        }

        
$blog_content $blog_content $entry_array'excerpt' ] . "<p>\n";

        if ( (isset( 
$entry_array'blog_name' ] ) ) && ($entry_array'blog_name' ] != "") ) {
           
$blog_content $blog_content '<a href="'.$entry_array'url' ].'">[ ' $entry_array'blog_name' ] . " ]</a><p>\n";
        } else {
           
$blog_content $blog_content '<a href="'.$entry_array'url' ].'">[ ' $entry_array'url' ] . " ]</a><p>\n";
        }

        
$blog_content $blog_content '<hr />' "\n";

        return 
$blog_content;
    }

    
// Function:
    // theme_default_colors( )
    //
    // Default Base Colors
    // -------------------
    // $user_colors is an associative array that stores
    // all color information. These are the default colors
    // for the theme. These values are read in, and then
    // get overwritten when the user saved colors are
    // read from file.
    //
    // Note
    // ----
    // You can create your own "keys" but they will not
    // show up in the "colors.php" document yet...
    //
    // Also, only these default keys have translations for
    // different languages. If something is missing, email
    // me and I'll add it for future releases.
    //
    // Eventually you'll have the option of disabling keys
    // and added keys will appear on the "color.php" page.
    
function theme_default_colors () {
        global 
$lang_string;

        
$color_def = array();

        
array_push$color_def, array( 'id' => 'bg_color',
                                
'string' => $lang_string'bg_color' ],
                                
'default' => 'CCCC99' ) );
        
array_push$color_def, array( 'id' => 'border_color',
                                
'string' => $lang_string'border_color' ],
                                
'default' => '4D4D45' ) );
        
array_push$color_def, array( 'id' => 'main_bg_color',
                                
'string' => $lang_string'main_bg_color' ],
                                
'default' => 'FFFFFF' ) );
        
array_push$color_def, array( 'id' => 'menu_bg_color',
                                
'string' => $lang_string'menu_bg_color' ],
                                
'default' => 'F2F2F2' ) );
        
array_push$color_def, array( 'id' => 'inner_border_color',
                                
'string' => $lang_string'inner_border_color' ],
                                
'default' => 'D9D9D9' ) );
        
array_push$color_def, array( 'id' => 'link_reg_color',
                                
'string' => $lang_string'link_reg_color' ],
                                
'default' => '993333' ) );
        
array_push$color_def, array( 'id' => 'link_hi_color',
                                
'string' => $lang_string'link_hi_color' ],
                                
'default' => 'FF3333' ) );
        
array_push$color_def, array( 'id' => 'link_down_color',
                                
'string' => $lang_string'link_down_color' ],
                                
'default' => '3333FF' ) );
        
array_push$color_def, array( 'id' => 'header_bg_color',
                                
'string' => $lang_string'header_bg_color' ],
                                
'default' => '999966' ) );
        
array_push$color_def, array( 'id' => 'header_txt_color',
                                
'string' => $lang_string'header_txt_color' ],
                                
'default' => 'FFFFFF' ) );
        
array_push$color_def, array( 'id' => 'footer_bg_color',
                                
'string' => $lang_string'footer_bg_color' ],
                                
'default' => 'EEEEEE' ) );
        
array_push$color_def, array( 'id' => 'footer_txt_color',
                                
'string' => $lang_string'footer_txt_color' ],
                                
'default' => '666666' ) );
        
array_push$color_def, array( 'id' => 'txt_color',
                                
'string' => $lang_string'txt_color' ],
                                
'default' => '666633' ) );
        
array_push$color_def, array( 'id' => 'headline_txt_color',
                                
'string' => $lang_string'headline_txt_color' ],
                                
'default' => '666633' ) );
        
array_push$color_def, array( 'id' => 'date_txt_color',
                                
'string' => $lang_string'date_txt_color' ],
                                
'default' => '999999' ) );

        return ( 
$color_def );
    }

    
// Function:
    // theme_pagelayout( )
    //
    // Page Layout Container/Wrapper
    // -----------------------------
    // This function controls all HTML output to the browser.
    //
    // Invoking the page_content() fuction inserts the actual
    // contents of the page.
    //
    
function theme_pagelayout () {
        global 
$user_colors$blog_config$blog_theme$theme_vars;

        
$content_width $theme_vars'content_width' ];
        
$menu_width $theme_vars'menu_width' ];
        
$page_width $content_width $menu_width;

        
// Default image path.
        
$img_path "themes/" $blog_theme "/images/"
Sigue un poco mas :P |
\/
  #6 (permalink)  
Antiguo 08/11/2006, 10:45
Avatar de xiscomax  
Fecha de Ingreso: febrero-2006
Mensajes: 379
Antigüedad: 18 años, 2 meses
Puntos: 5
Código PHP:

        // Begin Page Layout HTML
        ?>
        <body>
            <br />
            <table border="0" width="<?php echo( $page_width ); ?>" cellspacing="0" cellpadding="0" align="center" style="border: 1px solid #<?php echo( $user_colors'border_color' ] ); ?>;">
                <tr align="left" valign="top">
                    <td width="<?php echo( $page_width ); ?>" colspan="2" bgcolor="#<?php echo( $user_colors'header_bg_color' ] ); ?>">
                        <div id="header_image"><img src="<?php echo( $img_path ); ?>header750x100.jpg" alt="" border="0" /></div>

                        <?php
                        
if ( $blog_config['blog_enable_title']) { // New for 0.4.6
                        
echo('<div id="header">' $blog_config'blog_title' ] . '</div>');
                        }
?>

                        <div id="pagebody">
                            <table border="0" width="<?php echo( $page_width ); ?>" cellspacing="0" cellpadding="0" align="left">
                                <tr valign="top">
                                    <?php if ( $theme_vars'menu_align' ] == 'left' ) { // New 0.3.8 - Left Menu ?>
                                    <td width="<?php echo( $menu_width ); ?>" bgcolor="#<?php echo( $user_colors'menu_bg_color' ] ); ?>" style="border-right: 1px solid #<?php echo( $user_colors'inner_border_color' ] ); ?>;">
                                        <div id="sidebar">
                                            <?php theme_menu(); ?>
                                        </div>
                                    </td>
                                    <?php ?>
                                    <td width="<?php echo( $content_width ); ?>" bgcolor="#<?php echo( $user_colors'main_bg_color' ] ); ?>">
                                        <div id="maincontent">
                                            <?php page_content(); ?>
                                        </div>
                                    </td>
                                    <?php if ( $theme_vars'menu_align' ] == 'right' ) { // New 0.3.8 - Right Menu ?>
                                    <td width="<?php echo( $menu_width ); ?>" bgcolor="#<?php echo( $user_colors'menu_bg_color' ] ); ?>" style="border-left: 1px solid #<?php echo( $user_colors'inner_border_color' ] ); ?>;">
                                        <div id="sidebar">
                                            <?php theme_menu(); ?>
                                        </div>
                                    </td>
                                    <?php ?>
                                </tr>
                                <tr align="left" valign="top">
                                    <td width="<?php echo( $page_width ); ?>" bgcolor="#<?php echo( $user_colors'footer_bg_color' ] ); ?>" colspan="2">
                                        <div id="footer"><?php echo($blog_config'blog_footer' ]); ?> - <?php echo( page_generated_in() ); ?></div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </td>
                </tr>
            </table>
            <br />
        </body>
        <?php
        
// End Page Layout HTML
    
}

    
// Function:
    // theme_popuplayout( )
    //
    // Popup Layout Container/Wrapper
    // -----------------------------
    // This function controls all HTML output to the browser.
    //
    // Same as above, but for the pop-up comment window and
    // the image list pop-up.
    //
    
function theme_popuplayout () {
        global 
$user_colors$blog_config$theme_vars;

        
$popup_width $theme_vars'popup_window' ][ 'content_width' ];

        
// Begin Popup Layout HTML
        
?>
        <body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
            <br />
            <table border="0" width="<?php echo( $popup_width ); ?>" cellspacing="0" cellpadding="0" align="center" style="border: 1px solid #<?php echo( $user_colors'border_color' ] ); ?>;">
                <tr align="left" valign="top">
                    <td bgcolor="#<?php echo( $user_colors'header_bg_color' ] ); ?>">
                        <div id="header">
                            <?php echo($blog_config'blog_title' ]); ?><br />
                        </div>
                    </td>
                </tr>
                <tr align="left" valign="top">
                    <td bgcolor="#<?php echo( $user_colors'main_bg_color' ] ); ?>">
                        <div id="maincontent">
                            <?php page_content(); ?>
                        </div>
                    </td>
                </tr>
                <tr align="left" valign="top">
                    <td bgcolor="#<?php echo( $user_colors'footer_bg_color' ] ); ?>">
                        <div id="footer"><?php echo($blog_config'blog_footer' ]); ?> - <?php echo( page_generated_in() ); ?></div>
                    </td>
                </tr>
            </table>
            <br />
        </body>
        <?php
        
// End Popup Layout HTML
    
}

    function 
theme_menu_block ($blockArray$comment='MENU BLOCK'$toggleDiv=null) {
        global 
$blog_theme;

        
// This function creates the menu "blocks" in the sidebar.
        //
        // If you don't want the block to have a "twisty" arrow, then don't pass in a value for $toggleDiv

        // With "twisty" arrow
        /*
            <!-- LINKS -->
            <a id="linkSidebarLinks" href="javascript:toggleBlock('SidebarLinks');"><img src="themes/default/images/minus.gif" name="twisty"> <span class="menu_title">Links</span></a><br />
            <div id="toggleSidebarLinks" class="menu_body">
            <a href="index.php">Home</a><br />
            </div><br />
        */

        // Without "twisty" arrow
        /*
            <!-- LINKS -->
            <span class="menu_title">Links</span><br />
            <div>
            <a href="index.php">Home</a><br />
            </div><br />
        */

        
if ( isset( $blockArray'content' ] ) && $blockArray'content' ] != '' ) {
            
// Default image path.
            
$img_path "themes/" $blog_theme "/images/";
            
$img_show $img_path 'plus.gif';
            
$img_hide $img_path 'minus.gif';

            echo( 
"\n<!-- " $comment " -->\n" );

            echo( 
'<div class="menu_title">' );
            if ( isset( 
$toggleDiv ) ) {
                echo( 
'<a id="link' $toggleDiv '" href="javascript:toggleBlock(\'' $toggleDiv '\');"><img src="' $img_hide '" name="twisty" alt="" /> ' );
            }
            echo( 
$blockArray'title' ] );
            if ( isset( 
$toggleDiv ) ) {
                echo( 
'</a>' );
            }
            echo( 
"</div>\n" );

            if ( isset( 
$toggleDiv ) ) {
                echo( 
'<div id="toggle' $toggleDiv '" class="menu_body">' "\n" );
            } else {
                echo( 
'<div class="menu_body">' "\n" );
            }
            echo( 
$blockArray'content' ] . "\n" );
            echo( 
"</div><br />\n" );

            return 
true;
        } else {
            return 
false;
        }
    }

    function 
theme_menu () {
        global 
$user_colors$lang_string$theme_vars$logged_in$sb_info$blog_config;

        
// This function creates the sidebar menu.
        //
        // Move blocks of code up/down to change the order.
        //
        // The "\n" that you see is a RETURN character.
        // This is just to make the HTML code look prettier.
        // It will not show up on the page.
        //
        //     Please note that \n must be used within " quotes...
        //         echo( "\n" ); // <-- This is a return character
        //         echo( '\n' ); // <-- This will print \n on your page...
        //
        // You can use either ' or " in your echo() statements.
        // But keep in mind that might need to use a backslash --> \
        // to print a double or single quote:
        //
        //     These are equivalent: (note the \" or \'  escape chracter...)
        //         echo( 'this "is" a test' ); // displays: this "is" a test
        //         echo( "this \"is\" a test" );  // displays: this "is" a test
        //         echo( "this 'is' a test" );  // displays: this 'is' a test
        //         echo( 'this \'is\' a test' );  // displays: this 'is' a test

        
echo( "\n<!-- SIDEBAR MENU BEGIN -->\n" );

        
// AVATAR
        
theme_menu_blockmenu_display_avatar(), 'AVATAR''SidebarAvatar' );

        
// LINKS
        
$result menu_display_links();
        
$loginString menu_display_login();
        if ( 
$loginString ) {
            
$result'content' ] = $result'content' ] . '<hr />' $loginString;
        }
        
theme_menu_block$result'LINKS' );
        
// theme_menu_block( $result, 'LINKS', 'SidebarLinks' ); <-- Use this if you want to be able to Expand/Collapse links.

        // MENU
        
theme_menu_blockmenu_display_user(), 'USER MENU''SidebarMenu' );

        
// SETUP
        
theme_menu_blockmenu_display_setup(), 'SETUP MENU''SidebarPreferences' );

        
// CUSTOM BLOCKS
        
$array read_blocks($logged_in);
        for (
$i=$i<count($array) ; $i+=2) {
            
$result = Array();
            
$result'title' ] = $array[$i];
            
$result'content' ] = $array[$i+1];
            
theme_menu_block$result'CUSTOM BLOCK' );
        }

        
// CALENDAR
        
theme_menu_blockmenu_display_blognav(), 'CALENDAR''SidebarCalendar' );

        
// ARCHIVE TREE
        
theme_menu_blockmenu_display_blognav_tree(), 'ARCHIVE TREE''SidebarArchives' );

        
// CATEGORIES
        
theme_menu_blockmenu_display_categories(), 'CATEGORIES''SidebarCategories' );

        
// SEARCH
        
theme_menu_blockmenu_search_field(), 'SEARCH''SidebarSearch' );

        
// Counter Totals
        
theme_menu_blockmenu_display_countertotals(), 'COUNTER''SidebarCounter');

        
// RECENT ENTRIES
        
theme_menu_blockmenu_most_recent_entries(), 'RECENT ENTRIES''SidebarRecentEntries' );

        
// RECENT COMMENTS
        
theme_menu_blockmenu_most_recent_comments(), 'RECENT COMMENTS''SidebarRecentComments' );

        
// RECENT TRACKBACKS
        
theme_menu_blockmenu_most_recent_trackbacks(), 'RECENT TRACKBACKS''SidebarRecentTrackbacks' );

        echo( 
'<p />' );

        
// WEB BADGES
        
echo( '<div align="center">' );
        echo( 
'<a href="http://sourceforge.net/projects/sphpblog/"><img style="margin-bottom: 5px;" src="interface/button_sphpblog.png" alt="Powered by Simple PHP Blog" title="Powered by Simple PHP Blog" border="0" /></a> ' );
        echo( 
'<a href="rss.php"><img style="margin-bottom: 5px;" src="interface/button_rss20.png" alt="Get RSS 2.0 Feed" title="Get RSS 2.0 Feed" border="0" /></a><br />' );
        echo( 
'<a href="http://php.net/"><img style="margin-bottom: 5px;" src="interface/button_php.png" alt="Powered by PHP ' phpversion() . '" title="Powered by PHP ' phpversion() . '" border="0" /></a> ' );
        echo( 
'<a href="atom.php"><img style="margin-bottom: 5px;" src="interface/button_atom03.png" alt="Get Atom 0.3 Feed" title="Get Atom 0.3 Feed" border="0" /></a><br />' );
        echo( 
'<img style="margin-bottom: 5px;" src="interface/button_txt.png" alt="Powered by Plain text files" title="Powered by Plain text files" border="0" /> ' );
        echo( 
'<a href="rdf.php"><img style="margin-bottom: 5px;" src="interface/button_rdf10.png" alt="Get RDF 1.0 Feed" title="Get RDF 1.0 Feed" border="0" /></a><br />' );
        echo( 
'</div>' );
    }

?>
Sacavao ¬¬? upff..
  #7 (permalink)  
Antiguo 08/11/2006, 10:50
Avatar de xiscomax  
Fecha de Ingreso: febrero-2006
Mensajes: 379
Antigüedad: 18 años, 2 meses
Puntos: 5
Cita:
Iniciado por JavierB Ver Mensaje
xiscomax, lo que has puesto es el código PHP es probable que los que visitan este foro no tengan mucha idea de eso.

Saludos,
Esque el thema en el que me apollo para la modificacion asi como con el resto de themes para este sistema SPHPBlog no llevan codigo HTML todo son archivos php ¬¬?
  #8 (permalink)  
Antiguo 08/11/2006, 10:51
Avatar de fearlex  
Fecha de Ingreso: septiembre-2003
Ubicación: Exiliado de mi patria
Mensajes: 1.047
Antigüedad: 20 años, 7 meses
Puntos: 5
Perdon, pero has puesto todo el codigo PHP, cuando te hable del codigo, me referia al codigo html, o bien a esa parte donde estan los menus, para poder ver tu esqueleto html, pero con todo ese codigo, ............
__________________
Ya viene llegando, el comunismo en Cuba, ya se esta acabando.
www.fearlex.com | www.fearlexworld.com
  #9 (permalink)  
Antiguo 08/11/2006, 10:56
Avatar de fearlex  
Fecha de Ingreso: septiembre-2003
Ubicación: Exiliado de mi patria
Mensajes: 1.047
Antigüedad: 20 años, 7 meses
Puntos: 5
Cita:
Iniciado por xiscomax Ver Mensaje
Esque el thema en el que me apollo para la modificacion asi como con el resto de themes para este sistema SPHPBlog no llevan codigo HTML todo son archivos php ¬¬?

Tiene que tener, pon solamente el codigo al cual hace referencia el menu, o sea donde se encuentra localizado el id #toggleSidebarMenu, en ti codigo HTML
__________________
Ya viene llegando, el comunismo en Cuba, ya se esta acabando.
www.fearlex.com | www.fearlexworld.com
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 05:37.