cladt |
25th January 2011 21:45 |
theme change and right hand colum on BNdemon
i make a new usercp2.php and i put this in blocks but in footer.php don't find
HTML Code:
<td><p class="footer">
for ad above
HTML Code:
</td>
<td width=25 valign=top ></td>
<td width=170 valign=top >
<table border=0 width=100% cellspacing=0 cellpadding=0 align=right>
<tr>
<div align=right>
<tr><td>
<p><b><? include("blocks/usercp2.php"); ?></b></td><td>
</table>
</td></form>
</tr>
<tr>
</table>
</td></tr>
</table>
</td>
</tr>
<tr>
any idea haw i make theme change and right colum on NBdemon theme?
!!sorry if i posted on wong area!!
daffy |
25th January 2011 23:17 |
1 Attachment(s)
huh?
ok, open main.php
find around line 434
Code:
echo " \n";
add below
Code:
echo "\n";
echo "\n";
include("blocks/usercp2.php");
echo " | \n";
}
or use mine main.php attachted, i have theme changer in infobar and small minor changes ;)
|
cladt |
27th January 2011 21:31 |
your main.php
|
daffy |
28th January 2011 01:38 |
if you check in main.php (mine) you will see i commented out the new bittorrent.php table. just remove the // before include and you will be useing the new bittorrent.php table. also, i have this as my main pmbt theme, you wil need to alter ALL pmbt theme name to NBdemon search and replace all pmbt to NB-Demon :D
ok wait i will edit this and repost it lmfao
try attachted bud if ok i wil update my original post.:relax:
|
cladt |
28th January 2011 23:23 |
tanks dafy
y almost done,but i haw 2 search on top of torrent list,thame change not work ,and first of all in torrent list space its too big if you anderstend wat y seed
http://img684.imageshack.us/img684/9...shot001irs.png
i decided to use acidtech green but in explorer space inter torrents are bigist
|
daffy |
29th January 2011 13:03 |
message me on here when you are online, i will sign up to you and help you.
|
dumorim |
3rd February 2011 19:39 |
error
Code:
Fatal error: Cannot redeclare imgdescr() (previously declared in /home/dumorim/public_html/teste/blocks/usercp.php:35) in /home/dumorim/public_html/teste/blocks/usercp2.php on line 38
|
daffy |
3rd February 2011 19:59 |
that is because i have mods in my usercp.php and usercp.php. show me your usercp and usercp2.php
|
dumorim |
3rd February 2011 20:05 |
usercp2.php
PHP Code:
<?php /* *----------------------------phpMyBitTorrent V 2.0-----------------------------* *--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---* *-------------- Created By Antonio Anzivino (aka DJ Echelon) --------------* *------------- http://www.p2pmania.it -------------* *------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------* *------------- http://www.bittorrent.com -------------* *------------------------------------------------------------------------------* *------------------------------------------------------------------------------* *-- This program is free software; you can redistribute it and/or modify --* *-- it under the terms of the GNU General Public License as published by --* *-- the Free Software Foundation; either version 2 of the License, or --* *-- (at your option) any later version. --* *-- --* *-- This program is distributed in the hope that it will be useful, --* *-- but WITHOUT ANY WARRANTY; without even the implied warranty of --* *-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --* *-- GNU General Public License for more details. --* *-- --* *-- You should have received a copy of the GNU General Public License --* *-- along with this program; if not, write to the Free Software --* *-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --* *-- --* *------------------------------------------------------------------------------* *------ ©2005 phpMyBitTorrent Development Team ------* *----------- http://phpmybittorrent.com -----------* *------------------------------------------------------------------------------* *----------------- Sunday, September 14, 2008 9:05 PM ---------------------* */
if (!defined('IN_PMBT')) die ("You can't access this file directly");
function imgdescr($file,$link,$descr) { global $theme, $forumbase; return "<a href=\"".$link."\"><img title=\"".$descr."\" alt=\"".$descr."\" border=\"0\" src=\"themes/".$theme."/pics/menu/".$file."\" onmouseover=\"javascript:descriptor('".addslashes($descr)."');\" onmouseout=\"javascript:descriptor(' ')\" /></a>"; }
if ($user->user) { OpenTable(_btmenu); if (is_dir("themes/$theme/pics/menu")) { $pm_img = ($has_newpm) ? "newpm.png" : "pm.png"; echo "<p align=\"center\">\n"; echo imgdescr("home.png","index.php",_btindex); echo imgdescr("upload.png","upload.php",_btupload); echo imgdescr("mytorrents.png","mytorrents.php",_btpersonal); echo "<span id=\"nopm_notif\">".imgdescr($pm_img,"pm.php",_btpm)."</span>"; #Private messages are not available... yet echo ""; echo imgdescr("profile.png","user.php?op=profile&id=".$user->id."",_btuserprofile); echo imgdescr("members.png","memberslist.php",_btmemlist); echo imgdescr("logout.png","user.php?op=logout",_btlogout); echo imgdescr("forum.png","phpBB.php?page=index", "Forum"); echo ""; echo imgdescr("arcade.png","games.php",_btgames); echo imgdescr("requests.png","viewrequests.php",_btviewrqst); echo imgdescr("faq.png","faq.php",_btfaqs); echo imgdescr("offers.png","offers.php",_bttorofferd); echo ""; if ($user->admin) echo imgdescr("admin.png","admin.php",_btadmin); echo "</p>\n"; echo "<p align=\"center\" id=\"descriptor\"> </p>"; } else { echo "<p><a href=\"index.php\">"._btindex."</a>\n"; echo "<a href=\"upload.php\">"._bttorrentupload."</a>\n"; echo "<a href=\"mytorrents.php\">"._btpersonal.htmlspecialchars($user->name)."</a>\n"; echo "<a href=\"pm.php\">"._btpm."</a>\n"; if (file_exists("include/irc.ini")) echo "<a href=\"chat.php\">"._btircchat."</a>\n"; if ($user->admin) echo "<a href=\"admin.php\">"._btadmin."</a>\n"; echo "<a href=\"user.php?op=logout\">"._btlogout."</a></p>\n"; } echo "<p> </p>"; $sql = "SELECT seedbonus, avatar, uploaded, downloaded, invites, uploaded/downloaded AS ratio FROM ".$db_prefix."_users WHERE id = '".$user->id."';"; $res = $db->sql_query($sql); list ($seedbonus, $avatar, $uploaded, $downloaded, $invites, $ratio) = $db->sql_fetchrow($res); $db->sql_freeresult($res); echo "<p>".pic("pic_uploaded.gif").mksize($uploaded).""; echo pic("pic_downloaded.gif").mksize($downloaded).""; echo pic("pic_ratio.gif"); echo " "; if ($downloaded == 0) echo "∞"; elseif ($ratio < 0.1) echo "<font color=\"#ff0000\">" . number_format($ratio, 2) . "</font>"; elseif ($ratio < 0.2) echo "<font color=\"#ee0000\">" . number_format($ratio, 2) . "</font>"; elseif ($ratio < 0.3) echo "<font color=\"#dd0000\">" . number_format($ratio, 2) . "</font>"; elseif ($ratio < 0.4) echo "<font color=\"#cc0000\">" . number_format($ratio, 2) . "</font>"; elseif ($ratio < 0.5) echo "<font color=\"#bb0000\">" . number_format($ratio, 2) . "</font>"; elseif ($ratio < 0.6) echo "<font color=\"#aa0000\">" . number_format($ratio, 2) . "</font>"; elseif ($ratio < 0.7) echo "<font color=\"#990000\">" . number_format($ratio, 2) . "</font>"; elseif ($ratio < 0.8) echo "<font color=\"#880000\">" . number_format($ratio, 2) . "</font>"; elseif ($ratio < 0.9) echo "<font color=\"#770000\">" . number_format($ratio, 2) . "</font>"; elseif ($ratio < 1) echo "<font color=\"#660000\">" . number_format($ratio, 2) . "</font>"; else echo "<font color=\"#00FF00\">". number_format($ratio, 2) . "</font>"; echo "\n"; #Numer of seeding Torrents $sql = "SELECT P.torrent AS id, T.name as name FROM ".$db_prefix."_peers P, ".$db_prefix."_torrents T WHERE P.uid = '".$user->id."' AND P.seeder = 'yes' AND T.id = P.torrent;"; $res = $db->sql_query($sql); $cnt = $db->sql_numrows($res); $torrents = Array(); while ($tor = $db->sql_fetchrow($res)) { $torrents[] = htmlspecialchars((strlen($tor["name"]) > 33) ? substr($tor["name"],0,30)."..." : $tor["name"]); } if ($cnt > 0) help(pic("upload.gif"),"<p>".implode($torrents,"")."</p>",_btyoureseeding); else echo pic("upload.gif",null,_btyoureseeding); echo $cnt; $db->sql_freeresult($sql); unset($sql, $res, $torrents, $tor, $cnt); #Number of downloading Torrents echo "\n"; $sql = "SELECT P.torrent AS id, T.name as name FROM ".$db_prefix."_peers P, ".$db_prefix."_torrents T WHERE P.uid = '".$user->id."' AND P.seeder = 'no' AND T.id = P.torrent;"; $res = $db->sql_query($sql); $cnt = $db->sql_numrows($res); $torrents = Array(); while ($tor = $db->sql_fetchrow($res)) { $torrents[] = htmlspecialchars((strlen($tor["name"]) > 33) ? substr($tor["name"],0,30)."..." : $tor["name"]); } if ($cnt > 0) help(pic("download.gif"),"<p>".implode($torrents,"")."</p>",_btyoureleeching); else echo pic("download.gif",null,_btyoureleeching); echo $cnt; $db->sql_freeresult($sql); unset($sql, $res, $torrents, $tor, $cnt); echo "</p>"; echo "\n"; echo "\n"; echo "<p align=\"center\"><b>"._btwelcomebk."</b></p>\n"; echo "<p align=\"center\"><b>".$user->name."</b></p>\n"; echo "<b><img src=\"avatars/".$avatar."\" alt=\"".$user->name."\"></b>"; echo "\n"; print("<p>Seeding Bonus: <a href='mybonus.php'>".$seedbonus."</a></p>");
CloseTable(); } else { OpenTable(_btumenu, '144'); if (is_dir("themes/$theme/pics/menu")) { echo "<p align=\"center\">\n"; echo imgdescr("home.png","index.php",_btindex); if ($upload_level == "all") echo imgdescr("upload.png","upload.php",_btupload); if (file_exists("include/irc.ini")) echo imgdescr("chat.png","chat.php",_btircchat); echo "</p>\n"; echo "<p align=\"center\" id=\"descriptor\"> </p>"; } else { echo "<p><a href=\"index.php\">"._btindex."</a>\n"; if ($upload_level == "all") echo "<a href=\"upload.php\">"._bttorrentupload."</a>\n"; if (file_exists("include/irc.ini")) echo "<a href=\"chat.php\">"._btircchat."</a>\n"; echo "</p>"; } echo "<HR SIZE=1 NOSHADE>"; echo "<p align=\"center\"><b>"._btlogin."</b></p>\n"; echo "<p> </p>\n"; echo "<form method=\"POST\" action=\"user.php\"><input type=\"hidden\" name=\"op\" value=\"login\" />\n"; echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\"><tr><td align=\"center\"><p>"._btusername."</p></td>\n</tr><tr><td align=\"center\"><input type=\"text\" name=\"username\" size=\"10\"></td></tr><tr><td align=\"center\"><p>"._btpassword."</p></td></tr><tr><td align=\"center\"><input type=\"password\" name=\"password\" size=\"10\"></td></tr><tr><td align=\"center\"><p>"._btremember."</p></td></tr><tr><td align=\"center\"><input type=\"checkbox\" name=\"remember\" value=\"yes\"></td></tr>"; if ($gfx_check) { $rnd_code = strtoupper(RandomAlpha(5)); echo "<p align=\"center\">"._btsecuritycode."<img src=\"gfxgen.php?code=".base64_encode($rnd_code)."\" alt=\"Security Code\">\n<input type=\"text\" name=\"gfxcode\" size=\"10\" maxlength=\"6\">"; echo "<input type=\"hidden\" name=\"gfxcheck\" value=\"".md5($rnd_code)."\">\n\n"; } echo "<tr><td><p align=\"center\"><input type=\"submit\" value=\""._btlogin."\"></p></td></tr></table></form>"; echo "<p><a href=\"user.php?op=register\">"._btsignup."</a>\n\n"; echo "<a href=\"user.php?op=lostpassword\">"._btlostpassword."</a></p>\n\n"; CloseTable(); } ?>
usercp.php
///
PHP Code:
<?php /* *----------------------------phpMyBitTorrent V 2.0-----------------------------* *--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---* *-------------- Created By Antonio Anzivino (aka DJ Echelon) --------------* *------------- http://www.p2pmania.it -------------* *------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------* *------------- http://www.bittorrent.com -------------* *------------------------------------------------------------------------------* *------------------------------------------------------------------------------* *-- This program is free software; you can redistribute it and/or modify --* *-- it under the terms of the GNU General Public License as published by --* *-- the Free Software Foundation; either version 2 of the License, or --* *-- (at your option) any later version. --* *-- --* *-- This program is distributed in the hope that it will be useful, --* *-- but WITHOUT ANY WARRANTY; without even the implied warranty of --* *-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --* *-- GNU General Public License for more details. --* *-- --* *-- You should have received a copy of the GNU General Public License --* *-- along with this program; if not, write to the Free Software --* *-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --* *-- --* *------------------------------------------------------------------------------* *------ ©2005 phpMyBitTorrent Development Team ------* *----------- http://phpmybittorrent.com -----------* *------------------------------------------------------------------------------* *----------------- Sunday, September 14, 2008 9:05 PM ---------------------* */
if (!defined('IN_PMBT')) die ("You can't access this file directly");
function imgdescr($file,$link,$descr) { global $theme, $forumbase; return "<a href=\"".$link."\"><img title=\"".$descr."\" alt=\"".$descr."\" border=\"0\" src=\"themes/".$theme."/pics/menu/".$file."\" onmouseover=\"javascript:descriptor('".addslashes($descr)."');\" onmouseout=\"javascript:descriptor(' ')\" /></a>"; }
if ($user->user) { OpenTable(_btmenu); if (is_dir("themes/$theme/pics/menu")) { $pm_img = ($has_newpm) ? "newpm.png" : "pm.png"; echo "<p align=\"center\">\n"; echo imgdescr("home.png","index.php",_btindex); echo imgdescr("upload.png","upload.php",_btupload); echo imgdescr("mytorrents.png","mytorrents.php",_btpersonal); echo "<span id=\"nopm_notif\">".imgdescr($pm_img,"pm.php",_btpm)."</span>"; #Private messages are not available... yet echo ""; echo imgdescr("profile.png","user.php?op=profile&id=".$user->id."",_btuserprofile); echo imgdescr("members.png","memberslist.php",_btmemlist); echo imgdescr("logout.png","user.php?op=logout",_btlogout); echo imgdescr("forum.png","phpBB.php?page=index", "Forum"); echo ""; echo imgdescr("arcade.png","games.php",_btgames); echo imgdescr("requests.png","viewrequests.php",_btviewrqst); echo imgdescr("faq.png","faq.php",_btfaqs); echo imgdescr("offers.png","offers.php",_bttorofferd); echo ""; if ($user->admin) echo imgdescr("admin.png","admin.php",_btadmin); echo "</p>\n"; echo "<p align=\"center\" id=\"descriptor\"> </p>"; } else { echo "<p><a href=\"index.php\">"._btindex."</a>\n"; echo "<a href=\"upload.php\">"._bttorrentupload."</a>\n"; echo "<a href=\"mytorrents.php\">"._btpersonal.htmlspecialchars($user->name)."</a>\n"; echo "<a href=\"pm.php\">"._btpm."</a>\n"; if (file_exists("include/irc.ini")) echo "<a href=\"chat.php\">"._btircchat."</a>\n"; if ($user->admin) echo "<a href=\"admin.php\">"._btadmin."</a>\n"; echo "<a href=\"user.php?op=logout\">"._btlogout."</a></p>\n"; } echo "<p> </p>"; $sql = "SELECT seedbonus, avatar, uploaded, downloaded, invites, uploaded/downloaded AS ratio FROM ".$db_prefix."_users WHERE id = '".$user->id."';"; $res = $db->sql_query($sql); list ($seedbonus, $avatar, $uploaded, $downloaded, $invites, $ratio) = $db->sql_fetchrow($res); $db->sql_freeresult($res); echo "<p>".pic("pic_uploaded.gif").mksize($uploaded).""; echo pic("pic_downloaded.gif").mksize($downloaded).""; echo pic("pic_ratio.gif"); echo " "; if ($downloaded == 0) echo "∞"; elseif ($ratio < 0.1) echo "<font color=\"#ff0000\">" . number_format($ratio, 2) . "</font>"; elseif ($ratio < 0.2) echo "<font color=\"#ee0000\">" . number_format($ratio, 2) . "</font>"; elseif ($ratio < 0.3) echo "<font color=\"#dd0000\">" . number_format($ratio, 2) . "</font>"; elseif ($ratio < 0.4) echo "<font color=\"#cc0000\">" . number_format($ratio, 2) . "</font>"; elseif ($ratio < 0.5) echo "<font color=\"#bb0000\">" . number_format($ratio, 2) . "</font>"; elseif ($ratio < 0.6) echo "<font color=\"#aa0000\">" . number_format($ratio, 2) . "</font>"; elseif ($ratio < 0.7) echo "<font color=\"#990000\">" . number_format($ratio, 2) . "</font>"; elseif ($ratio < 0.8) echo "<font color=\"#880000\">" . number_format($ratio, 2) . "</font>"; elseif ($ratio < 0.9) echo "<font color=\"#770000\">" . number_format($ratio, 2) . "</font>"; elseif ($ratio < 1) echo "<font color=\"#660000\">" . number_format($ratio, 2) . "</font>"; else echo "<font color=\"#00FF00\">". number_format($ratio, 2) . "</font>"; echo "\n"; #Numer of seeding Torrents $sql = "SELECT P.torrent AS id, T.name as name FROM ".$db_prefix."_peers P, ".$db_prefix."_torrents T WHERE P.uid = '".$user->id."' AND P.seeder = 'yes' AND T.id = P.torrent;"; $res = $db->sql_query($sql); $cnt = $db->sql_numrows($res); $torrents = Array(); while ($tor = $db->sql_fetchrow($res)) { $torrents[] = htmlspecialchars((strlen($tor["name"]) > 33) ? substr($tor["name"],0,30)."..." : $tor["name"]); } if ($cnt > 0) help(pic("upload.gif"),"<p>".implode($torrents,"")."</p>",_btyoureseeding); else echo pic("upload.gif",null,_btyoureseeding); echo $cnt; $db->sql_freeresult($sql); unset($sql, $res, $torrents, $tor, $cnt); #Number of downloading Torrents echo "\n"; $sql = "SELECT P.torrent AS id, T.name as name FROM ".$db_prefix."_peers P, ".$db_prefix."_torrents T WHERE P.uid = '".$user->id."' AND P.seeder = 'no' AND T.id = P.torrent;"; $res = $db->sql_query($sql); $cnt = $db->sql_numrows($res); $torrents = Array(); while ($tor = $db->sql_fetchrow($res)) { $torrents[] = htmlspecialchars((strlen($tor["name"]) > 33) ? substr($tor["name"],0,30)."..." : $tor["name"]); } if ($cnt > 0) help(pic("download.gif"),"<p>".implode($torrents,"")."</p>",_btyoureleeching); else echo pic("download.gif",null,_btyoureleeching); echo $cnt; $db->sql_freeresult($sql); unset($sql, $res, $torrents, $tor, $cnt); echo "</p>"; echo "\n"; echo "\n"; echo "<p align=\"center\"><b>"._btwelcomebk."</b></p>\n"; echo "<p align=\"center\"><b>".$user->name."</b></p>\n"; echo "<b><img src=\"avatars/".$avatar."\" alt=\"".$user->name."\"></b>"; echo "\n"; print("<p>Seeding Bonus: <a href='mybonus.php'>".$seedbonus."</a></p>");
CloseTable(); } else { OpenTable(_btumenu, '144'); if (is_dir("themes/$theme/pics/menu")) { echo "<p align=\"center\">\n"; echo imgdescr("home.png","index.php",_btindex); if ($upload_level == "all") echo imgdescr("upload.png","upload.php",_btupload); if (file_exists("include/irc.ini")) echo imgdescr("chat.png","chat.php",_btircchat); echo "</p>\n"; echo "<p align=\"center\" id=\"descriptor\"> </p>"; } else { echo "<p><a href=\"index.php\">"._btindex."</a>\n"; if ($upload_level == "all") echo "<a href=\"upload.php\">"._bttorrentupload."</a>\n"; if (file_exists("include/irc.ini")) echo "<a href=\"chat.php\">"._btircchat."</a>\n"; echo "</p>"; } echo "<HR SIZE=1 NOSHADE>"; echo "<p align=\"center\"><b>"._btlogin."</b></p>\n"; echo "<p> </p>\n"; echo "<form method=\"POST\" action=\"user.php\"><input type=\"hidden\" name=\"op\" value=\"login\" />\n"; echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\"><tr><td align=\"center\"><p>"._btusername."</p></td>\n</tr><tr><td align=\"center\"><input type=\"text\" name=\"username\" size=\"10\"></td></tr><tr><td align=\"center\"><p>"._btpassword."</p></td></tr><tr><td align=\"center\"><input type=\"password\" name=\"password\" size=\"10\"></td></tr><tr><td align=\"center\"><p>"._btremember."</p></td></tr><tr><td align=\"center\"><input type=\"checkbox\" name=\"remember\" value=\"yes\"></td></tr>"; if ($gfx_check) { $rnd_code = strtoupper(RandomAlpha(5)); echo "<p align=\"center\">"._btsecuritycode."<img src=\"gfxgen.php?code=".base64_encode($rnd_code)."\" alt=\"Security Code\">\n<input type=\"text\" name=\"gfxcode\" size=\"10\" maxlength=\"6\">"; echo "<input type=\"hidden\" name=\"gfxcheck\" value=\"".md5($rnd_code)."\">\n\n"; } echo "<tr><td><p align=\"center\"><input type=\"submit\" value=\""._btlogin."\"></p></td></tr></table></form>"; echo "<p><a href=\"user.php?op=register\">"._btsignup."</a>\n\n"; echo "<a href=\"user.php?op=lostpassword\">"._btlostpassword."</a></p>\n\n"; CloseTable(); } ?>
|
daffy |
3rd February 2011 20:35 |
it is because they are both identical. wrap up (rar) your blocks/ directory and post them, i will fix it up once i have eaten my food.
|
dumorim |
3rd February 2011 20:43 |
1 Attachment(s)
thanks for help
|
daffy |
3rd February 2011 21:23 |
1 Attachment(s)
no problem., try below. how i do these is i create my blocks and add to blocks/ directory, i then add include function to usercp.php OR usercp2.php to show on left or right side. you can see what i mean with menu.php
|
flskip |
3rd February 2011 22:30 |
second login in header
When I use this theme with a user logged in it works fine. If use the theme with a guest and no log in i get a second log in screen in the header and everything looks out of alignment. Can anyone help me with this issue. My tracker is open and users only need to log in to download locally tracked torrents. Most of my users will never log in or register.
|
joeroberts |
3rd February 2011 23:02 |
in main.php find
PHP Code:
else{ $loginbox = "<form method=\"POST\" action=\"user.php".$returnto."\">\n<input type=\"hidden\" name=\"op\" value=\"login\" />\n <p>"._btusername."<input type=\"text\" name=\"username\" size=\"20\" />\n"._btpassword."<input type=\"password\" name=\"password\" size=\"20\" />\n</p>\n"; if ($gfx_check) { $rnd_code = strtoupper(RandomAlpha(5)); $loginbox .= "<p>"._btsecuritycode."<img src=\"gfxgen.php?code=".base64_encode($rnd_code)."\" alt=\"Security Code\" width=\"15\" height=\"30\">\n<input type=\"text\" name=\"gfxcode\" size=\"10\" maxlength=\"6\">"; $loginbox .= "<input type=\"hidden\" name=\"gfxcheck\" value=\"".md5($rnd_code)."\">\n\n"; } $loginbox .= "<p><input type=\"submit\" value=\""._btlogin."\" /></p></form>\n"; $loginbox .= "<a href=\"user.php?op=lostpassword\">"._btlostpassword."</a></p>\n\n"; echo $loginbox;
and replace it with
PHP Code:
else{ $loginbox = "<form method=\"POST\" action=\"user.php".$returnto."\">\n<input type=\"hidden\" name=\"op\" value=\"login\" />\n <p>"._btusername."<input type=\"text\" name=\"username\" size=\"20\" />\n"._btpassword."<input type=\"password\" name=\"password\" size=\"20\" />\n</p>\n"; if ($gfx_check) { $rnd_code = strtoupper(RandomAlpha(5)); $loginbox .= "<p>"._btsecuritycode."<img src=\"gfxgen.php?code=".base64_encode($rnd_code)."\" alt=\"Security Code\" width=\"77\" height=\"20\">\n<input type=\"text\" name=\"gfxcode\" size=\"10\" maxlength=\"6\">"; $loginbox .= "<input type=\"hidden\" name=\"gfxcheck\" value=\"".md5($rnd_code)."\">\n\n"; $loginbox .= "<input type=\"submit\" value=\""._btlogin."\" /></p></form>\n"; } else $loginbox .= "<p><input type=\"submit\" value=\""._btlogin."\" /></p></form>\n"; $loginbox .= "<a href=\"user.php?op=lostpassword\">"._btlostpassword."</a></p>\n\n"; echo $loginbox;
|
bebeshare |
10th March 2011 04:31 |
why i use this always show:You can't access this file directly
|
daffy |
10th March 2011 12:47 |
open themes main.php
replace
Code:
if (!defined('IN_PMBT')) die ("You can't access this file directly");
with below
Code:
if (defined('IN_PMBT'))die ("You can't include this file");
define("IN_PMBT",true);
|
Mahmoud |
3rd April 2011 17:56 |
can the theme maker make it full and complete
just to help poor users like me :sad:
|
joeroberts |
3rd April 2011 18:07 |
1 Attachment(s)
first of the missing image is for another theme.
so what theme do you want completed?
|
Mahmoud |
3rd April 2011 21:14 |
Quote:
Originally Posted by joeroberts
(Post 27458)
first of the missing image is for another theme.
so what theme do you want completed?
|
sorry
i already edited my post
the demonoid them require a lot of edit and making files
so im asking of the theme maker to build it for poor users like us
thanks
|
joeroberts |
3rd April 2011 22:59 |
I have added a updated file in my last post
|
Mahmoud |
4th April 2011 00:34 |
Quote:
Originally Posted by joeroberts
(Post 27467)
I have added a updated file in my last post
|
after replacing the files i got this error :
Quote:
Parse error: syntax error, unexpected ')' in G:\*******\******.***\*******\pmt\blocks\usercp2.p hp on line 34
|
|
joeroberts |
4th April 2011 02:10 |
Please show me usercp2.php
|
Mahmoud |
4th April 2011 20:42 |
Quote:
Originally Posted by joeroberts
(Post 27472)
Please show me usercp2.php
|
PHP Code:
<?php /* *----------------------------phpMyBitTorrent V 2.0-----------------------------* *--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---* *-------------- Created By Antonio Anzivino (aka DJ Echelon) --------------* *------------- http://www.p2pmania.it -------------* *------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------* *------------- http://www.bittorrent.com -------------* *------------------------------------------------------------------------------* *------------------------------------------------------------------------------* *-- This program is free software; you can redistribute it and/or modify --* *-- it under the terms of the GNU General Public License as published by --* *-- the Free Software Foundation; either version 2 of the License, or --* *-- (at your option) any later version. --* *-- --* *-- This program is distributed in the hope that it will be useful, --* *-- but WITHOUT ANY WARRANTY; without even the implied warranty of --* *-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --* *-- GNU General Public License for more details. --* *-- --* *-- You should have received a copy of the GNU General Public License --* *-- along with this program; if not, write to the Free Software --* *-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --* *-- --* *------------------------------------------------------------------------------* *------ ©2005 phpMyBitTorrent Development Team ------* *----------- http://phpmybittorrent.com -----------* *------------------------------------------------------------------------------* *----------------- Sunday, September 14, 2008 9:05 PM ---------------------* */
if (!defined('IN_PMBT')) die ("You can't access this file directly");
include"(blocks/donation.php");
include"(blocks/catlist.php");
include"(blocks/syndicate.php");
?>
|
joeroberts |
5th April 2011 06:41 |
the 3 includes are wrong
should be
|
Mahmoud |
7th April 2011 00:27 |
Quote:
Originally Posted by joeroberts
(Post 27482)
the 3 includes are wrong
should be
|
it works fine now
thanks
|
romano1 |
21st January 2012 19:41 |
|
joeroberts |
21st January 2012 19:45 |
Please what link is login giving you or are you using the quick login on the top?
|
romano1 |
21st January 2012 20:03 |
Nothing, i change the global theme, then logout, then this is shown.
|
joeroberts |
21st January 2012 20:31 |
that Image dose not show me anything can you please try to Highlight the page?
|
Nikkbu |
22nd January 2012 18:56 |
Another Liar
and yet another liar "Theme BY: Joeroberts" why do ppl lie this is my nbdemon tt theme!!!
|
LeeHowarth |
22nd January 2012 19:00 |
Just deleted your account joe from TorrentTrader if you cannot obey our rules then we certainly wont entertain anybody and before u try registeration is closed.
|
joeroberts |
22nd January 2012 19:54 |
Quote:
Originally Posted by djhowarth
(Post 32543)
Just deleted your account joe from TorrentTrader if you cannot obey our rules then we certainly wont entertain anybody and before u try registeration is closed.
|
Thanks Man Been meaning to get rid of that account!:drink:
Bump:
Quote:
Originally Posted by Nikkbu
(Post 32542)
and yet another liar "Theme BY: Joeroberts" why do ppl lie this is my nbdemon tt theme!!!
|
Please recheck the files!
|
zacho56 |
11th March 2012 15:56 |
Hey I get this weird code pop up
Hey after installation and the usercp2.php im still getting this
Code:
{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf360 {\fonttbl} {\colortbl;\red255\green255\blue255;} \margl1440\margr1440\vieww9000\viewh8400\viewkind0 }
Any ideas?
|
Fynnon |
11th March 2012 17:28 |
Quote:
Originally Posted by Nikkbu
(Post 32542)
and yet another liar "Theme BY: Joeroberts" why do ppl lie this is my nbdemon tt theme!!!
|
it`s clearly inspired by your TT theme but it still holds your copyright at the bottom so i don`t see ther problem
main.php - line 580:
PHP Code:
print ("Theme By: Nikkbu <BR><a href=backend.php?op=last><img src=".$siteurl.
P.S. this is like someone from Demonoid would come and say you stole their theme...which was initially made for TBDEV
|
joeroberts |
11th March 2012 18:51 |
Quote:
Originally Posted by zacho56
(Post 33647)
Hey after installation and the usercp2.php im still getting this
Code:
{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf360 {\fonttbl} {\colortbl;\red255\green255\blue255;} \margl1440\margr1440\vieww9000\viewh8400\viewkind0 }
Any ideas?
|
Please post the usercp.php your using so we can check it.
|
zacho56 |
11th March 2012 19:06 |
Reinstall and now this
Quote:
Originally Posted by joeroberts
(Post 33672)
Please post the usercp.php your using so we can check it.
|
Hey. I will post that as soon as i get this going again. I reinstalled the files and when I go to setup, i get this:
Quote:
403 Forbidden
Access is forbidden to the requested page:
66.7.217.171/~wickedaw/setup/index.php (port 80)
Please forward this error screen to 66.7.217.171's WebMaster.
|
Any suggestions for this? If I can get my site up and running with your help here today I will make a nice donation for sure :)
|
DAKz |
11th March 2012 19:49 |
who is he?
Quote:
Please forward this error screen to 66.7.217.171's WebMaster.
|
Every once in a while i get a inform the webmaster error as well not on this fine code but on other things, so how about it Joerobberts, is there a staff position for "Webmaster" so we can send them all this stuff that requires a webmaster?
|
joeroberts |
11th March 2012 20:15 |
Is this error seen threw phpMyBitTorrent or threw default web page?
looks like you need to set folder permission.
|
zacho56 |
11th March 2012 20:21 |
Quote:
Originally Posted by joeroberts
(Post 33675)
Is this error seen threw phpMyBitTorrent or threw default web page?
looks like you need to set folder permission.
|
Hey its a blue screen, i think its broswer. i set the permissions that were in the readme to 777. do I need to set more or something different?
|
All times are GMT +2. The time now is 16:49. |
|
Powered by vBulletin® Version 3.8.11 Beta 3 Copyright ©2000 - 2024, vBulletin Solutions Inc.
|