Page 1 of 1

NO captcha images iis 6

Posted: 27 Nov 2008, 11:08
by maccert
Hello
I’ve installed joomla 1.5.8 on my iis 6 server then installed the phoca guestbook. Everything works fine only captcha is not displaying the images :x . Installed more test sites still the same problem...
I’ve followed up the other instructions in this forum but nothing helps :!:
please help me.
Thanks.
grtz mac

Re: NO captcha images iis 6

Posted: 28 Nov 2008, 16:29
by Jan
Hi, please let me know your site...

Jan

Re: NO captcha images iis 6

Posted: 28 Nov 2008, 16:45
by maccert
hello
the website is http://www.sennabrandt.nl menu link gastenboek.
thanks for your response :twisted:
grtz mac

Re: NO captcha images iis 6

Posted: 02 Dec 2008, 14:42
by Jan
there is a wrong image path:

<img src="/index.php?option=com_phocaguestbook&view=phocaguestbooki&id=1&Itemid=53&phocasid=8b220cefe6d537c17ee9dd32223d6a5f" alt="Captcha Image" id="phocacaptcha">

/index.php ... did you try both method of displaying image on the site (JHTML, JROUTE in parameters component)


Jan

Re: NO captcha images iis 6

Posted: 02 Dec 2008, 20:57
by maccert
hi
i've tried both methods of displaying image on the site JHTML and JROUTE but both are not working.
where can ik find the path to the images?
grts mac

Re: NO captcha images iis 6

Posted: 02 Dec 2008, 21:05
by Jan
see this file:

components\com_phocaguestbook\views\phocaguestbook\tmpl\default.php

line 315 +

Jan

Re: NO captcha images iis 6

Posted: 02 Dec 2008, 21:49
by maccert
hi
can't see anything wrong here? everything is default i gues.

<!-- <img src="<?php echo JRoute::_('index.php?option=com_phocaguestbook&view=phocaguestbooki&id='.$this->id.'&Itemid='.$this->itemid.'&phocasid='. md5(uniqid(time()))) ; ?>" alt="<?php JText::_('Captcha Image'); ?>" id="phocacaptcha" />
-->
<?php echo JHTML::_( 'image.site','index.php?option=com_phocaguestbook&view=phocaguestbooki&id='.$this->id.'&Itemid='.$this->itemid.'&phocasid='. md5(uniqid(time())) , '', '','',JText::_('Captcha Image'), array('id' => 'phocacaptcha')); ?>
</td>

<td width="5" align="left" valign="middle"><input type="text" id="pgbcaptcha" name="captcha" size="6" maxlength="6" style="border:1px solid #cccccc"/></td>

<td align="left" width="5" valign="middle"><a <?php //Remove because of IE6 - href="javascript:void(0)" onclick="javascript:reloadCaptcha();" ?> href="javascript:reloadCaptcha();" title="<?php echo JText::_('Reload Image'); ?>" ><?php echo JHTML::_( 'image.site', 'components/com_phocaguestbook/assets/images/icon-reload.gif', '', '','',JText::_('Reload Image')); ?></a></td>

<td align="left" width="50%"><small style="color:#fc0000;"><?php

// Server side checking CAPTCHA
if ($this->captcha_msg)
{
echo '<small style="color:#fc0000;">'.JText::_( 'Phoca Guestbook Wrong Captcha' ).'</small><br />';
}
//-- Server side checking CAPTCHA
?></small>&nbsp;</td>
</tr>

<?php
}
?>

Re: NO captcha images iis 6

Posted: 03 Dec 2008, 15:11
by Jan
try to change the src url for your needs...

Jan

Re: NO captcha images iis 6

Posted: 12 Dec 2008, 12:51
by maccert
hello
found the problem, gd2 in php.ini was disabled after enabling it the problems with captcha and gallary were gone.....
thanks for supporting me.
mac

Re: NO captcha images iis 6

Posted: 12 Dec 2008, 20:31
by Jan
great to hear it, Jan