71
nachenko
Re: JQuery, XOOPS and Internet Explorer 6
  • 2007/10/15 14:48

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


I can't believe it.

This line also makes it fail on IE and Opera:

$(document).ready();

This is the simplest function, the initialization of all stuff. I just updated JQuery two hours ago and haven't modified it.

How is it possible?



72
nachenko
Re: JQuery, XOOPS and Internet Explorer 6
  • 2007/10/15 14:44

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


I'm using Tabs.

It works flawlesly on Firefox, but it fails on IE and Opera (!). This last is more surprising.

Opera error console reads:

Quote:
Inline script thread
Error:
name: TypeError
message: Statement on line 11: Type mismatch (usually a non-object value used where an object is required)
Backtrace:
Line 11 of inline#2 script inhttp://anince.es/
$(document).ready((function ()
{
$("div.round-container").corner("round 15px");
$("div#bottomCcolumn.tabs > ul").tabs({fxFade : true, fxShowSpeed : "fast"});
$("div#bottomCcolumn > ul").css({backgroundColor : "#990000", color : "#005500"});
}
));


BTW, I'm also using the round plugin, and as usual, it works on FireFox, but not on IE.



73
nachenko
JQuery, XOOPS and Internet Explorer 6
  • 2007/10/15 14:11

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


OK, IE is a dick, but it's the dick most people use.

I'm using JQuery to make some tabs in a bunch of blocks. A more eye-candy interface and all this. OK, everything is going fine... except on IE 6.

I've used JQuery before in non-XOOPS sites and it works fine, but I build my XOOPS sites using the more complex default theme. I think the problem is that IE is selecting nothing when I write something like:

$('div#example ul').tabs();


I don't even know how to learn what's worng. I've spent this morning looking for known issues regarding IE 6 and Jquery, but did not find anything useful.

This is the site:

http://www.anince.es

Help needed. Thank you.



74
nachenko
Re: Catching SPAM bots in XoopsForms without CAPTCHA
  • 2007/10/15 12:47

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


I think randomizing the variable in every refresh can be done. The drawback is that they can try to detect the "visibility: hidden" property, but then we can do a really naughty trick: making text field have a width and height of 1 pixel and hide it somewhere.



75
nachenko
Re: Catching SPAM bots in XoopsForms without CAPTCHA
  • 2007/10/15 12:26

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


As MadFish suggested: just randomize the name of the var in every installation and define a constant.

There are methods, the name of the var is not a problem.



76
nachenko
Re: Catching SPAM bots in XoopsForms without CAPTCHA
  • 2007/10/15 11:14

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


No problem hee. I just think MadFish idea is better. Hiding the text field to humans is exactly what we want.

Example: we have a comments form with tittle, text and a hidden field named "trap101". The bot writes something in it and clicks send. We check the form and notice "trap101" is NOT empty. The sender of this message must be a bot, so we don't process the form and redirect it, ban it or whatever we want.

It's extremely simple.



77
nachenko
Re: Catching SPAM bots in XoopsForms without CAPTCHA
  • 2007/10/15 10:53

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


I don't like the token method.

Making something invisible via CSS is easy, just:

visibility: hidden



78
nachenko
Catching SPAM bots in XoopsForms without CAPTCHA
  • 2007/10/15 10:18

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Hey!-

Have you read MadFish ideas about CAPTCHA and alternatives?

Well, he had a great idea. That is, all forms are (or should be) generated via XoopsForm object. He suggested that every form could include an invisible text field. Users can't fill it because they don't see it, but bots should bite.

I was thinking about hacking the XoopsForm object so that EVERY FORM is automatically protected this way.

The problem is checking the form, there are two solutions:

1 - every module should include some code to check the form

2 - Modify header.php to do this check.

The code should be someting like:

Quote:
if ( !empty($_POST['trap'])) {
xoops_redirect etc etc
}


What do you think? Ideas? Suggestions?



79
nachenko
Re: Testing Xoops Total 2.0.18 Package.
  • 2007/10/11 11:39

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Ok, i'm finishing a site using 2.0.16 EXM, and I'm very happy with the results. I even made some icons for modules, but they are not as good as the ones made by EXM authors.

When I end it, I'll test your version.

I found another bug regarding blocks, top page and News module. I'll notify it in the Sourceforge bugtracker. Please have a look.



80
nachenko
Re: Showing the right block in the worng place: Top page wrong detection
  • 2007/10/11 11:36

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Forget it, i found the line:

file class/theme_blocks.php , Line 60

Quote:

$isStart = ( substr( $_SERVER['PHP_SELF'], -9 ) == 'index.php' && $xoopsConfig['startpage'] == $dirname );


Replace with:

Quote:

$isStart = ( substr( $_SERVER['PHP_SELF'], -9 ) == 'index.php' && $xoopsConfig['startpage'] == $dirname && !$_GET);


Fix is simple, just check $_GET object does not exist. If we are in the start module, opening index.php file and there is no $_GET stuff, we must be in the start page. A bit dirty, but it works.




TopTop
« 1 ... 5 6 7 (8) 9 10 11 ... 27 »



Login

Who's Online

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


Members: 0


Guests: 236


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