Foros del Web » Creando para Internet » Sistemas de gestión de contenidos » Joomla »

Modificar Contactenos Joomla

Estas en el tema de Modificar Contactenos Joomla en el foro de Joomla en Foros del Web. Saludos Me pueden ayudar... quiero modificar el formulario predefinido de contactenos de joomla, quiero agregar al rato de enviar el mail... un mail al usuario ...
  #1 (permalink)  
Antiguo 24/12/2007, 12:31
Avatar de crivadron  
Fecha de Ingreso: agosto-2006
Ubicación: Quito
Mensajes: 122
Antigüedad: 17 años, 8 meses
Puntos: 0
De acuerdo Modificar Contactenos Joomla

Saludos
Me pueden ayudar... quiero modificar el formulario predefinido de contactenos de joomla, quiero agregar al rato de enviar el mail... un mail al usuario de agradecimiento por contactarnos...

Que archivo modifico?????
  #2 (permalink)  
Antiguo 24/12/2007, 14:07
Avatar de merolhack  
Fecha de Ingreso: junio-2006
Ubicación: México
Mensajes: 1.242
Antigüedad: 17 años, 10 meses
Puntos: 16
Re: Modificar Contactenos Joomla

Pues son varios archivos, los encuentras en el directorio:

/components/com_contact

Creo que es en este archivo:
contact.php

Código PHP:
function sendmail$con_id$option ) {

    global 
$mainframe$database$Itemid;

    global 
$mosConfig_sitename$mosConfig_live_site$mosConfig_mailfrom$mosConfig_fromname$mosConfig_db;



    
// simple spoof check security

    
josSpoofCheck(1);    

    

    
$query "SELECT *"

    
"\n FROM #__contact_details"

    
"\n WHERE id = " . (int) $con_id

    
;

    
$database->setQuery$query );

    
$contact     $database->loadObjectList();



    if (
count$contact ) > 0) {

        
$default     $mosConfig_sitename.' '_ENQUIRY;

        
$email         strvalmosGetParam$_POST'email',         '' ) );

        
$text         strvalmosGetParam$_POST'text',             '' ) );

        
$name         strvalmosGetParam$_POST'name',             '' ) );

        
$subject     strvalmosGetParam$_POST'subject',         $default ) );

        
$email_copy strvalmosGetParam$_POST'email_copy',     ) );



        
$menu             $mainframe->get'menu' );

        
$mparams         = new mosParameters$menu->params );        

        
$bannedEmail     $mparams->get'bannedEmail',     '' );        

        
$bannedSubject     $mparams->get'bannedSubject',     '' );        

        
$bannedText     $mparams->get'bannedText',         '' );        

        
$sessionCheck     $mparams->get'sessionCheck',     );

        

        
// check for session cookie

        
if  ( $sessionCheck ) {        

            
// Session Cookie `name`

            
$sessionCookieName     mosMainFrame::sessionCookieName();        

            
// Get Session Cookie `value`

            
$sessioncookie         mosGetParam$_COOKIE$sessionCookieNamenull );            

            

            if ( !(
strlen($sessioncookie) == 32 || $sessioncookie == '-') ) {

                
mosErrorAlert_NOT_AUTH );

            }

        }            

        

        
// Prevent form submission if one of the banned text is discovered in the email field

        
if ( $bannedEmail ) {

            
$bannedEmail explode';'$bannedEmail );

            foreach (
$bannedEmail as $value) {

                if ( 
stristr($email$value) ) {

                    
mosErrorAlert_NOT_AUTH );

                }

            }

        }

        
// Prevent form submission if one of the banned text is discovered in the subject field        

        
if ( $bannedSubject ) {

            
$bannedSubject explode';'$bannedSubject );

            foreach (
$bannedSubject as $value) {

                if ( 
stristr($subject$value) ) {

                    
mosErrorAlert_NOT_AUTH );

                }

            }

        }

        
// Prevent form submission if one of the banned text is discovered in the text field        

        
if ( $bannedText ) {

            
$bannedText explode';'$bannedText );

            foreach (
$bannedText as $value) {

                if ( 
stristr($text$value) ) {

                    
mosErrorAlert_NOT_AUTH );

                }

            }

        }

        

        
// test to ensure that only one email address is entered

        
$check explode'@'$email );

        if ( 
strpos$email';' ) || strpos$email',' ) || strpos$email' ' ) || count$check ) > ) {

            
mosErrorAlert_CONTACT_MORE_THAN );

        }

        

        if ( !
$email || !$text || ( JosIsValidEmail$email ) == false ) ) {

            
mosErrorAlert_CONTACT_FORM_NC );

        }

        
$prefix sprintf_ENQUIRY_TEXT$mosConfig_live_site );

        
$text     $prefix ."\n"$name' <'$email .'>' ."\n\n"stripslashes$text );

    

        
$success mosMail$email$name $contact[0]->email_to$mosConfig_fromname .': '$subject$text );

        if (!
$success) {

            
mosErrorAlert_CONTACT_FORM_NC );

        }

    

        
// parameter check

        
$params = new mosParameters$contact[0]->params );        

        
$emailcopyCheck $params->get'email_copy');

            

        
// check whether email copy function activated

        
if ( $email_copy && $emailcopyCheck ) {

            
$copy_text sprintf_COPY_TEXT$contact[0]->name$mosConfig_sitename );

            
$copy_text $copy_text ."\n\n"$text .'';

            
$copy_subject _COPY_SUBJECT $subject;

            

            
$success mosMail$mosConfig_mailfrom$mosConfig_fromname$email$copy_subject$copy_text );

            if (!
$success) {

                
mosErrorAlert_CONTACT_FORM_NC );

            }

        }

        

        
$link sefRelToAbs'index.php?option=com_contact&task=view&contact_id='$contact[0]->id .'&Itemid='$Itemid );



        
mosRedirect$link_THANK_MESSAGE );

    }


  #3 (permalink)  
Antiguo 24/12/2007, 18:04
Avatar de hendrix  
Fecha de Ingreso: agosto-2003
Ubicación: chile lindo
Mensajes: 1.109
Antigüedad: 20 años, 8 meses
Puntos: 7
Re: Modificar Contactenos Joomla

instala otro componente para contacto mejor
  #4 (permalink)  
Antiguo 16/03/2011, 12:48
 
Fecha de Ingreso: enero-2010
Mensajes: 1
Antigüedad: 14 años, 3 meses
Puntos: 0
Respuesta: Re: Modificar Contactenos Joomla

Cita:
Iniciado por hendrix Ver Mensaje
instala otro componente para contacto mejor
¿Como cuál?
  #5 (permalink)  
Antiguo 17/03/2011, 10:45
Avatar de hendrix  
Fecha de Ingreso: agosto-2003
Ubicación: chile lindo
Mensajes: 1.109
Antigüedad: 20 años, 8 meses
Puntos: 7
Respuesta: Re: Modificar Contactenos Joomla

Cita:
Iniciado por tangananika Ver Mensaje
¿Como cuál?
RSFORM hace eso y mucho mas.

pruebalo
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 04:10.