Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-26-2008, 04:25 PM
New Pligger
 
Join Date: May 2008
Posts: 25
Thanks: 0
Thanked 2 Times in 1 Post
Talking Full story only for registered users

go to story.php and put after this :

include('config.php');
include(mnminclude.'html1.php');
include(mnminclude.'link.php');
include(mnminclude.'smartyvariables.php');
include(mnminclude.'pageview.php');

force_authentication(); <------------this

The same trick you can do with your own made page.

{php}
force_authentication();
{/php}
Reply With Quote
  #2 (permalink)  
Old 06-26-2008, 04:40 PM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: ExpertVision
 
Join Date: Jun 2006
Location: PA
Posts: 2,399
Thanks: 171
Thanked 439 Times in 278 Posts
This can also be done using smarty variables in your templates.

{if $user_authenticated ne true}
stuff you want shown only to registered users
{/if}
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote
  #3 (permalink)  
Old 06-26-2008, 04:54 PM
teenzoned's Avatar
Casual Pligger
 
Join Date: May 2008
Posts: 64
Thanks: 8
Thanked 2 Times in 2 Posts
Awsome Thanks!
it might come handy one day!
__________________
Market your site online FREE with the Thirty Day Challenge

My themes are designed by CMStheme.com
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
how to completely REMOVE links from the title in the full story page? VictorML Customization Assistance 5 09-18-2008 09:26 AM
full story isnot showed jackpu General Help 4 08-10-2008 11:47 PM
9.9 Bug full story link does not work... snok Bug Report 1 05-29-2008 02:04 AM
Have videos in full story but nowhere else channelztv General Help 0 11-08-2007 06:25 AM
full story (not summary) on index page revolver General Help 2 06-24-2007 11:03 AM


Search Engine Friendly URLs by vBSEO 3.2.0