| Author |
Message |
supernet
Nuke Soldier


Joined: Aug 11, 2004
Posts: 10
|
Posted:
Thu Aug 12, 2004 12:46 pm |
  |
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!  |
|
|
   |
 |
dilligaf
Nuke Soldier


Joined: Mar 31, 2004
Posts: 11
|
Posted:
Thu Aug 12, 2004 10:47 pm |
  |
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. |
|
|
   |
 |
supernet
Nuke Soldier


Joined: Aug 11, 2004
Posts: 10
|
Posted:
Fri Aug 13, 2004 11:46 am |
  |
| 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
So, my question is still looking for an answer!  |
|
|
   |
 |
dilligaf
Nuke Soldier


Joined: Mar 31, 2004
Posts: 11
|
Posted:
Fri Aug 13, 2004 6:57 pm |
  |
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. |
|
|
   |
 |
supernet
Nuke Soldier


Joined: Aug 11, 2004
Posts: 10
|
Posted:
Sat Aug 14, 2004 12:31 pm |
  |
I did the changes you mentioned.
But i can read my news (stories) exactly as i did before. Didnt change anything !!?!?!?!!!! |
|
|
   |
 |
dilligaf
Nuke Soldier


Joined: Mar 31, 2004
Posts: 11
|
Posted:
Sat Aug 14, 2004 11:02 pm |
  |
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. |
|
|
   |
 |
supernet
Nuke Soldier


Joined: Aug 11, 2004
Posts: 10
|
Posted:
Sun Aug 15, 2004 10:03 am |
  |
Sended you a PM  |
|
|
   |
 |
XtraX
Lieutenant


Joined: Aug 23, 2003
Posts: 195
|
Posted:
Sun Aug 29, 2004 9:40 pm |
  |
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 |
|
|
   |
 |
|
|