Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: budysystem

Parašė Jupiter· 2007 Gru. 11 17:12:00
#1

budysystem nerandu niekur jos ieskau savaite kokia :/ gal kas turite. tai yra draugu sistema.

Parašė Enzo· 2007 Gru. 11 17:12:50
#2

Prašom

Parašė Jupiter· 2007 Gru. 11 17:12:53
#3

Enzo dekui , bet atme readme faile skaitau kaip ten reikia viska padaryti ir nesigauna nieko...


a) Search for :
--------------------------------------------------

include LOCALE.LOCALESET."user_fields.php";

Add directly under the following :
--------------------------------------------------

if (file_exists(INFUSIONS."buddy_system_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."buddy_system_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."buddy_system_panel/locale/English.php";
}
if(iMEMBER && isset($lookup) && isset($addbuddy)){
dbquery("INSERT INTO ".$db_prefix."buddy VALUES('".$userdata['user_id']."','".$lookup."')");
}





kur tai irasyti ?

Parašė Enzo· 2007 Gru. 11 18:12:31
#4

Jupiter parašė:
Enzo dekui , bet atme readme faile skaitau kaip ten reikia viska padaryti ir nesigauna nieko...


a) Search for :
--------------------------------------------------

include LOCALE.LOCALESET."user_fields.php";

Add directly under the following :
--------------------------------------------------

if (file_exists(INFUSIONS."buddy_system_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."buddy_system_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."buddy_system_panel/locale/English.php";
}
if(iMEMBER && isset($lookup) && isset($addbuddy)){
dbquery("INSERT INTO ".$db_prefix."buddy VALUES('".$userdata['user_id']."','".$lookup."')");
}





kur tai irasyti ?



Profile.php faile surandi ko praso ir po juo dedi koda kurį tau davė. Tas pats ir su edit_profile.php:)

Parašė Jupiter· 2007 Gru. 11 18:12:42
#5

hmm :/ nieko nesigauna . Neikertu kaip reikia :/ gal galetum padaryti ? plz as tos failus prisegciau kuriu reikia.

Parašė Enzo· 2007 Gru. 11 18:12:20
#6

Jupiter parašė:
hmm :/ nieko nesigauna . Neikertu kaip reikia :/ gal galetum padaryti ? plz as tos failus prisegciau kuriu reikia.


Prisek?|

Parašė Enzo· 2007 Gru. 11 18:12:01
#7

Atrodo reikėjo tik edit_profile.php padaryt tai va kodas

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 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 (file_exists(INFUSIONS."buddy_system_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."buddy_system_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."buddy_system_panel/locale/English.php";
}

if(iMEMBER && isset($lookup) && isset($removebuddy)){
dbquery("DELETE FROM ".$db_prefix."buddy WHERE buddy_user_id='".$userdata[user_id]."' AND buddy_buddy_id='".$lookup."'");
}


//PahaW - buddy - start
if (file_exists(INFUSIONS."buddy_system_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."buddy_system_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."buddy_system_panel/locale/English.php";
}

if(iMEMBER && isset($lookup) && isset($removebuddy)){
dbquery("DELETE FROM ".$db_prefix."buddy WHERE buddy_user_id='".$userdata[user_id]."' AND buddy_buddy_id='".$lookup."'");
}
//PahaW - buddy - end

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'];
   } 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='formname' method='post' action='".FUSION_SELF."' enctype='multipart/form-data'>\n";
   echo "<table align='center' cellspacing='0' cellpadding='0'>\n";
   if (isset($update_profile)) {
      if (!isset($error)) {
         echo "<tr>\n<td colspan='2' class='tbl'>".$locale['441']."<br><br>\n</td>\n</tr>\n";
      } else {
         echo "<tr>\n<td colspan='2' class='tbl'>".$locale['442']."<br><br>\n$error<br></td>\n</tr>\n";
         unset($error);
      }
   }
   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'>".$locale['u021']."</td>
<td class='tbl'><input type='text' name='user_aim' value='".$userdata['user_aim']."' maxlength='16' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u011']."</td>
<td class='tbl'><input type='text' name='user_icq' value='".$userdata['user_icq']."' maxlength='15' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u012']."</td>
<td class='tbl'><input type='text' name='user_msn' value='".$userdata['user_msn']."' maxlength='100' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u013']."</td>
<td class='tbl'><input type='text' name='user_yahoo' value='".$userdata['user_yahoo']."' maxlength='100' 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['u015']."</td>
<td class='tbl'><select name='user_theme' class='textbox' style='width:100px;'>
".makefileopts($theme_files, $userdata['user_theme'])."
</select></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' enctype='multipart/form-data' class='textbox' style='width:200px;'><br>
<span class='small2'>".$locale['u018']."</span>
</td>
</tr>\n";
   }
echo "<tr>
<td valign='top' class='tbl'>".$locale['u020']."</td>
<td class='tbl'>
<textarea name='user_sig' rows='5' class='textbox' style='width:295px'>".$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']."'><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();

//PahaW - buddy - start
   tablebreak();
opentable($locale['BUD100']);
   $result=dbquery("SELECT user_id,user_name FROM ".$db_prefix."buddy LEFT JOIN ".$db_prefix."users ON buddy_buddy_id=user_id WHERE buddy_user_id='".$userdata['user_id']."' ORDER BY user_name ASC");
   if (dbrows($result)!=0){
       echo "<table align='center' cellpadding='0' cellspacing='0'>";
       while ($data=dbarray($result)){
             echo "<tr>
                    <td class='small' align='left'><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']." </a></td>
                    <td class='small' align='right'>&nbsp;[ <a href='".BASEDIR."edit_profile.php?lookup=".$data['user_id']."&removebuddy'>".$locale['BUD105']."</a> ]</td></tr>";
       }
       echo "</table>";
   } else {
       echo "<center>".$locale['BUD103']."</center>";
   }
   echo "<br /><div align='center'><a href='".BASEDIR."members.php'>".$locale['BUD104']."</a></div>";
closetable();
//PahaW - buddy - end

} else {
   echo "<center><br>\n".$locale['03']."<br>\n<br></center>\n";
   closetable();
}


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




Tada instaliuok ir sukelk profile.php ir edit_profile.php

Jai neveiks sakyk:)

Redagavo Enzo· 2007 Gru. 11 18:12:10

Parašė Jupiter· 2007 Gru. 11 18:12:33
#8

viskas gerai :]. hmm , o gal zinai kaip padaryti , kad nereiktu vaikscioti nariai ir panasiai , o is karto mano draugai atsirastu panele ?

Redagavo Jupiter· 2007 Gru. 11 18:12:08

Parašė Enzo· 2007 Gru. 11 18:12:43
#9

Naudok Draugų ir svečių modą. Jį prisegu. Man jis geresnis už šitą.

Parašė Jupiter· 2007 Gru. 11 18:12:45
#10

diekui , paziuresim kas cia yra :] ;)

Parašė Jupiter· 2007 Gru. 11 18:12:21
#11

:D :D :D enzo dar turiu viena klausima ;]]] gal zinai ar yra toksai gimtadieniu modas-panele panasi i one.lt gimtadieniai tartum rodo pries 5d. kada zmogaus gimtadienis ir gali ji i pm pasveikinti

Parašė GoN· 2007 Gru. 11 18:12:33
#12

Ka tas modas cia daro? :D

Parašė Jupiter· 2007 Gru. 11 18:12:48
#13

nznau ;D

Parašė Enzo· 2007 Gru. 11 18:12:54
#14

Va:

@openside('Gimtadieniai');
$result=dbquery(
"SELECT user_id, user_name, DATE_FORMAT(user_birthdate, '%d') AS birth_day, EXTRACT(MONTH FROM user_birthdate) AS birth_month ".
"FROM ".$db_prefix."users ".
"WHERE EXTRACT(MONTH FROM user_birthdate)>EXTRACT(MONTH FROM NOW()) OR ".
"(EXTRACT(MONTH FROM user_birthdate)=EXTRACT(MONTH FROM NOW()) AND EXTRACT(DAY FROM user_birthdate)>=EXTRACT(DAY FROM NOW())) ".
"ORDER BY birth_month , birth_day LIMIT 0,7"
);

// Calculate Today's Date
$today = strftime("%b %d");

echo "<table width='100%' cellpadding='0' cellspacing='0'>";
if (dbrows($result) != 0) {
$months = explode("|", $locale['shortmonths']);
while ($data = dbarray($result)) {
$birthdate = $months[$data['birth_month']]." ".$data['birth_day'];
// If It's a Birthday, bold it
if ($birthdate == $today) {
$birthdate = "<span style='font-weight:bold'>Šiandien! - </span><i><a href='messages.php?msg_send=".$data['user_id']."'><font color=brown><b>sveikinti?</b></color></a></i></span>";
}
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td>
<a href='".BASEDIR."profile.php?lookup=$data[user_id]'
onmouseover=\"gpe('text: <b>".$data['user_name']."</b><hr>".$locale['XXX_004'].": ".$data['user_location']."<br><br> ".$data['user_msn'].";')\">";

echo "$data[user_name]</a></td><td class='small2' align='right'>".$birthdate."</td></tr>";
}
}
echo "</table>";
closeside();



Redagavo Enzo· 2007 Gru. 11 18:12:04

Parašė Enzo· 2007 Gru. 11 18:12:18
#15

adrenalinas parašė:
Ka tas modas cia daro? :D


Kuris?

Parašė GoN· 2007 Gru. 11 18:12:42
#16

Enzo parašė:
adrenalinas parašė:
Ka tas modas cia daro? :D


Kuris?


budysystem

Parašė Enzo· 2007 Gru. 11 18:12:50
#17

adrenalinas parašė:
budysystem


Draugų modas pavizdys: http://babatukas.kissme.in/profi...p?lookup=2

Redagavo ozzWANTED· 2007 Gru. 11 19:12:42

Parašė Jupiter· 2007 Gru. 11 18:12:44
#18

Enzo is kur tu visus tuos kodus trauki :D ?

Parašė Jupiter· 2007 Gru. 11 19:12:09
#19

Enzo man ant to dar meta erora kai nustatau , lietuviu kalba , o kai anglu tai nemeta ka daryti ? :/

Warning: include(infusions/buddy_system_panel/locale/English.php) [function.include]: failed to open stream: No such file or directory in /usr/home/www1/ftp/vL1/locale/Lithuanian/user_fields.php on line 45

Warning: include() [function.include]: Failed opening 'infusions/buddy_system_panel/locale/English.php' for inclusion (include_path='.:/usr/local/share/pear') in /usr/home/www1/ftp/vL1/locale/Lithuanian/user_fields.php on line 45



Parašė Enzo· 2007 Gru. 11 19:12:24
#20

Jupiter parašė:
Enzo is kur tu visus tuos kodus trauki :D ?


http://www.phpfusion.lt ;)

Parašė GoN· 2007 Gru. 11 19:12:15
#21

pz kas cia blt ji dalina?

Parašė Enzo· 2007 Gru. 11 19:12:23
#22

Jupiter parašė:
Enzo man ant to dar meta erora kai nustatau , lietuviu kalba , o kai anglu tai nemeta ka daryti ? :/

Warning: include(infusions/buddy_system_panel/locale/English.php) [function.include]: failed to open stream: No such file or directory in /usr/home/www1/ftp/vL1/locale/Lithuanian/user_fields.php on line 45

Warning: include() [function.include]: Failed opening 'infusions/buddy_system_panel/locale/English.php' for inclusion (include_path='.:/usr/local/share/pear') in /usr/home/www1/ftp/vL1/locale/Lithuanian/user_fields.php on line 45




45 eilutėj kažkas negerai.:|

Parašė Jupiter· 2007 Gru. 11 19:12:52
#23

o kas jai negerai ? :/ ir kaip suprasti 45 eilute ?

Parašė Enzo· 2007 Gru. 11 19:12:01
#24

Jupiter parašė:
o kas jai negerai ? :/ ir kaip suprasti 45 eilute ?


Uzeik į locale/Lithuanian/user_fields.php spausk ctrl g ir rašyk eilutės skaičių šiuo atveju 45:|

Parašė Jupiter· 2007 Gru. 11 19:12:22
#25

Susitvarkaiu :):s

Redagavo Jupiter· 2007 Gru. 11 19:12:00

Parašė Jolanciux· 2008 Lap. 19 20:11:12
#26

tai va nusprendžiau ir aš pasinaudoti šita draugų sistema,bet kai noriu pridėti draugą ir paspaudžiu ant nuorodos: Pridėti prie draugų, man tas asmuo neatsiranda drauguose, o virš jo profilio atsiranda toks užrašas: Column count doesn't match value count at row 1. Gal galite padėti? :s

Parašė tabux· 2008 Lap. 20 20:11:06
#27

Tas asmuo turi patvirtinti tavo draugyste.

Parašė Jolanciux· 2008 Lap. 20 20:11:05
#28

Kad neina net pakviesti jo i draugus.

Parašė tabux· 2008 Lap. 20 20:11:28
#29

Tas budy system skirtas 6 fusionui o ant kokio bandai?

Parašė Jolanciux· 2008 Lap. 20 20:11:32
#30

ant v6 ir bandau

Parašė tabux· 2008 Lap. 20 20:11:49
#31

Specialiai isbandziau, viskas kuo puikiausiai veikia. Kažką ne taip darai.

Parašė Jolanciux· 2008 Lap. 20 21:11:49
#32

:? tai gal bent zinai ka reiskia Column count doesn't match value count at row 1 ?|

Parašė tabux· 2008 Lap. 20 21:11:17
#33

Šitas ant v.6 š.. palyginus su draugų sistema ant v.7, gali nueiti pasižiūrėti, jau įdiegiau, tik teks registruotis... O ta klaida tai dėl neteisingos užklausos.

Parašė Jolanciux· 2008 Lap. 20 21:11:41
#34

uzklausos?ta prasme duombazeje?
o kur nueiti paziureti? :?

Redagavo Jolanciux· 2008 Lap. 20 21:11:04

Parašė tabux· 2008 Lap. 20 21:11:44
#35

www.robertas.lhosting.info

Parašė Jolanciux· 2008 Lap. 21 10:11:06
#36

Man reikia normalios veikiancios draugu sistemos, sita tikrai ss... o kiek isbandziau kitu, tai vis kazkas negerai buna