Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Tai va noriu pasidaryti po registracijos kad atsisiutu pm žinute bet nžn man čia nesigauna gal kas padės va register.php:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."register.php";
include LOCALE.LOCALESET."user_fields.php";
if (iMEMBER) fallback("index.php");
if ($settings['enable_registration']) {
if (isset($activate)) {
if (!preg_match("/^[0-9a-z]{32}$/", $activate)) fallback("index.php");
$result = dbquery("SELECT * FROM ".$db_prefix."new_users WHERE user_code='$activate'");
if (dbrows($result) != 0) {
$data = dbarray($result);
$user_info = unserialize($data['user_info']);
$activation = $settings['admin_activation'] == "1" ? "2" : "0";
$result = dbquery("INSERT INTO ".$db_prefix."users (user_name, user_password, user_email, user_hide_email, user_location, user_birthdate, user_aim, user_icq, user_msn, user_yahoo, user_web, user_theme, user_offset, user_avatar, user_sig, user_posts, user_joined, user_lastvisit, user_ip, user_rights, user_groups, user_level, user_status) VALUES('".$user_info['user_name']."', '".$user_info['user_password']."', '".$user_info['user_email']."', '".$user_info['user_hide_email']."', '', '0000-00-00', '', '', '', '', '', 'Default', '0', '', '', '0', '".time()."', '0', '".USER_IP."', '', '', '101', '$activation')");
$result = dbquery("DELETE FROM ".$db_prefix."new_users WHERE user_code='$activate'");
opentable($locale['401']);
if ($settings['admin_activation'] == "1") {
echo "<center><br>\n".$locale['455']."<br><br>\n".$locale['453']."<br><br>\n</center>\n";
} else {
echo "<center><br>\n".$locale['455']."<br><br>\n".$locale['452']."<br><br>\n</center>\n";
}
closetable();
} else {
fallback("index.php");
}
} else if (isset($_POST['register'])) {
$error = "";
$username = stripinput(trim(eregi_replace(" +", " ", $_POST['username'])));
$email = stripinput(trim(eregi_replace(" +", "", $_POST['email'])));
$password1 = stripinput(trim(eregi_replace(" +", "", $_POST['password1'])));
if ($username == "" || $password1 == "" || $email == "") $error .= $locale['402']."<br>\n";
if (!preg_match("/^[-0-9A-Z_@\s]+$/i", $username)) $error .= $locale['403']."<br>\n";
if (preg_match("/^[0-9A-Z@]{6,20}$/i", $password1)) {
if ($password1 != $_POST['password2']) $error .= $locale['404']."<br>\n";
} else {
$error .= $locale['405']."<br>\n";
}
if (!preg_match("/^[-0-9A-Z_\.]{1,50}@([-0-9A-Z_\.]+\.){1,50}([0-9A-Z]){2,4}$/i", $email)) {
$error .= $locale['406']."<br>\n";
}
$email_domain = substr(strrchr($email, "@"), 1);
$result = dbquery("SELECT * FROM ".$db_prefix."blacklist WHERE blacklist_email='".$email."' OR blacklist_email='$email_domain'");
if (dbrows($result) != 0) $error = $locale['411']."<br>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_name='$username'");
if (dbrows($result) != 0) $error = $locale['407']."<br>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_email='".$email."'");
if (dbrows($result) != 0) $error = $locale['408']."<br>\n";
if ($settings['email_verification'] == "1") {
$result = dbquery("SELECT * FROM ".$db_prefix."new_users");
while ($new_users = dbarray($result)) {
$user_info = unserialize($new_users['user_info']);
if ($new_users['user_email'] == $email) { $error = $locale['409']."<br>\n"; }
if ($user_info['user_name'] == $username) { $error = $locale['407']."<br>\n"; break; }
}
}
if ($settings['display_validation'] == "1") {
if (!check_captcha($_POST['captcha_encode'], $_POST['captcha_code'])) {
$error .= $locale['410']."<br />\n";
}
}
$user_hide_email = isNum($_POST['user_hide_email']) ? $_POST['user_hide_email'] : "1";
if ($settings['email_verification'] == "0") {
$user_location = isset($_POST['user_location']) ? stripinput(trim($_POST['user_location'])) : "";
if ($_POST['user_month'] != 0 && $_POST['user_day'] != 0 && $_POST['user_year'] != 0) {
$user_birthdate = (isNum($_POST['user_year']) ? $_POST['user_year'] : "0000")
."-".(isNum($_POST['user_month']) ? $_POST['user_month'] : "00")
."-".(isNum($_POST['user_day']) ? $_POST['user_day'] : "00");
} else {
$user_birthdate = "0000-00-00";
}
$user_aim = isset($_POST['user_aim']) ? stripinput(trim($_POST['user_aim'])) : "";
$user_icq = isset($_POST['user_icq']) ? stripinput(trim($_POST['user_icq'])) : "";
$user_msn = isset($_POST['user_msn']) ? stripinput(trim($_POST['user_msn'])) : "";
$user_yahoo = isset($_POST['user_yahoo']) ? stripinput(trim($_POST['user_yahoo'])) : "";
$user_web = isset($_POST['user_web']) ? stripinput(trim($_POST['user_web'])) : "";
$user_theme = stripinput($_POST['user_theme']);
$user_offset = is_numeric($_POST['user_offset']) ? $_POST['user_offset'] : "0";
$user_sig = isset($_POST['user_sig']) ? stripinput(trim($_POST['user_sig'])) : "";
}
if ($error == "") {
if ($settings['email_verification'] == "1") {
require_once INCLUDES."sendmail_include.php";
mt_srand((double)microtime()*1000000); $salt = "";
for ($i=0;$i<=7;$i++) { $salt .= chr(rand(97, 122)); }
$user_code = md5($email.$salt);
$activation_url = $settings['siteurl']."register.php?activate=".$user_code;
if (sendemail($username,$email,$settings['siteusername'],$settings['siteemail'],$locale['449'], $locale['450'].$activation_url)) {
$user_info = serialize(array(
"user_name" => $username,
"user_password" => md5(md5($password1)),
"user_email" => $email,
"user_hide_email" => isNum($_POST['user_hide_email']) ? $_POST['user_hide_email'] : "1"
));
$result = dbquery("INSERT INTO ".$db_prefix."new_users (user_code, user_email, user_datestamp, user_info) VALUES('$user_code', '".$email."', '".time()."', '$user_info')");
opentable($locale['400']);
echo "<center><br>\n".$locale['454']."<br><br>\n</center>\n";
closetable();
} else {
opentable($locale['456']);
echo "<center><br>\n".$locale['457']."<br><br>\n</center>\n";
closetable();
}
} else {
$activation = $settings['admin_activation'] == "1" ? "2" : "0";
$result = dbquery("INSERT INTO ".$db_prefix."users (user_name, user_password, user_email, user_hide_email, user_location, user_birthdate, user_aim, user_icq, user_msn, user_yahoo, user_web, user_theme, user_offset, user_avatar, user_sig, user_posts, user_joined, user_lastvisit, user_ip, user_rights, user_groups, user_level, user_status) VALUES('$username', '".md5(md5($password1))."', '".$email."', '$user_hide_email', '$user_location', '$user_birthdate', '$user_aim', '$user_icq', '$user_msn', '$user_yahoo', '$user_web', '$user_theme', '$user_offset', '', '$user_sig', '0', '".time()."', '0', '".USER_IP."', '', '', '101', '$activation')");
opentable($locale['400']);
if ($settings['admin_activation'] == "1") {
echo "<center><br>\n".$locale['451']."<br><br>\n".$locale['453']."<br><br>\n</center>\n";
} else {
echo "<center><br>\n".$locale['451']."<br><br>\n".$locale['452']."<br><br>\n</center>\n";
}
closetable();
}
} else {
opentable($locale['456']);
echo "<center><br>\n".$locale['458']."<br><br>\n$error<br>\n<a href='".FUSION_SELF."'>".$locale['459']."</a></div></br>\n";
closetable();
}
} else {
if ($settings['email_verification'] == "0") {
$theme_files = makefilelist(THEMES, ".|..", true, "folders");
array_unshift($theme_files, "Default");
$offset_list = "";
for ($i=-13;$i<17;$i++) {
if ($i > 0) { $offset="+".$i; } else { $offset=$i; }
$offset_list .= "<option".($offset == "0" ? " selected" : "").">$offset</option>\n";
}
}
opentable($locale['400']);
echo "<center>".$locale['500']."\n";
if ($settings['email_verification'] == "1") echo $locale['501']."\n";
echo $locale['502'];
if ($settings['email_verification'] == "1") echo "\n".$locale['503'];
echo "</center><br>
<table align='center' cellpadding='0' cellspacing='0'>
<form name='inputform' method='post' action='".FUSION_SELF."' onSubmit='return ValidateForm(this)'>
<tr>
<td class='tbl'>".$locale['u001']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'><input type='text' name='username' maxlength='30' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u002']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'><input type='password' name='password1' maxlength='20' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u004']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'><input type='password' name='password2' maxlength='20' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u005']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'><input type='text' name='email' maxlength='100' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u006']."</td>
<td class='tbl'><input type='radio' name='user_hide_email' value='1'>".$locale['u007']."
<input type='radio' name='user_hide_email' value='0' checked>".$locale['u008']."</td>
</tr>\n";
if ($settings['display_validation'] == "1") {
echo "<tr>\n<td class='tbl'>".$locale['504']."</td>\n<td class='tbl'>";
echo make_captcha();
echo "</td>
</tr>
<tr>
<td class='tbl'>".$locale['505']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'><input type='text' name='captcha_code' class='textbox' style='width:100px'></td>
</tr>\n";
}
if ($settings['email_verification'] == "0") {
echo "<tr>
<td class='tbl'>".$locale['u009']."</td>
<td class='tbl'><input type='text' name='user_location' maxlength='50' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u010']." <span class='small2'>(mm/dd/yyyy)</span></td>
<td class='tbl'><select name='user_month' class='textbox'>\n<option> </option>\n";
for ($i=1;$i<=12;$i++) echo "<option".($user_month == $i ? " selected" : "").">$i</option>\n";
echo "</select>\n<select name='user_day' class='textbox'>\n<option> </option>\n";
for ($i=1;$i<=31;$i++) echo "<option".($user_day == $i ? " selected" : "").">$i</option>\n";
echo "</select>\n<select name='user_year' class='textbox'>\n<option> </option>\n";
for ($i=1900;$i<=2004;$i++) echo "<option".($user_year == $i ? " selected" : "").">$i</option>\n";
echo "</select>
</td>
</tr>
<tr>
<td class='tbl'>".$locale['u021']."</td>
<td class='tbl'><input type='text' name='user_aim' maxlength='16' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u011']."</td>
<td class='tbl'><input type='text' name='user_icq' maxlength='15' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u012']."</td>
<td class='tbl'><input type='text' name='user_msn' maxlength='100' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u013']."</td>
<td class='tbl'>
<input type='text' name='user_yahoo' maxlength='100' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u014']."</td>
<td class='tbl'><input type='text' name='user_web' maxlength='100' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u015']."</td>
<td class='tbl'><select name='user_theme' class='textbox' style='width:200px;'>
".makefileopts($theme_files)."
</select></td>
</tr>
<tr>
<td class='tbl'>".$locale['u016']."</td>
<td class='tbl'><select name='user_offset' class='textbox'>
$offset_list</select></td>
</tr>
<tr>
<td valign='top'>".$locale['u020']."</td>
<td class='tbl'>
<textarea name='user_sig' rows='5' cols='53' class='textbox'>".$userdata['user_sig']."</textarea><br>
<input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onClick=\"addText('user_sig', '', '');\">
<input type='button' value='i' class='button' style='font-style:italic;width:25px;' onClick=\"addText('user_sig', '', '');\">
<input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onClick=\"addText('user_sig', '', '');\">
<input type='button' value='url' class='button' style='width:30px;' onClick=\"addText('user_sig', '[url]', '[/url]');\">
<input type='button' value='mail' class='button' style='width:35px;' onClick=\"addText('user_sig', '[mail]', '[/mail]');\">
<input type='button' value='img' class='button' style='width:30px;' onClick=\"addText('user_sig', '[img]', '[/img]');\">
<input type='button' value='center' class='button' style='width:45px;' onClick=\"addText('user_sig', '', '');\">
<input type='button' value='small' class='button' style='width:40px;' onClick=\"addText('user_sig', '', '');\">
</td>
</tr>\n";
}
echo "<tr>
<td align='center' colspan='2'><br>
<input type='submit' name='register' value='".$locale['506']."' class='button'>
</td>
</tr>
</form>
</table>";
closetable();
echo "<script language='JavaScript'>
function ValidateForm(frm) {
if (frm.username.value==\"\") {
alert(\"".$locale['550']."\");
return false;
}
if (frm.password1.value==\"\") {
alert(\"".$locale['551']."\");
return false;
}
if (frm.email.value==\"\") {
alert(\"".$locale['552']."\");
return false;
}
}
</script>\n";
}
} else {
opentable($locale['400']);
echo "<center><br>\n".$locale['507']."<br><br>\n</center>\n";
closetable();
}
require_once "side_right.php";
require_once "footer.php";
?>
O va kodas kuri reikia tierpti bet man nk nesigauna:
function sendwelcomepm($id)
{
$wpmq=dbquery("SELECT * FROM `".DB_PREFIX."users` WHERE `user_id`= '".$id."'");
$wpmd=dbarray($wpmq);
//Žinutės apipavidalimas
$subject='Sveiki atvykę į http://';
$message= 'Sveiki atvykę į svetainę, linkime gero
naršymo.
';
}
code and design solutions tinklalapių kūrimas |
ramon
Narys
Ekspertas
Pranešimai: 2977
Įstojęs: 2006 Gru. 18 11:12:50
|
Tavo papostinta funk. "sendwelcomepm" yra pusiau parasyta nes nera uzklausos kuri insertintu nauja msg...
|
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
ramon parašė:
Tavo papostinta funk. "sendwelcomepm" yra pusiau parasyta nes nera uzklausos kuri insertintu nauja msg...
na radau čia aš tą koda šiame puslapyje ir ten parašyta apie 41 eilute
nei aš ją randu nei ką ir išvis kažkoke nesamone gaunas...
tai čia niekaip neišeis padaryti ?
code and design solutions tinklalapių kūrimas |
ramon
Narys
Ekspertas
Pranešimai: 2977
Įstojęs: 2006 Gru. 18 11:12:50
|
Papildik funkcija, pres } prirasik sia uzklausa:
mysql_query("INSERT INTO {DB_PREFIX}messages VALUES ('', '{$wpmd['user_id']}', '0', '{$subject}', '{$message}', '', '0', '".time()."' , '0')");
ir poto panauduok ta funk pritaikius/irasius ID.
ps nebeatsimenu phpf sql strukturos...
|
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Dekingas
code and design solutions tinklalapių kūrimas |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Taigi turiu dar viena klausima čia dėl forumo rangu sistemos man čia su viewthread failu negerai surandu aš tą eilute viskas čiki bet kai idedu tada iškart error echo "<span class='alt'>".Rangas." ".ShowRank($data['user_posts'],$data['user_rank'])."<br>";
Gal galit padėt?
code and design solutions tinklalapių kūrimas |
ramon
Narys
Ekspertas
Pranešimai: 2977
Įstojęs: 2006 Gru. 18 11:12:50
|
papostink dar pora eiluciu pres ir po sios eilutes...
|
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n";
if ($rows != 0) {
$result = dbquery(
"SELECT p.*, fa.attach_id, fa.attach_name, fa.attach_ext, fa.attach_size, u.*, u2.user_name AS edit_name FROM ".$db_prefix."posts p
LEFT JOIN ".$db_prefix."forum_attachments fa USING(post_id)
LEFT JOIN ".$db_prefix."users u ON p.post_author = u.user_id
LEFT JOIN ".$db_prefix."users u2 ON p.post_edituser = u2.user_id AND post_edituser > '0'
WHERE p.thread_id='$thread_id' ORDER BY post_datestamp LIMIT $rowstart,$posts_per_page"
);
$numrows = dbrows($result);
while ($data = dbarray($result)) {
$message = $data['post_message'];
if ($data['post_showsig']) { $message = $message."\n\n<hr>".$data['user_sig']; }
if ($data['post_smileys']) { $message = parsesmileys($message); }
$message = parseubb($message);
$message = nl2br($message);
if ($data['post_edittime'] != "0") {
$edituser = "<a href='../profile.php?lookup=".$data['post_edituser']."'>".$data['edit_name']."</a>";
$edittime = showdate("forumdate", $data['post_edittime']);
}
$is_mod = in_array($data['user_id'], $forum_mods) && $data['user_level'] < "102" ? true : false;
echo "<tr>
<td width='145' class='tbl2'>".$locale['501']."</td>
<td class='tbl2'><a name='post_".$data['post_id']."' id='post_".$data['post_id']."'></a>".$data['post_subject']."</td>
</tr>
<tr>
<td valign='top' rowspan='3' width='145' class='tbl1'>
<a href='".BASEDIR."skype.php?id=".$data['user_aim']."'><img src='http://mystatus.skype.com/smallicon/".$data['user_aim']."'> ".$data['user_name']."</a><br>
<span class='alt'>".($is_mod ? $locale['userf1'] : getuserlevel($data['user_level']))."</span><br><br>\n";
echo "<span class='alt'>".Rangas." ".ShowRank($data['user_posts'],$data['user_rank'])."<br>";
if ($data['user_avatar'] != "") {
echo "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."'><br><br>\n";
$height = "185";
} else {
$height = "70";
}
echo"<br>
<span class='alt'>Statusas:</span> ";
$lastseen = time() - $data['user_lastvisit'];
if($lastseen < 60) {
$lastseen = "<br><img src='".BASEDIR."forum/images/online.gif' style='vertical-align:absMiddle;' title='User is Online' alt='User is Online'></BR>";
} else {
$lastseen = "<br><img src='".BASEDIR."forum/images/offline.gif' style='vertical-align:absMiddle;' title='User is Offline' alt='User is Offline'></BR>";
}
code and design solutions tinklalapių kūrimas |
ramon
Narys
Ekspertas
Pranešimai: 2977
Įstojęs: 2006 Gru. 18 11:12:50
|
tai koki errora meta?
|
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
ramon parašė:
tai koki errora meta?
Fatal error: Call to undefined function showrank() in /home/My/puslapis-lt.com/forum/viewthread.php on line 135
o kai ta eilute išemu čiki piki bet tada rangu nerodo
code and design solutions tinklalapių kūrimas
Redagavo Jaunelis 2008 Gru. 24 02:12:04 |
ramon
Narys
Ekspertas
Pranešimai: 2977
Įstojęs: 2006 Gru. 18 11:12:50
|
nu tai i maincore.php neidejei tos funk t.y. funkcija showrank() nera surasita maincore.php, paskaitik readme.txt (jei yra) faila del viso pikto gal suprasi.
|
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Ble man reikėjo ne po kodu o prieš vieną kodą dėti ;D
code and design solutions tinklalapių kūrimas
Redagavo Jaunelis 2008 Gru. 24 02:12:42 |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Tai va turiu klausimėli kaip padaryti kad vietoje statusas butu nario nick visaip ten terpiu bet neišeina gal kas padės:
echo"<br>
<span class='alt'>Status:</span> ";
$lastseen = time() - $data['user_lastvisit'];
if($lastseen < 60) {
$lastseen = "<br><img src='".BASEDIR."forum/images/online.gif' style='vertical-align:absMiddle;' title='User is Online' alt='User is Online'></BR>";
} else {
$lastseen = "<br><img src='".BASEDIR."forum/images/offline.gif' style='vertical-align:absMiddle;' title='User is Offline' alt='User is Offline'></BR>";
}
echo "$lastseen";
echo "<nobr><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."'><nobr>\n";
}
}
Tai va dbr daviau visą kodą ir man reikia kad aitu ne y apačia o per vidurį tiesej. dq tam kas padės.
code and design solutions tinklalapių kūrimas
Redagavo Jaunelis 2008 Gru. 31 16:12:01 |
MAnjack
Garbės narys
Legenda
Pranešimai: 11821
Įstojęs: 2006 Kov. 2 20:03:58
|
Pasižiūrėk ar užklausoj nick imamas.
|
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Nžn meginau kodus kišt bbz gaunas o tai kaip dėl to išdėstimo kad aitu tiesej o ne žemyn...
code and design solutions tinklalapių kūrimas |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Va dbr pasidariau bet levj čia su tais užrašais kodas atrodo taip:
echo "<td><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a></td>\n";
echo"<br>
<span class='alt'></span> ";
$lastseen = time() - $data['user_lastvisit'];
if($lastseen < 60) {
$lastseen = "<td><img src='".BASEDIR."forum/images/online.gif' style='vertical-align:absMiddle;' title='User is Online' alt='User is Online'></td>";
} else {
$lastseen = "<td><img src='".BASEDIR."forum/images/offline.gif' style='vertical-align:absMiddle;' title='User is Offline' alt='User is Offline'></td>";
}
echo "$lastseen";
echo "<td><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."'><td>\n";
Paveiksliukas:
P.s. reikia kad atrodytu normalej iš eiles:
Titas
Prisijunges
Avataras
code and design solutions tinklalapių kūrimas
Redagavo Jaunelis 2008 Gru. 31 17:12:20 |
ex-it
Narys
Ekspertas
Pranešimai: 2696
Įstojęs: 2007 Gru. 24 11:12:58
|
<tr> naudojam
|
edeni
Narys
Terminatorius
Pranešimai: 1502
Įstojęs: 2008 Vas. 7 19:02:18
|
echo "<td><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a></td>\n";
echo"<br>
<span class='alt'></span> ";
$lastseen = time() - $data['user_lastvisit'];
if($lastseen < 60) {
$lastseen = "<td><img src='".BASEDIR."forum/images/online.gif' style='vertical-align:absMiddle;' title='User is Online' alt='User is Online'></td></br>";
} else {
$lastseen = "<td><img src='".BASEDIR."forum/images/offline.gif' style='vertical-align:absMiddle;' title='User is Offline' alt='User is Offline'></td></br>";
}
echo "$lastseen";
echo "<td><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."'><td>\n";
Pamegink taip
|
Langas
Narys
Kapitonas
Pranešimai: 809
Įstojęs: 2007 Lie. 20 11:07:03
|
<br> <br> arba <table><tr><td></td></tr></table>
|
Žmogus
Narys
Viršesnis už Dievą
Pranešimai: 5621
Įstojęs: 2006 Gru. 8 17:12:08
|
Trynk lauk visus tuos <td> <tr>
|
robert
Narys
Tankas
Pranešimai: 1946
Įstojęs: 2006 Gru. 18 16:12:57
|
echo "<tr><td><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a></td></tr>\n";
$lastseen = time() - $data['user_lastvisit'];
if($lastseen < 60) {
$lastseen = "<tr><td><img src='".BASEDIR."forum/images/online.gif' style='vertical-align:absMiddle;' title='User is Online' alt='User is Online'></td></tr>";
} else {
$lastseen = "<tr><td><img src='".BASEDIR."forum/images/offline.gif' style='vertical-align:absMiddle;' title='User is Offline' alt='User is Offline'></td></tr>";
}
echo "$lastseen";
echo "<tr><td><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."'><td></tr>";
|
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Butu viskas labai gerai bet aina y apačia visi nariai o man reikia kad išilgai aitu per naujiena.,
paaiškinsiu kitaip va noriu kad butu taip:
o dbr yra taip
EDIT: ir dar kaip y čia iterpti kad jai nebutu avatar pvz butu img NO avatar:
echo "<tr><td><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."'><td></tr>";
code and design solutions tinklalapių kūrimas
Redagavo Jaunelis 2008 Gru. 31 17:12:09 |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Ok nieko nereikia tik padėkit dėl šito
dar kaip y čia iterpti kad jai nebutu avatar pvz butu img NO avatar:
echo "<tr><td><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."'><td></tr>";
code and design solutions tinklalapių kūrimas |
Black psycho
Narys
Kapitonas
Pranešimai: 785
Įstojęs: 2007 Rugs. 29 10:09:40
|
Su if zaisk
if ($userdata['user_avatar'] != "") {
echo "<td width='90'><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='70' height='70' style='margin-top: 10px; margin-bottom: 10px; margin-left: 10px'>";
} else {
echo "<td width='90'><img src='".THEME."images/no-avatar.gif' width='70' height='70' border='0' style='border: 1px #7a7978; margin-top: 10px; margin-left: 10px; margin-bottom: 10px;'>\n";
}
va pvz naudok kaip reikia
„Ne alkoholis sukelia girtumą ir alkoholizmą, bet neprotingas jo vartojimo būdas.“
Redagavo Black psycho 2008 Gru. 31 18:12:53 |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Black dq bet dabar kai išsijungiu "tipo" kai bunu svečias tada nei vieno avataro nerodo:
echo "<tr><td><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a><a href='".BASEDIR."messages.php?msg_send=".$data['user_id']."'><img src='".BASEDIR."infusions/last_seen_users_panel/pm.jpg' alt='".$locale['571']."' style='border:0px;'></a></td></tr>\n";
$lastseen = time() - $data['user_lastvisit'];
if($lastseen < 60) {
$lastseen = "<tr><td><img src='".BASEDIR."forum/images/online.gif' style='vertical-align:absMiddle;' title='User is Online' alt='User is Online'></td></tr>";
} else {
$lastseen = "<tr><td><img src='".BASEDIR."forum/images/offline.gif' style='vertical-align:absMiddle;' title='User is Offline' alt='User is Offline'></td></tr>";
}
echo "$lastseen";
if ($userdata['user_avatar'] != "") {
echo "<td width='90'><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."' width='70' height='70' style='margin-top: 10px; margin-bottom: 10px; margin-left: 10px'>";
} else {
echo "<td width='90'><img src='".IMAGES."no-avatar.gif' width='70' height='70' border='0' style='border: 1px #7a7978; margin-top: 10px; margin-left: 10px; margin-bottom: 10px;'>\n";
}
štai kodas kuri naudoju.
code and design solutions tinklalapių kūrimas |
Black psycho
Narys
Kapitonas
Pranešimai: 785
Įstojęs: 2007 Rugs. 29 10:09:40
|
Duok visa kodą, spėju gad globalus kintamasis (ar kaip ten) if'e parašytas.
„Ne alkoholis sukelia girtumą ir alkoholizmą, bet neprotingas jo vartojimo būdas.“
Redagavo Black psycho 2009 Sau. 3 16:01:50 |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Okey,turiu dar viena klausimėli tai va iškilo man turiu va tokį kodą:
function render_header($header_content) {
global $theme_width,$locale,$data,$aidlink,$db_prefix;
echo "<table align='center' cellpadding='0' cellspacing='0' width='100%' class='paneles'>\n<tr>
<td align='right' width='140'>";
include THEME."latest_articles_panel.php";
echo "</td>
<td align='right' width='100'>";
include THEME."latest_downloads_panel.php";
echo "</td>
</tr>
</table><br>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
Paveiksliuaks atrodo:
http://www.78.lt/image.php?id=3F...2D&jpg
Man reikia kad butu šale to paveiksliuko eitu šale to paveiksliuko dar vienas... Va taip turėtu atrodyt:
http://www.78.lt/image.php?id=3C...C5&jpg
code and design solutions tinklalapių kūrimas
Redagavo Jaunelis 2009 Sau. 16 17:01:52 |
bad_user
Narys
Antras po Dievo
Pranešimai: 4956
Įstojęs: 2007 Spa. 26 20:10:01
|
Negražus avataras, tai pasakysiu tik tiek: <td></td><td></td>
Rules: 21 & 22 Read first! |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
SoNG parašė:
Negražus avataras, tai pasakysiu tik tiek: <td></td><td></td>
Ty , bet jau pasidariau ,nes čia kol sulauksi pagalbos tai xD
code and design solutions tinklalapių kūrimas |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Sveikučiai kaip padaryti kad veiktų tie mygtukai kur kai pvz rašai naujiena buna "link" tipo paversti linku nuoroda pas mane jie neveikia nei siuntinių skiltyje nei straipsniuose niekur gal galite pasakyti kokius failus reiktų pakeisti kad veiktų
code and design solutions tinklalapių kūrimas |
mXt
Narys
Viršesnis už Dievą
Pranešimai: 5775
Įstojęs: 2006 Bir. 9 16:06:09
|
includes/javascript.js is pradziu, o jei neveiks tai visa includes folderi
ex best admin! |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
mXt parašė:
includes/javascript.js is pradziu, o jei neveiks tai visa includes folderi
Na dėkui bandysių pakeisti
Tikrai padėjo dar kartą dėkui
code and design solutions tinklalapių kūrimas
Redagavo Jaunelis 2009 Sau. 18 13:01:40 |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Sveiki taigi susiduriau su tokia problemėle bandau daryti atskiras paneles pagal šį straipsni:
https://webdnd.com/readarticle.p...cle_id=116
na padariau viską kaip ten viskas normalej bet kaip padaryti kad daugiau paneliu skirtusi nes ten padaryta tik kad viena panele skirtusi o aš norėčiau kad visos skirtusi skirtingos butu ir bandžiau visaip bet nk nesigavo gal kas galit padėti ?
code and design solutions tinklalapių kūrimas |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Tai va turiu tokią problema pas mane dabar tema lyg viskas ir normalej bet nuaina naujienos ir paneles su footeriu kartu y šoną kaip padaryti kad viskas čiki butu va kaip dbr ?
code and design solutions tinklalapių kūrimas
Redagavo Jaunelis 2009 Vas. 8 22:02:32 |
blist
Narys
Ekspertas
Pranešimai: 2896
Įstojęs: 2008 Vas. 24 14:02:54
|
pasidarei kad visos paneles butu skirtingos?
|
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
jo ,bet krč y šoną va taip suaina
code and design solutions tinklalapių kūrimas |
blist
Narys
Ekspertas
Pranešimai: 2896
Įstojęs: 2008 Vas. 24 14:02:54
|
kaip pasidarei jai ne paslaptis, ir man reiketu..
|
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
man dbr ne tas galvoj... dėkui suradau kas padės nes čia matau niekas nenori o gal nemoka
code and design solutions tinklalapių kūrimas |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
sveiki blemba susiduriau su toke problema kad noriu kad butu per visa tema boarderis o jis aina tik per headery kurioje čia vietoje terpt ? nes ant vienos temos idėjau taip veikia o anš šitos ne,
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#000000";
$body_bg = "#FFFFFF";
$theme_width = "993";
$theme_width_l = "413";
$theme_width_r = "413";
function render_header($header_content) {
global $theme_width,$locale,$data,$aidlink,$db_prefix;
echo "<table align='center' cellspacing='0' cellpadding='0' width='993' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='993'>
<tr>
<td class='full-header'>
<td <img src='".THEME."images/headeris.jpg'></td>
</tr>
</table>\n";
echo "
<tr>
<td><table border='0' align='center' cellpadding='0' cellspacing='0'>
<tr>
<td width='221' align='center'><img src='".THEME."images/none.gif' border=0' alt=''></a></td>
<td width='91' align='center'><a href='".BASEDIR."news.php'><img src='".THEME."images/pagrindinis.gif' border=0' alt=''></a></td>
<td width='103' align='center'><a href='".FORUM."index.php'><img src='".THEME."images/forumas.gif' border=0' alt=''></td>
<td width='86' align='center'><a href='".BASEDIR."members.php'><img src='".THEME."images/nariai.gif' border=0' alt=''></td>
<td width='121' align='center'><a href='".BASEDIR."downloads.php'><img src='".THEME."images/rezultatai.gif' border=0' alt=''></td>
<td width='109' align='center'><a href='".BASEDIR."articles.php'><img src='".THEME."images/kontaktai.gif' border=0' alt=''></td>
<td width='82' align='center'><a href='".BASEDIR."contact.php'><img src='".THEME."images/reklama.gif' border=0' alt=''></td>
<td width='180' align='center'><img src='".THEME."images/none1.gif' border=0' alt=''></a></td>
</tr>
</table></td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='footer'>
<tr>
<td </td>
<td width='446'></td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='589'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='589' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='589'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
code and design solutions tinklalapių kūrimas |
blist
Narys
Ekspertas
Pranešimai: 2896
Įstojęs: 2008 Vas. 24 14:02:54
|
per styles.css and body { dėk borderi
|