Whos Online

Joomla

We have 146 guests and 0 members online

    Forums

    We have 22 guests and 0 members online

      Tags

      android (7) anonymity (9) ant (10) apache (54) apple (7) atv (18) australia (8) bernardet (7) bombardier (7) book (7) browser (10) business (8) caliber30 (61) canon (9) cedricwalter (6) checklist (9) chrome (6) classpath (6) collection (7) continuousbuild (25) design (13) designpattern (23) desktop (7) development (28) DIY (9) draganflyer5 (9) dslr (14) eclipse (30) ek4 (8) electronic (18) enfrancais (66) FAQ (6) figures (13) firefox (20) firmware (7) flash (9) flickr (6) framework (12) fud (9) game (19) gaming (6) girls (6) google (68) gpl (8) gps (9) hacking (23) hdtv (7) hollidays (15) homecinema (14) homepage (20) howto (66) infrastructure (6) innoveo (7) iphone (6) italy (10) itsatrap (8) java (73) javascript (11) joke (11) joomla (215) joomla15 (33) joomlacloud (7) junit (9) kde (10) kyosho (62) links (17) linux (122) LittleBigPlanet (16) mambo (18) manual (8) manurhin (9) maps (6) maven (36) mediacenter (9) microsoft (52) modding (10) module (17) morespeed (16) motor (8) motorcycle (13) myhomepage (14) mysql (14) nas (14) neogeo (20) opencomment (27) opensource (61) opensuse (10) oss (7) p2p (7) patch (32) pc (12) pdf (8) php (26) picasa (7) plugin (65) privacy (9) projector (11) protection (7) ps3 (42) publicity (9) quad (18) raptor30 (7) rchelicopter (161) review (32) robot (9) robotic (7) rss (8) safety (8) scooter (29) security (62) securityimage (8) securityimage3 (6) securityimage4 (21) securityimage5 (19) securityimages (14) securityimages5 (6) server (17) simulator (8) smugmug (12) snk (16) software (31) sony (38) spammer (7) statistics (13) storage (7) subversion (6) suse (12) switzerland (7) teamcity (15) testing (9) thundertiger (20) tips (31) tomcat (7) tomtom (7) translatetofrench (8) trip (17) troubleshooting (7) tutorial (9) twitter (6) upgrade (15) vespa (10) video (17) vintage (8) watercooling (9) web2.0 (28) windows (14) xbmc (7) xbox (10) zurich (16) zürich (11)

      Forums

      Live information from Open Source Joomla! 1.0/1.5 development and support for waltercedric.com components/plugins/modules

      Skype me

      My status

      Follow me

      Facebook Digg LinkedIn MySpace Twitter Playstation network Xbox Live
      Digg Del.icio.us Reddit Simpy StumbleUpon Ask Facebook Slashdot Backflip Spurl MisterWong Netvouz Diigo Segnalo RawSugar Shadows Google Furl Newsvine Yahoo Technorati Live Blogmarks Netscape Fark Wink LinkaGoGo Bibsonomy FeedMe Magnolia Blue Tailrank Del.irio.us Y PlugIM SpotBack LinkSwarm

      Gallery

      Twitter

      Google Buzz


      Hotel lusso - Trova e prenota in un click i migliori Hotel lusso selezionati per qualità e prezzo in tutte le principali città Italiane ed Europee. Trova vari modi per risparimare con alb...
      7 hours ago,

      Re: No related articles are displayed - Not in my case. I have much more than one article in the categorie...
      12:07 AM Mar 14, 2010,

      Re: Rocket Themes templates - Cedric, thanks for working on it! I have run the xdelta3 program to get the new template, but then it won't allow me to unzip the resulting file to patch the server. I had to use the -s switch to get the source file recognized so my code looks l...
      11:24 PM Mar 13, 2010,

      Re: Rocket Themes templates - Hello again... I have more information Cedric. When I go into the contact details I want to display the captcha on, I get an error. Warning: file_get_contents(/home/mico7284/public_html/islandtrader.info/administrator/components/com_contact/contact_ite...
      10:22 PM Mar 13, 2010,

      Re: Rocket Themes templates - Cedric YOU ROCK! Thanks so much for the patch on crystalline template! I now have captcha on my log in form... however, it is not showing up on my contact form... See attached jpeg for a screen shot of the error I get for the contact patch under check ...
      10:05 PM Mar 13, 2010,
       
      Contact section of Joomla! 1.5 using SecurityImages 5.0 Print E-mail
      User Rating: / 1
      PoorBest 
      Thursday, 20 March 2008 19:38

       

      SecurityImages BETA will be available in no more than 2 days...

      Note that SecurityImages is still WAY to intrusive toward Joomla! as core file has to be changed in order to use Captcha.

      Lets take the contact section of Joomla! as  an example.

      • Download the patch HERE (soon available as a ready to use patch) and overwrite file on your server OR
      • Do it on your own, this is more for 3rd party developer, or people wanting to understand the internal of Joomla! or SecurityImages
      Click Read MORE!


      It is always recommended to use a switch in all your component to activate deactivate SecurityImages per components  through the administrator control panel.

      This is done by adding to administrator/components/com_contact/contact_items.xml the following code:

      <param name="useSecurityImages" type="radio" default="1" label="Use SecurityImage Captcha" description="Enable Captcha verification">
      <option value="0">No</option>
      <option value="1">Yes</option>
      </param>

      Joomla will read this xml file on the fly  and build the graphical user interface for the contact settings.

      contact.settings.securityimages.5.0

      Since Joomla! 1.5 now use a Model View Controller paradigm, we have to alter the controller, and add a new Task displaySecurityImagesCaptcha()in  components/com_contact/controller.php:

         function displaySecurityImagesCaptcha() { 
              global
      $mainframe
             
              //Per contact you can define if the user has to resolve the capctha 
             
      $contactId = JRequest::getVar('contact_id', 0, '', 'int'); 
             
      // load the contact details 
             
      $model    = &$this->getModel('contact'); 
             
      $qOptions['id'] = $contactId
             
      $contact        = $model->getContact( $qOptions ); 
             
      $params = new JParameter( $contact->params ); 
               
              if (
      $params->get('useSecurityImages')) {     
                 
      $check = null
                 
      $mainframe->triggerEvent('
      onSecurityImagesDisplay', array($check)); 
                  if (!
      $
      check) { 
                      echo
      "<br/>Erreur affichage du Captcha<br/>"
                  } 
              } 
                   
          } 
      As you can see, the event "onSecurityImagesDisplay" is triggered on a per contact name basis. That mean that some contact can have a Captcha while other have not. 

      The next step is to add the task checkSecurityImagesCaptcha() checking the captcha in the components/com_contact/controller.php
      function checkSecurityImagesCaptcha() { 
              global
      $mainframe
        
             
      $contactId = JRequest::getVar('id', 0, '', 'int'); 
             
      // load the contact details 
             
      $model    = &$this->getModel('contact'); 
             
      $qOptions['id'] = $contactId
             
      $contact        = $model->getContact( $qOptions ); 
             
      $params = new JParameter( $contact->params ); 
             
              //check if that user has a capctha 
             
      if (!$params->get('
      useSecurityImages')) {  
                  return
      true
              } 
             
      $return = false
             
      $securityImagesJoomlaContactUserTry = JRequest::getVar('securityImagesJoomlaContactUserTry', false, '', 'CMD'); 
             
      $mainframe->triggerEvent('
      onSecurityImagesCheck', array($securityImagesJoomlaContactUserTry &$return));
              return
      $return;
          } 
      One more step is to alter the original submit() method of the controller in components/com_contact/controller.php
              global $mainframe  

             
      if (!$this->
      checkSecurityImagesCaptcha()) {
                 
      JError::raiseWarning("999","Invalid Captcha Code");
                 
      $this->display();
                  return
      false;
              } 
      And finally altering the view /com_contact/views/contact/tmpl/default_form.php
      to display the Captcha field

      <?php if ($this->params->get('useSecurityImages')) { ?>             
      <img src="/index.php?option=com_contact&task=
      displaySecurityImagesCaptcha&contact_id=<?php echo $this->contact->id; ?>"> 
      <br /> 
      <input type="text" name="securityImagesJoomlaContactUserTry" /> 
      <br /> 
       <?php } ?>
      As you see a lot of thing have been done, and I am still testing and improving the code.

      Related Posts

      relatedArticles

      Tags See All Tags Add New Tag...

      Please Enter New Tags Separated By Comma's
        Or Close

      joomla  securityimage5 



      Comments
      Add New Search RSS
      +/-
      Write comment
      Name:
      Email:
       
      Website:
      Title:
      UBBCode:
      [b] [i] [u] [url] [quote] [code] [img] 
       
       
      :):grin;)8):p:roll:eek:upset:zzz:sigh:?:cry
      :(:x
       
      Please input the anti-spam code that you can read in the image.
      Last Updated on Thursday, 20 March 2008 18:40
       

      Top 200 Tags

      Donation

      Thank You for supporting my work
      Click Here to make a donation