1
ipwgc
How I do so that a blocks is configured automatically in the same module?
  • 2009/10/14 8:36

  • ipwgc

  • Quite a regular

  • Posts: 216

  • Since: 2005/8/13


I create a module and I need same help.
QUESTIONS
1. How I do so that a blocks is configured automatically in the same module?
example, in /mymodule/ I need the 2 blocks appear immediately when I install the module /mymodule/index.php

2. How I do to create automatically the sub folder in /uploads/myfolder/
I see the file in /newbb/class/uploader.php
but what I need to do in order to create the sub folder in uploads?

Thank you for any help
David Yanez

2
ghia
Re: How I do so that a blocks is configured automatically in the same module?
  • 2009/10/14 9:14

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


-1- Alter the visibility of the required blocks in an oninstall script.
Problem: The theme may not have the intented column.
-2- In the same routine you can check for the directory and create it.
Eg module Formulaire creates also similar directories.
Problem: the Apache user may not have sufficient rights to create the directory and/or give it the right permissions.

Login

Who's Online

284 user(s) are online (210 user(s) are browsing Support Forums)


Members: 0


Guests: 284


more...

Donat-O-Meter

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

Latest GitHub Commits