1
dreamgear
clone the news module ?
  • 2003/8/8 1:36

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


Would it be possible to clone the news module, and provide a template or templates, but use the same database table(s)?

The goal is a different "view" of the news: Probably limited to articles from one topic, and hiding the topic name, poster, and the comments, etc.

2
brash
Re: clone the news module ?
  • 2003/8/8 1:40

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


I assume so. I know people have done a similar thing with the My Downloads module.

3
javier
Re: clone the news module ?
  • 2003/8/8 3:32

  • javier

  • Not too shy to talk

  • Posts: 184

  • Since: 2002/8/6 1


Is very easy to do, simply clone your news module folder to news2
search in all the module files for the xoops/modules/news/ etc etc and change to news2 too.

and finally change the name of the template files for example:

news_archive.html to news2_archive.html
news_index.html to news2_index.html
etc
etc

and remember modify in all the php files of the module the references to these template files too.

----
is easy ,the only secret is make slowy and take care about every reference in every file.

grettings

4
Chado
Re: clone the news module ?
  • 2003/8/8 3:55

  • Chado

  • Not too shy to talk

  • Posts: 113

  • Since: 2003/6/6 7


Hi javier! Just a quick thought...if you have already done it, could you post a news2 module that is ready to go. It might be a real help to a lot of people.
Thanks!
Chad

5
mvandam
Re: clone the news module ?
  • 2003/8/8 6:19

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


I think I've seen mention of a "news2" module floating around somewhere... searching the forums may turn up its location. If you find it you'll probably have to make a tiny modification to the xoops_version.php and .sql files as I imagine the "news2" module is designed to work from two different tables rather than sharing just one as you wish to do.

6
Anonymous
Re: clone the news module ?
  • 2003/8/8 7:18

  • Anonymous

  • Posts: 0

  • Since:


Here you will find an older version of a news clone (it must be XOOPS 2 RCsomething - but it works).

If you want to do the work for yourself, watch out for the searchfunctions which collide with the orginal news searchfunctions, so you have to rename them too.

Hope that helps!

7
TurkClub
Re: clone the news module ?
  • 2004/5/18 20:25

  • TurkClub

  • Just popping in

  • Posts: 44

  • Since: 2003/10/28


th\anks francis..
but the blocks are not working..
when you make one of the blocks visible, it gives just blank page..

do you guys have any idea where the problem occur?

Login

Who's Online

220 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 220


more...

Donat-O-Meter

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

Latest GitHub Commits