Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - theunder-ground

Pages: [1]
1
General SMFShop Discussion / Re: Shop Ideas
« on: August 29, 2006, 11:36:58 am »
Um, item transfers have already been coded. Multiple shops is also not that hard. I have done it; and while I don't feel like coding a way to make adding shops and stuff like that nice and easy, I could tell you how to add multiple shops the brute force way.(It takes manually editing the shop code/database, but that stuffs fun, right =P) I'll look at my code and post it up in a day or two.

The Multiple shops would be a blessing

2
Coding / Need help with modifications
« on: August 20, 2006, 06:10:51 am »
I have asked this at the SMF support forums, but it was only merged with daniel's shop mod post.  Any one that would be willing to help?  I think that my staff would love you forever.

I am trying to make the shop mod fit my needs.  I've almost got it done, but there is a few that are confusing me.

One of the main things that I want to be able to do is edit the currency amount through the profile.  I got the box to show up, it edits the database as needed, but unlike the place you edit the posts it doesn't show how much they currently have.  The other thing that heppens is that when the person makes another post their amount is reset to 0

I am also trying to get this amount to show up in the profile summary and it will not.

These are all the changes I made:

in sources/profile.php

find

Code: [Select]
// Change the number of posts.
if (isset($_POST['posts']) && allowedTo('moderate_forum'))
$profile_vars['posts'] = $_POST['posts'] != '' ? (int) $_POST['posts'] : '\'\'';

Add after
Code: [Select]
// Change the number of Diamonds.
if (isset($_POST['money']) && allowedTo('moderate_forum'))
$profile_vars['money'] = $_POST['money'] != '' ? (int) $_POST['money'] : '\'\'';

in themes/default/Profile.template.php

Find

Code: [Select]
<tr>
<td><b>', $txt[86], ': </b></td>
<td>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</td>
</tr><tr>

Add After
               
Code: [Select]
<td><b>', $modSettings['shopCurrencyPrefix'], ' </b></td>
<td>', $context['member']['money'], '</td>
</tr><tr>

Find

   
Code: [Select]
// If karma is enabled let the admin edit it...
if ($user_info['is_admin'] && !empty($modSettings['karmaMode']))
{
echo '
<tr>
<td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td>
</tr><tr>
<td valign="top"><b>', $modSettings['karmaLabel'], '</b></td>
<td>
', $modSettings['karmaApplaudLabel'], ' <input type="text" name="karmaGood" size="4" value="', $context['member']['karma']['good'], '" onchange="setInnerHTML(document.getElementById(\'karmaTotal\'), this.value - this.form.karmaBad.value);" style="margin-right: 2ex;" /> ', $modSettings['karmaSmiteLabel'], ' <input type="text" name="karmaBad" size="4" value="', $context['member']['karma']['bad'], '" onchange="this.form.karmaGood.onchange();" /><br />
(', $txt[94], ': <span id="karmaTotal">', ($context['member']['karma']['good'] - $context['member']['karma']['bad']), '</span>)
</td>
</tr>';
}
Add After   

Code: [Select]
// Diamonds
if ($user_info['is_admin'])
{
echo '
<tr>
<td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td>
</tr><tr>
<td valign="top"><b>', $modSettings['shopCurrencyPrefix'], '</b></td>
<td><input type="text" name="money" size="4" value="', $context['member']['money'], '" /></td>

</tr>';
}

3
General SMFShop Discussion / Re: Installed on SMF 1.0.7 but no button
« on: August 17, 2006, 09:16:55 am »
if you are using another theme you need to manually add it

http://www.daniel15.com/forum/index.php?topic=39.0

4
General SMFShop Discussion / Re: Global Mods able to edit Credits
« on: August 09, 2006, 11:54:35 am »
That would be great

5
Our forum was one that was changed over from IPB so some of the 'usernames' are different than the display names. some characters show up as their alternates.

Is there maybe a way that you could offer a donate by user id?

6
Ok We are running into a problem.  The member's name is Miroku's_women77, but when we try to edit, or donate to this person we get ERROR: The member you typed ('Miroku\'s_women77') doesn't exist!.  I can se the reason why, but how can we fix this?

7
General SMFShop Discussion / Re: Credits Disappearing
« on: May 06, 2006, 12:14:18 pm »
yes it was actually changing to 0.  after a member edited the profile I looked at what I had added in there and found the problem.

It was something that I added for another piece of my forum doing it.  Some how it got linked into the table that the money was in and was clearing them when people edited their profile.  so it's not the mod, but another addition.  I removed the offending item and they are not resetting anymore.  Still have no clue how the 2 linked up that way.

8
General SMFShop Discussion / Re: Credits Disappearing
« on: May 06, 2006, 07:17:16 am »
http://www.theunder-ground.com

it is strange because it doesn't seem to associate with any specific thing.  It happened to me 3 times and then all of the sudden stopped.  One of my members had it happen to her after her sister closed out her browser, but it hasn't happened to her since.  So far there has been about 10 of us that have had it happen and about 4-5 that it happened to 2 or more times

9
General SMFShop Discussion / Credits Disappearing
« on: April 30, 2006, 02:42:17 pm »
I am using SMF1.07 with the newest release of the shop.  I just started using the shop in a live setting.

Several people have noticed that if they have credits then leave the site and come back and make a post their credits restart at 0.00.

It doesn't happen to everyone and not everytime.  I thought that it was just me, but then someone else noticed it.  When another person was teasing me because I tried to recreate the issue by fully changing computers it proved me a liar(my credits were still there, but hers were gone.

I have only noticed this in admins, but not members yet.

I am about to ask members to watch theirs.  I did move where the credits were showing up through display.template.php, but I dont think that would cause a problem.

10
I believe that you would have to manually edit that into the Helios theme.  There is a post on the SMF boards that should help you

11
General SMFShop Discussion / Re: Global Mods able to edit Credits
« on: February 18, 2006, 01:54:11 am »
ok it's just that they need to be able to remove them as well.

I appreciate the quick response.

12
General SMFShop Discussion / Global Mods able to edit Credits
« on: February 17, 2006, 03:34:37 pm »
how can I allow my Global Mods to edit Credits?

Pages: [1]