1
amartins
News Module Question
  • 2006/9/5 14:22

  • amartins

  • Just popping in

  • Posts: 6

  • Since: 2004/7/5 2


Hi all,

I've setup the NEWS Module to be module for the start page but i would like it only to show to registered users. Is there way to do that ? I tried to disabled it, but i did not find any block that display the news in the way it does when the news module is setup to appear in the entry page ?

Thanks in advance.

Alexandre.

2
[suspendTempri[suspended]
Re: News Module Question

Administration / System / Groups

3
amartins
Re: News Module Question
  • 2006/9/5 14:36

  • amartins

  • Just popping in

  • Posts: 6

  • Since: 2004/7/5 2


Hi,

That wont work because if i remove the permission for the anonymous users to acess the News Module. Every person will get a message that "he is not allowed to access that module" when entering the page.

4
[suspendTempri[suspended]
Re: News Module Question

Then place a news block to first page and set permissions for that block.

5
tcnet
Re: News Module Question
  • 2006/9/5 14:53

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


You could,
set the start page to none,
add a News Highlight block that has a featured story and links to the most recent stories,
then set the news highlight block to allow registered users.

The permissions message will not display, but you would need to make some other blocks visible to the anonymous group or the page is blank for them.

6
justtupeu
Re: News Module Question
  • 2006/9/5 16:42

  • justtupeu

  • Just popping in

  • Posts: 78

  • Since: 2005/6/7 8


Or you can try to hack the hell out of XOOPS :)
Vineri triskaideka - contest for Vineri triskaideka phrase

7
amartins
Re: News Module Question
  • 2006/9/5 20:19

  • amartins

  • Just popping in

  • Posts: 6

  • Since: 2004/7/5 2


Yeah, i might have to do just that!

8
amartins
Re: News Module Question
  • 2006/9/5 20:56

  • amartins

  • Just popping in

  • Posts: 6

  • Since: 2004/7/5 2


Hi All,

Thanks to all of you that answered in the first place. I found a way to to do that. Here it goes:

1- Set the start page to none.
2- Remove the permission on ADMIN>GROUPS>ANONYMOUS to access the news module.
3- edit the file XOOPS_ROOT/include/checklogin.php

look in the code for the lines below:
=====================================

// RMV-NOTIFY
// Perform some maintenance of notification records
$notification_handler =& xoops_gethandler('notification');
$notification_handler->doLoginMaintenance($user->getVar('uid'));

// ADD THE LINE BELOW TO REDIRECT THE USER AFTER LOGIN TO THE NEWS PAGE.

$url = XOOPS_URL.'/modules/news/index.php';

redirect_header($url, 1, sprintf(_US_LOGGINGU, $user->getVar('uname')));

=====================================

Now, it is working as i wanted, aonymous users see the headlines (block) but not the news and when they login the news page is their start page.

If you wanna see it in action my website is:

http://www.copainferno.com.br

Thanks again,

Alexandre.

Login

Who's Online

348 user(s) are online (218 user(s) are browsing Support Forums)


Members: 0


Guests: 348


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