|
Title: Setting registration to view articles while leaving teasers on front page Post by: Sawken Media on December 30, 2007, 12:03:39 PM Is there a way to set registration/login so that articles can still be viewed on the frontpage as teasers but if you click the "readmore" it will go to the regular section that tells you that you have to login?
Title: Re: Setting registration to view articles while leaving teasers on front page Post by: RicardoCorai on January 02, 2008, 08:36:21 AM Yes, you can.
You need to add 2 items. An intro text (magazine front page) and a full article (for members only). Set your intro text item (item A) in your magazine front page and use an external link for linking to the full article (item B). Then, you will see the item A and when you click on read more you will go to item B. As item B is for members only, you will need to register if you want to read this item. Best regards, Title: Re: Setting registration to view articles while leaving teasers on front page Post by: tm2000 on May 05, 2008, 05:57:25 AM Hey All: Has anyone else come up with a better/faster way to make this work? It seems like lots of work for something that we need ???
Title: Re: Setting registration to view articles while leaving teasers on front page Post by: merav on May 18, 2008, 10:46:32 AM There should be a settings for that on General settings.
Title: Re: Setting registration to view articles while leaving teasers on front page Post by: tm2000 on July 05, 2008, 05:57:30 AM boy, this really should be an option. finally figured it out with the help of this post:
http://www.ijoomla.com/option,com_forum/Itemid,70/page,viewtopic/t,3506/start,0/postdays,0/postorder,asc/highlight,registered%2Bintro/ Quote After lookin thru the files I found it! here's what you need to do to be able to have the intro text show up for non registered users then prompt them to register after they click 'Read More' as with a default joomla install. You dont need a second component! In the files magazine.html.php & magazine.php is code to read articles from the database, this reads only articles available for a certain user level so you will need to edit the select query to read all articles from the DB by removing the C.Access..... condition from the WHERE clause. Do this in both files and there are a number of queries not just one. In magazine.html.php you will find a line that reads if(($hide_content_unregistered) || ($article->access>=1) || ($edition[0]->access>=1) || ($section[0]->access>=1)) should be 527 or around there. remove the $article condition from there as well so you have if(($hide_content_unregistered) || ($edition[0]->access>=1) || ($section[0]->access>=1))
Powered by SMF 1.1.2 |
SMF © 2006-2007, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com |