91
frankblack
Re: constants in blocks VS constants in other module files
  • 2009/9/28 10:50

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Too bad! Is there any (easy) way that blocks / files communicate with each other?



92
frankblack
constants in blocks VS constants in other module files
  • 2009/9/25 22:33

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Weird title, I know!

Let's assume I have a block of a module with the following define:
define('_BLOCKDEFINE','blockdefine');


Further I have a file of the same module with the following define:
define('_FILEDEFINE','filedefine');


Both, block and file are rendered on the same page.

Now I add another line to the file:
print_r(get_defined_constants());


This function should deliver all defined constants. Here I get _BLOCKDEFINE AND _FILEDEFINE.

Seems to be expected behaviour?

Now I remove
print_r(get_defined_constants());

and put it into the block.

What do you expect now? WRONG! Now I get only _BLOCKDEFINE

??? Any reason for this ???

I always felt that the blocks were a contaminant inside XOOPS and never well integrated. There has always some extra code written to "mimic" functions of normal module files.

It's no deal for me checking now for defines in the "files", but it is strange.

Just curious and hoping for an answer or a solution.

Used version: 2.3.3 and the reason for my question is that I want to put a trigger in a simple manner.



93
frankblack
Re: debaser 3.01 pre-alpha
  • 2009/9/8 6:50

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Quote:
Disc space is not sufficient. In order to upload something, you have to delete several files


This means you activated user directories, but you did not entered a value for available disk space (default is 0, which was a bad idea from me). Go to preferences to fix it.



94
frankblack
Re: debaser 3.01 pre-alpha
  • 2009/9/7 20:04

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Duh, back! Forget to check if this function exists. Remove lines 52 to 56. This part is basically checking whether mod_security is installed and flash upload activated. Due to a bug in the Flash Player flash uploads will fail if mod_security is enabled. But there is a .htaccess supposed to disable mod_security for debaser. This is a decision to be made wisely. I am not responsible for possible threats if doing so.

Thx for the hint for the doubled constants. Will remove them.



95
frankblack
Re: debaser 3.01 pre-alpha
  • 2009/9/7 19:12

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


First of all: sorry for the lack of documentation. Otherwise it were written there: To make the javascript work, add this to your theme:
<script type="text/javascript" src="<{$xoops_url}>/include/jquery-1.3.2.min.js"></script>


@hiflyer: Have a look at the preferences. There you can determine who is allowed to submit. If set, there must be links in the submenu. I must confess, that I did tests only on 2.3.3.

HTH



96
frankblack
Re: debaser 3.01 pre-alpha
  • 2009/9/7 7:31

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


to 1: I will test it
to 2: Adding files only from the frontend possible, not on the backend anymore
to 3: With the flash uploader you can batch load files. I made this step, because FTP upload and deleting from web isn't possible due to permissions / owner rights.
to 4: This up to everyone to adapt the look to their needs. The look will be changed anyway, so I don't put too much efforts in the design.

Some other thoughts from me: No, I won't change the design. No, I won't change the name, because you can override this with any SEO hack. Some features of 0.92b were removed at my will, for my own private reasons and will not be in again. About other things removed I have to made my mind up. But as already said: this version is by far not feature-ready. So take it or leave it. There are so many good competitors out there as alternatives. I have my own vision for this module, so I do it my way. Inspiration is always welcome, but this means by no way that I do what others tell me. Sounds odd? That's me!



97
frankblack
Re: debaser 3.01 pre-alpha
  • 2009/9/7 6:37

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Quote:
Really? There was some infringes of copyright?


No, this was just a joke between xsell and me. He/she/it wrote me a PM were he/she/it was urgently demanding a release. I have even the written permission to distribute the JW Player along with debaser. So no copyright infringements here.



98
frankblack
debaser 3.01 pre-alpha
  • 2009/9/6 21:45

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Unfortunately I am FORCED to release a pre-alpha of debaser 3.01, because a user from here - axel or so was his/her name - wanted to bring me to court and bring me to action for damages.

So I released this version in haste, although full of bugs. To be honest: without a proper documentation this version will work for noone.

This pre-alpha is NOT - I stress this - feature ready, because of the aformentioned reasons.

Sorry for any inconvenience arising.

Page for download



99
frankblack
Re: Ajax calls directly from Jquery
  • 2009/8/24 19:21

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Tadaaa! With the help of kaotik (thx man) I managed to get a nice result with jquery: Resized Image


So the rest of it will be piece of cake (hope so)!



100
frankblack
Re: Help with easy eclipse
  • 2009/8/21 19:39

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


I guess it is the same on "normal" eclipse: window -> preferences -> General -> Editors -> File Associations




TopTop
« 1 ... 7 8 9 (10) 11 12 13 ... 53 »



Login

Who's Online

244 user(s) are online (167 user(s) are browsing Support Forums)


Members: 0


Guests: 244


more...

Donat-O-Meter

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

Latest GitHub Commits