1
worlds
Anyone have a script to reload modules?
  • 2004/3/18 21:44

  • worlds

  • Just popping in

  • Posts: 61

  • Since: 2004/3/13


Hi -

Ok, so I'm lazy, but I'm writing a module, and getting tired of:

Click to deactivate/click submit/click ok/click reload/click uninstall/click ok/click reload/click install/click ok/click reload.

It gets old after a few dozen iterations.

Does anyone have a handy script that will update a module (basically do what the clicks above do)?

I do know I only seem to have to do this when there are template changes. But it's still a lot.

Thanks,

Tom

2
fatman
Re: Anyone have a script to reload modules?
  • 2004/3/18 22:11

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


I've felt your pain Tom. I wrote a little Debug Block script which updates the debug mode just like how the Theme block changes the selected theme.

I have been toying with the idea of make a similar block for updating the module. But haven't actually looked into yet.

I'm hoping that it's as easy as making a block which has a function which quickly validates authentication and executes the a core update function passing along the module name.

I just haven't found that particular function(s) in the core yet. Perhaps a XOOPS class guru can point us in the right direction.

3
Dave_L
Re: Anyone have a script to reload modules?
  • 2004/3/19 4:14

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


You can update the templates by updating the module, rather than deactivating/uninstalling/reinstalling it. When I'm actively working on a module, after updating it once, I'll leave that browser window open, so I can repeat the process with two clicks: back, then click update button.

4
Mithrandir
Re: Anyone have a script to reload modules?

two clicks? One too many

Just keep the browser window open with the update information and press F5

5
phatjew
Re: Anyone have a script to reload modules?
  • 2004/3/22 18:44

  • phatjew

  • Just popping in

  • Posts: 56

  • Since: 2003/10/8


Quote:
I do know I only seem to have to do this when there are template changes. But it's still a lot.


I ran into this, too, so I wrote a function called recompileTemplate() which I then call to reload a page's template every time it is requested. Obviously, you want to comment out this call once development is done, but it has saved me hours, at least. Take a look at this
thread about recompiling templates

Login

Who's Online

64 user(s) are online (31 user(s) are browsing Support Forums)


Members: 0


Guests: 64


more...

Donat-O-Meter

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

Latest GitHub Commits