Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Deiviux Klausimai (New Question)
Parašė Deiviux.eu· 2008 Gru. 7 13:12:09
#1
#1.
Kaip padaryti kad kai žmogus registruojasi ir jeigu jo nicke nėra šito ženklo >>>
_ (to brūkšniuko apačioje) tada neleidžia registruotis? :?
Redagavo Deiviux.eu· 2008 Gru. 8 18:12:21
Parašė Deiviux.eu· 2008 Gru. 8 16:12:39
#2
Taj Tipo Nezinot?
Parašė MAnjack· 2008 Gru. 8 16:12:41
#3
Abėjoju ar pasidarysi, kad ir pasakysiu :D
Parašė sniuff· 2008 Gru. 8 16:12:23
#4
padarai, jei to _ nera tai, tada mestu error ir vsio
Parašė ---· 2008 Gru. 8 17:12:18
#5
ir vsio :D tai padaryk kad kietas. Nepanaudosi paprasciausios if funkcijos
Parašė Deiviux.eu· 2008 Gru. 8 17:12:46
#6
2#.
Kaip padaryti kad headeris butu lygiai su panelemis?
Kaip linija pazymeta
<?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 = "900";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width,$aidlink,$userdata;
echo "<table align='center' cellpadding='0' cellspacing='0' width='$theme_width'>\n<tr>
<td align='right' class='sub-header'>".showsublinks("·","white")."</td>
</tr>
</table>\n";
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='$theme_width'>
</tr>
<tr>
<td width='700' class='header' align='left'><center><img src='".THEME."banner.png'></center></td>
<td width='200' class='login' align='center'>";
if (iMEMBER) {
echo "<b>Hey, ".$userdata['user_name']."!</b> <br><br>
- <a href='".BASEDIR."edit_profile.php'>aprašymas</a> <br>
- <a href='".BASEDIR."messages.php'>žinutės</a> <br>
- <a href='".BASEDIR."members.php'>nariai</a> <br>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "- <a href='".ADMIN."index.php".$aidlink."'>administracija</a> <br>";
}
echo "- <a href='".BASEDIR."setuser.php?logout=yes'>atsijungti</a> </td></div>";
} else {
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>
Vardas: <input type='text' name='user_name' class='textbox' style='width:90px;filter:alpha(opacity=70)'> <br>
Slaptažodis: <input type='password' name='user_pass' class='textbox' style='width:90px;filter:alpha(opacity=70)'> <br>
<input type='checkbox' name='remember_me' value='y'>- prisiminti? <input type='submit' name='login' value='Prisijungti' class='button'> <br><br>
<b><a href='".BASEDIR."register.php'>Užsiregistruok dabar!</a> <br>
<a href='".BASEDIR."lostpassword.php'>Pamiršai slaptažodį?</a></b> ";
}
echo "</td>
</tr>
</table>
</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='left' class='footer'>".stripslashes($settings['footer'])."</td>
<td align='right' class='footer'>Sprendimas: <a href='http://www.php-fusion.co.uk' target='_blank'>PHP-Fusion</a><br> Dizainas: <a href='http://www.emotive.in/' target='_blank'>emotive</td>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $aidlink,$item_type;
$res = "";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
<td class='capmain'></td>
</tr>
<tr>
<form name='editnews".$info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&news_id=".$info['news_id']."'>
<td class='main-body' width='92%'>$news</td>
<td class='main-body-2' width='8%'>";
if (iADMIN) {
echo "<input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$info['news_id'].".submit();'><img src='".THEME."images/redaguoti.png' align='center' border='0'></a> ";
}
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/spausdinti.png' align='center' border='0'></a> <a href='news.php?readmore=".$info['news_id']."'><img src='".THEME."images/placiau.png' align='center' border='0'></a>";
echo "</td>
</form>
</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>
</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 Deiviux.eu· 2008 Gru. 8 17:12:31
Parašė Niger· 2008 Gru. 8 18:12:21
#7
headerio image turi buti 900 pixeliu pagal tavo theme.php :|
Parašė Deiviux.eu· 2008 Gru. 8 18:12:20
#8
Taip ir yra headeris 700px o salia login 200px
Man atrodo cia paneliu ploti reik sutraukt bet kaip? :?
Redagavo Deiviux.eu· 2008 Gru. 8 18:12:05
Parašė Niger· 2008 Gru. 8 18:12:31
#9
Deiviux parašė:
Taip ir yra headeris 700px o salia login 200px
Man atrodo cia paneliu ploti reik sutraukt bet kaip? :?
:]:] nu tu pabandyk belekokia image uzmesti 900 px pamatysi kaip bus :|
Parašė Deiviux.eu· 2008 Gru. 8 18:12:15
#10
O rimtai padet negalit? ?|
Parašė ex-it· 2008 Gru. 10 23:12:28
#11
#1. Jei protingas, pasidarysi.
<?php
$name = 'lopas_tu';
if (strstr($name, '_')) {echo "Regina";} else {echo "Neregina";}
?>
Pamegink is
lopas_tu nutrinti
_ tada gausi Neregina. O jei paliksi kaip parasiau regins. Tik va vietoje regina neregina pasiziuri register faila ir pasidarai. As galeciau viska padaryti bet aisku kainuotu :P
Redagavo ex-it· 2008 Gru. 10 23:12:42
Parašė Deiviux.eu· 2008 Gru. 13 15:12:21
#12
ex-it parašė:
#1. Jei protingas, pasidarysi.
<?php
$name = 'lopas_tu';
if (strstr($name, '_')) {echo "Regina";} else {echo "Neregina";}
?>
Pamegink is
lopas_tu nutrinti
_ tada gausi Neregina. O jei paliksi kaip parasiau regins. Tik va vietoje regina neregina pasiziuri register faila ir pasidarai. As galeciau viska padaryti bet aisku kainuotu :P
Uz kiek padarytum? SMS atsiskaitymas?