Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Add-Ons & Blocks ⇒ Different startpage for logged-in users.


Different startpage for logged-in users.
Need help creating a block or add-on, or you have created or modified a block/add-on that works in Dragonfly CMS and it meets the CPG Security Requirements? Do you have feedback about a specific add-on? Here is the place to post. Read the announcements here first!.
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Add-Ons & Blocks

View previous topic :: View next topic  
Author Message
Bullety
Newbie
Newbie

Offline Offline
Joined: Dec 03, 2008
Posts: 4

PostPosted: Wed Dec 03, 2008 2:54 pm
Post subject: Different startpage for logged-in users.

Hi,

I want to have a different page for logged in users than for users who are not logged in.

This means I want normally see a page if a normal visitor comes to the site and if he logges in, i want to see an other page.

I thought I could check in my index.php if one is logged in or not - and therefore redirect him to site a or b.

How can I check if a user is logged in?


Greetings,
Bullety


Bullety's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
9.2.1
Back to top
View user's profile Visit poster's website
WebSiteGuru
1000+ Posts Club
1000+ Posts Club

Offline Offline
Joined: Jun 09, 2005
Posts: 2318

PostPosted: Wed Dec 03, 2008 4:15 pm
Post subject: Re: Different startpage for logged-in users.

You can do that through Modules and Blocks control. You can set Blocks / Modules that you want Registered Users to see and what Blocks / Modules for guess to see.

_________________
Lead Theme Designer - WebSiteGuru Designs

WebSiteGuru's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.6.9 / Apache 2.2.6 / MySQL 5.0.27 / PHP 5 / DF Version 9.2.1
Back to top
View user's profile Visit poster's website Yahoo Messenger
Bullety
Newbie
Newbie

Offline Offline
Joined: Dec 03, 2008
Posts: 4

PostPosted: Wed Dec 03, 2008 4:21 pm
Post subject: Re: Different startpage for logged-in users.

Hi,

yes, but I can't set the startpage to only viewable registered users, can I?


Bullety's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
9.2.1
Back to top
View user's profile Visit poster's website
WebSiteGuru
1000+ Posts Club
1000+ Posts Club

Offline Offline
Joined: Jun 09, 2005
Posts: 2318

PostPosted: Wed Dec 03, 2008 4:41 pm
Post subject: Re: Different startpage for logged-in users.

I am not sure what you meant by start page.

Typically, by default when someone goes to yoursite.com it will show everyone the same main (home) page. Now you can set that main page to show anything (IE: News (already default), Forums, etc...).

Now, you can control these access and have it set to Registered Users Only on anything you want Registered Users to see, then guess will not be able to see them.

_________________
Lead Theme Designer - WebSiteGuru Designs

WebSiteGuru's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.6.9 / Apache 2.2.6 / MySQL 5.0.27 / PHP 5 / DF Version 9.2.1
Back to top
View user's profile Visit poster's website Yahoo Messenger
layingback
Forum Admin
Forum Admin

Offline Offline
Joined: Apr 19, 2004
Posts: 1040

PostPosted: Wed Dec 03, 2008 9:17 pm
Post subject: Re: Different startpage for logged-in users.

If you want a news or article based front page, then Pro_News will let you do just this. You can have multiple Sections, 1 or more Sections can be shown to Visitors only, others for Registered Users, and some for both, all from the same actual Home/start page.

You can download from here or my site, but before you deploy, be advised that there will be a new version out in as little as a few days.

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website Photo Gallery
Bullety
Newbie
Newbie

Offline Offline
Joined: Dec 03, 2008
Posts: 4

PostPosted: Wed Dec 03, 2008 9:49 pm
Post subject: Re: Different startpage for logged-in users.

Ok,

thank you for your answer.
I will try Pronews.

I want exactly do this - unregistered users see some news and registered see all.


Bullety's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
9.2.1
Back to top
View user's profile Visit poster's website
WebSiteGuru
1000+ Posts Club
1000+ Posts Club

Offline Offline
Joined: Jun 09, 2005
Posts: 2318

PostPosted: Wed Dec 03, 2008 10:14 pm
Post subject: Re: Different startpage for logged-in users.

Bullety wrote:
I want exactly do this - unregistered users see some news and registered see all.

Oh! You should have said that in the first place. And yes ProNews will work for that purposes.

_________________
Lead Theme Designer - WebSiteGuru Designs

WebSiteGuru's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.6.9 / Apache 2.2.6 / MySQL 5.0.27 / PHP 5 / DF Version 9.2.1
Back to top
View user's profile Visit poster's website Yahoo Messenger
Gamekeeper
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 19, 2006
Posts: 150

PostPosted: Fri Dec 05, 2008 5:22 am
Post subject: Re: Different startpage for logged-in users.

In case anyone would like to make seperate start pages, one way would be to have two blocks, one viewable by annonymous users and the other by registered users. The blocks could then have redirection code for the required start page.


Gamekeeper's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux, Apache 2.0, SQL 5.0.86-log (client: 4.1.22), PHP 5.2.11 DF 9.2.1
Back to top
View user's profile Visit poster's website
Bullety
Newbie
Newbie

Offline Offline
Joined: Dec 03, 2008
Posts: 4

PostPosted: Fri Dec 05, 2008 12:34 pm
Post subject: Re: Different startpage for logged-in users.

Ah ok Gamekeeper, thanks Wink

simple and good idea Wink

But now I use Pronews.

Thanks anyway to all helped me.


Bullety's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
9.2.1
Back to top
View user's profile Visit poster's website
greenday2k
Forum Admin
Forum Admin

Offline Offline
Joined: Aug 11, 2005
Posts: 489
Location: CO
PostPosted: Sun Dec 07, 2008 9:08 pm
Post subject: Re: Different startpage for logged-in users.

home_module:

Quote::

A module which allows register users to select what module should be set for there Home Page. Administrator can also choose the modules that will be available for the user.

dragonflycms.org/Downl...ls/id=349/

_________________
www.greenday2k.net


greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Add-Ons & Blocks
Page 1 of 1
All times are GMT



Jump to:  


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 cannot attach files in this forum
You cannot download files in this forum


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

Číta ďalej...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy