Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
8 - 1 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
" . _CAPTCHA_REFRESH . ""; [/code] By : [code] $image .= "config['name']) . "')" title="_CAPTCHA_REFRESH">"; [/code] • 2. put my icon into www/modules/xforms/ (it is the module I use) [img width=402]http://www.babylonbyxoops.net/uploads/captcha-relooking.gif[/img] Now, two questions :-D : a • title="_CAPTCHA_REFRESH" does not display sentence, _CAPTCHA_REFRESH appears when I roll hover the icon. [color=CC0000]Could you tell me the right syntax ?[/color] b • : path is not very pratical, I would prefer something like ... so the same icon could be used for all my modules. [color=CC0000]Again, could you tell me the right syntax ?[/color] Thanks in advance for responses :)[/quote]" />

Re: Improve default captcha - trouble with language define and path
by Burning on 2010/9/29 13:08:40

Many thanks !!

Both codes work, just a little " to delete before /uploads:
le="color: #000000"><?php $image .= '<a href="javascript: xoops_captcha_refresh('' . ($this->config['name']) . '')" title="' . _CAPTCHA_REFRESH . '"><img class="captcha-reload" src="' . XOOPS_URL . '/uploads/captcha-ico-refresh.gif"></a>';


Now sentence is displayed properly and refresh icon at the right place


Edit : oups! first Trabis code does not work, refresh feature is broken
Re: Improve default captcha - trouble with language define and path
by trabis on 2010/9/29 12:57:31

$image .= '<a href="javascript: xoops_captcha_refresh("' . ($this->config['name']) . '")" title="' . _CAPTCHA_REFRESH . '"><img class="captcha-reload" src="' . XOOPS_URL . '"/uploads/captcha-ico-refresh.gif"></a>';

or


$image .= '<a href="javascript: xoops_captcha_refresh(\'' . ($this->config['name']) . '\')" title="' . _CAPTCHA_REFRESH . '"><img class="captcha-reload" src="' . XOOPS_URL . '"/uploads/captcha-ico-refresh.gif"></a>';

?
Improve default captcha - trouble with language define and path
by Burning on 2010/9/29 12:36:53

hi'

First sorry if this question has been already resolved, I don't know wich keyword to use


I would like to replace this sentence by an icon :
Quote:
define('_CAPTCHA_REFRESH', 'Click to refresh the image if it is not clear enough.');

(www/language/english/captcha)


To do it, I must :

• 1. edit www/class/captcha/image.php, line 89

Replace :
le="color: #000000"><?php $image .= "<br /><a href="javascript: xoops_captcha_refresh('" . ($this->config['name']) . "')">" . _CAPTCHA_REFRESH . "</a>";

By :
le="color: #000000"><?php $image .= "<a href="javascript: xoops_captcha_refresh('" . ($this->config['name']) . "')" title="_CAPTCHA_REFRESH"><img class="captcha-reload" src="captcha-ico-refresh.gif"></a>";


• 2. put my icon into www/modules/xforms/
(it is the module I use)

Resized Image



Now, two questions :

a • title="_CAPTCHA_REFRESH" does not display sentence, _CAPTCHA_REFRESH appears when I roll hover the icon. Could you tell me the right syntax ?

b • <img class="captcha-reload" src="captcha-ico-refresh.gif"> : path is not very pratical, I would prefer something like <{xoAppUrl /uploads/captcha-refresh.gif}>... so the same icon could be used for all my modules. Again, could you tell me the right syntax ?


Thanks in advance for responses :)

Who's Online

173 user(s) are online (132 user(s) are browsing Support Forums)


Members: 0


Guests: 173


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits