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

Pages: [1] 2
1
General SMFShop Discussion / Re: Stealing Credits in 3.0
« on: March 13, 2007, 11:41:16 pm »
change
<a href="' . $scripturl . '?action=findmember;input=username
with
<a href="' . $scripturl . '?action=findmember;input=membername

2
Items / Re: New Item: Add membergroup
« on: March 08, 2007, 02:42:41 am »
The BuyMembergroup by Chad (which didn;t work for me). 


It may work If you replace this
Code: [Select]
$additionalGroups['additionalGroups'] = $additionalGroups['additionalGroups'].", ".$item_info[1];
By

Code: [Select]
$additionalGroups['additionalGroups'] = $additionalGroups['additionalGroups'].",".$item_info[1];

3
General SMFShop Discussion / Re: Stealing Credits in 3.0
« on: January 29, 2007, 10:55:08 pm »
Yup you found a bug!
to fix it on Steal.php
Replace
Code: [Select]
$_POST['username'] = strtr($_POST['username'], array('\\"' => '"'));
preg_match_all('~"([^"]+)"~', $_POST['username'], $matches);
$userArray = array_unique(array_merge($matches[1], explode(',', preg_replace('~"([^"]+)"~', '', $_POST['username']))));

with
Code: [Select]
$_POST['stealfrom'] = strtr($_POST['stealfrom'], array('\\"' => '"'));
preg_match_all('~"([^"]+)"~', $_POST['stealfrom'], $matches);
$userArray = array_unique(array_merge($matches[1], explode(',', preg_replace('~"([^"]+)"~', '', $_POST['stealfrom']))));

To fix the problem with SMF 1.1's "Find Members" popup
Replace
Code: [Select]
return 'Steal From: <input type="text" name="stealfrom" size="50" />
<a href="' . $scripturl . '?action=findmember;input=username;quote=0;sesc=' . $context['session_id'] . '" onclick="return reqWin(this.href, 350, 400);"><img src="' . $settings['images_url'] . '/icons/assist.gif" border="0" alt="' . $txt['find_members'] . '" /> Find Member</a><br />';

With
Code: [Select]
return 'Steal From: <input type="text" name="stealfrom" id="membername" size="50" />
<a href="' . $scripturl . '?action=findmember;input=membername;quote=0;sesc=' . $context['session_id'] . '" onclick="return reqWin(this.href, 350, 400);"><img src="' . $settings['images_url'] . '/icons/assist.gif" border="0" alt="' . $txt['find_members'] . '" /> Find Member</a><br />';

4
SMFShop Announcements / Re: SMFShop 3.0 now out!
« on: January 28, 2007, 10:01:24 pm »

 - Fixed problem with SMF 1.1's "Find Members" popup
 
This problem still here on View Other Members' Inventory
To fix this problem, on Shop.template.php

Replace:
Code: [Select]
<input type="text" name="member" size="25" />
<a href="', $scripturl, '?action=findmember;input=member;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);"><img src="', $settings['images_url'], '/icons/assist.gif" border="0" alt="', $txt['find_members'], '" /> Find Members</a><br />

With
Code: [Select]
<input type="text" name="member" id="membername" size="25" />
<a href="', $scripturl, '?action=findmember;input=membername;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);"><img src="', $settings['images_url'], '/icons/assist.gif" border="0" alt="', $txt['find_members'], '" /> Find Members</a><br />

5
Items / Re: Karmageddon
« on: January 25, 2007, 03:15:51 am »
Thanks

6
Items / Re: Karmageddon
« on: January 24, 2007, 05:10:12 am »
you are welcom :)
Ps: your bbk chat look good, what script it is?

7
Items / Re: Karmageddon
« on: January 22, 2007, 07:55:44 pm »
For money it's very simple
on Karma.php
replace :
Code: [Select]
$field1 = ($Llamainfo['Type'] == 1) ? 'karmaGood' : 'karmaBad';
by
Code: [Select]
$field1 = ($Llamainfo['Type'] == 1) ? 'money' : 'money';
and go to Admin => Features and Options => Karma
set a negative amount for Minimum points for Evil Llama and Maximum points for Evil Llama

8
Items / Re: New Item: Buy Membergroup
« on: January 19, 2007, 08:30:37 am »
O found a little bug on the original code
Code: [Select]
$additionalGroups['additionalGroups'] = $additionalGroups['additionalGroups'].", ".$groupID['ID_GROUP'];
should be

Code: [Select]
$additionalGroups['additionalGroups'] = $additionalGroups['additionalGroups'].",".$groupID['ID_GROUP'];

9
SMFShop Announcements / Re: SMFShop 3.0 now out!
« on: January 19, 2007, 06:21:13 am »
Could you clean up the Buy section a bit?

Maybe put the sort and category pulldowns above the item list on 2 different lines?

The way it's set up makes me adjust the width of my browser pretty big.

I attached a screen of what I'm talking about.

(Edit: Sorry, I meant to thank you for the new work on it also. Much appreciated!)

On Shop.template.php

Search:
Code: [Select]
<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder"> <!-- style="margin-top: 1.5ex;"> -->
Replace with:
Code: [Select]
<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder" align="left"> <!-- style="margin-top: 1.5ex;"> -->

10
Items / Re: New Item: Buy Membergroup
« on: January 15, 2007, 07:15:24 pm »
thanks but your item change the Primary Membergroup, actually I want to change only the Additional Membergroups, chadk item's do that, what I need now is a item to do the reverse witch allow members to leave an additional Membergroup

11
Items / Re: New Item: Buy Membergroup
« on: January 14, 2007, 06:25:23 pm »
Bump
no one can help me?

12
Items / Re: New Item: Buy Membergroup
« on: January 13, 2007, 03:41:00 am »
Code: [Select]
$request = db_query("
SELECT ID_MEMBER, additionalGroups
FROM {$db_prefix}members
WHERE FIND_IN_SET($item_info[1], additionalGroups)
AND ID_MEMBER={$ID_MEMBER}",__FILE__, __LINE__);

while ($row = mysql_fetch_assoc($request))
{
$tempGroup = array_flip(explode(',', $row['additionalGroups']));
unset($tempGroup[$item_info[1]]);
$tempGroup = implode(',', array_flip($tempGroup));

// Do the update for this member - this may be slow for lots of people... but how many you really do at once?
db_query("
UPDATE {$db_prefix}members
SET additionalGroups = '$tempGroup'
WHERE ID_MEMBER = $row[ID_MEMBER]
LIMIT 1", __FILE__, __LINE__);
}
mysql_free_result($request);
My code didn't work :-(

Unknown column 'groupName' in 'where clause'
File /public_html/smf/Sources/shop/items/LeaveMembergroup.php

Line: 71 WHERE FIND_IN_SET($item_info[1], additionalGroups)
               AND ID_MEMBER={$ID_MEMBER}",__FILE__, __LINE__);

Thanks for your help

13
Items / Re: New Item: Buy Membergroup
« on: January 12, 2007, 09:00:03 pm »
I want to create an item : leave Membergroup
how to change this querie to do that?
Code: [Select]
$groupID=mysql_fetch_array(db_query("SELECT `ID_GROUP` FROM {$db_prefix}membergroups WHERE groupName = '{$item_info[1]}'", __FILE__, __LINE__),MYSQL_ASSOC);
$additionalGroups = mysql_fetch_array(db_query("SELECT `additionalGroups` FROM {$db_prefix}members WHERE ID_MEMBER = {$ID_MEMBER}", __FILE__, __LINE__),MYSQL_ASSOC);

if($additionalGroups['additionalGroups']) {
$additionalGroups['additionalGroups'] = $additionalGroups['additionalGroups'].", ".$groupID['ID_GROUP'];
} else {
$additionalGroups['additionalGroups'] = $groupID['ID_GROUP'];
}
echo $groupID['ID_GROUP'].":";
echo $additionalGroups['additionalGroups'];         
        $result = db_query("UPDATE {$db_prefix}members SET additionalGroups = '{$additionalGroups['additionalGroups']}'
        WHERE ID_MEMBER={$ID_MEMBER}",__FILE__, __LINE__);

Thanks

14
Coding / Re: Need help with making an Item
« on: January 09, 2007, 11:54:25 pm »
*Bump*

15
Coding / Re: Avatar Maker Mod
« on: January 09, 2007, 07:36:58 pm »
Looks good!
Excellent work!

Pages: [1] 2