Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: login
Parašė Soo-2· 2007 Gru. 22 22:12:07
#1
ar galite pasakyti koda login paneles, kad galėciau ja i dėti i headeri.. ir ta vieta kur idėti..
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 = "#ffffff";
$theme_width = "848";
$theme_width_l = "160";
$theme_width_r = "160";
function render_header($header_content) {
global $theme_width;
echo "<table align=center class='mainsite-border' align='left' width='848' cellspacing='0' cellpadding='0'>
<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 align=left><td>";
include_once "header.php";
echo "</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>";
include_once "foot.php";
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='center' class='news-footer'>\n";
echo "<a href='news.php?readmore=".$info['news_id']."'>Skaityti toliau</a>";
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>
<table cellspacing=0 celpadding=0 border=0>
<tr>
<td height=23 width=160 class='scapmain' align=center>$title</td>
</tr>
</table>
</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='10'></td></tr>
</table>\n";
}
?>
Parašė Qrmiz· 2007 Gru. 22 22:12:20
#2
tai parsisiųsk mano theme'ą ir ten jau bus, galėsi išsiimt :)
Parašė Demonas· 2007 Gru. 22 22:12:30
#3
kaip suprantu naudoji OrangeBlue temą? tokiu atveju reikia kodą rašyti į header.php failą. Prisegu.
Parašė Soo-2· 2007 Gru. 22 23:12:57
#4
gali koda idėt?? bo man nesiuncia kažkodėl tai?
Parašė Demonas· 2007 Gru. 22 23:12:08
#5
<?php
echo "
<table width='100%' height='214' style='background-image:url(".THEME."media/header.gif);' align='center' border='0' cellspacing='0' cellpadding='0' height='214px'>
<tr><td width='589px'></td>";
echo "<td align='right' style='padding-left:15px;'>";
// Jei narys, prisijungimas atrodo taip
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='210' height='85' border='0' cellspacing='0' cellpadding='0' background='".THEME."images/userlogin.gif' align='center'>
<tr>
<td>\n";
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='60' height='60' style='border:0px'></center>\n";
} else {
echo "<center><img src='".BASEDIR."images/noav.gif' width='60' height='60' style='border:0px'></center>\n";
}
echo "</td>
<td><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Apraðymas</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Þinutës [naujø: <b><span style='color:#ff0000'>".sprintf($msg_count)."</span></b>]</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Nariai</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";"
<td><img src='".THEME."images/blank.gif'></td>
</tr>
</table>
\n";
// Jei ne narys
} else {
echo "<table width='210' height='85' border='0' cellspacing='0' cellpadding='0' background='".THEME."images/userlogin.gif' align='center'>
<form name='loginform' method='post' action='".FUSION_SELF."'>
<tr>";
if ($settings['enable_registration']) {
echo "<td align='right'><a href=".BASEDIR."register.php>Registracija</a> | </td>";
}
echo "<td><a href=".BASEDIR."lostpassword.php>Slaptaþodis</a></td>";
echo "</tr>
<tr>
<td align='right'>Vardas: </td>
<td> <input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right'>".$locale['062'].": </td>
<td> <input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right'><input type='checkbox' name='remember_me' value='y'></td>
<td> <input type='submit' name='login' value='Prisijungti' class='button'></td>
</tr></form>\n";
}
echo "</td>
</tr>
</table>
</td>";
echo "</tr></tr>
</table>
";
?>
va :)
Parašė Soo-2· 2007 Gru. 22 23:12:30
#6
;)
Parašė Soo-2· 2007 Gru. 22 23:12:21
#7
kažkas netaip.. viskas nesavose vietose..
Parašė bruzgis· 2007 Gru. 22 23:12:30
#8
Gi demonas dar :D psd failas yra temos?
Parašė Soo-2· 2007 Gru. 22 23:12:39
#9
kaip suprast?
header.php
<?php
print "
<table align=center width=100% height=214 background=".THEME."media/header.png border=0 cellspacing=0 cellpadding=0>
<tr><td></td></tr>
<tr><td height=31></td></tr>
</table>
";
?>
Parašė Fanio· 2007 Gru. 22 23:12:49
#10
Demonas visada klaidų privelia :D Jeigu neišsprendei bėdos, aš padėsiu.
Parašė Soo-2· 2007 Gru. 22 23:12:33
#11
neišsprendziu.. pasimeciau visai :?:?
Parašė Soo-2· 2007 Gru. 22 23:12:02
#12
tai kas zinot kaip tikrai susitvarkyti? gal galit koda duot visa GERA :s:s
Parašė Demonas· 2007 Gru. 22 23:12:37
#13
o kas blogai?
chipsas, kokį dar psd failą?
Parašė Soo-2· 2007 Gru. 22 23:12:17
#14
viskas blogai.. error meta.. Fanio tai padėsi?
Parašė Demonas· 2007 Gru. 22 23:12:18
#15
<?php
print "
<table align=center width=100% height=214 background=".THEME."media/header.png border=0 cellspacing=0 cellpadding=0>
<tr><td></td></tr>
<tr><td height=31></td></tr>
</table>
";
?>
WTF?!
kokį errorą?
Parašė Fanio· 2007 Gru. 22 23:12:55
#16
Koks adresas ir kokį erora meta, tinigu žiūrėt tuos scriptus :D
Parašė Soo-2· 2007 Gru. 23 00:12:20
#17
jau viskas ok.. gal kas zinote kaip pasidaryti tokius reitingus kaip turi DLE sistema??
Parašė ramon· 2007 Gru. 23 00:12:54
#18
Imk [reitingavimas kaip DLE]
Parašė Soo-2· 2007 Gru. 23 00:12:51
#19
kur ka kelti?
Parašė ramon· 2007 Gru. 23 00:12:26
#20
1. kopija
includes/ratings_include.php failo
2. archyvo esancius katalogus (ajaxstarrater ir includes) imesti i pagrindini kataloga
3. konfiguruojam DB
ajaxstarrater/_config-rating.php failas
$rating_dbhost = 'localhost';
$rating_dbuser = '';
$rating_dbpass = '';
$rating_dbname = '';
$rating_tableName = '';
$rating_path_db = '';
$rating_path_rpc = '';
$rating_dbhost - kur stobi
MySQL :D standartas localhost.
$rating_dbuser - prisijungimo vardas (kaip
php-fusion)
$rating_dbpass - prisijungimo slaptazodis (kaip
php-fusion)
$rating_dbname - DB pavadinimas (kaip
php-fusion)
$rating_tableName - pilnas lenteles pavadinimas kur guli reitingas su prefiksu, bet reikia rasyti ne $db_prefix, o pati prifiksa kuris nurdytas
php-fusion. Jeigu prefiksas fsion_, tai
fusion_ratings. kitu atveju
jusu_prefiksas_ratings
$rating_path_db - 'ajaxstarrater/'
$rating_path_rpc - 'ajaxstarrater/'
4. subheader.php
<link rel='stylesheet' type='text/css' href='".BASEDIR."ajaxstarrater/css/rating.css' />
<script type='text/javascript' language='javascript' src='".BASEDIR."ajaxstarrater/js/behavior.js'></script>
<script type='text/javascript' language='javascript' src='".BASEDIR."ajaxstarrater/js/rating.js'></script>
virsh </head>
Kurejas :
bdZ
Parašė Soo-2· 2007 Gru. 23 00:12:40
#21
:o tipo supratau :|
Parašė ramon· 2007 Gru. 23 00:12:10
#22
Cia jau tavo problemos, viskas padeta kaip ant lekstutes tereike moketi skaityti...
Parašė Soo-2· 2007 Gru. 23 00:12:02
#23
sito va nesuprantu archyvo esancius katalogus (ajaxstarrater ir includes) imesti i pagrindini kataloga
Parašė ramon· 2007 Gru. 23 01:12:18
#24
Na imk sias 2 papkes[
ajaxstarrater ir
includes] ir imesk i savo ftp ten kur tavo
news.php failas..
Parašė Soo-2· 2007 Gru. 23 01:12:39
#25
ten kur visi pagrindiniai failai.. ai, parašyk i skype man dj-buster41
Parašė Soo-2· 2007 Gru. 23 01:12:47
#26
čia taip turi buti ar ne?? jei taip tai kur ka rašyt?
<?php
/*
Page: _config-rating.php
Created: Aug 2006
Last Mod: Mar 18 2007
Holds info for connecting to the db, and some other vars
---------------------------------------------------------
ryan masuga, masugadesign.com
ryan@masugadesign.com
Licensed under a Creative Commons Attribution 3.0 License.
http://creativecommons.org/licen...
See readme.txt for full credit details.
--------------------------------------------------------- */
//Connect to your rating database
$rating_dbhost = 'localhost';
$rating_dbuser = '';
$rating_dbpass = '';
$rating_dbname = '';
$rating_tableName = '';
$rating_path_db = ''; // the path to your db.php file (not used yet!)
$rating_path_rpc = ''; // the path to your rpc.php file (not used yet!)
$rating_unitwidth = 30; // the width (in pixels) of each rating unit (star, etc.)
// if you changed your graphic to be 50 pixels wide, you should change the value above
$rating_conn = mysql_connect($rating_dbhost, $rating_dbuser, $rating_dbpass) or die ('Error connecting to mysql');
//mysql_select_db($rating_dbname);
?>
cia kitaip rodo.. jau supratau
Redagavo Soo-2· 2007 Gru. 23 01:12:55
Parašė ramon· 2007 Gru. 23 01:12:11
#27
Viska paaiskinta.
Atidaryk savo config.php ir rasyk.
Parašė Soo-2· 2007 Gru. 23 01:12:29
#28
ka prie PREFIX rašyt?
Parašė ramon· 2007 Gru. 23 01:12:33
#29
Uzeik i savo web >> adminke >> pridetiniai puslapiai >> parasyk <? echo $db_prefix; ?> ir ka gausi ta rasyk i prefixo vieta.
Parašė Soo-2· 2008 Sau. 13 14:01:30
#30
1. viskas veikia.. tik dabar saito apacioi ir po headeriu meta toki užraša:No database selected
2. kas daryti?? man meta po headeriu ir po reitingu panele No database selected
3. o kitaip negali kaip nors be to ajax?? iš kokios photogallery.php išimt vieta kur su zvaigzdutem i idėt i reitingus??
EDIT: Triple post, snox kitą kartą patarčiau pasinaudoti "Redaguoti "mygtuku ir sutalpini viską į vieną
Redagavo kiskiss· 2008 Sau. 13 14:01:37