You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 141 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Registered members can read only... [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
supernet
Nuke Soldier
Nuke Soldier


Joined: Aug 11, 2004
Posts: 10


PostPosted: Thu Aug 12, 2004 12:46 pm Reply with quoteBack to top

Hello. I used to use Phpnuke a long time ago. I returned back. I have installed Phpnuke 7.4.0 and everything runs smoothly.

Is there a way for an addon / tweak that will not allow the visitors (only the members must be able) to read the articles.

I dont want to hide the NEWS block. But prevent them from reading, when they press the "READ More..." link under the article! Wink
Find all posts by supernetView user's profileSend private message
dilligaf
Nuke Soldier
Nuke Soldier


Joined: Mar 31, 2004
Posts: 11


PostPosted: Thu Aug 12, 2004 10:47 pm Reply with quoteBack to top

Do you also want the comments link hidden as well as the printer friendly page and send to friend link? Clicking on any of these three will also show the full story (as if clicking on read more).
Also from the Stories Archive unregistered users could see a full news article unless you make that module for registered users.
Find all posts by dilligafView user's profileSend private message
supernet
Nuke Soldier
Nuke Soldier


Joined: Aug 11, 2004
Posts: 10


PostPosted: Fri Aug 13, 2004 11:46 am Reply with quoteBack to top

dilligaf wrote:
Do you also want the comments link hidden as well as the printer friendly page and send to friend link? Clicking on any of these three will also show the full story (as if clicking on read more).
Also from the Stories Archive unregistered users could see a full news article unless you make that module for registered users.


Yeap! I dont want them to access in anyway. For the "comments link", im not going to allow comments for the posted stories. For the "printer friendly page", i look for a way to disable this feature. And for the "Stories Archive", it will be available only for registered members Smile

So, my question is still looking for an answer! Wink
Find all posts by supernetView user's profileSend private message
dilligaf
Nuke Soldier
Nuke Soldier


Joined: Mar 31, 2004
Posts: 11


PostPosted: Fri Aug 13, 2004 6:57 pm Reply with quoteBack to top

I just wanted to make sure what you were looking for before I looked at a solution for this.

Open index.php in the News module

Around line 100 look for
Code:

   if ($fullcount > 0 OR $c_count > 0 OR $articlecomm == 0 OR $acomm == 1) {
       $morelink .= "$story_link<b>"._READMORE."</b></a> | ";
   } else {
       $morelink .= "";
   }


And change to
Code:
   if (is_admin($admin) OR is_user($user)) {
   if ($fullcount > 0 OR $c_count > 0 OR $articlecomm == 0 OR $acomm == 1) {
       $morelink .= "$story_link<b>"._READMORE."</b></a> | ";
   } else {
       $morelink .= "";
   }


and just after that find

Code:
   if ($fullcount > 0) { $morelink .= "$totalcount "._BYTESMORE." | "; }
   if ($articlecomm == 1 AND $acomm == 0) {
       if ($c_count == 0) { $morelink .= "$story_link"._COMMENTSQ."</a>"; } elseif ($c_count == 1) { $morelink .= "$story_link$c_count "._COMMENT."</a>"; } elseif ($c_count > 1) { $morelink .= "$story_link$c_count "._COMMENTS."</a>"; }
   }


and change to

Code:
   if ($fullcount > 0) { $morelink .= "$totalcount "._BYTESMORE." | "; }
   if ($articlecomm == 1 AND $acomm == 0) {
       if ($c_count == 0) { $morelink .= "$story_link"._COMMENTSQ."</a>"; } elseif ($c_count == 1) { $morelink .= "$story_link$c_count "._COMMENT."</a>"; } elseif ($c_count > 1) { $morelink .= "$story_link$c_count "._COMMENTS."</a>"; }
   }
}else {
}


then open categories.php and make the same changes.
Find all posts by dilligafView user's profileSend private message
supernet
Nuke Soldier
Nuke Soldier


Joined: Aug 11, 2004
Posts: 10


PostPosted: Sat Aug 14, 2004 12:31 pm Reply with quoteBack to top

I did the changes you mentioned.

But i can read my news (stories) exactly as i did before. Didnt change anything !!?!?!?!!!!
Find all posts by supernetView user's profileSend private message
dilligaf
Nuke Soldier
Nuke Soldier


Joined: Mar 31, 2004
Posts: 11


PostPosted: Sat Aug 14, 2004 11:02 pm Reply with quoteBack to top

Did you sign yourself out as an admin and as a user, plus clear all the cookies? If you're still signed in and/or the browser still has a cookie from your site you will still see the read more, comments link.

What I do is use a second browser (Firefox is my main browser, IE I use to check as a guest)

Also this change will still show News entered as Story text but will not show anything entered as Extended Text.

Also give the URL of your site and I'll check it and tell you what I can see.
Find all posts by dilligafView user's profileSend private message
supernet
Nuke Soldier
Nuke Soldier


Joined: Aug 11, 2004
Posts: 10


PostPosted: Sun Aug 15, 2004 10:03 am Reply with quoteBack to top

Sended you a PM Arrow
Find all posts by supernetView user's profileSend private message
XtraX
Lieutenant
Lieutenant


Joined: Aug 23, 2003
Posts: 195


PostPosted: Sun Aug 29, 2004 9:40 pm Reply with quoteBack to top

Worked like a charm but is there away tp also add this to page numbers as well so they click on the page number and get promt to register first and also it still displays the topic as well so they can click there and view the story is there away for that as well

XtraX
Find all posts by XtraXView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.817 Seconds - 110 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::