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

Pages: 1 2 3 [4] 5 6 ... 13
46
Completed Additions / Re: Where do I download shop items
« on: September 23, 2007, 07:41:26 am »
forum/Sources

and grab the file called Boardindex.php and attach that i was asking for the right file but wrong location.

47
Completed Additions / Re: Where do I download shop items
« on: September 23, 2007, 07:39:02 am »
post above edited

 me = :uglystupid2:

48
Completed Additions / Re: Where do I download shop items
« on: September 23, 2007, 07:34:30 am »
sorry Voyager my bad no sleep and no coffee makes homer go something something

actually my bad can you grab the Boardindex.php file from your sources directory not the default themes directory. my bad.

49
Completed Additions / Re: Where do I download shop items
« on: September 23, 2007, 07:21:45 am »
sorry bit of confusion there been up all night kinda tired

okay i just checked that file you attached and it doesn't contain any of the edits are you sure this came from the default themes folder? or are you sure your custom theme doesn't have a Boardindex.php file? do you mind checking.

cool forum btw just checked it out  O0

50
Completed Additions / Re: Where do I download shop items
« on: September 23, 2007, 07:16:06 am »
you don't need to copy it anywhere leave it where it is in the default themes folder. your theme doesn't need it it is using the one from the default theme. is the Boardindex.php file you attached the correct one? from default themes folder?

51
Completed Additions / Re: Where do I download shop items
« on: September 23, 2007, 07:08:54 am »
that just means it uses the default themes Boardindex.php file

check

forum/themes/default/

and it'll be in there

52
Completed Additions / Re: Where do I download shop items
« on: September 23, 2007, 06:50:19 am »
it's in that thread i linked but basically if you just want the colours removed from the boardindex (who's online etc) just edit

Boardindex.php

find and remove:

Code: [Select]
, mem.shop_nameStyle

find and replace:

 
      
Code: [Select]
// Edited for Display Name CSS item
$link = '<a ' . ((!empty($row['shop_nameStyle'])) ? ('style=\'' . str_replace('\'', '', $row['shop_nameStyle']) . '\' ') : '') . ' href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';


replace with:
 
      
Code: [Select]
// Some basic color coding...
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';



Make sure to backup Boardindex.php before you do anything

53
Completed Additions / Re: Where do I download shop items
« on: September 23, 2007, 06:39:57 am »
don't know if this is what you're chasing but i think it it.

http://www.daniel15.com/forum/index.php/topic,1029.msg5763.html#msg5763

and edit those files just check what needs to be removed from them.

54
Installation Problems / Re: HELP !!!! Database Errror!
« on: September 23, 2007, 04:19:44 am »
does it happen with all items or just one?

EDIT: had a look at your subs file and it looks ok to me so i'm guessing it's just a single item that is throwing that error. can you attach the item file.

55
Modifications / Re: SMFShop Inventory Post Modification
« on: September 22, 2007, 11:04:52 pm »
been a little busy, it'll be up some time tomorrow. it probably won't include sort functions in the admin section at this stage but a small edit will make it possible for what you're looking for sc2.  :)

56
Modifications / Re: SMFShop Inventory Post Modification
« on: September 21, 2007, 01:54:28 pm »
the versions in the first post will only show 10 of a users items, but you can change that if you want by changing LIMIT 10 to LIMIT "insert number"

but i'll have the new version up some time later today so i'd recommend waiting for that you can set everything through admin and it's alot cleaner.

57
Modifications / Re: SMFShop Inventory Post Modification
« on: September 20, 2007, 11:16:37 pm »
something like this

Code: [Select]
//BEGIN SMFShop Inventory Signature MOD
//get the inventory
$result = db_query("
SELECT it.desc, it.image, it.category, inv.id
FROM {$db_prefix}shop_inventory AS inv, {$db_prefix}shop_items AS it
WHERE inv.ownerid = {$message['member']['id']} AND inv.itemid = it.id
LIMIT 10", __FILE__, __LINE__);
if(mysql_num_rows($result) == 0){
echo '<fieldset><legend><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Entire Inventory</a></legend>
<img src="{$boardurl}/Sources/shop/item_images/blank.gif">&nbsp;&nbsp;
</fieldset>';
}
else{
echo '<fieldset><legend><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Entire Inventory</a></legend>';
while ($row = mysql_fetch_assoc($result)){
if (($row['category']) == 1){
echo "<img src='{$boardurl}/Sources/shop/item_images/{$row['image']}'title='{$row['desc']}'>&nbsp;&nbsp;";
}
elseif (($row['category']) == 2){
echo "<img src='{$boardurl}/Sources/shop/item_images/{$row['image']}'title='{$row['desc']}'>&nbsp;&nbsp;";
}
}
echo '</fieldset>';
}
//END SMFShop Inventory Signature MOD

and just change the if elseif statements comparison value to your category id's

and that should work

58
Modifications / Re: SMFShop Inventory Post Modification
« on: September 20, 2007, 09:58:01 pm »
Great item, thanks for your hard work! I am just wondering, if the user has more than 10 items, which ones get shown? Can the user choose the items to display?

I am planing to use it with Feeble's changes (i.e. nothing gets shown if they have nothing). But I was wondering about which items get displayed and if there is a choice for it. Also, is there a demo forum with this running that I can see?

Thanks again!!

they get displayed in order of purchase, but if you wanted to display them in order of a certain condition you could add this bit of code

ORDER BY ****** ****

with the first set of asterix being the condition and the second set of asterix being whether read in ASC (ascending) or DESC (descending) so say you wanted to order by price you could go

ORDER BY it.price ASC which would go 1st least expensive > 10th most expensive in the users inventory

and DESC would change flip the order so most expensive to 10th least expensive in the users inventory

and just put that order code in this statement

Code: [Select]
$result = db_query("
SELECT it.desc, it.image, inv.id
FROM {$db_prefix}shop_inventory AS inv, {$db_prefix}shop_items AS it
WHERE inv.ownerid = {$message['member']['id']} AND inv.itemid = it.id
                        ORDER BY it.price ASC
LIMIT 10", __FILE__, __LINE__);

and if you wanted to change how many items you display just change the LIMIT 10 to whatever number you want.

on that note all of this will be added into the new version which will have an admin section and allow you to switch from sig to post view and order of items how many to show etc but i haven't finished it yet so if you want to do those in the interim that's cool. just bare in mind any changes in code will result in the item not uninstalling unless you make the changes in the actual packages xml file before installing.

hope that helps.

59
Modifications / Re: SMFShop Inventory Post Modification
« on: September 19, 2007, 09:20:40 pm »
packages updated just a small change code change no new functions or anything

60
Requested additions / Re: SMFShop vs. SMFArcade vs. Guests
« on: September 19, 2007, 03:59:50 pm »
to easy.

i haven't had a chance to look yet but i was thinking make the arcade pass only apply to a certain membergroup and that membergroup would be given access to the paid category games but yeh like i said haven't really had a look..

Pages: 1 2 3 [4] 5 6 ... 13