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

Parašė MaFetas· 2009 Vas. 20 21:02:26
#4

kai nori tamsta viską gali rasti:
3. Open profile.php

3.1 Add this code snippet after include LOCALE.LOCALESET."user_fields.php";


//SF Gift System lang start

// Check if locale file is available matching the current site locale setting.
if (file_exists(INFUSIONS."sf_gift_system/locale/".LOCALESET."/profile.php")) {
// Load the locale file matching the current site locale setting.
include INFUSIONS."sf_gift_system/locale/".LOCALESET."/profile.php";
} else {
// Load the infusion's default locale file.
include INFUSIONS."sf_gift_system/locale/English/profile.php";
}

//SF Gift System lang end


3.2 Add this code snippet after <td class='tbl1'>".number_format($data['user_posts'])."</td></tr> in profile.php


<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['sfgift700']."</b></td>
<td class='tbl2'>";
if ((iMEMBER) && ($data['user_id'] != $userdata['user_id'])) {
echo "<a href='".INFUSIONS."sf_gift_system/brows_gifts.php?user_id=".$lookup."'>".$locale['sfgift701']." ".$data['user_name']."</a>";
} else {
echo $locale['sfgift701']." ".$data['user_name'];
}
echo "</td>
</tr>


3.3 Add this code snippet before require_once "side_right.php";

// SF Gift System start
if ((isset($lookup)) && (isNum($lookup))) {
if (file_exists(INFUSIONS."sf_gift_system/profile_include.php")) {
include INFUSIONS."sf_gift_system/profile_include.php";
}
}
// SF Gift System end

Redagavo MaFetas· 2009 Vas. 20 21:02:12