Per chi vuole colare i collegamenti nel menu categorie

Postate qui discussioni di carattere generale riguardo a problemi di installazione e configurazione di osCommerce

Moderatore: mod Generali

Rispondi
Avatar utente
itan80
membro Senior
membro Senior
Messaggi: 309
Iscritto il: 09/07/2004, 0:00
Località: Italia
Contatta:

Per chi vuole colare i collegamenti nel menu categorie

Messaggio da itan80 »

questa è una piccola tips trovata su oscommerce.com
è valida per colorare i link all'interno del box categories.php

questa la spiegazione per l'isntallazione:

Codice: Seleziona tutto

My first Contribution.

I added this because the DHTML menus others put up were too complicated in my opinion.

I haven't tested it for nested categories but it should work with no probelms.

Feel free to change and fix.

Here's how to install, you can change the colours, padding, and stuff by changing the values below.

**************************************************

Add the following to your catalog/stylesheet.css


div#list-menu {
width: 100%;
/* this width value is also effected by
the padding we will later set on the links. */
}

div#list-menu ul {
margin: 0; 
padding: 0;
list-style-type: none;
} 

div#list-menu li {
margin: 2px 0 0;
} 

div#list-menu a {
display: block;
width:100%;
padding: 2px 0px 2px 0px;
text-decoration: none; /*lets remove the link underlines*/
border: 1px solid #f8f8f9;
} 

div#list-menu a:link, #list-menu a:active, #list-menu a:visited {
color: #0000FF;
}

div#list-menu a:hover {
background: #FFFF00;
color: #D0042F;
font-weight: bold;
border: 1px solid #D0042F;
} 


**************************************************

Any links in your info boxes just have to be placed between the following code:


<div id="list-menu">
.
.
STUFF GOES HERE
.
.
</div>

**************************************************

Example 1 :

In "catolog/includes/boxes/categories.php"

Change :  $info_box_contents[] = array('text' => $categories_string);

To:   $info_box_contents[] = array('text' => '<div id="list-menu">'.$categories_string.'</div>');


**************************************************

Example 2 (information infobox):

<?php
/*
  $Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/
?>
<!-- information //-->
          <tr>
            <td>
<?php
  $info_box_contents = array();
  $info_box_contents[] = array('text' => "Kick Trading");

  new infoBoxHeading($info_box_contents, false, false);

  $info_box_contents = array();
  $info_box_contents[] = array('text' => '<div id="list-menu"><a href="' . tep_href_link(FILENAME_FAQ) . '">' . BOX_INFORMATION_FAQ . '</a><br>' .
					 '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .
					 '<a href="' . tep_href_link(FILENAME_PAYMENTS) . '">' . BOX_INFORMATION_PAYMENTS . '</a><br>' .
					 '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' .
                                         '<a href="' . tep_href_link(FILENAME_DOWNLOADS) . '">' . Downloads . '</a></div>');
 
new infoBox($info_box_contents);
?>
            </td>
          </tr>
<!-- information_eof //-->


**************************************************


That's it!

Enjoy,

Dailce

Rimango qui per chiarimenti come sempre


ciao a tutti
™ ÅñЮ€Å ™

www.mistertemplate.it - Template x osCommerce...
www.microdirect.it - Distribuzione Informatica
stecrv
membro Junior
membro Junior
Messaggi: 3
Iscritto il: 27/10/2005, 12:29

Re: Per chi vuole colare i collegamenti nel menu categorie

Messaggio da stecrv »

Come si chiama il contribution?
Fabrizio88
membro Senior
membro Senior
Messaggi: 488
Iscritto il: 11/10/2005, 21:49
Contatta:

Messaggio da Fabrizio88 »

Questa modifica servirebbe per cambiare colore e font per le categorie e sottocategorie del box menù??? :roll:

Se mi dite si, come si chiama appunto la contribution?
oppure è stata trovata sul forum ufficiale?

Sembra Utile no??? :shock:
Rispondi