http://www.torrenttr...?showtopic=7470
I decided that I would modify things a little, center the forms and text and modify a couple other portal files to keep away prying eyes. Credit to TorrentialStorm and the others, they're the ones ultimately responsible, I'm just making it easier to digest with a couple niceties. Hopefully this is the correct place to post this... Fully tested and working in TTv2.04 using the default theme.
1) Login page
2) Recover page
3) Signup page
4) centered text
5) RSS unviewable when not logged-in
Pictures included!
If you're using the default install then SKIP to the bottom, download the ZIP, extract and replace the files.
You will want to modify your own files if you're using something other than the preset configurations included in v2.04.
Idiot-Proof Manual Changes:
IN index.php
FIND:
dbconn
ADD THIS AFTER:
loggedinonly();
IN account-login.php
FIND:
dbconn();
ADD THIS AFTER:
$site_config["LEFTNAV"] = $site_config["MIDDLENAV"] = $site_config["RIGHTNAV"] = false;
IN account-recover.php
FIND:
dbconn(false);
ADD THIS AFTER:
$site_config["LEFTNAV"] = $site_config["MIDDLENAV"] = $site_config["RIGHTNAV"] = false;
IN account-recover.php
FIND:
stdhead();begin_frame("" . RECOVER_ACCOUNT . "", center);if ($kind != "0") { show_error_msg("Notice","".$kind.": ".$msg."",0);}?>ADD THIS AFTER:
<div align="center">
IN account-recover.php
FIND:
<form method=post action=account-recover.php> <table border=0 cellspacing=0 cellpadding=5> <tr> <td class=rowhead><B><? echo "" . EMAIL_ADDRESS . "";?>:</B> </td> <td><input type=text size=40 name=email> <input type=submit value='<? echo "" . SUBMIT . "";?>' class=btn></td> </tr> </table></form>
ADD THIS AFTER:
</div>
IN account-signup.php
FIND:
stdhead("Signup");begin_frame("Signup");?>ADD THIS AFTER:
<div align="center">
IN account-signup.php
FIND:
</tr>"; ?> <tr> <td align="middle" colSpan="2"> <input type="submit" value="Sign Up" /> </td> </tr> </table></form>
ADD THIS AFTER:
</div>
IN rss.php
FIND:
dbconn(false);
ADD THIS AFTER:
loggedinonly();
IN \themes\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><?}?>Included in the ZIP archive:
account-login.php
account-recover.php
account-signup.php
index.php
rss.php
\themes\header.php


This topic is locked











