Jump to content

Important Announcement!

Torrenttrader v3.0.0 public beta will be a rewrite and touch up
*Add udp support for all popular udp trackers
*Change the mailing system to ensure a better users interface.
*Change the way mods are added they will know use a plugin system
*Change the admin system in order to improve security
*Change the member management system like ip-board style in order to
have more control over site this is a must as it annoying that you can't setup
different group permission
*Change Theme system in order to make like easy and add smarty in
*Add a option in admincp buy support package etc they pay £5/mo for support from the
tt crew and have us fix the issues this also help fund the forum just a idea
*Rewrite the forum in order to give uses a better ui
*Rewhite torrent-details by adding comment system auto image resize based on setting in admincp more ajax refresh means less kicking to do.
*Rewrite the way sidebar works using plugins rather then php files
*and many more stuff to come

*torrenttrader v2.0.8 mods will need convert or may not be supported

If you like to help us in anyway please Donate to help keep tt alive :)

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  602 downloads
  • Attached File 2.jpg   20.22KB  628 downloads
  • Attached File 3.jpg   13KB  523 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