I know about the Anonymous torrent tracker option, but you can still see the users, the downloads, in short you can still „test-drive“ the tracker.
What i would like, is that if you're not logged in, you can't see the tracker, and it will send you directly to the login page.
I also know, that this feature, may not be welcome by others, or even by you, but if one wants to use Diferior to be a 0-sec release this feature is mandatory.
So, if you can be kind enough to share a line of code, that point me to the right direction, i would be very appreciated.
If you see the loggedinorreturn function on the tbdev source code you'll know what i'm talking about. function loggedinorreturn() {
global $CURUSER;
if (!$CURUSER) {
header("Location: login.php?returnto=" . urlencode($_SERVER["REQUEST_URI"]));
exit();
}
}
Once more, I apologize for being such a pain in the ass.
Regards
Blog posts: 12
Added downloads: 2 Comments: 18 Forum posts: 573
Well, if you don't have anything against quick dirty hacks, here you go:
Add the following line to views/downloads.php and views/file.php, just after 'if ( !defined...' line if ( !isset ( $_SESSION [ 'logged' ] ) || !$_SESSION [ 'logged' ] ) { header ( 'location: '. $url -> make ( 'user', 'login' ) ); die (); };
Open templates/skio/index.tpl.php and look for line 198 ( '{if $smarty.const.FUNC_DOWNLOADS}' ), then change it into this: {if $smarty.const.FUNC_DOWNLOADS && isset ($smarty.session.logged) && $smarty.session.logged}
But I probably wouldn't pay for it 'cause Splash ID does what it's supposed to do and I've already purchased it. iPod video converter MacRidiculous! Will not buy the iPhone 4a.Apple blew it!
Forum posts: 14
A quick reply on forum.
A pop-up window on new private message and an email warning to the receiver
A way to run it like a registration only tracker, like tbdev, torrenttrader, etc.
Hopefully someone can make those mods.
Thanks
Best regards
Added downloads: 2
Comments: 18
Forum posts: 573
Proper notification system will definitely be implemented in the next version.
You CAN run 'registration-only' tracker. 'Admin > Downloads > Anonymous torrent tracker > Disabled'.
Forum posts: 14
I know about the Anonymous torrent tracker option, but you can still see the users, the downloads, in short you can still „test-drive“ the tracker.
What i would like, is that if you're not logged in, you can't see the tracker, and it will send you directly to the login page.
I also know, that this feature, may not be welcome by others, or even by you, but if one wants to use Diferior to be a 0-sec release this feature is mandatory.
So, if you can be kind enough to share a line of code, that point me to the right direction, i would be very appreciated.
If you see the loggedinorreturn function on the tbdev source code you'll know what i'm talking about.
function loggedinorreturn() { global $CURUSER; if (!$CURUSER) { header("Location: login.php?returnto=" . urlencode($_SERVER["REQUEST_URI"])); exit(); } }
Once more, I apologize for being such a pain in the ass.
Regards
Added downloads: 2
Comments: 18
Forum posts: 573
Add the following line to views/downloads.php and views/file.php, just after 'if ( !defined...' line
if ( !isset ( $_SESSION [ 'logged' ] ) || !$_SESSION [ 'logged' ] ) { header ( 'location: '. $url -> make ( 'user', 'login' ) ); die (); };
Open templates/skio/index.tpl.php and look for line 198 ( '{if $smarty.const.FUNC_DOWNLOADS}' ), then change it into this:
{if $smarty.const.FUNC_DOWNLOADS && isset ($smarty.session.logged) && $smarty.session.logged}
That should do it.
Forum posts: 14
Works 100%, you're the man.
Forum posts: 378