Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Subheader prisijungimas?

Parašė Jupiter· 2008 Kov. 25 01:03:19
#1

Sveiki.
Taigi noriu paklausti kaip reikia i subheader įdėti prisijungimą ?Štai parašiau Jums savo theme.php failą . Gal kas padės . O gal reikia ir style.css Jums ?
Dar radau pavizdį jeigu kas nesuprato http://www.u-strike.net .
<?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 = "600";
$theme_width_r = "180";

function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink,$db_prefix;

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."images/header.jpg'></td>
</tr>
</table>
</td>
</tr>
</table>\n";

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td class='sub-header'>".showsublinks("&middot;","white")."</td>
<td align='right' class='sub-header'>".showsubdate()."</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%'>
<tr>
<td align='center' class='footer'>".stripslashes($settings['footer'])."<br>\n";
if (!$license) { echo showcopyright()."<br><br>\n"; } echo showcounter()."<br><br>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<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," &middot;").newsopts($info,"&middot;").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<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 align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," &middot;").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<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 Jupiter· 2008 Kov. 25 01:03:58

Parašė ramon· 2008 Kov. 25 01:03:34
#2

https://webdnd.com/readarticle.p...icle_id=92

Parašė Jupiter· 2008 Kov. 25 01:03:31
#3

Taigi daug kas nori pasidaryti prisijungimą header'yje



O aš noriu pasidaryti SUBHEADERIJE

Parašė ramon· 2008 Kov. 25 01:03:20
#4

http://fusionfiles.xz.lt/Niekur_...n-v1.0.zip

Parašė Jupiter· 2008 Kov. 25 01:03:35
#5

ramon - geras esi ;) Toi pažiūrėsiu kas ten randasi
O dabar isykėliau ta failą kur reikėjo , bet jokių pokyčių nėra , o pačio theme.php failo redaguoti nieko nereikia ? :?

Redagavo Jupiter· 2008 Kov. 25 01:03:56

Parašė ramon· 2008 Kov. 25 01:03:10
#6

Po sia eilute :

<body bgcolor='$body_bg' text='$body_text'>\n";



Viska trink po sia eilute iki galo ir prirasyk sitas eilutes :



if (!iMEMBER) {render_header("<a href='".BASEDIR."news.php'><img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."' align='left'></a>
<div align='right'>
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y'>".$locale['063']."
<input type='submit' name='login' value='Login' class='button'><br>
</form></div><div align='center'>Not a member? Please <a href='".BASEDIR."register.php'>REGISTER</a>        Lost your password? Click here for <a href='".BASEDIR."lostpassword.php'>LOST PASSWORD</a>
<br>
</div>\n");

}
if (iMEMBER) {render_header("<a href='".BASEDIR."news.php'><img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."' align='left'></a>

<div align='right'>
 


<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>\n
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a><br>\n

</div>\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'])." <img src='".IMAGES."ani-arrow.gif' border='0'></a></b></center>\n";
}
?>



Parašė Jupiter· 2008 Kov. 25 02:03:00
#7

Čia subheader.php faile , taip ?

Redagavo Jupiter· 2008 Kov. 25 02:03:50

Parašė ramon· 2008 Kov. 25 02:03:42
#8

subheader.php faile reike tai daryti..

Parašė Jupiter· 2008 Kov. 25 02:03:06
#9

Nerodo :s Padariau taip kaip ir Tu parašei , bet nieko nesigavo :/

Parašė ramon· 2008 Kov. 25 02:03:46
#10

Parodik savo koda bei sakyk kur keliai.

Parašė Jupiter· 2008 Kov. 25 02:03:24
#11

Štai čia yra subheader.php failas .Jį įkėliau į pagrindinę direktoriją.
<?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
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: index.php"); exit; }

require_once THEME."theme.php";

if ($settings['maintenance'] == "1" && !iADMIN) fallback(BASEDIR."maintenance.php");
if (iMEMBER) $result = dbquery("UPDATE ".$db_prefix."users SET user_lastvisit='".time()."', user_ip='".USER_IP."' WHERE user_id='".$userdata['user_id']."'");

echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>
<title>".$settings['sitename']."</title>
<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."'>
<meta name='description' content='".$settings['description']."'>
<meta name='keywords' content='".$settings['keywords']."'>
<link rel='stylesheet' href='".THEME."styles.css' type='text/css'>
<script type='text/javascript' src='".INCLUDES."jscript.js'></script>
</head>
<body bgcolor='$body_bg' text='$body_text'>\n";



if (!iMEMBER) {render_header("<a href='".BASEDIR."news.php'><img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."' align='left'></a>
<div align='right'>
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y'>".$locale['063']."
<input type='submit' name='login' value='Login' class='button'><br>
</form></div><div align='center'>Not a member? Please <a href='".BASEDIR."register.php'>REGISTER</a>        Lost your password? Click here for <a href='".BASEDIR."lostpassword.php'>LOST PASSWORD</a>
<br>
</div>\n");

}
if (iMEMBER) {render_header("<a href='".BASEDIR."news.php'><img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."' align='left'></a>

<div align='right'>
 


<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>\n
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a><br>\n

</div>\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'])." <img src='".IMAGES."ani-arrow.gif' border='0'></a></b></center>\n";
}
?>




Pameginau katik ir į administration/... tenais sukelti , bet irgi nieko . Tai visus failus atstačiau į normlius .

Redagavo Jupiter· 2008 Kov. 25 02:03:12

Parašė ramon· 2008 Kov. 25 02:03:25
#12

Pratestuoti negaliu nes ftp neveikia. ?| hmm gal kaip nors ryt nes dbr varau miegot [ryt anksti keltis] ;)

Parašė Jupiter· 2008 Kov. 25 02:03:38
#13

Na gerai , ačiū nors ir už tokią pagalbą kuri nepadėjo :D Šeip butų juokingą man jei nebūtu graudu , nes jau sėdžių prie to subheader nuo 00:00val. :D

Redagavo Jupiter· 2008 Kov. 25 10:03:23

Parašė Jupiter· 2008 Kov. 25 10:03:20
#14

Labas rytas , taigi noriu paklausti gal kas žino kaip reikia tai padaryti (Prisijungimą subheaderyje) :?

Parašė eimantas123· 2008 Kov. 25 11:03:54
#15

Zinai kiek tu temu buvo? ojojoj, ismok paieska naudotis.

Parašė Jupiter· 2008 Kov. 25 13:03:31
#16

Ieškojau , o tų temų neradau . Ramon dar vakar man bandė padėti , bet nieko nesigavo , tai ir klausiu .

Parašė bad_user· 2008 Kov. 25 13:03:10
#17

Va tarp šito kišk:

<td class='sub-header'>login forma</td>

Parašė Jupiter· 2008 Kov. 25 13:03:54
#18

SoNG parašė:
Va tarp šito kišk:

<td class='sub-header'>login forma</td>

Tarp ko šito ?

Parašė bad_user· 2008 Kov. 25 13:03:54
#19

Taigi parašiau
Imk pradžia. Su IF pats pasidaryk.
echo"<table width='100%' height='100%' cellspacing='0' cellpadding='0' class='sub-header'>
<tr><td align='left' width='40%'>".showsublinks("&middot;","white")."<td align='right' width='60%'>
<form name='loginform' method='post' action='news.php'>
Slapyvardis: <input type='text' name='user_name' class='textbox' style='width:75px;'>&nbsp;&nbsp;Slaptažodis: <input type='password' name='user_pass' class='textbox' style='width:75px;'>&nbsp;
<a href='lostpassword.php' alt='Užmiršai slaptažodį ?'><font color='#FF9900' face='Arial Black' size='3'><b>?</b></font></a>
<input type='checkbox' name='remember_me' value='y'>&nbsp;<input type='submit' name='login' value='Jungtis' class='button'></form>
</td></table>";



Parašė Jupiter· 2008 Kov. 25 13:03:48
#20

Čia themes.php faile :?

Parašė Dandžu· 2008 Kov. 25 13:03:17
#21

Tarp td dėk.

Parašė Jupiter· 2008 Kov. 25 13:03:05
#22

Ka tarp td ? Aš klausiu ar theme.php faile ...

Parašė bad_user· 2008 Kov. 25 13:03:10
#23

taip nu koks bukas tai atsiprašau. Tai ka gal už tave mama dar ir sukramto ir tada į burną įdeda.. Padaviau ant lekštutės ir dar nedaeina.. :|

Parašė Jupiter· 2008 Kov. 25 13:03:52
#24

Aš tik paklausiau ar themes.php faile , nes galvoaju , kad subheader.php faile reikėjo . Ačiū .

Parašė bad_user· 2008 Kov. 25 13:03:58
#25

Trink viena posta nes duble.. Į sveikata.. :)