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 :
-
$ip = $_SERVER['REMOTE_ADDR'];
3- Replace "GROUPID" by the id of the FEgroup.
Now all your visitors are members of this FEgroup.
Enjoy !
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 !
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()".
-
parent::GenericContainerBox();
Hope it helped you
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
PHP – Detect if script is running in CLI mode
It'll not be a long snippet for this.
Just a "have to know" snippet
Nothing more is needed.
Enjoy
