Go to Profile
thanks Botanicar for your help :)
OK added it all back to your code on the theme and took the other one out, cleared data etc from browser, tried another one and still no changes in regards to it, we don't use cloud flare
made no difference whatsoever
that line is in the code yes, but not showing on site hmmmm weird eh
I can do account-details fine it's editing my own profile on site that's the issue there is no save button when making changes to my gender, age etc lol
account.php?action=edit_settings&do=edit --- no save button here, I thought it were just me but seems both sites are the same
I have noticed when editing your own profile there isn't a save changes button anymore, any idea how to get it back? lol
hmm just checked a test site i got running with a few friends and it's not there either, not on the ravers theme or default hmm
OK just looked into sorting that, its fine there now but this is still happening with blocks on right side all squashed together
thank you again M-Jay, I appreciate the help :)
I will look into this tomorrow off the computer now
I'm talking about the blocks down right side of the page
that sorted that, thanks MM - between yourself and M-jay your both a credit to this source and been so helpful, thank you
so no errors logged so means strict mode is off.. quick question regarding this if ya can help
just tried what MM put, lets see if it works :)
this is the only line I changed in announce.php
//check passkey isnt leaked
if ($MEMBERSONLY) {
$valid = @mysqli_fetch_row(@SQL_Query_exec("SELECT COUNT(*) FROM peers WHERE torrent=$torrentid AND passkey=" . sqlesc($passkey)));
if ($valid[0] >= 2 && $seeder == 'no')
err("Connection limit exceeded! You may only leech from one location at a time.");
if ($valid[0] >= 3 && $seeder == 'yes')
err("Connection limit exceeded!");
}
$res = SQL_Query_exec("SELECT $peerfields FROM peers WHERE $selfwhere");
$row = mysqli_fetch_assoc($res);
if ($row){
$self = $row;
}
}
// END $SELF FILL
if ($valid[0] >= 2 && $seeder == 'no')
use to be:
if ($valid[0] >= 1 && $seeder == 'no')
even on a fresh install of TT v3 I am getting the error;
Database Error in announce.php on line 251: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation '='. Query was: SELECT seeder, UNIX_TIMESTAMP(last_action) AS ez, peer_id, ip, port, uploaded, downloaded, userid, passkey FROM peers WHERE torrent = 1 AND peer_id = '-lt0D80-?g???x????'.
the database is reading utf8_general_ci so unsure where this is coming from
can someone help me get it working on my loginbox block please
<?php
if (!$CURUSER) {
begin_block(T_("LOGIN"));
?>
<form method="post" action="account-login.php">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td>
<table border="0" cellpadding="1" align="center">
<tr>
<td align="center"><font face="verdana" size="1"><b><?php echo T_("USERNAME"); ?>:</b></font></td>
</tr><tr>
<td align="center"><input type="text" size="12" name="username" /></td>
</tr><tr>
<td align="center"><font face="verdana" size="1"><b><?php echo T_("PASSWORD"); ?>:</b></font></td>
</tr><tr>
<td align="center"><input type="password" size="12" name="password" /></td>
</tr><tr>
<td align="center"><input type="submit" value="<?php echo T_("LOGIN"); ?>" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">[<a href="account-signup.php"><?php echo T_("SIGNUP");?></a>]<br />[<a href="account-recover.php"><?php echo T_("RECOVER_ACCOUNT");?></a>]</td> </tr>
</table>
</form>
<?php
end_block();
} else {
begin_block($CURUSER["username"]);
$avatar = htmlspecialchars($CURUSER["avatar"]);
if (!$avatar)
$avatar = $site_config["SITEURL"]."/images/default_avatar.png";
$userdownloaded = mksize($CURUSER["downloaded"]);
$useruploaded = mksize($CURUSER["uploaded"]);
$privacylevel = T_($CURUSER["privacy"]);
$bonus = $CURUSER['seedbonus'];
if ($CURUSER["uploaded"] > 0 && $CURUSER["downloaded"] == 0)
$userratio = "Inf.";
elseif ($CURUSER["downloaded"] > 0)
$userratio = number_format($CURUSER["uploaded"] / $CURUSER["downloaded"], 2);
else
$userratio = "---";
print ("<center><img width='80' height='80' src='$avatar' alt='' /></center><br />" . T_("DOWNLOADED") . ": $userdownloaded<br />" . T_("UPLOADED") . ": $useruploaded<br />".T_("CLASS").": ".T_($CURUSER["level"])."<br />" . T_("ACCOUNT_PRIVACY_LVL") . ": $privacylevel<br />". T_("RATIO") .": $userratio<br>Seedbonus : <b><a href=mybonus.php>".$bonus."</a></b>");
?>
<center><a href="account.php"><?php echo T_("ACCOUNT"); ?></a>
<?php if($CURUSER["class"]=="5") {print ("<br/><a href=modcp.php>".T_("STAFFCP")."</a>");}?>
<?php if($CURUSER["class"]=="6") {print ("<br/><a href=smodcp.php>".T_("STAFFCP")."</a>");}?>
<?php if($CURUSER["class"]=="7") {print("<br/><a href=\"admincp.php\">".T_("STAFFCP")."</a>");}?>
<?php if($CURUSER["class"]=="8") {print("<br/><a href=\"admincp.php\">".T_("STAFFCP")."</a>");}?>
</center>
<?php
end_block();
}
?>
sure i got a test site running anyways, just copied another one but its went a bit weird lol half of index bocks aint showing... lol
no joy those errors are back again
yeah when doing any convertion from any code to another 99.9% of the time users need to reset the passwords