1
ipwgc
How I install a module and the blocks appear immediately?
  • 2009/12/8 21:05

  • ipwgc

  • Quite a regular

  • Posts: 216

  • Since: 2005/8/13


My question is this:
It is possible to install a module and the blocks appear immediately to the right side of the same module?

Ejample: my proyect module has 3 blocks, and I want them to appear to the right side of my module at the same time of the installation.

Regads,
David

2
ghia
Re: How I install a module and the blocks appear immediately?
  • 2009/12/9 0:51

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


It is possible to do this by the install function, but you must be aware that the user may have a theme, that is not displaying the targetted right column.
And that's why block configuration is always left to the user.

3
ipwgc
Re: How I install a module and the blocks appear immediately?
  • 2009/12/9 1:44

  • ipwgc

  • Quite a regular

  • Posts: 216

  • Since: 2005/8/13


Thank ghia,
I will take your advice regarding to the themes, I will be trying the install function, also making tests and to search for the best option, then I will show you that happen.

QUESTION:
1. THIS CODE BELOW I NEED TO ADD ON THE xoops_version.php FILE?
------------------
$modversion['onInstall'] = 'install_funcs.php';
$modversion['onUninstall'] = 'install_funcs.php';
$modversion['onUpdate'] = 'install_funcs.php';
-----------
2. AND THE REST OF THE CODE IN THE install_funcs.php FILE?

3. How I give the direction so that the blocks appear to the right side, or center side, etc

Sheers,
David


4
ghia
Re: How I install a module and the blocks appear immediately?
  • 2009/12/9 8:12

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


1. Only the applicable function(s)
2. yes
3. Check out the xoops_newblocks table. The fields are quite obvious. Your blocks should be present.

Login

Who's Online

331 user(s) are online (264 user(s) are browsing Support Forums)


Members: 0


Guests: 331


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