Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: mm galit kas?

Parašė emusic· 2009 Bir. 10 19:06:28
#4

matai as noriu y weba isidet dovanu sistema ir man reik ten i profile.php iterpt koda bet as nerandu kur ta koda reik itertp ;/wat sita dalyka reik padaryt su profile.php


Description:
This system allows your users to buy gifts to each other. Gifts will be displayed in the profile as images. You add gifts in the admin panel and set a price to each gift and how many items that should be awailable to buy.
A link in the user profile is linking to the page where you can buy gifts to other users.

Note: this system requiers the User Gold system to work, go til www.starglowone.com to get the User Gold system. Support for users who dos not use the User Gold system will not be given.

Installation instructions:

1. Upload the infusion/sf_gift_system folder to root\ on your webserver

2. Install it as an normal infusion under Infusions in the Admin Panel => System Admin

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>
<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>


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

4. Upload the new profile.php to your site

5. Add the SF Gift Panel as a normal panel if you want

6. Go to a users profile and start giving gifts ;)