Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Padekit su theme...
Parašė GoN· 2007 Gru. 15 21:12:49
#1
Sveiki, na ka bandau redaguoti theme bet nieko neiseina error meta :/
Na idejau as tokia kaip ir panele kad butu man apačioje headerio vartotojo aprašymas tai kaip man padaryti kad butu ant to paveiksliuko kur paraysta text text text, tai man ten reikia padaryti kad ten butu pradžia ir forumas dvi nuorodos. Ir dar Kad butu avataras prieš
Redaguoti profilį
Theme.php kodas
<?
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
/*------------------------------------------------------------|
| PHP-Fusion 6 - Content Management System |
|--------------------------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2007 |
| web: http://www.php-fusion.co.uk |
| email: nick@php-fusion.co.uk |
|--------------------------------------------------------------|
|PHp-Fusion Açýk Kaynaklý Bir Web Yazýlýmýdýr |
|Ücretsiz Herkes KuLLanabilir. |
|Alttaki Copyright © PHP-Fusion Yazýsýnýn |
|Silinmemesi Þartýyla... |
|GNU/GPL (Version 2) Lisansý ile Tüm Haklarý |
|Korunmaktadýr!... |
|Lisans Satýn Almak için: nick@php-fusion.co.uk |
|Nick Jones'la Görüþün!.. |
|--------------------------------------------------------------*/
/*------------------------------------------------------------+
| CandY_Green Theme PHP-Fusion v6+ içindir! |
|--------------------------------------------------------------|
|Yazar: Theme by: KDK© 2007 |
| web: http://istegenc.kayyo.com |
| msn/mail: kdkx01@msn.com |
|--------------------------------------------------------------|
|Fuzed Themes |
| web: http://phpfusion-themes.com |
| email: webmaster@phpfusion-thems.com |
|-------------------------------------------------------------*/
/*------------------------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
|------------------------------------------------------------*/
// Tema Ayarlarý
$body_text = "#555555";
$body_bg = "#666666";
$theme_width = "95%";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width;
echo "<table align='center' cellspacing='0' bordercolor='#99CC00' border='2' cellpadding='0' width='$theme_width'>";
echo "<tr>
<td>
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
</td>
</tr>
</table>\n";
//Logo - Sub_menü(Kategoriler) - Üye Giriþi Kodu Baþlangýç
echo "<table style='background-image:url(".THEME."images/bg.gif);' align='center' cellspacing='0' cellpadding='0' width='100%' height='150' border='0'>
<td>
<img border='0' alt='".$settings['sitename']."' title='".$settings['sitename']."' src='".THEME."images/logo.gif'>
</td><td width='85'>
</td>
</td>";
echo "</table>";
//Logo - Sub_menü(Kategoriler) - Üye Giriþi Kodu Bitiþ
if (iMEMBER) {
opentable($userdata['user_name']);
echo "<center>";
echo "<a href='".BASEDIR."edit_profile.php' class='side'>Redaguoti profilá</a> ";
echo "<img border='0' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."messages.php' class='side'>Asmeninës þinutës</a> ";
echo "<img border='0' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."members.php' class='side'>Nariø sàraðas</a> ";
echo " ";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php?aid=611ec91761fffac0&pagenum=1".$aidlink."' class='side'>Admin panelë</a> \n";
}
echo "<img border='0' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Atsijungti</a>";
echo "</center>";
} else {
openside("<center>Prisijungti</center>");
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."";
echo "<form name='loginform' method='post' action='../login.php'>";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php'>[<b>Registruotis</b>]</a> \n";
} else {
echo " ";
}
echo "Vardas:
<input type='text' name='user_name' class='textbox' style='width:100px'>
Slaptaþodis:
<input type='password' name='user_pass' class='textbox' style='width:100px'>
<input type='checkbox' name='remember_me' value='y' title='Atsiminti mane' style='vertical-align:middle;'>
<input type='submit' name='login' value='Prisijungti' class='button'><br>
<a href='".BASEDIR."lostpassword.php'>[<b>Pamirðau slaptaþodá</b>]</a>
</form>\n";
echo "</div>\n";
}
closetable();
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
//Footer Haber ve Orta Bloklar Kodu
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/footer.png' style='border-right:#FFFFFF 1px; border-left: #FFFFFF 1px;'>";
echo "<td width='20%' height='30' class='white' align='left'>";
if ($license == false) {
echo "<b>Powered by <a href='http://php-fusion.co.uk' target='_blank'>PHP-Fusion</a></b>";
}
echo "</td>";
echo "<td width='40%' class='white' align='center'>";
echo "<b>".stripslashes($settings['footer'])."</b></td>";
echo "<td width='26%' class='white' align='right'>";
echo "<b><a href='mailto:xxx@mail.lt'></a></b>";
echo "</td>";
echo "<div align='center'></tr></table></td></tr></table></div>";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<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,"<br>").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<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,"<br>").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<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";
}
?>
Iš karto dėkoju...
Parašė bruzgis· 2007 Gru. 15 21:12:22
#2
<table>
<tr>
<td background='linkas iki img' >
linkai
</td>
</tr>
</table>
Parašė Žmogus· 2007 Gru. 15 21:12:10
#3
Nu, bet tai, db ripina :| pamatė pora saituose ta tai iškart :D
Parašė GoN· 2007 Gru. 15 21:12:18
#4
As ka nieko nepamaciau pats wiska padariau iur sugalwojau
____________________________________________
chipass
Gal gali parasyti visa koda?
Parašė Enzo· 2007 Gru. 15 21:12:13
#5
adrenalinas parašė:
As ka nieko nepamaciau pats wiska padariau iur sugalwojau
____________________________________________
chipass
Gal gali parasyti visa koda?
sakai pats?
Parašė GoN· 2007 Gru. 15 21:12:29
#6
Ka žinau niekur nemaciau kad taip butu :P na Kaip parasiau kaip man reikia ;)
Parašė Enzo· 2007 Gru. 15 21:12:59
#7
adrenalinas parašė:
Ka žinau niekur nemaciau kad taip butu :P na Kaip parasiau kaip man reikia ;)
ir sugalvojai pats?
Parašė GoN· 2007 Gru. 15 22:12:44
#8
Tai matai kad reikia kad rodytu avatara...... parasyta pacioj primoj zinutej skaityk jei nematai
Parašė Enzo· 2007 Gru. 15 22:12:43
#9
adrenalinas parašė:
Tai matai kad reikia kad rodytu avatara...... parasyta pacioj primoj zinutej skaityk jei nematai
tai žinai kaip saitas atrodys?
Parašė GoN· 2007 Gru. 15 22:12:36
#10
Ne bet visteik reikia go gal nedidelis avataras bus? :P ?|
Parašė bruzgis· 2007 Gru. 15 22:12:41
#11
adrenalinas parašė:
As ka nieko nepamaciau pats wiska padariau iur sugalwojau
____________________________________________
chipass
Gal gali parasyti visa koda?
Tai jei rasai pats pasidariai tai kam dar prasai kad kiti padarytu :D:D:D:D
Parašė Ptycka· 2007 Gru. 16 01:12:00
#12
Nelabai supratau tavo esme imk sita padariau kad avataras butu pries redaguoti profili.
<?
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
/*------------------------------------------------------------|
| PHP-Fusion 6 - Content Management System |
|--------------------------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2007 |
| web: http://www.php-fusion.co.uk |
| email: nick@php-fusion.co.uk |
|--------------------------------------------------------------|
|PHp-Fusion Açýk Kaynaklý Bir Web Yazýlýmýdýr |
|Ücretsiz Herkes KuLLanabilir. |
|Alttaki Copyright © PHP-Fusion Yazýsýnýn |
|Silinmemesi Þartýyla... |
|GNU/GPL (Version 2) Lisansý ile Tüm Haklarý |
|Korunmaktadýr!... |
|Lisans Satýn Almak için: nick@php-fusion.co.uk |
|Nick Jones'la Görüþün!.. |
|--------------------------------------------------------------*/
/*------------------------------------------------------------+
| CandY_Green Theme PHP-Fusion v6+ içindir! |
|--------------------------------------------------------------|
|Yazar: Theme by: KDK© 2007 |
| web: http://istegenc.kayyo.com |
| msn/mail: kdkx01@msn.com |
|--------------------------------------------------------------|
|Fuzed Themes |
| web: http://phpfusion-themes.com |
| email: webmaster@phpfusion-thems.com |
|-------------------------------------------------------------*/
/*------------------------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
|------------------------------------------------------------*/
// Tema Ayarlarý
$body_text = "#555555";
$body_bg = "#666666";
$theme_width = "95%";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width;
echo "<table align='center' cellspacing='0' bordercolor='#99CC00' border='2' cellpadding='0' width='$theme_width'>";
echo "<tr>
<td>
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
</td>
</tr>
</table>\n";
//Logo - Sub_menü(Kategoriler) - Üye Giriþi Kodu Baþlangýç
echo "<table style='background-image:url(".THEME."images/bg.gif);' align='center' cellspacing='0' cellpadding='0' width='100%' height='150' border='0'>
<td>
<img border='0' alt='".$settings['sitename']."' title='".$settings['sitename']."' src='".THEME."images/logo.gif'>
</td><td width='85'>
</td>
</td>";
echo "</table>";
//Logo - Sub_menü(Kategoriler) - Üye Giriþi Kodu Bitiþ
if (iMEMBER) {
opentable($userdata['user_name']);
echo "<center>";
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' height='50'></center>\n";
} else {
echo "<center><img src='".THEME."media/no.png' width='50' height='50'></center>\n";
echo "<a href='".BASEDIR."edit_profile.php' class='side'>Redaguoti profilá</a> ";
echo "<img border='0' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."messages.php' class='side'>Asmeninës þinutës</a> ";
echo "<img border='0' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."members.php' class='side'>Nariø sàraðas</a> ";
echo " ";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php?aid=611ec91761fffac0&pagenum=1".$aidlink."' class='side'>Admin panelë</a> \n";
}
echo "<img border='0' src='".THEME."images/bullet.gif'> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Atsijungti</a>";
echo "</center>";
} else {
openside("<center>Prisijungti</center>");
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."";
echo "<form name='loginform' method='post' action='../login.php'>";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php'>[<b>Registruotis</b>]</a> \n";
} else {
echo " ";
}
echo "Vardas:
<input type='text' name='user_name' class='textbox' style='width:100px'>
Slaptaþodis:
<input type='password' name='user_pass' class='textbox' style='width:100px'>
<input type='checkbox' name='remember_me' value='y' title='Atsiminti mane' style='vertical-align:middle;'>
<input type='submit' name='login' value='Prisijungti' class='button'><br>
<a href='".BASEDIR."lostpassword.php'>[<b>Pamirðau slaptaþodá</b>]</a>
</form>\n";
echo "</div>\n";
}
closetable();
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
//Footer Haber ve Orta Bloklar Kodu
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/footer.png' style='border-right:#FFFFFF 1px; border-left: #FFFFFF 1px;'>";
echo "<td width='20%' height='30' class='white' align='left'>";
if ($license == false) {
echo "<b>Powered by <a href='http://php-fusion.co.uk' target='_blank'>PHP-Fusion</a></b>";
}
echo "</td>";
echo "<td width='40%' class='white' align='center'>";
echo "<b>".stripslashes($settings['footer'])."</b></td>";
echo "<td width='26%' class='white' align='right'>";
echo "<b><a href='mailto:xxx@mail.lt'></a></b>";
echo "</td>";
echo "<div align='center'></tr></table></td></tr></table></div>";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<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,"<br>").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<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,"<br>").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<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";
}
?>
Redagavo Ptycka· 2007 Gru. 16 01:12:16
Parašė ramon· 2007 Gru. 16 01:12:57
#13
Tema neatinka kategorijai, perkeliu i
Themes kategorija ptyckos prašimu. ;)
Redagavo ramon· 2007 Gru. 16 02:12:29
Parašė GoN· 2007 Gru. 16 11:12:19
#14
Ptycka error meta :P
Man tik duok ta koda kur kad butu avataras na ta
php koda ir as isikelsiu man tik tiek reikai :/
Redagavo GoN· 2007 Gru. 16 11:12:52
Parašė Žmogus· 2007 Gru. 16 11:12:26
#15
Tu man parp kaip atrodo db visas tavo dizas, nes aš čia nesupratau :D
Parašė GoN· 2007 Gru. 16 11:12:17
#16
Nu man tik parasykit avataro
php koda ir viksas as pats isikelsiu :P
Parašė ramon· 2007 Gru. 16 11:12:05
#17
Taigi po nosim turi visa koda :
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' height='50'></center>\n";
} else {
echo "<center><img src='".THEME."media/no.png' width='50' height='50'></center>\n";
}
Parašė GoN· 2007 Gru. 16 11:12:46
#18
Dekui ;)
Parašė Ptycka· 2007 Gru. 16 14:12:56
#19
buvau daves koda negalejai pasitiaisiti ne floodinti jam
rakinu tema,