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] Hide site from guests
Controls ·  Search New posts · Mark unread

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

Unknown User
2010-08-12 15:09:53
add:
loggedinonly();
to index.php after dbconn

add:

$site_config["LEFTNAV"] = $site_config["MIDDLENAV"] = $site_config["RIGHTNAV"] = false;
to account-login.php, account-signup.php , account-recover.php  and account-confirm-ok.php below dbconn();
then it should only show the header & footer

themes/default/header.php, find:
<table width="100%">
<TR>
<td align="middle" class="subnav" height="34">
<a href="index.php"><B>Home</B></a> | <a href=torrents-upload.php ><B>Upload Torrent</B></a> | <a href=torrents.php ><B>Browse Torrents</B></a> | <a href=torrents-today.php ><B>Todays Torrents</B></a> | <a href=torrents-search.php ><B>Search</B></a>
</td>
</TR>
</table>

replace with:
<?if($CURUSER){?>
<table width="100%">
<TR>
<td align="middle" class="subnav" height="34">
<a href="index.php"><B>Home</B></a> | <a href=torrents-upload.php ><B>Upload Torrent</B></a> | <a href=torrents.php ><B>Browse Torrents</B></a> | <a href=torrents-today.php ><B>Todays Torrents</B></a> | <a href=torrents-search.php ><B>Search</B></a>
</td>
</TR>
</table>
<?}?>

untitled.JPG
untitled.JPG
Unknown User
2010-08-17 11:34:56
Thank you very much.

Just worked perfect.
Unknown User
2010-09-09 20:52:58
a clean option would be nice for members ( owners) to use so it does not look like a tracker from quests stumblin on site url etc might be gd for a random clean login page tottaly de tagged with words torrent  ;)  so thers a clean option to use
Unknown User
2011-06-30 19:51:34
yes i did this as well very nice mos only pobs is if you go to invite everyone can see all front page and download your torrents sorry to say did test this moring on it very big bug there
Unknown User
2011-10-11 15:46:31
Thanks.
Unknown User
2011-10-13 16:48:53
Thanks
Unknown User
2011-12-20 05:37:56
nice.thanks
Unknown User
2012-01-04 18:55:51
account-confirm-ok.php

add:

$site_config["LEFTNAV"] = $site_config["MIDDLENAV"] = $site_config["RIGHTNAV"] = false;
Unknown User
2012-01-10 14:03:43
hello all ...

I installed this mod ...

but after the install there will be an error Sorry this page is only for members ...

when I go to mtuc.org / index.php send me [url="http://mtuc.org/account-login.php?returnto"]http://mtuc.org/account-login.php?returnto[/url] =% 2Findex.php

and error box appears ...

hope you can help me ...

I'm on tt v2.08

error.jpg
error.jpg
Unknown User
2012-01-10 14:07:16
have you tried logging in?

what you see in that image is the desired effect of this mod i think, for those that arent signed in..

could you please tell me where you put the last piece of code, i looked, and i cant see where to put it in the header for tt2.8
Unknown User
2012-01-10 14:11:59
"anothermember, post: 77894":
why dont you log in?

because I want the error to disappear ... :)

it comes as soon as I enter the site ...

i can log in ...

but it does not look so good that the error is there.

the site url is [url="http://mtuc.org/"]http://mtuc.org/[/url]

then you can see it

2.08 use div in header and not tables

tha last code for header is here.

<?if($CURUSER){?>

<div class='navigation'>

<div class='menu'>

<ul id='nav-one' class='dropmenu'>

<li><a href="index.php"><?php echo T_("HOME");?></a></li>

<li><a href="forums.php"><?php echo T_("FORUMS");?></a></li>

<li><a href="torrents-upload.php"><?php echo T_("UPLOAD_TORRENT");?></a></li>

<li><a href="torrents.php"><?php echo T_("BROWSE_TORRENTS");?></a></li>

<li><a href="torrents-today.php"><?php echo T_("TODAYS_TORRENTS");?></a></li>

<li><a href="torrents-search.php"><?php echo T_("SEARCH_TORRENTS");?></a></li>

</ul>

</div>

</div>
Unknown User
2012-01-10 14:18:12
"narkomic, post: 77893":
hello all ...I installed this mod ...

but after the install there will be an error Sorry this page is only for members ...

when I go to mtuc.org / index.php send me [url="http://mtuc.org/account-login.php?returnto"]http://mtuc.org/account-login.php?returnto[/url] =% 2Findex.php

and error box appears ...

hope you can help me ...

I'm on tt v2.08

not related but narkomic you may want to edit your default theme 'theme.css' from

.header {

display: block;

margin: 0px;

padding: 0px;

height: 80px;

width: 100%;

position: relative;

}


to

Quote:
.header {display: block;

margin: 0px;

padding: 0px;

height: 115px;

width: 100%;

position: relative;

}

so all your logo is visible m8... :)
Unknown User
2012-01-10 14:22:25
"Nikkbu, post: 77898":
not related but narkomic you may want to edit your default theme 'theme.css' from


.header {

display: block;

margin: 0px;

padding: 0px;

height: 80px;

width: 100%;

position: relative;

}


to

so all your logo is visible m8...  :)
ahh thank've been looking for it ...: P
Unknown User
2012-01-10 14:25:20
function loggedinonly() {

global $CURUSER;

if (!$CURUSER) {

header("Refresh: 0; url=account-login.php?returnto=" . urlencode($_SERVER["REQUEST_URI"]));

exit();

}

}
change to




function loggedinonly($nowarn = false) {

global $CURUSER;

 

$warn = null;

if ($nowarn)

  $warn = "&nowarn=1";



if (!$CURUSER) {

header("Refresh: 0; url=account-login.php?returnto=" . urlencode($_SERVER["REQUEST_URI"]) . "$warn");

exit();

}

}



change loggedinonly(); to loggedinonly(true); on index.php should work...
Unknown User
2012-01-10 14:30:37
"XIII, post: 77900":
function loggedinonly() {

global $CURUSER;

if (!$CURUSER) {

header("Refresh: 0; url=account-login.php?returnto=" . urlencode($_SERVER["REQUEST_URI"]));

exit();

}

}
change to




function loggedinonly($nowarn = false) {

global $CURUSER;

 

$warn = null;

if ($nowarn)

  $warn = "&nowarn=1";



if (!$CURUSER) {

header("Refresh: 0; url=account-login.php?returnto=" . urlencode($_SERVER["REQUEST_URI"]) . "$warn");

exit();

}

}



change loggedinonly(); to loggedinonly(true); on index.php should work...

where do you want me to change the first code in?
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