Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1775

PostPosted: Mon Nov 22, 2010 6:39 am Reply with quote

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
 
View user's profile Send private message
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Mon Nov 22, 2010 7:19 am Reply with quote

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?
 
View user's profile Send private message
neralex







PostPosted: Mon Nov 22, 2010 7:42 am Reply with quote

yes! its correct! Smile
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
 
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Mon Nov 22, 2010 11:43 am Reply with quote

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!
 
View user's profile Send private message
neralex







PostPosted: Mon Nov 22, 2010 3:43 pm Reply with quote

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
 
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Mon Nov 22, 2010 4:50 pm Reply with quote

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)
 
View user's profile Send private message Visit poster's website
kguske







PostPosted: Mon Nov 22, 2010 4:57 pm Reply with quote

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.
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Mon Nov 22, 2010 6:34 pm Reply with quote

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??
 
View user's profile Send private message Send e-mail
neralex







PostPosted: Tue Nov 23, 2010 6:33 am Reply with quote

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







PostPosted: Tue Nov 23, 2010 11:51 am Reply with quote

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();
}
 
neralex







PostPosted: Tue Nov 23, 2010 5:55 pm Reply with quote

many thanks for this snippet!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©