Back to top

Autore Topic: modifica bottone ricerca  (Letto 2076 volte)

Offline alicciardi

  • Nuovo arrivato
  • *
  • Post: 6
    • Mostra profilo
modifica bottone ricerca
« il: 30 Nov 2006, 18:00:50 »
Salve a tutti è possibile modificare il bottone del modulo ricerca con uno personalizzato?

Offline surfbit

  • Instancabile
  • ******
  • Post: 7316
  • Sesso: Maschio
  • Verranno ignorati mp tecnici
    • Mostra profilo
Re: modifica bottone ricerca
« Risposta #1 il: 30 Nov 2006, 18:44:59 »
Salve a tutti è possibile modificare il bottone del modulo ricerca con uno personalizzato?

Certo, basta sostituire l'immagine!!  :)
A volte basta un sorriso per far felice una persona.

La guida alla scelta dell'hosting per Joomla!  Joomlaspace.it: l'hosting per Joomla

Offline alicciardi

  • Nuovo arrivato
  • *
  • Post: 6
    • Mostra profilo
Re: modifica bottone ricerca
« Risposta #2 il: 01 Dic 2006, 10:18:18 »
sorry, scusa l'ignoranza, ma nn riesco ad identificarla l'imagine quindi nn so come sostituirla
mi puoi dare una mano?

questo è il codice dove vado ad inserirla l'img?

// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );

$button         = $params->get( 'button', '' );
$button_pos      = $params->get( 'button_pos', 'left' );
$button_text   = $params->get( 'button_text', _SEARCH_TITLE );
$width          = intval( $params->get( 'width', 20 ) );
$text          = $params->get( 'text', _SEARCH_BOX );
$set_Itemid      = intval( $params->get( 'set_itemid', 0 ) );

$output = '<input name="searchword" id="mod_search_searchword" maxlength="20" alt="search" class="inputbox'. $moduleclass_sfx .'" type="text" size="'. $width .'" value="'. $text .'"  onblur="if(this.value==\'\') this.value=\''. $text .'\';" onfocus="if(this.value==\''. $text .'\') this.value=\'\';" />';

if ( $button ) {
   $button = '<input type="submit" value="'. $button_text .'" class="button'. $moduleclass_sfx .'"/>';
}

switch ( $button_pos ) {
   case 'top':
      $button = $button .'
';
      $output = $button . $output;
      break;

   case 'bottom':
      $button =  '
'. $button;
      $output = $output . $button;
      break;

   case 'right':
      $output = $output . $button;
      break;

   case 'left':
   default:
      $output = $button . $output;
      break;
}

// set Itemid id for links
if ( $set_Itemid ) {
   // use param setting
   $_Itemid   = $set_Itemid;
   $link       = 'index.php?option=com_search&amp;Itemid='. $set_Itemid;
} else {
   $query = "SELECT id"
   . "\n FROM #__menu"
   . "\n WHERE link = 'index.php?option=com_search'"
   ;
   $database->setQuery( $query );
   $rows = $database->loadObjectList();
   
   // try to auto detect search component Itemid
   if ( count( $rows ) ) {
      $_Itemid   = $rows[0]->id;
      $link       = 'index.php?option=com_search&amp;Itemid='. $_Itemid;
   } else {
   // Assign no Itemid
      $_Itemid    = '';
      $link       = 'index.php?option=com_search';   
   }
}
?>

<form action="<?php echo $link; ?>" method="get">
   <div class="search<?php echo $moduleclass_sfx; ?>">
      <?php echo $output; ?>
   </div>
   <input type="hidden" name="option" value="com_search" />
   <input type="hidden" name="Itemid" value="<?php echo $_Itemid; ?>" />   
   <table width="100%"  border="0">
   <a href='<?php echo $mosConfig_live_site; ?>/index.php?option=com_sobi2&sobi2Task=search&Itemid=9' class="category_search">Ricerca Avanzata[/url] | <a href='<?php echo $mosConfig_live_site; ?>/index.php?option=com_sobi2&sobi2Task=addNew&Itemid=&Itemid=12' class="category_search">Segnala Hot Spot[/url] | <a href='<?php echo $mosConfig_live_site; ?>/index.php?option=com_joomap&Itemid=10017 ' class="category_search">Mappa del sito[/url]
    </table>
</form>

grazie

Offline surfbit

  • Instancabile
  • ******
  • Post: 7316
  • Sesso: Maschio
  • Verranno ignorati mp tecnici
    • Mostra profilo
Re: modifica bottone ricerca
« Risposta #3 il: 01 Dic 2006, 15:46:10 »
mmm in questo caso devi andare a vedere nel css "moduleclass_sfx!  :)
A volte basta un sorriso per far felice una persona.

La guida alla scelta dell'hosting per Joomla!  Joomlaspace.it: l'hosting per Joomla

Offline alicciardi

  • Nuovo arrivato
  • *
  • Post: 6
    • Mostra profilo
Re: modifica bottone ricerca
« Risposta #4 il: 01 Dic 2006, 18:16:03 »
nel css del mio template nn c'e' sai dove poterlo trovare=?se punta da qualche altra parte?

/* ja_vega template for Joomlart Templates Club  */
/*Layout*/
#wrapper {
   width:751px;
}
/*foglio di stile per la data italiana*/
.dataitalia {
font:Verdana, Arial, Helvetica, sans-serif;
font-size: 9pt;
color: #002D73;
}
/*foglio di stile per la ricerca */
.category_search {
font:Verdana, Arial, Helvetica, sans-serif;
font-size: 9pt;
font-weight: bold;
color: #fff;
}
/*foglio di stile per la ricerca */
a.category_search {
text-decoration: none;
}
/*foglio di stile per la ricerca */
a.category_search:hover {
color: #A80000;
text-decoration: underline;
}
/*foglio di stile per la ricerca */
.category_googlemap {
font:Verdana, Arial, Helvetica, sans-serif;
text-size: 12 px;
font-weight: bold;
text-align: center;
color: #f16300;
}

#toptbl {
   width:751px;
   height:34px;
/*   height:193px;*/
}

#header {
   width:751px;
   height:193px;
}

#toptbl {
   width:729px;
   height:34px;
}

#ja-vega-02 {
   width:9px;
   height:34px;
}

#pathway-center {
   width:720px;
   height:34px;
}

#pathway-right {
   width:22px;
   height:34px;
}

#menutbl {
   width:751px;
   height:40px;
}

#search-left {
   width:12px;
   height:40px;
}

#search-top {
   width:171px;
   height:11px;
}

#search-right {
   width:44px;
   height:40px;
}

#search-02-02 {
   width:171px;
   height:19px;
}

#search-bottom {
   width:171px;
   height:10px;
}

#bottomtbl {
   width:751px;
   vertical-align:top;
}

#maincontent {
   width:auto;
   margin:0px;
   /*background:url(../images/maincontent.gif) repeat-y;*/
   vertical-align:top;
}
#maincontent a{
color:#0066cc;
}
#ja-vega-12 {
   width:5px;
}

#leftmenu {
   width:233px;
   background-color:#D1C2BA;
   vertical-align:top;
}

#footer-left {
   width:28px;
   height:28px;
}

#footer-center {
   width:467px;
   height:28px;
}

#footer-right {
   width:28px;
   height:28px;
}
/*End of Layout*/
/* general stuff */

body{
font-family: verdana, arial, sans-serif;
font-size: 11px;
line-height: 1.8;
background:#AE9F97;
color:#000000;
}
td, div {
font-size: 11px;
}
a {
text-decoration:  none;
font-weight: bold;
border: none;
 }
a:hover {
text-decoration:  underline;
border: none;
 }
 
/* Layout */
#search {
margin: 0px;
padding: 0px;
width: 171px;
height: 19px;
background:#FFF;
}

#search .inputbox{
width: 163px;
height: 12px;
font-size: 11px;
background: transparent;
border: none;
margin: 0px;
padding: 2px 4px;
line-height: 14px;
}

#search .button{
margin: 0px;
padding: 0px;
height: 14px;
font-size: 11px;
background: #F16300;
border: none;
}

#search form {
margin: 0px;
padding: 0px;
}

#topmenu{
   background: url(../images/topmenu.gif) 0px 0px no-repeat;
   padding-left:6px;
}


#pathway{
width: 500px;
height: 19px;
color: #FFFFFF;

}

#leftcol{
 width: 152px;
 float: left;
 position: relative;
 margin-right: 5px;
 }
 #banner {
 width: 478px;
 height: 69px;
 padding-left: 6px;
 padding-top: 6px;
 }
 
 iframe.wrapper {
 z-index: -4;
 }
 
.clr{clear:both;}
#content {
padding: 0px 10px 0px 10px;
font-size: 10px;
}
/* Modules user1 */
.newsflash {
   width:auto;
   margin:0px;
   padding:0px;
   display:block;
   width:518px;
   height:182px;
   background: url(../images/newsflashBig_bg.gif) no-repeat;
   clear:both;
}
.newsflash_1 {
   width:auto;
   margin:0px;
   padding:0px;
   display:block;
   width:100%;
   height:130px;
   background: url(../images/newsflash_bg_1.gif) no-repeat;
   clear:both;
}
#newsflashtext {
   padding: 10px 20px 10px 50px;
   }
#user1 table.moduletable {
clear:both;
   width: 98%;
   margin-bottom: 0px;
   padding: 0px;
   border-spacing: 0px;
   border-collapse: collapse;
   width: 233px;
   background:url(../images/module_darknavi.gif) repeat-y;
   line-height: 24px!important;
   line-height: 18px;
   padding:4px 0px;

}
#user1 table.moduletable th {
   background:url(../images/module_th_darknavi.gif) repeat-y;
   color: #FFFFFF;
   text-align: center;

}
#user1 table.moduletable td {
   width: 233px;
   padding: 0px 4px;
   font-weight: normal;
   font-size:11px;
}
/* Modules user2 */
#user2 table.moduletable {
   clear:both;
   width: 98%;
   margin-bottom: 0px;
   padding: 0px;
   border-spacing: 0px;
   border-collapse: collapse;
   width: 233px;
   background:url(../images/module_grey.gif) repeat-y;
   line-height: 24px!important;
   line-height: 18px;
   padding:4px 0px;

}
#user2 table.moduletable th {
   background:url(../images/module_th_grey.gif) repeat-y;
   color: #FFFFFF;
   text-align: center;

}
#user2 table.moduletable td {
   width: 233px;
   padding: 0px 4px;
   font-weight: normal;
   font-size:11px;
}
/* Modules */
table.moduletable {
clear:both;
   width: 98%;
   margin-bottom: 0px;
   padding: 0px;
   border-spacing: 0px;
   border-collapse: collapse;
   width: 233px;
   background:url(../images/module_red.gif) repeat-y;
   line-height: 24px!important;
   line-height: 18px;
   padding:4px 0px;

}
table.moduletable th {
   background:url(../images/module_th_red.gif) repeat-y;
   color: #FFFFFF;
   text-align: center;

}
table.moduletable td {
   padding: 0px 10px;
   font-weight: normal;
   font-size:11px;
}
/* Modules Darkgreen */
table.moduletable-darkgreen {
   width: 98%;
   margin-bottom: 0px;
   padding: 0px;
   border-spacing: 0px;
   border-collapse: collapse;
   width: 233px;
   background:url(../images/module_darkgreen.gif) repeat-y;
   height: 24px!important;
   height: 20px;
   line-height: 24px!important;
   line-height: 18px;
   padding:4px 0px
}
table.moduletable-darkgreen th {
   background:url(../images/module_th_darkgreen.gif) repeat-y;
   color: #FFFFFF;
   text-align: center;
   width: 233px;
   font-size:14px;

}
table.moduletable-darkgreen td {
   width: 233px;
   padding: 0px 4px;
   font-weight: normal;
   font-size:11px;
}

#rightpanel a, a.mostread, a.latestnews  {
color:#FFFFFF;
vertical-align:top;

}
#rightpanel a:hover, a.mostread:hover, a.latestnews:hover  {
color:#FFFFFF;
}
#rightpanel a:visited, a.mostread:visited, a.latestnews:visited  {
color:#cccccc;
}
/* Topmenu */
ul#level-nav
{
   list-style: none;
   padding: 0;
   margin: 0;
   font-size: 0.8em;
}
#topmenu ul#level-nav li
{
   display:block;
   height:30px;
   width:auto;
   line-height: 30px;
   padding: 0px;
   float: left;
   margin: 0px;
   font-size: 11px;
   border-right: 1px solid #cccccc;
}
#topmenu ul#level-nav li a
{
   display:block;
   width:auto;
   padding-left: 15px;
   padding-right:15px;
   text-decoration: none;
   color: #333333;
}
#topmenu>ul#level-nav li a { width: auto;}

   ul#level-nav li a:hover
{
   color: #ffcc00;

}
/* SplitMenu */
ul#navlist
{
   list-style: none;
   padding: 0;
   margin: 0;
   font-size: 0.8em;
}
#topmenu ul#navlist li
{
   display:block;
   height:20px;
   line-height:30px;
   width:auto;
   line-height: 30px;
   padding: 0px;
   float: left;
   margin: 0px;
   font-size: 11px;
   border-right: 1px solid #cccccc;
}

#topmenu ul#navlist li a
{
   display:block;
   width:auto;
   line-height:22px;
   padding-left: 15px;
   padding-right:15px;
   text-decoration: none;
   color: #333333;
   
}

#topmenu>ul#navlist li a { width: auto;}

   ul#navlist li a:hover
{
   color: #fff;
   text-decoration:underline;
   background:#CCC;
   }

/* Main Menu(s) */

a.mainlevel {
font-size: 11px;
color:#FFFFFF;
padding-left: 4px;
line-height:20px;
margin-bottom: 2px;
text-decoration: none;
font-weight: normal;

}



html>body a.mainlevel {width:135px;} /* Opera5-Fix-fix ;-) */


a.mainlevel:hover, a.mainlevel#active_menu {
text-decoration: underline;
}

a.sublevel {
padding: 0px;
margin: 0px;
font-size: 11px;
padding-left: 12px;
width: 139px;
display: block;
line-height: 20px;
margin-bottom: 2px;
text-decoration: none;
font-weight: normal;
border-right: 4px solid #CACACA;
voice-family:"\"}\""; /* Box Model fix */
voice-family:inherit;
width: 123px;
}

html>body a.sublevel {width:123px;} /* Opera5-Fix-fix ;-) */

a.sublevel:hover, a.sublevel#active_menu {
text-decoration: none;
width: 139px;
voice-family:"\"}\""; /* Box Model fix */
voice-family:inherit;
width: 123px;
}
html>body a.sublevel:hover, a.sublevel#active_menu { /* Opera5-Fix-fix ;-) */
width: 123px;
}


/* Module specific */

#leftcol div.module div div div div.syndicate {
background: transparent;
width: 137px;
margin: 0px;
padding: 0px;
}

#leftcol div.module div div div div.syndicate div {
background: transparent;
width: 137px;
margin: 0px;
padding: 0px;
}


/* Other Mambo Stuff */
#site_title {
   font-size: 14px;
   color:#ff9834;
   font-weight:bold;
   text-align:center;
   text-transform:uppercase;
   display:block;
   line-height:150px!important;
   line-height:140px;
   padding:20px 0px 0px 0px;
   width:751px;
}
#pathway {
padding-bottom:9px;
padding-top:0px!important;
padding-top:0px;
}

a.pathway {
color: #BBBBBB;
text-decoration: none;
font-weight: normal;
padding-top:0px!important;
padding-top:0px;

}

.mosimage {
  border: 1px solid #cccccc;
  margin: 5px
}

.mosimage_caption {
  margin-top: 2px;
  background: #efefef;
  padding: 1px 2px;
  color: #666;
  font-size: 11px;
  border-top: 1px solid #cccccc;
}

hr {
width:  90%;
 }
hr.separator {
width:  40%;
 }
a.pnav {
}
.pnav:hover {
}
.small {
font-size: 11px;
color: #cccccc;
line-height: 0.7;
}
.smalldark {
font-size: 11px;
color: #000;
height: 10px;
line-height: 10px;
text-align: left;
}
.sectiontableheader {
font-weight: bold;
font-size: 12px;
height: 25px;
line-height: 25px;
color:#FFF;
background:#996633;
}
.sectiontableentry1, .sectiontableentry1 a{
text-align: left;
background: #e1b488;
font-size: 11px;
font-weight:normal;
padding: 2px;
overflow:hidden;
text-indent:4px;
}
.sectiontableentry2, .sectiontableentry2 a {
font-size: 11px;
text-align: left;
font-weight:normal;
padding: 2px;
overflow:hidden;
background: #ba8857;
text-indent:4px;
}
.button {
   font-style       : normal;
   font-size        : 11px;
   color            : #000000;
   border           : 1px solid #CCCCCC;
}
.inputbox {
   font-style       : normal;
   font-size        : 11px;
   color            : #000000;
   border           : 1px solid #CCCCCC;
}
.createdate {
font-size: 11px;
color: #cccccc;
height: 10px;
line-height: 0.7;
}
.modifydate {
font-size: 11px;
color: #cccccc;
height: 20px;
line-height: 20px;
margin-bottom: 5px;
}
.blog_more {
font-size: 11px;
}
.blog {
width: 98%;
}

.contentheading {
width: 98%;
font-weight: bold;
font-size: 16px;
height: 23px;
line-height: 23px;
color: #002E61;
padding: 5px 0px 5px 0px;
}
.componentheading {
width: 98%;
font-weight: bold;
font-size: 16px;
height: 20px;
line-height: 20px;
color: #002E61;
padding: 5px 0px 5px 0px;
z-index:-10;
}
.contentpaneopen {
text-align: left;
background: transparent;
font-size: 11px;
line-height: 1.8;
}

table.contentpane {
font-weight: bold;
font-size: 16px;
height: 23px;
line-height: 20px;
border: none;

}
table.contentpane td {
padding-right: 2px;
overflow:hidden;
}

table.contentpane ul {
margin: 0px;
padding: 0px;
list-style: none;
}

table.contentpane ul li{
padding: 0px;
margin: 0px;
padding-left: 15px;
}

.contentdescription {
font-size: 11px;
}
.categorytitle {
font-weight: bold;
font-size: 16px;
height: 25px;
line-height: 25px;
}
li a.category {
font-weight:bold;
padding-left: 17px;
background: url(../images/category.gif) 0px 0px no-repeat;
}
li a.category:hover {
text-decoration:  underline;
padding-left: 17px;
background: url(../images/category_over.gif) 0px 0px no-repeat;
 }
.poll {
font-size: 11px;
text-align: center;
}
.readon{
   padding-left: 17px;
   background: url(../images/readon.gif) 0px 0px no-repeat;
}
.readon:hover{
   padding-left: 17px;
   background: url(../images/readon_over.gif) 0px 0px no-repeat;
   text-decoration:underline;
}
.back_button a{
font-size: 11px;
font-weight: normal;
}

.blogsection {
font-size: 11px;
}

.blog_more ul li{
list-style: none;
padding-left: 14px;
line-height: 18px;
}

table.contenttoc {
border: 1px solid #CCCCCC;
padding: 3px;
}

table.contenttoc th{
font-weight: bold;
font-size: 12px;
border-bottom: 1px solid #BBBBBB;
}

form {
margin: 0px;
padding: 0px;
}
/* These are standard sIFR styles... do not modify */
.sIFR-flash {
   visibility: visible !important;
   margin: 0;
}
.sIFR-replaced {
   visibility: visible !important;
}
span.sIFR-alternate {
   position: absolute;
   left: 0;
   top: 0;
   width: 0;
   height: 0;
   display: block;
   overflow: hidden;
}
/* These "decoy" styles are used to hide the browser text before it is replaced... the negative-letter spacing in this case is used to make the browser text metrics match up with the sIFR text metrics since the sIFR text in this example is so much narrower... your own settings may vary... any weird sizing issues you may run into are usually fixed by tweaking these decoy styles */
.sIFR-hasFlash h1 {
   visibility: hidden;
}
/*.sIFR-hasFlash h2 {
   visibility: hidden;
   letter-spacing: -9px;
   font-size: 55px;
}
.sIFR-hasFlash h3 {
   visibility: hidden;
   letter-spacing: -6px;
   font-size: 25px;
}
.sIFR-hasFlash h4 {
   visibility: hidden;
   letter-spacing: -5px;
   font-size: 21px;
}
.sIFR-hasFlash h5#pullquote {
   letter-spacing: -4px;
   visibility: hidden;
   font-size: 24px;
}*/
#col_exp {
margin:0px;
padding:0px 0px 3px 0px!important;
padding:0px;
}
.td_rightpanel{
   background: url('../images/spalla_destra.gif') repeat-y;
   /*display1:inline;*/
   color:#FFFFFF;
}
.td_mainpanel{
background: url('../images/maincontent.gif') repeat-y;
}
.td_mainpanel_1{
   background: url('../images/maincontent_1.gif') repeat-y;
}
#footer{
display:block;
padding:5px;
text-align:center;
}
#footer a{
color:#0066cc;
font-weight:normal;
}
.imgs_preload {
left: 0;
position: absolute;
top: 0;
visibility: hidden;
}

Offline surfbit

  • Instancabile
  • ******
  • Post: 7316
  • Sesso: Maschio
  • Verranno ignorati mp tecnici
    • Mostra profilo
Re: modifica bottone ricerca
« Risposta #5 il: 01 Dic 2006, 18:17:51 »
Puoi cancellare e metterlo in allegato al post ?
A volte basta un sorriso per far felice una persona.

La guida alla scelta dell'hosting per Joomla!  Joomlaspace.it: l'hosting per Joomla

Offline alicciardi

  • Nuovo arrivato
  • *
  • Post: 6
    • Mostra profilo
Re: modifica bottone ricerca -Css + Img
« Risposta #6 il: 04 Dic 2006, 08:52:03 »
ecco i file ciau

[allegato eliminato da un amministratore]

 



Web Design Bolzano Kreatif