Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Įdomus prisijungimas

Parašė samsung123· 2008 Kov. 8 20:03:19
#1

Noriu sužinoti kaip padaryti tokį prisijungimą įdedu fotkę
Jei žinot modą ar koda priekit ;]






Parašė sniuff· 2008 Kov. 8 20:03:02
#2

Duok temą padarysiu tokį ;)

Parašė samsung123· 2008 Kov. 8 20:03:12
#3

<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#555555";
$body_bg = "#006600";
$theme_width = "988";
$theme_width_l = "175";
$theme_width_r = "175";

function render_header($header_content) {

global $theme_width,$settings,$locale,$userdata,$aidlink;

echo "<table align=center class='mainsite-border' align='left' width='910' 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";
include_once "headeris.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 align='center' class='footer'>".stripslashes($settings['footer'])."<br>\n";
echo "</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 samsung123· 2008 Kov. 8 20:03:22

Parašė Toonis· 2008 Kov. 8 20:03:55
#4

Tai, kad čia tik subheader.php keistas ir viskas. ;} Nieko nereikia kišti į theme.php

Parašė samsung123· 2008 Kov. 8 20:03:28
#5

<?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='shortcut icon' href='".BASEDIR."images/icon.bmp'>
<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";

render_header("<img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."'>");
?>


SUBHEADER.PHP

Redagavo samsung123· 2008 Kov. 8 20:03:38

Parašė sniuff· 2008 Kov. 8 20:03:49
#6

Toonis parašė:
Tai, kad čia tik subheader.php keistas ir viskas. ;} Nieko nereikia kišti į theme.php

O čia po headeriu, ar prieš ? Nes jei po tai reikia themes.php redaguoti...

Parašė samsung123· 2008 Kov. 8 20:03:12
#7

PO headeriu ;]]]

Parašė sniuff· 2008 Kov. 8 20:03:34
#8

function render_header($header_content) {

global $theme_width,$settings,$locale,$userdata,$aidlink;

echo "<table align=center class='mainsite-border' align='left' width='910' 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";
include_once "headeris.php";
echo "</td></tr>
</table>\n";
echo "<table><tr><td align='center'><form name='loginform' method='post' action='".FUSION_SELF."'>".$locale['061']." <input type='text' name='user_name' class='textbox' style='width:100px'> ".$locale['062']." <input type='password' name='user_pass' class='textbox' style='width:100px'> <input type='checkbox' name='remember_me' value='y'>".$locale['063']."? <input type='submit' name='login' value='Login' class='button'> <a href='".BASEDIR."register.php'>Registracija</a> | <a href='".BASEDIR."lostpassword.php'>Priminti</a></form></td></tr></table>";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}




Bandyk. Čia themes.php pasikeisi tą vietą.

Parašė samsung123· 2008 Kov. 8 20:03:39
#9

veikia, bet dar kaip padaryti dabar toje vietoje yra bg ir šone yra ;] kaip vietoj bg padaryti paveiskliuka?






Redagavo samsung123· 2008 Kov. 8 20:03:01