Jump to content


TTv2 Login Gate w/ touch-ups


  • This topic is locked This topic is locked
4 replies to this topic

#1
Guest_Smolder_*

Guest_Smolder_*
  • Guests
  • thanks
After digging around and finding this thread:
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:

ADD THIS AFTER:
<div align="center">

IN account-recover.php

FIND:

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

Attached Files

  • Attached File login_gate.zip   11.33KB  75 downloads
  • Attached File 1.jpg   13.53KB  601 downloads
  • Attached File 2.jpg   20.22KB  627 downloads
  • Attached File 3.jpg   13KB  522 downloads


#2
SpaZiuR

SpaZiuR

    Advanced Member

  •  TT Contributor
  • PipPipPip
  • 322 posts
  • 0 thanks
nice!!!i will give it try, later!!!
btw can you help me on this thread?

http://www.torrenttr...?showtopic=8178

pleaseeeee :D

thanks


EDIT:got it working 100%

#3
TorrentialStorm

TorrentialStorm

    Advanced Member

  • Jailed
  • PipPipPip
  • 3,541 posts
  • 0 thanks
to center the text in the frames you can just change: begin_frame("NAME"); to begin_frame("NAME", "center");

#4
Guest_Smolder_*

Guest_Smolder_*
  • Guests
  • thanks

to center the text in the frames you can just change: begin_frame("NAME"); to begin_frame("NAME", "center");


That would save a lot of time; danke.

#5
thedarklord

thedarklord

    Advanced Member

  •  TT Contributor
  • PipPipPip
  • 694 posts
  • 0 thanks
closed

http://www.torrenttr...showtopic=12463




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users