• User

    QContacts

    Buonasera a tutti...ho appena installato iol componente QContacts per la gestione dei contatti del mio sito: tutto molto facile e soprattutto utile, ha qualche modifica in più rispetto al suo antenato (il componente standard com_contact).
    Ho configurato i due utenti che mi servono e ho fatto due collegamenti in due menu differenti: cliccando su CONTATTACI, si apre la pagina con la form per scrivere al primo contatto, cliccando su L'ESPERTO RISPONDE ,si apre ovviamente la stessa form ma che invierà il messaggio al secondo contatto.
    E fin qui tutto ok...però siccome sono un amante delle finezze estetiche, ho aggiunto in cima alla pagina un bella immaginetta con su scritto Contattaci...però ovviamente questa immaginetta adesso compare anche se clicco sull'altro menu.
    Questo è il codice della pagina interessata:

    
    <?php
    /**
     * QContacts Contact manager component for Joomla! 1.5
     *
     * @version 1.0.5
     * @package qcontacts
     * @author Massimo Giagnoni
     * @copyright Copyright (C) 2008 Massimo Giagnoni. All rights reserved.
     * @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
     */
     /*
    This file is part of QContacts.
    QContacts 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 3 of the License, or
    (at your option) any later version.
    
    This program 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 this program.  If not, see <>.
    */
    defined( '_JEXEC' ) or die( 'Restricted access' );
    ?>
    <img src="templates/phoca_nature_1.0.1/images/contattaci.jpg"/>
    <div>
    <b>Compila i campi sottostanti ed inoltra la tua richiesta.</b>
    </div><div>
    <u><b>I campi segnati con<font color="#ff0000"> * </font>sono obbligatori.</b></u>
    </div>
    <?php if ($this->params->get('show_page_title') && $this->params->get('page_title') != $this->contact->name) { ?>
    <h1 class="componentheading<?php echo $this->params->get('pageclass_sfx'); ?>">
        <?php echo $this->escape($this->params->get('page_title')); ?>
    </h1>
    <?php } ?>
    <div id="qcontacts<?php echo $this->params->get('pageclass_sfx'); ?>">
    
    <?php if ($this->params->get('show_contact_list') && count($this->contacts) > 1) { ?>
        <form method="post" action="" name="selectForm" id="selectForm">
            <?php echo JText::_('Select Contact'); ?>
            <br />
            <?php echo JHTML::_('select.genericlist', $this->contacts, 'id', 'class="inputbox" onchange="this.form.submit()"', 'id', 'name', $this->contact->id); ?>
            <input type="hidden" name="option" value="com_qcontacts" />
        </form>
    <?php } ?>
    
    <?php if($this->contact->name && $this->params->get('show_name', 1)) { ?>
        <p id="contact-name">
            <?php echo $this->contact->name; ?>
        </p>
    <?php } ?>
    
    <?php if($this->contact->con_position && $this->params->get('show_position', 1)) { ?>
        <p id="contact-position">
            <?php echo $this->contact->con_position; ?>
        </p>
    <?php } ?>
    <?php if ($this->contact->image && $this->params->get('show_image')) { ?>
        <div id="contact-image" class="<?php echo ($this->params->get('cimage_align') ? 'aright' : 'aleft'); ?>">
            <?php echo JHTML::_('image', trim($this->params->get('image_path','images/stories'),'/').'/'.$this->contact->image, JText::_( 'Contact' )); ?>
        </div>
    <?php } ?>
    
    <?php echo $this->loadTemplate('address'); ?>
                
    <?php if($this->params->get('allow_vcard')) { ?>
        <p>
            <?php echo JText::_('Download information as a'); ?>
            <a href="index.php?option=com_qcontacts&amp;controller=vcard&amp;contact_id=<?php echo $this->contact->id; ?>&amp;format=raw">
            <?php echo JText::_('VCard'); ?></a>
        </p>
    <?php }
    if ( $this->params->get('show_email_form') && ($this->contact->email_to || $this->contact->user_id)) {
        echo $this->loadTemplate('form');
    }
    ?>
    </div>
    
    

    Qualcuno sa darmi un aiutino???
    Grazie mille 💋