David Ansermot Web Developer / TYPO3 Integrator

16nov/110

TYPO3 – Auto assign not-logged feuser to a fegroup

In today's short snippet, I'll give you the easiest way I now to to assign a fegroup to your visitors, without login.

1- Begin by creating your FEgroup if not done yet.
2- In your localconf.php, for exemple, add those lines :

  1. $ip = $_SERVER['REMOTE_ADDR'];
  2. $GLOBALS['TYPO3_CONF_VARS']['FE']['IPmaskMountGroups'][] = array($ip, GROUPID);

3- Replace "GROUPID" by the id of the FEgroup.

Now all your visitors are members of this FEgroup.

Enjoy !

6sept/112

School cards generator available !

We're pround to announce the availability of our new "School Cards Generator" at the url http://cards.ansermot.ch/ .

Hope you'll enjoy. Give me some feedbacks if you have. Cheers !

31août/110

TYPO3 : Fix “InlineBox::GenericInlineBox()” bug pdf_generator2 0.21

After some month without posting on my blog (lot of work / things to do), I come back with a small patch for TYPO3's extension "pdf_generator2".

To fix the blank pdf generation error, open the file ./typo3conf/ext/pdf_generator2/html2ps/box.inline.php
Insert the line in the constructor "function GenericInlineBox()".

  1. parent::GenericContainerBox();

Hope it helped you :)

23mai/110

PHP utility class – Emails Cloacker 0.4

This small class I made some times ago is very simple.
With it you can hide your emails from spam bots.

The addresses will be visible for your visitors but not for the robots.

Available on my downloads page or directly here

18mai/110

PHP – Detect if script is running in CLI mode

It'll not be a long snippet for this.
Just a "have to know" snippet ;)

  1. $isCLI = (php_sapi_name() == 'cli') ? true : false;

Nothing more is needed.
Enjoy ;)