1
Welcome, Guest. Please login or register.
November 22, 2008, 03:40:40 PM
Home Help Search Login Register
News: iJoomla Redirect for Joomla 1.5 is here!

+  iJoomla Forum
|-+  iJoomla Magazine
| |-+  Support Questions
| | |-+  Setting registration to view articles while leaving teasers on front page
« previous next »
Pages: [1] Print
Author Topic: Setting registration to view articles while leaving teasers on front page  (Read 1227 times)
Sawken Media
customers
Newbie
*
Posts: 3


View Profile Email
« 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?
Logged
RicardoCorai
customers
Hero Member
*
Posts: 2264


View Profile WWW
« Reply #1 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,
Logged

Ricardo Corai
Moderator
www.planetacms.com
tm2000
customers
Newbie
*
Posts: 8


View Profile Email
« Reply #2 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  Huh
Logged
merav
customers
Sr. Member
*
Posts: 434



View Profile WWW Email
« Reply #3 on: May 18, 2008, 10:46:32 AM »

There should be a settings for that on General settings.
Logged

Merav
Founder
iJoomla.com
"A 100,000 website for less than a 100 bucks"
tm2000
customers
Newbie
*
Posts: 8


View Profile Email
« Reply #4 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))
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Theme Globe by Eponnox