61
frankblack
Re: Xoops 2.4.1 + Liaise 1.5 + Captcha = Working
  • 2009/12/12 7:43

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


A bit OT: I found somewhere an interesting discussion (can't remember where) about the benefits and drawbacks of javascript based captchas. Since my module is nearly one third javascript I thought it would be a good idea to build in a javascript solution.

Benefit: bots don't know javascript (yet) and don't click (yet)
Drawback: you need javascript and you have to click

I found another (more nice) solution, but THIS is working without a flaw. I adapted it for my use. If anyone wants to have code examples, just tell me.

HERE is the other captcha



62
frankblack
Re: Debugger for 2.4.2?
  • 2009/12/1 7:25

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Quote:
BTW - why should we backup "render.php" - there is no "render.php" in your pack at the /class/logger directory level


You should backup render.php and xoopslogger.php ALREADY in original class/logger just for safety if the loggerpack does not behave as expected, so that you can easily revert. That's all...



63
frankblack
Re: Debugger for 2.4.2?
  • 2009/11/30 20:19

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


HERE you can get the loggerpack.

Unzip it, backup the two files in class/logger (render.php and xoopslogger.php) and copy the content of the unzipped loggerpack in there. Open xoops_data/configs/xoopsconfig.php in an editor and change this:
"debugLevel" => 0,

into this:
"debugLevel" => 0,
        
"debugLogger" => "legacy",


debugLevel = 0 (all users)
debugLevel = 1 (for members)
debugLevel = 2 (for admins)

legacy -> normal XOOPS debug
firephp -> debugger for Firefox, addons firebug and firephp have to be installed
pqp -> PHP Quick Profiler

Now visit Preferences | General Settings and pick up "Enable debug (inline mode) from setting Debug Mode. Hit "Go" and you are done.

Drawback for firephp: at some places you might get a blank page. Especially when file operations are involved. An exception is thrown which firephp is not capable to resolve. But this one is my favourite, because your layout is destroyed by debug information and at the same time, you get all information.

Have fun and good bughunting!



64
frankblack
Re: Debugger for 2.4.2?
  • 2009/11/30 19:41

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


This would be no ADDITION, it would be GREAT help.

To keep things clear: the debugger is (again) Trabis work! From me you only get the collected data and a short description.



65
frankblack
Re: Bug in xoopsform/formfile.php
  • 2009/11/25 21:53

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Quote:
But you should join Sourceforge anyway


Idiot = me. I thought I lost my account, but this wasn't so.

I lost my former account credentials when I was member of the XOOPS project -> see members. Perhaps it is a good idea to tidy up the member area there?



66
frankblack
Bug in xoopsform/formfile.php
  • 2009/11/25 21:02

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


XOOPS 2.4.1
return '<input type="hidden" name="MAX_FILE_SIZE" value="' $this->getMaxFileSize() . '" /><input type="file" name="' $this->getName() . '" id="' $this->getName() . '"' '" title="' $this->getTitle() . '" ' .$this->getExtra() . ' /><input type="hidden" name="xoops_upload_file[]" id="xoops_upload_file[]" value="' $this->getName() . '" />';
Above code generates an extra quote in the html. Correct:
return '<input type="hidden" name="MAX_FILE_SIZE" value="' $this->getMaxFileSize() . '" /><input type="file" name="' $this->getName() . '" id="' $this->getName() . '" title="' $this->getTitle() . '" ' .$this->getExtra() . ' /><input type="hidden" name="xoops_upload_file[]" id="xoops_upload_file[]" value="' $this->getName() . '" />';
P.S.: Is there a good reason, why the bug tracker on sourceforge needs an account? Sigh, another registration and another password I forget one day for sure.



67
frankblack
Debugger for 2.4.2?
  • 2009/11/25 20:06

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Wouldn't it be a good idea to take the loggerpack made by trabis and integrate it to 2.4.2? I just copied over the old files from 2.3x and they still work and it makes debugging far easier. Only drawback at the moment: you have to configure in the configs file.

Just my 2 euro cents.



68
frankblack
Asterisks in xoopsforms?
  • 2009/11/20 19:01

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


I made a fresh install of x241 and installed some modules. To my surprise to ALL xoopsform elements an asterisk is appended.

This seems to be a fault of the default theme for the admin gui.

Just wanted to let you know.



69
frankblack
Re: WYSIWYG editors and get the content
  • 2009/11/19 12:30

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


If I look at your code, I think I don't need a switch if jquery gets the value anyway.

Will test this and report.

Maybe I can be so impertinent and ask you for a solution to auto-collect all form data with jquery. I found code which wasn't working properly in all browsers. You'll get a virtual beer from me if your solution is working.



70
frankblack
WYSIWYG editors and get the content
  • 2009/11/19 10:23

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


I need to get the content of the text typed into the WYSIWYG editor fields with javascript on submission. One should mean that you get it with getElementById
this.addFileParam(file.id'description'document.getElementById("description").value);

but this does not work - the value is always empty.

Instead I have to get it (for tinyMCE) with:
this.addFileParam(file.id'description'tinyMCE.get('description').getContent());


In CKeditor I have to use another code, for Koivi I don't have a clue. So my question is: is there any code I can use for ALL editors?




TopTop
« 1 ... 4 5 6 (7) 8 9 10 ... 53 »



Login

Who's Online

234 user(s) are online (159 user(s) are browsing Support Forums)


Members: 0


Guests: 234


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