switz
Narys
Tankas
Pranešimai: 2261
Įstojęs: 2009 Lap. 7 14:11:14
|
Parasyk i skype: gedmantas93. Idesiu 0
///M3 |
worst
Narys
Margas
Pranešimai: 111
Įstojęs: 2007 Spa. 20 22:10:06
|
Switz, niekuom nepadėjo reikia pačio kodo taškų sistemos kurį galėtu įdėti į user info panelę. 0
|
Narysx
Narys
Ekspertas
Pranešimai: 2940
Įstojęs: 2007 Rugs. 18 19:09:56
|
Įdėk user info.php kodą čia ir tos taškų sistemos MYSQL lentelės struktūrą. 0
|
worst
Narys
Margas
Pranešimai: 111
Įstojęs: 2007 Spa. 20 22:10:06
|
Prisegu taškų sistemą,o user info panel failas prisgtas pirmame poste. 0
|
Narysx
Narys
Ekspertas
Pranešimai: 2940
Įstojęs: 2007 Rugs. 18 19:09:56
|
Jei nori, kad padaryčiau, netingėk padaryti to, ko prašau. Įdėk mysql DB struktūrą. 0
|
worst
Narys
Margas
Pranešimai: 111
Įstojęs: 2007 Spa. 20 22:10:06
|
Aš nelabai suprantu apie kokią kalbi mysql DB struktūrą? Kur ją galiu rasti?
Gal manau turiu blogą taškų sistema?Gal turite kas pasiūlyti kokią tvarkingą taškų sistemą kurioje man būtų tik svarbu,kad galėčiau pervedinėti taškus,bei galėčiau įdėti taškų sistemos kodą į user info panelę,kad rodytų kiek taškų turi vartotojas.0
|
Narysx
Narys
Ekspertas
Pranešimai: 2940
Įstojęs: 2007 Rugs. 18 19:09:56
|
Mysql DB struktūra, tai lentelė kaip sudaryta. Prisijunk prie PMA (PhpMyAdmin), susirask tą taškų lentelę, paspausk browse ir padaręs screeną įmesk čia. 0
|
worst
Narys
Margas
Pranešimai: 111
Įstojęs: 2007 Spa. 20 22:10:06
|
Jei teisingai supratau tai va:
fusion_score_account
fusion_score_score
SofteriZ: Paveikslėlius dedame į frame tagus.0
|
Narysx
Narys
Ekspertas
Pranešimai: 2940
Įstojęs: 2007 Rugs. 18 19:09:56
|
user_info_panel.php
<?php
////////////////////////////
//modded by phpfusion.lt //
//By nepster //
/////////////////////////
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
include INFUSIONS."user_info_panel/locale/".$settings['locale'].".php";
$ui_img="".INFUSIONS."user_info_panel/images/";
//padarius true administravimo meniu matys paprasti administratoriai
//if true admin meniu for only super admins
$SADMIN=true;
//admin url, if false will be all navigation of administration
$simple_admin_url=false;
if (iMEMBER) {
openside($userdata['user_name']);
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count) { echo "<br /><br /><div style='text-align:center'><strong><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['global_125'], $msg_count).($msg_count == 1 ? $locale['global_126'] : $locale['global_127'])."</a></strong></div>\n";
}
if ($userdata['user_avatar'] != "") {
echo "<center><img border='0' src='".BASEDIR."images/avatars/".$userdata['user_avatar']."'></center>\n";
} else {
echo "<center><img border='0' src='{$ui_img}noimage.gif'></center>\n";
}
if($simple_admin_url!=false) {
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo"<br><a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['global_123']."</a><br>";
}
} else {
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C" || !$SADMIN=true)){
include INFUSIONS."user_info_panel/navigation.php";
}
}
echo "<script>
var linktext=new Array()
linktext[0]=\"".THEME_BULLET.$locale['ui02']."\"
linktext[1]=\"".THEME_BULLET.$locale['ui03']."\"
linktext[2]=\"".THEME_BULLET.$locale['ui04']."\"
linktext[3]=\"".THEME_BULLET.$locale['ui05']."\"
var ns6=document.getElementById&&!document.all
var ie=document.all
function show_text(thetext, whichdiv){
if (ie) eval(\"document.all.\"+whichdiv).innerHTML=linktext[thetext]
else if (ns6) document.getElementById(whichdiv).innerHTML=linktext[thetext]
}
function resetit(whichdiv){
if (ie) eval(\"document.all.\"+whichdiv).innerHTML=' '
else if (ns6) document.getElementById(whichdiv).innerHTML=' '
}
</script>";
echo "<br><a href='".BASEDIR."edit_profile.php' class='side'>
<img src='{$ui_img}profile.png' onMouseover=\"show_text(0,'div2')\" onMouseout=\"resetit('div2')\" border='0'></a>";
echo "<a href='".BASEDIR."messages.php' class='side'>
<img src='{$ui_img}private.png' onMouseover=\"show_text(1,'div2')\" onMouseout=\"resetit('div2')\" border='0'></a>";
echo "<a href='".BASEDIR."members.php' class='side'>
<img src='{$ui_img}users.png' onMouseover=\"show_text(2,'div2')\" onMouseout=\"resetit('div2')\" border='0'></a>";
echo "<a href='".BASEDIR."setuser.php?logout=yes' class='side'>
<img src='{$ui_img}exit.png' onMouseover=\"show_text(3,'div2')\" onMouseout=\"resetit('div2')\" border='0'></a>\n<br>";
echo "<i><span id=\"div2\"></span></i>";
echo "<br><hr>";
//ranks
require_once "exp_include.php";
showexp($userdata['user_id'],$userdata['user_posts'], "1");
$pts= dbrows(dbquery("SELECT acc_score FROM fusion_score_account WHERE `acc_user_id`='".$userdata['user_id']."'"));
echo "Taskai: <b>$pts</b>";
} else {
openside($locale['global_100']);
echo "<div style='text-align:center'>\n";
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>\n";
echo $locale['global_101']."<br />\n<input type='text' name='user_name' class='textbox' style='width:100px' /><br />\n";
echo $locale['global_102']."<br />\n<input type='password' name='user_pass' class='textbox' style='width:100px' />
<br />\n";
echo "<input type='checkbox' name='remember_me' value='y' title='".$locale['global_103']."' style='vertical-align:middle;' />\n";
echo "<input type='submit' name='login' value='".$locale['global_104']."' class='button' /><br />\n";
echo "</form>\n<br />\n";
if ($settings['enable_registration']) {
echo "".$locale['global_105']."<br /><br />\n";
}
echo $locale['global_106']."\n</div>\n";
}
echo "<style type=\"text/css\">
#dhtmltooltip{
position: absolute;
width: 150px;
border: 1px solid #c2d0d8;
padding: 2px;
background-color: lightyellow;
visibility: hidden;
z-index: 100;
filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);
}
</style>";
echo "<div id=\"dhtmltooltip\"></div><script type=\"text/javascript\">
var offsetxpoint=-60
var offsetypoint=20
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all[\"dhtmltooltip\"] : document.getElementById? document.getElementById(\"dhtmltooltip\") : \"\"
function ietruebody(){
return (document.compatMode && document.compatMode!=\"BackCompat\")? document.documentElement : document.body
}
function ddrivetip(thetext, thecolor, thewidth){
if (ns6||ie){
if (typeof thewidth!=\"undefined\") tipobj.style.width=thewidth+\"px\"
if (typeof thecolor!=\"undefined\" && thecolor!=\"\") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}
function positiontip(e){
if (enabletip){
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20
var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000
if (rightedge<tipobj.offsetWidth)
tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+\"px\" : window.pageXOffset+e.clientX-tipobj.offsetWidth+\"px\"
else if (curX<leftedge)
tipobj.style.left=\"5px\"
else
tipobj.style.left=curX+offsetxpoint+\"px\"
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+\"px\" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+\"px\"
else
tipobj.style.top=curY+offsetypoint+\"px\"
tipobj.style.visibility=\"visible\"
}
}
function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility=\"hidden\"
tipobj.style.left=\"-1000px\"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}
document.onmousemove=positiontip
</script>";
closeside();
?>
0
|
worst
Narys
Margas
Pranešimai: 111
Įstojęs: 2007 Spa. 20 22:10:06
|
Viskas būtų labai gerai,bet kai persiunčiu taškus pvz:20 nusiunčiu vis tiek vartotujui rodo "1"? 0
|
Narysx
Narys
Ekspertas
Pranešimai: 2940
Įstojęs: 2007 Rugs. 18 19:09:56
|
Tai gal jis tik 1 tašką turi? :D
Nu pamėgink dar taip:
<?php
////////////////////////////
//modded by phpfusion.lt //
//By nepster //
/////////////////////////
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
include INFUSIONS."user_info_panel/locale/".$settings['locale'].".php";
$ui_img="".INFUSIONS."user_info_panel/images/";
//padarius true administravimo meniu matys paprasti administratoriai
//if true admin meniu for only super admins
$SADMIN=true;
//admin url, if false will be all navigation of administration
$simple_admin_url=false;
if (iMEMBER) {
openside($userdata['user_name']);
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count) { echo "<br /><br /><div style='text-align:center'><strong><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['global_125'], $msg_count).($msg_count == 1 ? $locale['global_126'] : $locale['global_127'])."</a></strong></div>\n";
}
if ($userdata['user_avatar'] != "") {
echo "<center><img border='0' src='".BASEDIR."images/avatars/".$userdata['user_avatar']."'></center>\n";
} else {
echo "<center><img border='0' src='{$ui_img}noimage.gif'></center>\n";
}
if($simple_admin_url!=false) {
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo"<br><a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['global_123']."</a><br>";
}
} else {
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C" || !$SADMIN=true)){
include INFUSIONS."user_info_panel/navigation.php";
}
}
echo "<script>
var linktext=new Array()
linktext[0]=\"".THEME_BULLET.$locale['ui02']."\"
linktext[1]=\"".THEME_BULLET.$locale['ui03']."\"
linktext[2]=\"".THEME_BULLET.$locale['ui04']."\"
linktext[3]=\"".THEME_BULLET.$locale['ui05']."\"
var ns6=document.getElementById&&!document.all
var ie=document.all
function show_text(thetext, whichdiv){
if (ie) eval(\"document.all.\"+whichdiv).innerHTML=linktext[thetext]
else if (ns6) document.getElementById(whichdiv).innerHTML=linktext[thetext]
}
function resetit(whichdiv){
if (ie) eval(\"document.all.\"+whichdiv).innerHTML=' '
else if (ns6) document.getElementById(whichdiv).innerHTML=' '
}
</script>";
echo "<br><a href='".BASEDIR."edit_profile.php' class='side'>
<img src='{$ui_img}profile.png' onMouseover=\"show_text(0,'div2')\" onMouseout=\"resetit('div2')\" border='0'></a>";
echo "<a href='".BASEDIR."messages.php' class='side'>
<img src='{$ui_img}private.png' onMouseover=\"show_text(1,'div2')\" onMouseout=\"resetit('div2')\" border='0'></a>";
echo "<a href='".BASEDIR."members.php' class='side'>
<img src='{$ui_img}users.png' onMouseover=\"show_text(2,'div2')\" onMouseout=\"resetit('div2')\" border='0'></a>";
echo "<a href='".BASEDIR."setuser.php?logout=yes' class='side'>
<img src='{$ui_img}exit.png' onMouseover=\"show_text(3,'div2')\" onMouseout=\"resetit('div2')\" border='0'></a>\n<br>";
echo "<i><span id=\"div2\"></span></i>";
echo "<br><hr>";
//ranks
require_once "exp_include.php";
showexp($userdata['user_id'],$userdata['user_posts'], "1");
$ttt = mysql_query("SELECT acc_score from fusion_score_account WHERE acc_user_id='".$userdata['user_id']."'");
while ($q = mysql_fetch_array($ttt))
{
$pts = $q['acc_score'];
}
echo "Taskai: <b>$pts</b>";
} else {
openside($locale['global_100']);
echo "<div style='text-align:center'>\n";
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>\n";
echo $locale['global_101']."<br />\n<input type='text' name='user_name' class='textbox' style='width:100px' /><br />\n";
echo $locale['global_102']."<br />\n<input type='password' name='user_pass' class='textbox' style='width:100px' />
<br />\n";
echo "<input type='checkbox' name='remember_me' value='y' title='".$locale['global_103']."' style='vertical-align:middle;' />\n";
echo "<input type='submit' name='login' value='".$locale['global_104']."' class='button' /><br />\n";
echo "</form>\n<br />\n";
if ($settings['enable_registration']) {
echo "".$locale['global_105']."<br /><br />\n";
}
echo $locale['global_106']."\n</div>\n";
}
echo "<style type=\"text/css\">
#dhtmltooltip{
position: absolute;
width: 150px;
border: 1px solid #c2d0d8;
padding: 2px;
background-color: lightyellow;
visibility: hidden;
z-index: 100;
filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);
}
</style>";
echo "<div id=\"dhtmltooltip\"></div><script type=\"text/javascript\">
var offsetxpoint=-60
var offsetypoint=20
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all[\"dhtmltooltip\"] : document.getElementById? document.getElementById(\"dhtmltooltip\") : \"\"
function ietruebody(){
return (document.compatMode && document.compatMode!=\"BackCompat\")? document.documentElement : document.body
}
function ddrivetip(thetext, thecolor, thewidth){
if (ns6||ie){
if (typeof thewidth!=\"undefined\") tipobj.style.width=thewidth+\"px\"
if (typeof thecolor!=\"undefined\" && thecolor!=\"\") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}
function positiontip(e){
if (enabletip){
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20
var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000
if (rightedge<tipobj.offsetWidth)
tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+\"px\" : window.pageXOffset+e.clientX-tipobj.offsetWidth+\"px\"
else if (curX<leftedge)
tipobj.style.left=\"5px\"
else
tipobj.style.left=curX+offsetxpoint+\"px\"
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+\"px\" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+\"px\"
else
tipobj.style.top=curY+offsetypoint+\"px\"
tipobj.style.visibility=\"visible\"
}
}
function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility=\"hidden\"
tipobj.style.left=\"-1000px\"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}
document.onmousemove=positiontip
</script>";
closeside();
?>
Jei neis, tai nžn.0
Redagavo Narysx 2010 Spa. 31 18:10:27 |
worst
Narys
Margas
Pranešimai: 111
Įstojęs: 2007 Spa. 20 22:10:06
|
Turi daugiau taškų. Antrą variantą įdėjau tai išmetė: Parse error: syntax error, unexpected '{' in /home/vladyks/domains/tinklapis.lt/public_html/infusions/user_info_panel/user_info_panel.php on line 137 0
|
Narysx
Narys
Ekspertas
Pranešimai: 2940
Įstojęs: 2007 Rugs. 18 19:09:56
|
Redagavau. ,........... 0
|
worst
Narys
Margas
Pranešimai: 111
Įstojęs: 2007 Spa. 20 22:10:06
|
Viskas veikia,dėkui tau. +11. 0
|
worst
Narys
Margas
Pranešimai: 111
Įstojęs: 2007 Spa. 20 22:10:06
|
Dar viena problema,kai vartotojas turi 0 taškų jam rodo : Notice: Undefined variable: pts in /home/vartotojas/domains/tinklapis.lt/public_html/infusions/user_info_panel/user_info_panel.php on line 138 0
|
Narysx
Narys
Ekspertas
Pranešimai: 2940
Įstojęs: 2007 Rugs. 18 19:09:56
|
Susirask tam faile "Taskai: $pts" ir pakeisk į "Taskai: @$pts" 0
|
worst
Narys
Margas
Pranešimai: 111
Įstojęs: 2007 Spa. 20 22:10:06
|
Nieko tai nepakeičia.Dabar pastebėjau kai vartotojas yra buvęs gavęs taškų ir aš juos panaikinu tada jam viskas tvarkoje rodo tiesiog 0,o kurie vartotojai kaip užsiregistravo nebuvo taškų sistemos paliesti,jiems rodo tą errorą.Įdomiai čia. 0
|
Narysx
Narys
Ekspertas
Pranešimai: 2940
Įstojęs: 2007 Rugs. 18 19:09:56
|
Tas @ turi sutvarkyt... Tuomet nuimk ten kur prieš tai sakiau, ir čia pakeisk:
$pts = $q['acc_score'];
į
$@pts = $q['acc_score'];0
|
worst
Narys
Margas
Pranešimai: 111
Įstojęs: 2007 Spa. 20 22:10:06
|
Vis tiek,bet dabar pastebėjau kur pačioj pradžioje ieškojome kodo rodė 137 eorrą dabar rodo 138.
Notice: Undefined variable: pts in /home/vartotojas/domains/tinklapis.lt/public_html/infusions/user_info_panel/user_info_panel.php on line 138
Taškai: @0
|
Narysx
Narys
Ekspertas
Pranešimai: 2940
Įstojęs: 2007 Rugs. 18 19:09:56
|
:| Nesuprantu aš, ką tu ten darai, kad tau mėto tuos errorus. Va normalus kodas, ir nesakyk, kad neveikia. :D
<?php
////////////////////////////
//modded by phpfusion.lt //
//By nepster //
/////////////////////////
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
include INFUSIONS."user_info_panel/locale/".$settings['locale'].".php";
$ui_img="".INFUSIONS."user_info_panel/images/";
//padarius true administravimo meniu matys paprasti administratoriai
//if true admin meniu for only super admins
$SADMIN=true;
//admin url, if false will be all navigation of administration
$simple_admin_url=false;
if (iMEMBER) {
openside($userdata['user_name']);
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count) { echo "<br /><br /><div style='text-align:center'><strong><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['global_125'], $msg_count).($msg_count == 1 ? $locale['global_126'] : $locale['global_127'])."</a></strong></div>\n";
}
if ($userdata['user_avatar'] != "") {
echo "<center><img border='0' src='".BASEDIR."images/avatars/".$userdata['user_avatar']."'></center>\n";
} else {
echo "<center><img border='0' src='{$ui_img}noimage.gif'></center>\n";
}
if($simple_admin_url!=false) {
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo"<br><a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['global_123']."</a><br>";
}
} else {
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C" || !$SADMIN=true)){
include INFUSIONS."user_info_panel/navigation.php";
}
}
echo "<script>
var linktext=new Array()
linktext[0]=\"".THEME_BULLET.$locale['ui02']."\"
linktext[1]=\"".THEME_BULLET.$locale['ui03']."\"
linktext[2]=\"".THEME_BULLET.$locale['ui04']."\"
linktext[3]=\"".THEME_BULLET.$locale['ui05']."\"
var ns6=document.getElementById&&!document.all
var ie=document.all
function show_text(thetext, whichdiv){
if (ie) eval(\"document.all.\"+whichdiv).innerHTML=linktext[thetext]
else if (ns6) document.getElementById(whichdiv).innerHTML=linktext[thetext]
}
function resetit(whichdiv){
if (ie) eval(\"document.all.\"+whichdiv).innerHTML=' '
else if (ns6) document.getElementById(whichdiv).innerHTML=' '
}
</script>";
echo "<br><a href='".BASEDIR."edit_profile.php' class='side'>
<img src='{$ui_img}profile.png' onMouseover=\"show_text(0,'div2')\" onMouseout=\"resetit('div2')\" border='0'></a>";
echo "<a href='".BASEDIR."messages.php' class='side'>
<img src='{$ui_img}private.png' onMouseover=\"show_text(1,'div2')\" onMouseout=\"resetit('div2')\" border='0'></a>";
echo "<a href='".BASEDIR."members.php' class='side'>
<img src='{$ui_img}users.png' onMouseover=\"show_text(2,'div2')\" onMouseout=\"resetit('div2')\" border='0'></a>";
echo "<a href='".BASEDIR."setuser.php?logout=yes' class='side'>
<img src='{$ui_img}exit.png' onMouseover=\"show_text(3,'div2')\" onMouseout=\"resetit('div2')\" border='0'></a>\n<br>";
echo "<i><span id=\"div2\"></span></i>";
echo "<br><hr>";
//ranks
require_once "exp_include.php";
showexp($userdata['user_id'],$userdata['user_posts'], "1");
$ttt = mysql_query("SELECT acc_score from fusion_score_account WHERE acc_user_id='".$userdata['user_id']."'");
while ($q = mysql_fetch_array($ttt))
{
@$pts = $q['acc_score'];
}
echo "Taskai: <b>$pts</b>";
} else {
openside($locale['global_100']);
echo "<div style='text-align:center'>\n";
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>\n";
echo $locale['global_101']."<br />\n<input type='text' name='user_name' class='textbox' style='width:100px' /><br />\n";
echo $locale['global_102']."<br />\n<input type='password' name='user_pass' class='textbox' style='width:100px' />
<br />\n";
echo "<input type='checkbox' name='remember_me' value='y' title='".$locale['global_103']."' style='vertical-align:middle;' />\n";
echo "<input type='submit' name='login' value='".$locale['global_104']."' class='button' /><br />\n";
echo "</form>\n<br />\n";
if ($settings['enable_registration']) {
echo "".$locale['global_105']."<br /><br />\n";
}
echo $locale['global_106']."\n</div>\n";
}
echo "<style type=\"text/css\">
#dhtmltooltip{
position: absolute;
width: 150px;
border: 1px solid #c2d0d8;
padding: 2px;
background-color: lightyellow;
visibility: hidden;
z-index: 100;
filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);
}
</style>";
echo "<div id=\"dhtmltooltip\"></div><script type=\"text/javascript\">
var offsetxpoint=-60
var offsetypoint=20
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all[\"dhtmltooltip\"] : document.getElementById? document.getElementById(\"dhtmltooltip\") : \"\"
function ietruebody(){
return (document.compatMode && document.compatMode!=\"BackCompat\")? document.documentElement : document.body
}
function ddrivetip(thetext, thecolor, thewidth){
if (ns6||ie){
if (typeof thewidth!=\"undefined\") tipobj.style.width=thewidth+\"px\"
if (typeof thecolor!=\"undefined\" && thecolor!=\"\") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}
function positiontip(e){
if (enabletip){
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20
var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000
if (rightedge<tipobj.offsetWidth)
tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+\"px\" : window.pageXOffset+e.clientX-tipobj.offsetWidth+\"px\"
else if (curX<leftedge)
tipobj.style.left=\"5px\"
else
tipobj.style.left=curX+offsetxpoint+\"px\"
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+\"px\" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+\"px\"
else
tipobj.style.top=curY+offsetypoint+\"px\"
tipobj.style.visibility=\"visible\"
}
}
function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility=\"hidden\"
tipobj.style.left=\"-1000px\"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}
document.onmousemove=positiontip
</script>";
closeside();
?>
0
|
worst
Narys
Margas
Pranešimai: 111
Įstojęs: 2007 Spa. 20 22:10:06
|
Na neveikia..141 klaidą rodo..O tu pats bandei kur įdėti su šiuo kodu,ir naujai užregistruotu vartotujui įeiti ir nepaliesti taškų sistemos jam,ir ką tau rodo,ar gi ne klaidas user info panelėje? 0
|
worst
Narys
Margas
Pranešimai: 111
Įstojęs: 2007 Spa. 20 22:10:06
|
Gal čia reikią tvarkyti tą pirmąjį variantą kur tik rodo visiems 0,bet bent ten nebuvo jokių erorų.. Arba ar būtų galima padaryti,kad už registraciją duotų tarkim 5 taškus ir tada visi vartotojai kurie prisiregistruos automatiškai gaus 5 taškus ir niekam neteks žiūrėti į errorus.. 0
|