Members   Search      Help    Register    Login    Home
Home » Support Forums for PMBT 1.X » Feature Request » Registration
Registration [message #323] Fri, 03 November 2006 15:30 Go to next message
flashwebb is currently offline flashwebb  Sweden
Messages: 7
Registered: October 2006
Leecher
Hi
In the next version can you do so user that is not registered

Can not See,Search or See any categories...they must registered to see it...Now any user that is not registered only have to press the search button to see any torrent we have...i don't want that...they have to registered to see it
or is there a way to do that already??

and do you have any themes to share??

Peter
Re: Registration [message #326 is a reply to message #323] Fri, 03 November 2006 18:02 Go to previous messageGo to next message
lodp is currently offline lodp  Austria
Messages: 336
Registered: June 2006
Releaser
i can see that somebody would want to hide all content from outsiders. i don't think there's somebody around to implement that kind of a feature currently, though.

as for the themes, there are only the two that are included in the package -- you'll have to create one yourself...
Re: Registration [message #327 is a reply to message #326] Fri, 03 November 2006 20:57 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
to set the index.php only seen by members then open index.php
and find
include("header.php");

and add after
if (!is_user($btuser)) loginrequired("user");


and to make cat box seen by members only open blocks/catlist.php
and replace with
<?php
/*
*-------------------------------phpMyBitTorrent--------------------------------*
*--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---*
*--------------   Created By Antonio Anzivino (aka DJ Echelon)   --------------*
*-------------               http://www.p2pmania.it               -------------*
*------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------*
*-------------              http://www.bittorrent.com             -------------*
*------------------------------------------------------------------------------*
*------------------------------------------------------------------------------*
*--   This program is free software; you can redistribute it and/or modify   --*
*--   it under the terms of the GNU General Public License as published by   --*
*--   the Free Software Foundation; either version 2 of the License, or      --*
*--   (at your option) any later version.                                    --*
*--                                                                          --*
*--   This program is distributed in the hope that it will be useful,        --*
*--   but WITHOUT ANY WARRANTY; without even the implied warranty of         --*
*--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          --*
*--   GNU General Public License for more details.                           --*
*--                                                                          --*
*--   You should have received a copy of the GNU General Public License      --*
*--   along with this program; if not, write to the Free Software            --*
*-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA --*
*--                                                                          --*
*------------------------------------------------------------------------------*
*------              ©2005 phpMyBitTorrent Development Team              ------*
*-----------               http://phpmybittorrent.com               -----------*
*------------------------------------------------------------------------------*
*/

if (eregi("catlist.php",$_SERVER["PHP_SELF"])) die("You cannot access this file directly.");

if ($user->user) {
OpenTable(_bttype);
$i = 0;
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n<tr>\n<td nowrap>\n";
echo "<p align=\"center\" class=\"categories\">";
foreach (catlist() as $c) {
        if (is_readable("themes/".$theme."/pics/cat_pics/".$c["image"])) {
                $i++;
                echo "<a href=\"index.php?cat=".$c["id"]."\">";
                echo "<img src=\"themes/".$theme."/pics/cat_pics/".$c["image"]."\" title=\"".$c["name"]."\" border=\"0\" alt=\"".$c["name"]."\" />";
                echo "</a>";
                if ($i == 3) {
                        echo "<br />";
                        $i = 0;
                }
        }elseif (is_readable("cat_pics/".$c["image"])) {
                $i++;
                echo "<a href=\"index.php?cat=".$c["id"]."\">";
                echo "<img src=\"cat_pics/".$c["image"]."\" border=\"0\" title=\"".$c["name"]."\" alt=\"".$c["name"]."\" />";
                echo "</a>";
                if ($i == 3) {
                        echo "<br />";
                        $i = 0;
                }
        }
}
echo "</p>";
echo "</td>\n</tr>\n</table>\n";
CloseTable();
}
?>

please make sure you back up catlist.php first. This should hide the catlist and make averyone login before seeing the index page


http://a.imageshack.us/img831/5562/mybikes.png
Re: Registration [message #328 is a reply to message #323] Sat, 04 November 2006 15:17 Go to previous messageGo to next message
djechelon is currently offline djechelon  Italy
Messages: 207
Registered: June 2006
Location: Ercolano, NA
Releaser
Administrator

My implementation was a bit different. It allows the unregistered user only to register or login.

In header.php, just before the last line that closes PHP scripting
?>


Place the following one:
if (!$user->user AND !eregi("user.php",$_SERVER["PHP_SELF"])) loginrequired("user");


Unfortunately, no one can be told what the Matrix is. You have to see it for yourself.

[Updated on: Sat, 04 November 2006 15:17]

Report message to a moderator

Re: Registration [message #1490 is a reply to message #328] Sun, 04 November 2007 18:21 Go to previous messageGo to next message
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
This is perfect..I have gone private as well..

Way too many spammers and bad people out there..

How can I keep news site public though?

thank you for your help.
Re: Registration [message #1946 is a reply to message #1490] Tue, 15 April 2008 02:12 Go to previous message
RazorSK is currently offline RazorSK  France
Messages: 52
Registered: April 2008
Seeder
yeah really nice
Previous Topic:some feature request
Next Topic:tracker info (stats)
Goto Forum:
  


Current Time: Wed Feb 08 21:15:54 GMT 2012

Total time taken to generate the page: 0.00732 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software