21
uberrookie
max attemps captcha
  • 2011/4/9 19:11

  • uberrookie

  • Just popping in

  • Posts: 34

  • Since: 2011/3/29


xoops 2.5.0
In the function XoopsCaptcha::verify() it says:

} else if (!empty($maxAttempts) && ! empty($_SESSION["{$sessionName}_attempt"]) > $maxAttempts) {
            
$this->message[] = _CAPTCHA_TOOMANYATTEMPTS;
            
// Verify the code
        
}


The result of
(!empty($maxAttempts) && ! empty($_SESSION["{$sessionName}_attempt"])
is either 0 or 1 and never exceeds the $maxAttemps.

Shoudn't it be:
} else if ((!empty($maxAttempts) && ! empty($_SESSION["{$sessionName}_attempt"])) && ($_SESSION["{$sessionName}_attempt"] > $maxAttempts)) {


?



22
uberrookie
Re: news submit.php
  • 2011/4/4 19:36

  • uberrookie

  • Just popping in

  • Posts: 34

  • Since: 2011/3/29





23
uberrookie
Re: quirksmode when displaying forms
  • 2011/4/4 19:32

  • uberrookie

  • Just popping in

  • Posts: 34

  • Since: 2011/3/29


I'm so sorry. It's not a bug at all.

Apparently I had saved header.php as utf8 with BOM.

Don't even know why I saved it since I didn't change anything.

For futute reference....Save your php files as UTF8 without BOM!!!

(as you should know already, like i did )



24
uberrookie
Re: quirksmode when displaying forms
  • 2011/4/3 16:18

  • uberrookie

  • Just popping in

  • Posts: 34

  • Since: 2011/3/29


It's not the css, i think. check the source (head and body tags) when in quirksmode:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl"><head></head><body id="extcal" class="nl">


    
<!-- Assign Theme name -->
    
    <!-- 
Title and meta -->
    <
meta http-equiv="content-language" content="nl">
    <
meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <
title>etc.....


I think it has somtething to do with how xoops themes stuff.

In the screenshot's case adding
$xoopsOption['template_main'] = '';

to extcal/comment_new.php avoids quirksmode.

Thats how i did it at other modules, but its just a workaround, i think.



25
uberrookie
Re: quirksmode when displaying forms

Xoops 2.5.0
Explorer and Firefox latest versions.
All modules with forms. (maybe depending on form type?)

The site is running locally at the moment, so here are some shots.
Resized Image

while site should be:
Resized Image


It's now when displaying the add comment form, but i had it also when displaying submit news form and others.
(https://xoops.org/modules/newbb/viewtopic.php?topic_id=73525&forum=28&post_id=337685#forumpost33768)

When viewing the generated source (FF), the content of the head tag is inside the body tag.



26
uberrookie
quirksmode when displaying forms
  • 2011/4/2 21:12

  • uberrookie

  • Just popping in

  • Posts: 34

  • Since: 2011/3/29


Everytime xoops 2.5.0 displays a form on the "userside", my browers go in quirksmode.

This happens also in the default theme.

I had this problem before with some modules, but fixed it by adding $xoopsOption['template_main'] = '' in the php file responable for content.

News Module > submit.php
PD Links Module > header.php

But these are just workarounds, i think. We should find the cause and fix Xoops.



27
uberrookie
Re: show content when there IS content
  • 2011/3/31 13:57

  • uberrookie

  • Just popping in

  • Posts: 34

  • Since: 2011/3/29


apparently the content of $xoops_contents is a 3 chars string. For now i fixed it by using:
<{if $xoops_contents && (strlen($xoops_contents) > 3) }>

but i don't think its a solution.



28
uberrookie
Re: news submit.php
  • 2011/3/31 13:37

  • uberrookie

  • Just popping in

  • Posts: 34

  • Since: 2011/3/29


submit.php doesn't has a template, but add this to submit.php to avoid quirksmode:

$xoopsOption['template_main'] = '';


place doesn't matter that much, but what about this:
if (!defined('XOOPS_ROOT_PATH')) {
    include_once 
'../../mainfile.php';
}
$xoopsOption['template_main'] = '';



29
uberrookie
news submit.php
  • 2011/3/31 13:20

  • uberrookie

  • Just popping in

  • Posts: 34

  • Since: 2011/3/29


When editing or submitting a new news article (modules/news/submit.php) my browsers enter quirksmode.

In other words, they convert the page back to a compatible style)

When i look at the generated source, i notice the head tag is empty and it contents moved inside the body tag.



30
uberrookie
multiple languages (and custom profile fields)
  • 2011/3/31 4:56

  • uberrookie

  • Just popping in

  • Posts: 34

  • Since: 2011/3/29


Does xoops 2.5.0 support using/offering multiple languages?

and if so...

Do the custom profile fields at modules/profile/admin/field.php support this?




TopTop
« 1 2 (3) 4 »



Login

Who's Online

162 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 162


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits