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
TimeZone for signup
Controls ·  Search New posts · Mark unread

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

Unknown User
2011-02-15 19:20:36
my members ask me why in schoutbox is wrong time display becouse the are many from other country i deside to add this litle mod

open account-signup.php and find

$ret = mysql_query("INSERT INTO users (username, password, secret, email, status, added, age, country,

add after

tzoffset,


find in the same query

$country,

add after

$tzoffset,



find

			<tr>
<td>Gender:</td>

<td>

<input type="radio" name="gender" value="Male">Male

&nbsp;&nbsp;

<input type="radio" name="gender" value="Female">Female

</td>

</tr>

add after

	                <tr>			
<td>TimeZone:</td>

<td>

<select name='tzoffset'>

<?php

ksort($tzs);

reset($tzs);

while (list($key, $val) = each($tzs)) {

if ($site_config["tzoffset"] == $key)

$tz .= "<option value=\"$key\" selected>$val</option>\n";

else

$tz .= "<option value=\"$key\">$val</option>\n";

}

?>

<?=$tz?>

</select></td>

</tr>

save and close

done  ;)

screen....



post edit thnx Dj  :rolleyes:
Unknown User
2011-02-16 01:22:16
Thanks for this
Unknown User
2011-02-16 19:05:16
$CURUSER cannot be used on account-signup... so what i suggest is you change

if ($CURUSER["tzoffset"] == $key)

$tz .= "<option value=\"$key\" selected>$val</option>\n";
to




if ($site_config["tzoffset"] == $key)

$tz .= "<option value=\"$key\" selected>$val</option>\n";



and add to config.php

$site_config["tzoffset"] = " DEFAULT TIMEZONE HERE.... "; // SITE TIMEZONE?
Unknown User
2011-02-18 12:53:05
I do like me this is working perfectly

<?php

ksort($tzs);

reset($tzs);

while (list($key, $val) = each($tzs)) {



$tz .= "<option value=\"$key\" selected>$val</option>\n";

}



print("<TR><TD align=right class=table_col1>".TZOFFSET.": </td><TD align=left class=table_col1><select name='tzoffset'>$tz</select></td></tr>");

?>
Unknown User
2011-02-18 13:09:01
@McGuyver that will also work too but if you want a certain one selected then just do what i said ;)
Unknown User
2013-02-12 06:53:48
some serious issues with this I noticed..

replace in account-signup



<tr>

<td>TimeZone:</td>

<td>

<select name='tzoffset'>

<?php

ksort($tzs);

reset($tzs);

while (list($key, $val) = each($tzs)) {

if ($site_config["tzoffset"] == $key)

$tz .= "<option value="$key" selected>$val</option>n";

else

$tz .= "<option value="$key">$val</option>n";

}

?>

<?=$tz?>

</select></td>

</tr>




with





<?php

ksort($tzs);

reset($tzs);

while (list($key, $val) = each($tzs)) {

if ($site_config["tzoffset"] == $key)

$tz .= "<option value="$key" selected>$val[0]</option>n";

else

$tz .= "<option value="$key">$val[0]</option>n";

}



print("<tr><td align=left><b>TimeZone:</b> <font class='small' color='#FF0000'>*</font></td><td align=left><select name='tzoffset'>$tz</select></td></tr>");

?>

2013-02-13 00:21:18
Thanks Lakicevic Boris and ArticWolf  :D


Unknown User
2013-03-27 21:55:56
Thx!!!
Unknown User
2013-04-01 08:03:44
[size=18px]May i ask how can i add ' Clients ' at [/size][size=18px]Preferred BitTorrent Client:[/size]

[size=18px]and the antispam message ?[/size]

[size=18px]Regards,[/size]
Unknown User
2013-06-06 04:05:07
good joob perfect
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: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728