http://www.youtube.com/watch?v=LxGiQ_ck44w
http://www.youtube.com/watch?v=KKTNQCCJpss
Mittwoch, 9. September 2009
Integration of tinCaptcha into ccnewsletter
- Download and install plg_tincaptcha_0.1.1.zip and com_tincaptcha_0.1.1.zip from http://joomlacode.org/gf/project/tincaptcha/frs/
- Download, unpack and install ccNewsletter_104Stable_UNZIP_FIRST.zip from http://extensions.chillcreations.com/
- Edit components/com_ccnewsletter/views/ccnewsletter/tmpl/default.php of your Joomla installation and add the following lines below the Email input field:
<tr>
<td width="150">
<label for="captcha">
<?php echo JText::_( 'TIN_CAPTCHA' );?>:
</label>
</td>
<td>
<img src="index.php?option=com_tincaptcha&task=captcha_display" onclick="this.src='index.php?option=com_tincaptcha&task=captcha_display&t='+(new Date()).getTime()" alt="Click to refresh image"/>
<input type="text" name="captcha" id="captcha" size="10" value="" />
</td>
<td>
</td>
</tr>
<tr>
<td colspan="2">
If code cannot be deciphered, click on the image to generate a new code <br/>
</td>
</tr>
after the lines:
<td>
<input type="text" name="email" id="email1" size="32" maxlength="250" value="<?php echo $this->email;?>" />
</td>
</tr> - Edit components/com_ccnewsletter/controller.php of your Joomla installation and add the following lines:
$captchk = plgSystemTincaptcha::check(JRequest::getVar('captcha', '', 'post'));
if ($captchk !== true)
{
// show info
echo plgSystemTincaptcha::check(JRequest::getVar('captcha', '', 'post'));
break;
}
after the line:
$params = &JComponentHelper::getParams( 'com_ccnewsletter' ); - Check it out!
Freitag, 14. August 2009
Download OpenCycleMap Tiles
- Download Geo-OSM-Tiles (see previous blog entry)
- Call:
perl downloadosmtiles.pl --lat=47.218:47.785 --lon=10.787:11.727 --zoom=1:15 --baseurl=http://a.andy.sandbox.cloudmade.com/tiles/cycle
Download OSM Tiles
- Download Geo-OSM-Tiles from http://search.cpan.org/CPAN/authors/id/R/RO/ROTKRAUT/Geo-OSM-Tiles-0.02.tar.gz
- Extract archive
- Run perl downloadosmtiles.pl --lat=47.623:48.186 --lon=11.114:12.054 --zoom=1:15
- In case the following error occurs, copy downloadosmtiles.pl into the lib directory: Can't locate Geo/OSM/Tiles.pm in @INC
Abonnieren
Kommentare (Atom)