however ...

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

jazcyk
Posts: 385
Joined: Wed Sep 07, 2005 1:32 pm

however ...

Post by jazcyk »

it does not seem to work!

Maybe it is printed outside the visible 'window'?
But it can be added to .css and .tpl. files if needed.

It is no big issue for me. We have not been bothered by robots - only some childish persons and a viagra-seller ... :?

I will just use two or three very clear fonts for a start.
jazcyk
Posts: 385
Joined: Wed Sep 07, 2005 1:32 pm

shit ...

Post by jazcyk »

this should nave been posted in the 'PhpmyFAQ 160' thread :cry:
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Screenshot of the effect

Post by matteo »

jazcyk wrote:it does not seem to work!

Maybe it is printed outside the visible 'window'?
But it can be added to .css and .tpl. files if needed..
Here is the effect for viewing the basket of characters:
Image
Last edited by matteo on Fri Aug 04, 2006 7:38 pm, edited 1 time in total.
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
jazcyk
Posts: 385
Joined: Wed Sep 07, 2005 1:32 pm

strange

Post by jazcyk »

Here it displays like
Image

ask.php contains

Code: Select all

'msgCaptcha' => $PMF_LANG['msgCaptcha']."<br/>(".implode(" ", $captcha->letters).")",
a syntax issue, probably!
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Re: strange

Post by matteo »

jazcyk wrote:a syntax issue, probably!
Or a browser issue: please try to substitute "<br/>" with a simple space char " ".
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
jazcyk
Posts: 385
Joined: Wed Sep 07, 2005 1:32 pm

no ...

Post by jazcyk »

makes no difference in neither IE, Firefox or Opera on my system when connecting to local Apache 2.0.55, PHP 5.1.2, MySQL 5.0.19.

Could there be some file version mismatch?
jazcyk
Posts: 385
Joined: Wed Sep 07, 2005 1:32 pm

where

Post by jazcyk »

from where does it read

Code: Select all

$captcha->letters
jazcyk
Posts: 385
Joined: Wed Sep 07, 2005 1:32 pm

captcha.php?

Post by jazcyk »

captcha.php contains:

Code: Select all

$this->letters      = array('1', '2', '3', '4', '5', '6', '7', '8', '9',
                                    'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I',
                                    'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
                                    'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' );
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Mmmhhh

Post by matteo »

It doesn't depend on the server configuration if you do not have a local proxy.
It seems to me you've modified a file different from that under your web root path or you are caching the old HTML.

Code: Select all

$captcha->letters
is one of the properties of the captcha class as

Code: Select all

$captcha->caplength
a bit below in ask.php
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
jazcyk
Posts: 385
Joined: Wed Sep 07, 2005 1:32 pm

modules

Post by jazcyk »

another php-module that I need to load?
jazcyk
Posts: 385
Joined: Wed Sep 07, 2005 1:32 pm

hmmm

Post by jazcyk »

or you are caching the old HTML
I have restarted Apache and the browsers, so nothing should be cached anywhere!

The file modified is
\path to faq\ask.php
or webroot\faq16\ask.php (in webserver terms)
or D:\webside\faq16\ask.php (on local filesystem)
jazcyk
Posts: 385
Joined: Wed Sep 07, 2005 1:32 pm

and

Post by jazcyk »

I now emptied the browser cache, and still the same!
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

I'd suggest you two checks:
a. add a garbage character like "(" in your ask.php: this will output an error if you're modifying the right file (just a double check to you post)
b. try to remove the implode function for reading something like

Code: Select all

'msgCaptcha' => $PMF_LANG['msgCaptcha']." This is a Test String - REMOVE ME",
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
jazcyk
Posts: 385
Joined: Wed Sep 07, 2005 1:32 pm

all explained ...

Post by jazcyk »

:D

Your 'hack' works on 'Ask Question', but neither 'Add Content' or 'Add Comment'

But I was working with 'Add Comment' all the time!

:D :D :D :D
Last edited by jazcyk on Sat Mar 25, 2006 12:31 am, edited 1 time in total.
david_de
Posts: 72
Joined: Tue Dec 13, 2005 12:09 am

Post by david_de »

Code: Select all

'msgCaptcha' => $PMF_LANG['msgCaptcha']." This is a Test String - REMOVE ME",
The problem with this and the implode one the string is too long for the column. In Firefox it over writes the right column however the column top is same hight as left and right column.

IE it is too wide for the column so the column moves down where the "Ask Question at the top of the center column is just below 1 Users online (left column) but in the middle column position. It was off my screen until I scroll down.
Post Reply