Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[MOD]Logged In Only ShutBox
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2008-07-25 10:07:44
in index.php

find

if ($site_config['SHOUTBOX']){

begin_frame("Shoutbox");
then add under it


if ($site_config["MEMBERSONLY"] && !$CURUSER) {

echo "<BR><BR><b><CENTER>You Are Not Logged In<br>Only Members Can View The ShoutBox Please Login or Signup.</CENTER><BR><BR>";

} else {





then before



end_frame





add



}



Simple and works!
Unknown User
2008-07-27 00:28:33
Thanks for this, but what If I want the others block to only show to logged in users?
Unknown User
2008-07-27 09:26:19
to make it show other blocks are only visible to members after you see

begin_block etc

just add

if ($site_config["MEMBERSONLY"] && !$CURUSER) {

echo "<BR><BR><b><CENTER>You Are Not Logged In<br>Only Members Can View The ShoutBox Please Login or Signup.</CENTER><BR><BR>";

} else {





then before end_block

add

}
Unknown User
2008-07-27 12:09:49
You'll probably want to add loggedinonly(); to shoutbox.php after dbconn too
Unknown User
2008-07-27 21:16:13
if you add the loggedin only bit it always reloaded the site in the frame so i decide this would be easier than having the site reload in the frame.

as its lamost the same code as browse torrents bit on the homepage
Unknown User
2012-01-16 02:11:22
"TorrentialStorm, post: 44895":
You'll probably want to add loggedinonly(); to shoutbox.php after dbconn too


Works good.

Thanks
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728