CB goes Captcha!

16 years 11 months ago #37352 by plp
Replied by plp on topic still without image
what a strange plugin...
first plugin which is so strict about language files in the core of the joomla

GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

language files (not in UTF) - removed extra lines at end

still no image....

are you sure that joomfish is not involved in this issue?

Please Log in to join the conversation.

16 years 11 months ago #37366 by nant
Replied by nant on topic Re:still without image
plp wrote:

what a strange plugin...
first plugin which is so strict about language files in the core of the joomla

GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

language files (not in UTF) - removed extra lines at end

still no image....

are you sure that joomfish is not involved in this issue?


I am working on a new version that is not so strange ..
until then I will not be spending any time to debug these known issues.
The problem is that something in your environment (template or language file) is outputing some chars which messup the image headers (these chars do not messup any text pages).

Please Log in to join the conversation.

16 years 11 months ago #37554 by Trollgaard
Replied by Trollgaard on topic Re:another solution
bugnotme wrote:

since nobody help me i found another solution for all of those who cant or dont want to use captcha

i installed this code a couple of days ago and all the darn crap stopped!!!:)

so that's the deal:

you have to add this code in your comprofiler.html.php

<form method="POST" action="list.php" name="list">
<input type="hidden" name="submitted" value="submitted">
<div class="form_01">
<label for="first_name">First name:</label>
<input title="Visually impaired users: do not enter anything in this box" type="text" name="first_name" id="first_name" value="" onKeyUp=" val = this.value; if (val.length > 0) { alert('Please place your cursor in ‘Name’ box to start your message'); this.value = val.substring(0,0); emailform.focus() } this.form.count.value=0-parseInt(this.value.length); ">
</div>


example

.....
.....
echo _REGISTER_UNAME; ?>" size="40" value="<?php if (isset($row->username)) echo htmlspecialchars($row->username);?>" class="inputbox" /><?php

echo getFieldIcons(1,true,($ueConfig!=1), sprintf( _VALID_AZ09, _UE_UNAME, 2 ), _REGISTER_UNAME); ?></td>

</tr>

<tr>

<td class="titleCell"><?php echo _REGISTER_EMAIL; ?></td>

<td class="fieldCell"><input type="text" name="email" mosReq="1" mosLabel="<?php

echo _REGISTER_EMAIL; ?>" size="40" value="<?php if (isset($row->email)) echo htmlspecialchars($row->email);?>" class="inputbox" /><?php

echo getFieldIcons(1,true,($ueConfig==1 || $ueConfig==2), _REGWARN_MAIL, _REGISTER_EMAIL); ?>


<form method="POST" action="list.php" name="list">
<input type="hidden" name="submitted" value="submitted">
<div class="form_01">
<label for="first_name">Protector</label>
<input title="Visually impaired users: do not enter anything in this box" type="text" name="first_name" id="first_name" value="" onKeyUp=" val = this.value; if (val.length > 0) { alert('Please place your cursor in ‘Password’ box to continue'); this.value = val.substring(0,0); emailform.focus() } this.form.count.value=0-parseInt(this.value.length); ">
</div>


</td>

</tr>



<?php if ($emailpass=="0" || isset($mosConfig_useractivation)) { ?>



<tr>

<td class="titleCell"><?php echo _REGISTER_PASS; ?></td>





this add a field. this field must not contain any character if not the subscription process can not go on.

now we have to hide this field to users

go to your template (/public_html/components/com_comprofiler/plugin/templates)

and choose the template you have (mine is default)
i opened template.css and i add this piece of code:

.form_01 {
visibility: hidden;
display: none;
}

DONE!!! from now on just stupid spambot will try to fill in the invisible field with the result of not being able to finish the subscription process...humans who dont see the hidden field will be able to subsribe.
i tried this on my MAMBO site( i know you people hate this word but well...MAMBO MAMBO MAMBO MAMBO MAMBO MAMBO MAMBO MAMBO :laugh: :laugh: :laugh: :laugh: ) and it works like a charm

please give ME some feedback ( possibly positive feedback :P )
enjoy and peace!
Francesco from Italy ---Pisa

Post edited by: bugnotme, at: 2007/03/13 22:38

Post edited by: bugnotme, at: 2007/03/13 22:41


Hmmm... I see the point, but will it really work? This trick only works if the bot/spider don't read the css file. I've tried it a few places just for fun, but I haven't stopped any spammers with it when it's hidden. As far as I have learned, the screenreaders aren't able to read anything that is set with "display: none;". Hence, the imageswap trick should not be used on pages for visually impaired.
I like the thought though.

Please Log in to join the conversation.

16 years 11 months ago #37673 by thoeri
Replied by thoeri on topic Re:still without image
I have the same problem - image won't show. It used to but suddenly it disappeared. I have:

GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XPM Support enabled
XBM Support enabled

I did not touch the language file. It does not work with swedish nor english.

This is not a template issue. I have switched to SolarFlare II and still having this issue.

I do not use Joomfish nor JSMF.

I hope there will be a solution for this.

Cheers,
Thoeri

Please Log in to join the conversation.

16 years 10 months ago #38543 by techformations
Replied by techformations on topic Re:CB goes Captcha!
Image not showing... I don't think I have GD2 support, just ImageMagick...




System Linux xervant.com 2.6.16.29-xen_3.0.3.0 #1 SMP Mon Oct 16 09:30:17 EDT 2006 i686
Build Date Feb 14 2007 20:55:08
Configure Command './configure' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4' '--with-curl' '--with-dom' '--with-exec-dir' '--with-freetype' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg' '--with-openssl' '--with-png' '--with-pspell' '--with-regex' '--with-xml' '--with-expat' '--with-zlib' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-pear' '--with-imap' '--with-imap-ssl' '--with-ldap' '--with-mysql' '--with-pgsql' '--with-unixODBC' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2filter=/usr/sbin/apxs' '--with-kerberos' '--enable-mbstring'
Server API Apache 2.0 Filter
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/Zend/etc/php.ini









PHP built On: Linux xervant.com 2.6.16.29-xen_3.0.3.0 #1 SMP Mon Oct 16 09:30:17 EDT 2006 i686
Database Version: 5.0.27
PHP Version: 4.3.11
Web Server: Apache/2.2.2 (Fedora)
WebServer to PHP interface: apache2filter
Joomla! Version: Joomla! 1.0.12 Stable [ Sunfire ] 25 December 2006 01:00 UTC
User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
Relevant PHP Settings:
Joomla! Register Globals Emulation: OFF
Register Globals: OFF
Magic Quotes: ON
Safe Mode: OFF
File Uploads: ON
Session auto start: OFF
Session save path: /tmp
Short Open Tags: ON
Output Buffering: OFF
Open basedir: none
Display Errors: ON
XML enabled: Yes
Zlib enabled: Yes
Disabled Functions: none

Please Log in to join the conversation.

16 years 10 months ago #38609 by mikeno
Replied by mikeno on topic Re:CB goes Captcha!
same error as a lot of other people
have gd2, have ft, have everything else checking out great
but zero image

developers:
if you want a testbed to fix this booboo, throw me a private message and i'll set you up an account

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.365 seconds