Logowanie lub szukanie w topie
|
zalew |
Dodany dnia 14.12.2006 17:01:58
|

Przedszkolak

Postów: 18
Data rejestracji: 11.11.2005 14:14
|
Witam serdecznie, mam problem z umieszczeniem w topie strony panelu logowanie b?dz skryptu szukania. Jeden z tych elementów chcia?bym wstawi? dok?adnie w zaznaczone na fotce miejsce .
Jakie plik zedytowa? oraz co dok?adnie w nich zmieni? ? Próbowa?em zedytowac theme.php, ale szukanie zawsze by?o nad albo pod topem ;/. |
|
|
|
W?cibski Go?? |
Dodany dnia 09.09.2025 20:15:57
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
marpar |
Dodany dnia 14.12.2006 17:03:19
|

Bywalec

Postów: 535
Data rejestracji: 30.09.2005 20:02
|
Prosze czyta? tematy przyklejone i u?ywa? szukajki.
|
|
|
|
zalew |
Dodany dnia 14.12.2006 17:22:33
|

Przedszkolak

Postów: 18
Data rejestracji: 11.11.2005 14:14
|
U?y?em szukajki jednak nic konktetnego nie znalaz?em  |
|
|
|
marpar |
Dodany dnia 14.12.2006 17:30:27
|

Bywalec

Postów: 535
Data rejestracji: 30.09.2005 20:02
|
to kiepsko szuka?es...a tematy przyklejone?????
http://php-fusion...ad_id=6318
|
|
|
|
as |
Dodany dnia 14.12.2006 17:31:27
|

Zaawansowany

Postów: 1509
Data rejestracji: 25.01.2005 21:55
|
A ja znalaz?em co? takiego...
Wklej poni?szy kod w tabel? gdzie znajduje si? logo w pliku [b]theme.php[/b]
//tabela z loginem (po lewej) obok logo
//lewa strona zawieraj?ca panel logowania
echo "<dt>";
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo " <strong>Witaj</strong><a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'> <span style='position:top;color:#".$userdata['user_color']."'>".$userdata['user_prefix']." ".$userdata['user_name']."</span></a><br>";
echo "<table border='0' cellspacing='4' cellpadding='4'><tr><td>";
//tu jest umieszczony avatar u?ytkownika
if ($userdata['user_avatar'] != "") {
echo "<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='55' height='50'>";
} else {
echo "<img src='".FORUM."images/brak.gif' width='55' height='50'>";
}
echo "</td><td>";
echo "<br><a href='".BASEDIR."edit_profile.php' class='side'>edutuj profil</a><br>
<a href='".BASEDIR."messages.php' class='side'>PW</a><br>
<a href='".BASEDIR."members.php' class='side'>uzytkownicy</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<a href='".ADMIN."index.php' class='side'>admin panel</a><br>\n";
}
echo "<a href='".BASEDIR."setuser.php?logout=yes' class='side'>wyloguj</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
echo "</td></tr></table>";
} else {
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
Login <input type='text' name='user_name' class='textbox' style='width:100px'><br>
Haslo <input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='loguj' class='button'><br>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php'>Zarejestruj sie</a>$nbsp;$nbsp;|$nbsp;$nbsp;<a href='".BASEDIR."lostpassword.php'>Odzyskaj haslo</a>\n";
}
echo "</div>\n";
}
//prawa strona zawieraj?ca logo
//tu wpisz wysoko?? i wielko?? loga
echo "</td><td width='' heighy=''>";
echo "<img src='logo.png' width='' height=''>";
echo "</td>";
Innymi s?owy zgodnie z nazw? swojego nick'a... ZALEWASZ
as
|
|
|
|
marpar |
Dodany dnia 14.12.2006 17:35:08
|

Bywalec

Postów: 535
Data rejestracji: 30.09.2005 20:02
|
as napisa?/a:
A ja znalaz?em co? takiego...
Wklej poni?szy kod w tabel? gdzie znajduje si? logo w pliku [b]theme.php[/b]
//tabela z loginem (po lewej) obok logo
//lewa strona zawieraj?ca panel logowania
echo "<dt>";
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo " <strong>Witaj</strong><a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'> <span style='position:top;color:#".$userdata['user_color']."'>".$userdata['user_prefix']." ".$userdata['user_name']."</span></a><br>";
echo "<table border='0' cellspacing='4' cellpadding='4'><tr><td>";
//tu jest umieszczony avatar u?ytkownika
if ($userdata['user_avatar'] != "") {
echo "<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='55' height='50'>";
} else {
echo "<img src='".FORUM."images/brak.gif' width='55' height='50'>";
}
echo "</td><td>";
echo "<br><a href='".BASEDIR."edit_profile.php' class='side'>edutuj profil</a><br>
<a href='".BASEDIR."messages.php' class='side'>PW</a><br>
<a href='".BASEDIR."members.php' class='side'>uzytkownicy</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<a href='".ADMIN."index.php' class='side'>admin panel</a><br>\n";
}
echo "<a href='".BASEDIR."setuser.php?logout=yes' class='side'>wyloguj</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
echo "</td></tr></table>";
} else {
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
Login <input type='text' name='user_name' class='textbox' style='width:100px'><br>
Haslo <input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='loguj' class='button'><br>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php'>Zarejestruj sie</a>$nbsp;$nbsp;|$nbsp;$nbsp;<a href='".BASEDIR."lostpassword.php'>Odzyskaj haslo</a>\n";
}
echo "</div>\n";
}
//prawa strona zawieraj?ca logo
//tu wpisz wysoko?? i wielko?? loga
echo "</td><td width='' heighy=''>";
echo "<img src='logo.png' width='' height=''>";
echo "</td>";
Innymi s?owy zgodnie z nazw? swojego nick'a... ZALEWASZ
to kod chyba napisay przez @slawekneo, sprawdzalem go dzia?a bardzo dobrze :)
tak to prawda nie trzeba sie by?o du?o narobi? ?eby znalezdz odpowiedz. Niestety dawanie wszystkiego na tacy te? nie jest do konca dobre bo drodzy uzytkownicy forum nic sie nie naucz? ale cóz...
pozdrawiam!

|
|
|
|
zalew |
Dodany dnia 14.12.2006 18:08:22
|

Przedszkolak

Postów: 18
Data rejestracji: 11.11.2005 14:14
|
Wielkie dzi?ki za pomoc, jednak po wklejeniu powy?szego kodu panel wy?wietla si? nad topem :/ Co zrobi? ? Kod theme.php
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#000000";
$body_bg = "#666666";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width;
echo "<table align='center' width='100%' cellspacing='0' cellpadding='15'>
<tr><td class='outer-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr><td class='inner-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr><td class='full-header'>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>
<td class='sub-header'>".showsublinks("·")."</td>
<td align='right' class='sub-header'>".showsubdate()."</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\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%'>
<tr>
<td colspan='2' class='sub-header'>".stripslashes($settings['footer'])."</td>
</tr>
<tr>
<td class='full-header'>".showcounter()."</td>\n";
if ($license == false) echo "<td align='right' class='full-header'>".showcopyright()."</td>\n";
echo "</tr>\n</table>\n";
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
$news
</td>
</tr>
<tr>
<td align='right' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' 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 class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<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>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='8'></td></tr>
</table>\n";
}
?>
Edytowane przez zalew dnia 14.12.2006 18:09:23
|
|
|
|
fist90 |
Dodany dnia 27.12.2006 10:42:28
|

Przedszkolak

Postów: 8
Data rejestracji: 17.12.2006 11:18
|
Witam !
Mam z tym kodem problemik robie wszystko tak jak piszecie i niedziala:(
fragmet hhema mojego odpowiadajacego za gore:
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td class='lefter'><img width='45' src='".THEME."images/lefter.gif' height='1' alt=''></td>
<td class='mbody' align='right'><table width='100%' cellpacing='0' cellpadding='0' border='0'><tr><td class='toplogo'>
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo " <strong>Witaj</strong><a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'> <span style='position:top;color:#".$userdata['user_color']."'>".$userdata['user_prefix']." ".$userdata['user_name']."</span></a><br>";
echo "<table border='0' cellspacing='4' cellpadding='4'><tr><td>";
if ($userdata['user_avatar'] != "") {
echo "<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='55' height='50'>";
} else {
echo "<img src='".FORUM."images/brak.gif' width='55' height='50'>";
}
echo "</td><td>";
echo "<br><a href='".BASEDIR."edit_profile.php' class='side'>edutuj profil</a><br>
<a href='".BASEDIR."messages.php' class='side'>PW</a><br>
<a href='".BASEDIR."members.php' class='side'>uzytkownicy</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<a href='".ADMIN."index.php' class='side'>admin panel</a><br>\n";
}
echo "<a href='".BASEDIR."setuser.php?logout=yes' class='side'>wyloguj</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
echo "</td></tr></table>";
} else {
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
Login <input type='text' name='user_name' class='textbox' style='width:100px'><br>
Haslo <input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='loguj' class='button'><br>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php'>Zarejestruj sie</a><a href='".BASEDIR."lostpassword.php'>Odzyskaj haslo</a>\n";
}
echo "</div>\n";
}
echo "</td><td width='500' heighy='200'>";
echo "<img src='".THEME."images/logo.jpg' width='500' height='200'>";
</td></tr></table>
<table width='100%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<td class='menuss'>\n";
$separator = " </td><td class='sep'></td><td class='menuss'> ";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "\n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " $separator \n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td><td class='sep'></td><td width='30%' class='pustka'> </td>
</td><td class='sep'></td>
<td class='menus' align='right'>".ucwords(showdate($settings['subheaderdate'], time()))."</td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0' align='center'>\n<tr>\n";
}
a jak strone otrzorze to tylko pisze:
Parse error: syntax error, unexpected '(', expecting ',' or ';' in /home/d/e/k/deka/www/themes/gt-cs_green/theme.php on line 27
Pomó?cie bardzo mi to potrzebne!!!!!!
Edytowane przez fist90 dnia 27.12.2006 10:44:18
|
|
|