Author |
Message |
neralex
Site Admin
![](modules/Forums/images/avatars/201442295664a46e4575d46.jpg)
Joined: Aug 22, 2007
Posts: 1775
|
Posted:
Mon Nov 22, 2010 6:39 am |
|
hey guys!
the Members_List can show for everyone or i go to the admin area and turn it off or switched to regUser. But this is a little bad solution. the most nuke pages have disable the Members_List.
i use a theme without left blocks but the problem is here in the modules.php. there can i turn off the right blocks, only. i have on the Members_List as guest a optical mistake in the theme system of the nuke.
if i go as guest to the Private_Messages, then i become the login fields of Your_Account. give it a chance to modify the Members_List to the same?
greetz |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jakec
Site Admin
![](modules/Forums/images/avatars/502a2d1345d88a86ddb4a.png)
Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Mon Nov 22, 2010 7:19 am |
|
I am sorry I am finding it very diffcult to understand what you are trying to say.
Are you saying that you want the Members List set to Reg Users, but a guest would be forwarded to Your Account to login or register? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
neralex
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 22, 2010 7:42 am |
|
yes! its correct!
sorry my english not so good...but i try it!
at the moment:
Members_List as guest: Sorry, this Module isn't active!
my wish:
Members_List as guest: Login fields / PW Lost
only a notice:
my problem in the modules.php comes from a own tabless theme with lists und css styles. in the theme is the maincell (blocks, opentables & right blocks) not set to 100% width. this is the problem of float:left etc. i hide my left blocks in the theme and if i go to a restricted area (reguser or admin), then have my own maincell the width of the displayed content. but there is in the modules.php no more as the notice-box: "Sorry, this Module isn't active!" etc. the content is smaller as 100%. if i set this to 100% comes the next prob with a module with left blocks. the 100% crashed my theme. therefore i want redirect the reguser-modules to the login-flieds of Your_Account.
![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
Site Admin
![](modules/Forums/images/avatars/41f0b40a419280935f3a0.gif)
Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Mon Nov 22, 2010 11:43 am |
|
You can set the Members_List module to be active, but only visible to members in the Modules administration. That would tell guests that the module is available to registered users, with a link to login / register.
Will that work? |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
neralex
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 22, 2010 3:43 pm |
|
nope, but i would not have written this topic. i know the module functions. the problem is the bad old tables structure of the nuke with his left and right blocks. but is okay, kguske, you will learn it, if you use a new style apart tables ![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
spasticdonkey
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/48fb116845dfecf66294c.gif)
Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA
|
Posted:
Mon Nov 22, 2010 4:50 pm |
|
not exactly sure how you modified your theme, but I'd be willing to bet there are compliance/formatting errors that are causing your layout issues. If you want to provide a link I would be glad to take a look. No blocks, or only right side blocks is certainly possible, even in a css based floating layout. The easiest method is to display left blocks on the right, and then disable the right blocks per module, where needed.
Floating / CSS based layouts are less tolerant of formatting errors, so make sure to check with a tool like https://addons.mozilla.org/en-US/firefox/addon/249/ as you tweak your theme(s) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 22, 2010 4:57 pm |
|
I was confusing what you wrote with what you want. Spasticdonkey is correct, if you are using RavenNuke and one of the table-less themes, you will learn whether it's a theme issue or not. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
Site Admin
![](modules/Forums/images/avatars/125904890252d880f79f312.png)
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Mon Nov 22, 2010 6:34 pm |
|
There are several table-less themes in RavenNuke but we are getting off-topic.
The reason most people set MemberList Module to registered users is to avoid people signing up and leaving bad links in their signature/profile, which then get crawled by search engines.
Let's take this one step at a time and I'l provide a solution for you.
You need the data in the module to be displayed to Registered Users BUT if the module is accessed by a guest (anonymous) you want to redirect to the log-in page instead of displaying the "This module is for Registered Users Only" message?? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
neralex
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 23, 2010 6:33 am |
|
Guardian2003 wrote: | You need the data in the module to be displayed to Registered Users BUT if the module is accessed by a guest (anonymous) you want to redirect to the log-in page instead of displaying the "This module is for Registered Users Only" message?? |
yes. that is it, what i needed. it even concerns the Memberlist. all my other inactive modules have blocks and there is no problem.
@spasticdonkey & kguske:
the table-less theme in RN use only divs and have div in div in div. it is a possibility, however, no serious solution for me. i use for my theme sorted lists. the html-tidy is my best friend and its a very cool addon for firefox to fix all errors. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 23, 2010 11:51 am |
|
OK well this is the easiest code snippet I can come up with but it does need the module access level set to anonymous users.
Open Members_List/index.php
FIND
Code:
if (!defined('MODULE_FILE')) {
die ('You can\'t access this file directly...');
}
|
ADD AFTER
Code:
if(!is_user($user)) {
header('Location: account.html');
exit();
}
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
neralex
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 23, 2010 5:55 pm |
|
many thanks for this snippet! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|