1
labra
Cloning blocks / modules
  • 2004/5/19 15:27

  • labra

  • Just popping in

  • Posts: 3

  • Since: 2004/5/19


I'm not sure this hasn't been addressed before; however, I have been unable to find a clear and direct answer to this question, so I'll dare post it here.

I have just installed XOOPS 2; everything seems to be working fine (sheer luck, you say? ); now I'm trying to finetune the site.

I have already learnt how to get rid of blocks and modules I don't need to show. Now I have to start coping with more challenging tasks:

1. How can I clone a module and/or a block? Does it ALWAYS require jumping into the code weeds, or can I just use the existing interface? I am not a programmer, so every time I have to copy/paste a snippet of code I hold my breath, and most of the times nothing good comes out of my experiments. So I'd appreciate someone taking me by the hand and walking through it all slowly, if possible.

2. Can I make certain modification in the cloned block or module, without altering its code manually?

This should have probably appear in the beginner section :(

Thanx in advance

L

2
tjnemez
Re: Cloning blocks / modules
  • 2004/5/19 16:27

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


hey labra,

yes you can clone a module. there are two things you would have to edit (find and replace with an editor) in php documents, the module name and sql tables. i have cloned soapbox and renamed it articles. it did not take long and it was not difficult. you do not need to change sql if you are only going to use cloned module.

3
labra
Re: Cloning blocks / modules
  • 2004/5/20 4:13

  • labra

  • Just popping in

  • Posts: 3

  • Since: 2004/5/19


Well, this is encouraging - if not very helpful. At least now I know it is possible in principle (not that I had much doubt about it... )

OK, I will wait patiently for a few days, until some kind soul chimes in and says, "Look, here's what you do:
1. open file X
2 find line Y
3. replace A with B

etc. I have HAPedit which has line numbering, so finding the right line is not a problem.

Anyone? Someone? PLeeeeeeeeeeeeeeze!?

L

4
tjnemez
Re: Cloning blocks / modules
  • 2004/5/20 4:30

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


hey labra,

in the soapbox manual there is over 40 .php(s), not all of them required editing, but what you are asking for is a lot. what editor do you use?

5
labra
Re: Cloning blocks / modules
  • 2004/5/20 4:57

  • labra

  • Just popping in

  • Posts: 3

  • Since: 2004/5/19


hey tj -

can you point me in the right direction then? What is soapbox manual and where can I find it?

I use HAPedit.

Sorry if what I am asking for seems like such a big deal. XOOPS is the 8th PHP/MySQL app I've installed in my site. In every support forum I've seen related to other apps, this question never raised eyebrows - I usually got the answer within hours, sometimes days.

But if you say it's a lot - I apologize.

Can you show me an example of a clone so that I could compare the codes and make some inferences? I learn by example very well.

L

6
tjnemez
Re: Cloning blocks / modules
  • 2004/5/20 5:04

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


hey labra,

please note that i am not speaking on behalf of the XOOPS community, it just that i don't even have time to clone modules for myself.

what modules do you want to clone? i believe in the newest release of soapbox you can change module name in admin, but i may be dreaming. in any case just do a search soapbox and it will come up. also have a look in downloads.

Login

Who's Online

332 user(s) are online (245 user(s) are browsing Support Forums)


Members: 0


Guests: 332


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