292261
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



292262
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



292263
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.



292264
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.



292265
Mithrandir
Re: Global variable for Xoops groups?

Right, the evul "Call to a member function..." error



292266
braddk
Re: Global variable for Xoops groups?
  • 2003/8/7 21:58

  • braddk

  • Just popping in

  • Posts: 2

  • Since: 2003/7/22


ackbarr: makes sense.

I have implemented this, and just so it is documented in the forums so someone else can find this with a search, the code I used was the following:
Quote:

global $xoopsUser;
if(!empty($xoopsUser)) {
$group = $xoopsUser->getGroups();
if (in_array(1, $group)) { //or whatever the groupid is
echo "you are authorized to view this material";
}
else {
echo "you are not authorized to view this material";
}
}
else
echo "not logged in";

I found that if I did not include the if(!empty($xoopsUser)) test, than no content would be displayed at all if the user wasn't logged in.



292267
VI_Knight
Re: Override default table setting in style.css file
  • 2003/8/7 20:02

  • VI_Knight

  • Just popping in

  • Posts: 15

  • Since: 2002/11/16


Thanks!! hsalazar

It worked like a charm. I had tried it this way before but i was doing it a little differently. Now i see what i was doing wrong. I will try your full code on another module i am working on and see how that works. Thanks again for all your help. Now i can stop driving myself crazy.



292268
Herko
Re: The Bar Has Been Raised ...
  • 2003/8/7 4:26

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


I agree. IMO that's one of the things we need to get in the roadmap for XOOPS 2.1 and further The backend admin side really kicks ass indeed!

Herko



292269
Anonymous
The Bar Has Been Raised ...
  • 2003/8/7 3:50

  • Anonymous

  • Posts: 0

  • Since:


if you haven't checked it out yet, i encourage you to check out the latest build of mambo 4.5. though i still dig the output of XOOPS over mambo, the new admin back-end is stunning. this latest mambo build raises the bar in ease of use in open source portal software. i hope that the xoops' team is taking notes.

http://www.mamboserver.com/demo/administrator/
username: admin
password: admin




292270
azari
Re: Database problem
  • 2003/8/7 0:47

  • azari

  • Just popping in

  • Posts: 2

  • Since: 2003/8/7 0


ummm just a question - which sql releases are we on about here - I mean are they all the same or is each release different?







Login

Who's Online

231 user(s) are online (149 user(s) are browsing Support Forums)


Members: 0


Guests: 231


more...

Donat-O-Meter

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

Latest GitHub Commits