11
irmtfan
Re: Preloads, what are they and how can I use them?
  • 2013/3/19 4:02

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Quote:

A preload can also be used instead of creating a cron job.

Yes. but i prefer to use it just as it is. load needed functions before load the module.
for example protector need it because it want to protect other modules and core.
userlog also need it because it want to log other modules and core.

I think using a hidden block is better for a cron job because cron job is a part of module not core or other modules. Also it will be more customizable by end user. he can activate the block in some parts of his website.

preloads seems nice and clear but the underlaying part is a core hack.

@redheadedrod :
without preloads you have to hack XOOPS255/footer.php or XOOPS255/mainfile.php to add your needed codes to core. preloads are invented just to solve this issue.

It is just a trigger to include/load your added codes at your needed place.


Login

Who's Online

327 user(s) are online (198 user(s) are browsing Support Forums)


Members: 0


Guests: 327


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