Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: w0rm'o klausimynas

Parašė w0rm· 2009 Lie. 10 04:07:42
#1

1.# bandau pasidaryti kaip sito supporto profile.php kat rodytu skype: nickas ir paspaudus ant jo pradetu chata su tuo asmeniu

stai kodas, kuris maneu kad veiks, bet xuj jis ten veike, error
prasyciau pataisyti
kodas:
<tr>
<td width='1%' class='tbl1' style='white-space:nowrap'><b>Skype:</b></td>
<td class='tbl1'>
".($data['user_aim'] ? "
<a href='skype:".$data['user_aim']."?chat'>.$data['user_aim']."</a>"
</td>
</tr>



Parašė _Tomas· 2009 Lie. 10 04:07:34
#2

<tr>
<td width='1%' class='tbl1' style='white-space:nowrap'><b>Skype:</b></td>
<td class='tbl1'>
".($data['user_aim'] ? "
<a href='skype:".$data['user_aim']."?chat'>".$data['user_aim']."</a>" : $locale['u048'])."
</td>
</tr>




Parašė w0rm· 2009 Lie. 10 04:07:31
#3

Idekit sita koduka i theme.php
Noriu kad ties ta linija (ant juodos linijos) butu migtukai, paskui juos nusipiesiu....
Paceiksliukas:




Kodukas:
<tr>
   <td width=\"987\">
   <img src=\"".THEME."images/header.png\" border=\"0\" width=\"800\" height=\"319\" alt=\"\" usemap=\"#menu\" />
<map name=\"menu\">
<area shape=\"circ\" coords=\"64,23,50\" href=\"".BASEDIR."index.php\" />
<area shape=\"circ\" coords=\"175,21,55\" href=\"".BASEDIR."forum/index.php\" />
<area shape=\"circ\" coords=\"415,24,52\" href=\"".BASEDIR."downloads.php\" />
<area shape=\"circ\" coords=\"531,24,54\" href=\"".BASEDIR."search.php\" />
</map>
   </td>
</tr>




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

// theme settings
$body_text = "#D7D7D7";
$body_bg = "#525252";
$theme_width = "804";
$theme_width_l = "140";
$theme_width_r = "140";


function render_header($header_content) {

global $theme_width,$aidlink,$userdata,$msg_count,$settings,$db_prefix,$uidlink,$result;

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>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'></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%' class='footer'>
<tr>
<td align='left' width='200' style='padding-left: 30px;'>Code: DeeJay</td>
<td align='center'  style='padding-center: 150px;'>".stripslashes($settings['footer'])."
<td align='right' width='200' style='padding-right: 30px;'>Engine: <a href='http://php-fusion.co.uk/'>PHP-Fusion</a></td>
</tr>
</table>
</td>
</tr>
</table><br>\n";

}

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

echo "<table cellpadding='0' cellspacing='0' width='596'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='left' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," &middot;").newsopts($info,"&middot;");
echo "</td>
</tr>
</table>\n";
tablebreak();tablebreak();
}

function render_article($subject, $article, $info) {
   
echo "<table width='536' 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";
tablebreak();tablebreak();
}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='596'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";

}

function closetable() {

echo "</td>
</tr><tr>
<td align='center' class='news-footer'></td></tr>
</table>\n";
tablebreak();tablebreak();
}

function openside($title) {
   
echo "</center><table cellpadding='0' cellspacing='0' width='186' class='border'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'></center>\n";

}

function closeside() {

echo "</td>
</tr><tr>
<td align='center' class='a-footer'></td></tr>
</table>\n";
tablebreak();tablebreak();tablebreak();tablebreak();
}

function opensidex($title,$state="on") {

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='596' 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";

}
?>




Aciu, nes nlb suprantru kur ji grusti :(

Redagavo w0rm· 2009 Lie. 10 14:07:26

Parašė Žmogus· 2009 Lie. 10 14:07:59
#4

function render_header($header_content) {

global $theme_width,$aidlink,$userdata,$msg_count,$settings,$db_prefix,$uidlink,$result;

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>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
   <td width=\"987\">
   <img src=\"".THEME."images/header.png\" border=\"0\" width=\"800\" height=\"319\" alt=\"\" usemap=\"#menu\" />
<map name=\"menu\">
<area shape=\"circ\" coords=\"64,23,50\" href=\"".BASEDIR."index.php\" />
<area shape=\"circ\" coords=\"175,21,55\" href=\"".BASEDIR."forum/index.php\" />
<area shape=\"circ\" coords=\"415,24,52\" href=\"".BASEDIR."downloads.php\" />
<area shape=\"circ\" coords=\"531,24,54\" href=\"".BASEDIR."search.php\" />
</map>
   </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";

}



Parašė w0rm· 2009 Lie. 10 14:07:55
#5

aciu, isidejau

Parse error: parse error in C:\wamp\www\edit_profile.php on line 27



isemeu visus tuos yahoo ir t.t ir db meta klaida
edit_profile.php

<?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
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."members-profile.php";
include LOCALE.LOCALESET."user_fields.php";

if (isset($_POST['update_profile'])) require_once INCLUDES."update_profile_include.php";

opentable($locale['440']);
if (iMEMBER) {
   if ($userdata['user_birthdate']!="0000-00-00") {
      $user_birthdate = explode("-", $userdata['user_birthdate']);
      $user_month = number_format($user_birthdate['1']);
      $user_day = number_format($user_birthdate['2']);
      $user_year = $user_birthdate['0'];
   m} else {
      $user_month = 0; $user_day = 0; $user_year = 0;
   }
   $theme_files = makefilelist(THEMES, ".|..", true, "folders");
   array_unshift($theme_files, "Default");
   $offset_list = "";
   for ($i=-13;$i<17;$i++) {
      if ($i > 0) { $offset="+".$i; } else { $offset=$i; }
      $offset_list .= "<option".($offset == $userdata['user_offset'] ? " selected" : "").">$offset</option>\n";
   }
   echo "<form name='inputform' method='post' action='".FUSION_SELF."' enctype='multipart/form-data'>\n";
   echo "<table align='center' cellpadding='0' cellspacing='0'>\n";
   if (isset($update_profile)) {
      echo "<tr>\n<td colspan='2' class='tbl'>".$locale['441']."<br><br>\n</td>\n</tr>\n";
   }
   echo "<tr>
<td class='tbl'>".$locale['u001']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'><input type='text' name='user_name' value='".$userdata['user_name']."' maxlength='30' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u003']."</td>
<td class='tbl'><input type='password' name='user_newpassword' maxlength='20' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u004']."</td>
<td class='tbl'><input type='password' name='user_newpassword2' maxlength='20' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u005']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'><input type='text' name='user_email' value='".$userdata['user_email']."' maxlength='100' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u006']."</td>
<td class='tbl'><input type='radio' name='user_hide_email' value='1'".($userdata['user_hide_email'] == "1" ? " checked" : "").">".$locale['u007']."
<input type='radio' name='user_hide_email' value='0'".($userdata['user_hide_email'] == "0" ? " checked" : "").">".$locale['u008']."</td>
</tr>
<tr>
<td class='tbl'>".$locale['u009']."</td>
<td class='tbl'><input type='text' name='user_location' value='".$userdata['user_location']."' maxlength='50' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u010']." <span class='small2'>(mm/dd/yyyy)</span></td>
<td class='tbl'><select name='user_month' class='textbox'>\n<option>--</option>\n";
   for ($i=1;$i<=12;$i++) echo "<option".($user_month == $i ? " selected" : "").">$i</option>\n";
echo "</select>
<select name='user_day' class='textbox'>\n<option>--</option>\n";
   for ($i=1;$i<=31;$i++) echo "<option".($user_day == $i ? " selected" : "").">$i</option>\n";
echo "</select>
<select name='user_year' class='textbox'>\n<option>----</option>\n";
   for ($i=1900;$i<=2004;$i++) echo "<option".($user_year == $i ? " selected" : "").">$i</option>\n";
echo "</select>
</td>
</tr>
<tr>
<td class='tbl'>Skype id:</td>
<td class='tbl'><input type='text' name='user_aim' value='".$userdata['user_aim']."' maxlength='50' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u014']."</td>
<td class='tbl'><input type='text' name='user_web' value='".$userdata['user_web']."' maxlength='100' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u016']."</td>
<td class='tbl'><select name='user_offset' class='textbox' style='width:100px;'>
$offset_list</select></td>
</tr>\n";
   if (!$userdata['user_avatar']) {
      echo "<tr>
<td class='tbl'>".$locale['u017']."</td>
<td class='tbl'>
<input type='file' name='user_avatar' class='textbox' style='width:200px;'><br>
<span class='small2'>".$locale['u018']."</span><br>
<span class='small2'>".sprintf($locale['u022'], parsebytesize(50720), 120, 120)."</span>
</td>
</tr>\n";
   }
echo "<tr>
<td valign='top' class='tbl'>".$locale['u020']."</td>
<td class='tbl'>
<textarea name='user_sig' rows='5' cols='53' class='textbox'>".$userdata['user_sig']."</textarea><br>
<input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onClick=\"addText('user_sig', '', '');\">
<input type='button' value='i' class='button' style='font-style:italic;width:25px;' onClick=\"addText('user_sig', '', '');\">
<input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onClick=\"addText('user_sig', '', '');\">
<input type='button' value='url' class='button' style='width:30px;' onClick=\"addText('user_sig', '[url]', '[/url]');\">
<input type='button' value='mail' class='button' style='width:35px;' onClick=\"addText('user_sig', '[mail]', '[/mail]');\">
<input type='button' value='img' class='button' style='width:30px;' onClick=\"addText('user_sig', '[img]', '[/img]');\">
<input type='button' value='center' class='button' style='width:45px;' onClick=\"addText('user_sig', '
', '
');\">
<input type='button' value='small' class='button' style='width:40px;' onClick=\"addText('user_sig', '', '');\">
</td>
</tr>
<tr>
<td align='center' colspan='2' class='tbl'><br>\n";
   if ($userdata['user_avatar']) {
      echo $locale['u017']."<br>\n<img src='".IMAGES."avatars/".$userdata['user_avatar']."' alt='".$locale['u017']."'><br>
<input type='checkbox' name='del_avatar' value='y'> ".$locale['u019']."
<input type='hidden' name='user_avatar' value='".$userdata['user_avatar']."'><br><br>\n";
   }
   echo "<input type='hidden' name='user_hash' value='".$userdata['user_password']."'>
<input type='submit' name='update_profile' value='".$locale['460']."' class='button'></td>
</tr>
</table>
</form>\n";
   closetable();
} else {
   echo "<center><br>\n".$locale['003']."<br>\n<br></center>\n";
   closetable();
}

require_once "side_right.php";
require_once "footer.php";
?>



Redagavo w0rm· 2009 Lie. 10 15:07:55

Parašė w0rm· 2009 Lie. 10 17:07:57
#6

Kaip centruot sita visa koda ?
echo "<table width='100%'>
<tr>
<td width='33%'>";
openside("<center>New</center>");
echo "<div class='side-label'><b></b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 100");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 40)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "";
closeside();
echo "</td>
<td width='33%'>";
openside("<center>Top</center>");
echo "<div class='side-label'><b></b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 100");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 40);
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside();
echo "</tr>
</table>";



bl tai negi nieks negali sucentruot ? :o

5 žinutė iš 6 bet 6 tai nera :DDd

Redagavo w0rm· 2009 Lie. 10 17:07:05

Parašė w0rm· 2009 Lie. 10 18:07:07
#7

UP! :s

Parašė And2s· 2009 Lie. 10 18:07:34
#8

echo "<table align='center' width='100%'>
<tr>
<td width='33%'>";
openside("<center>New</center>");
echo "<div class='side-label'><b></b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 100");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 40)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "";
closeside();
echo "</td>
<td width='33%'>";
openside("<center>Top</center>");
echo "<div class='side-label'><b></b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 100");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 40);
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside();
echo "</tr>
</table>";




Redagavo ozzWANTED· 2009 Lie. 10 18:07:09

Parašė w0rm· 2009 Lie. 10 19:07:59
#9

kai as nevykelis... net nemaceu tos vietos :]



nelabaij panasu kad centre butu :] ka daryt ?

Redagavo w0rm· 2009 Lie. 10 20:07:26

Parašė bad_user· 2009 Lie. 10 20:07:30
#10

<td width='33%' align='center'> (abiems) :)

Parašė w0rm· 2009 Lie. 10 20:07:41
#11

kai pavalgysiu pazesiu
Edit: Mldc SoNG Caca katinas :]
Edit2: 4.# klausimas: Kokia gereuse talpykla, kurioje ilgai islaiko idetus failus, ir siuncia bent 100kb/s greiciu ? (talpinsiu muzika)

Redagavo w0rm· 2009 Lie. 10 21:07:42

Parašė w0rm· 2009 Lie. 10 21:07:52
#12

4.# klausimas: Kokia gereuse talpykla, kurioje ilgai islaiko idetus failus, ir siuncia bent 100kb/s greiciu ? (talpinsiu muzika)

Parašė zDon· 2009 Lie. 10 21:07:32
#13

mediafare.com

Parašė w0rm· 2009 Lie. 10 22:07:43
#14

gal zinot kokiu downloaderiu is youtubo kad iskart padarytu mp3 faila? nes kai su vdownloader siunciuos tai klipas uzema 50mb o mp3 failas net 15mb nors daina tiktai 4min :o
Edit: 11 žinutė iš 14 bet sita zinute juk paskutine :D

Redagavo w0rm· 2009 Lie. 10 22:07:32

Parašė w0rm· 2009 Lie. 11 12:07:32
#15

isimkit ta openside kur padaro fona paneles
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }

if (iMEMBER) {
   openside($userdata['user_name']);
   $sk = 0;
   $result = dbquery("SELECT * FROM ".$db_prefix."user_ratings WHERE rate_subject = '".$userdata['user_id']."'");
   if (dbrows($result)) {
      while ($data = dbarray($result)) $sk = $sk+$data['rate_opt'];
   }
   $vert = (dbrows($result) > 0 ? round($sk/dbrows($result),2) : "N&#235;ra");
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo ($userdata['user_avatar'] ? "<center><img src='".IMAGES."avatars/".$userdata['user_avatar']."'></center><br>\n" : "<center>N&#235;ra avataro</center><br>\n")."<br>
<img src='".THEME."images/bullet.gif' alt=''> Vidutinis ivertinimas: $vert<br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'>Mano profilis</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</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'>".$locale['083']."</a><br>\n";
   }
   echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\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'])."</a></b></center>\n";
} else {
   openside($locale['060']);
   echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form>
<br>\n";
   if ($settings['enable_registration']) {
      echo "".$locale['065']."<br><br>\n";
   }
   echo $locale['066']."
</div>\n";
}
closeside();



Redagavo w0rm· 2009 Lie. 11 12:07:06

Parašė w0rm· 2009 Lie. 11 13:07:29
#16

kaip balta ar kita spalva padaryti permatoma (transparent) per photoshopa ? :s (be trintuko naudojimo)

Parašė Meskis· 2009 Lie. 11 14:07:53
#17

Opacity sumažink

Parašė Pakartoti slaptažodį· 2009 Lie. 11 15:07:53
#18

Arba fill. ;)

Parašė w0rm· 2009 Lie. 11 16:07:54
#19

dareu kitaip: 1 naudojau magic wade tool o tada su trintuku, easy ant perfect beveik
Pries jusu pagalba deejay sukurtu theme atrode taip:

po jusu pagalbos atrode taip:

Aisq ir pats taip galejau padaryt bet tingejau ziuret, kadangi yra uz mane "gudresniu kurie pazejo ir be manes :]
Vertinam, ir sakom kad didelis sudas ;)