Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 10:21:04 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155446 Posts in 21703 Topics by 7731 Members
Latest Member: zvaigzdzius
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: News module: very unusual field labels  (Read 924 times)
spida

Offline Offline

Posts: 203


« on: October 31, 2008, 07:12:14 PM »

Hi,

after fussing a bit with the news module I eventuall got it to work on my installation. Now, I am experiencing a quite new problem: Very unusual texts are displayed as labels above some input fields. See screenhsot below or online
http://www.e-daktik.de/modules/news/comment.php?id=16&sid=3

Where can I change these labels?

Thanks in advance for your help,
spida
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7972



WWW
« Reply #1 on: October 31, 2008, 07:44:01 PM »

Hello,

all design you find in the modules css (frontend.css) and in the css of your template.

Matthias
Logged
spida

Offline Offline

Posts: 203


« Reply #2 on: October 31, 2008, 07:53:21 PM »

Hi Matthias,

I am not suprised about the design, it's the content, the text. If you take a closer look, you see that there is a line saying:
Quote
email address: Leave this field email blank:
where it should just be
Quote
Email address
.
Additionally I would like to have these labels in German instead of in English.

Do you have any idea where this bug might be invoked?

EDIT: I just checked the source code and saw that the code is produced by
Code:
<p class="nixhier">
What can I do about this?

EDIT 2: I found this in comment_page.php:

Code:
<?php if(ENABLED_ASP) { // add some honeypot-fields
    
?>

    <input type="hidden" name="submitted_when" value="<?php $t=time(); echo $t$_SESSION['submitted_when']=$t?>" />
    <p class="nixhier">
    email address:
    <label for="email">Leave this field email blank:</label>
    <input id="email" name="email" size="60" value="" /><br />
    Homepage:
    <label for="homepage">Leave this field homepage blank:</label>
    <input id="homepage" name="homepage" size="60" value="" /><br />
    URL:
    <label for="url">Leave this field url blank:</label>
    <input id="url" name="url" size="60" value="" /><br />
    Comment:
    <label for="comment">Leave this field comment blank:</label>
    <input id="comment" name="comment" size="60" value="" /><br />
    </p>
    <?php }
    
?>

Why are the "honeypots" displayed on the example page? They are not on my local installation,btw.

Best regards,
spida

« Last Edit: October 31, 2008, 08:37:57 PM by spida » Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #3 on: October 31, 2008, 08:37:38 PM »

Hello Spida.
This has to do with Spam-Protection.

So leave this there and use the class "nixhier" to get rid of this in the Frontend.

Regads,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
spida

Offline Offline

Posts: 203


« Reply #4 on: October 31, 2008, 08:42:09 PM »

Hi Stefek,

gosh, things can be so easy. For some unknown reason the modules backend css did have
Code:
/*** Don't remove the class nixhier, this is required for ASP ***/
.nixhier {
    display:none;
}
but this definition was nevertheless ignored.
After adding it to my generic stylesheet everything is OK.

Thanks for your help,
have a nice weekend,
spida
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #5 on: October 31, 2008, 08:57:54 PM »

For this class is used in all Modules which use the ASP, it's a good Idea to put this line inside the global css file.
You're welcome.

Anyway, you can also enforce a "browser reaction" if you use !important right after the value in your declaration.

Like this:

Code:
.nixhier {
    display:none !important;
}

This should work then in the frontend.css

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!