SMF Shop
SMFShop => Beta additions => Modifications => Topic started by: inkstains on September 10, 2007, 03:37:10 pm
-
THIS HAS ONLY BEEN TESTED ON A CLEAN INSTALL OF SMF 1.1.3 AND SMFShop 3.0
WARNING IF YOU INSTALL THIS MOD AND EVER GO TO REMOVE/UPGRADE YOUR INSTALL OF SMFShop YOU MAY ENCOUNTER ERRORS IF THIS MOD IS NOT UNINSTALLED FIRST. YOU'VE BEEN WARNED
IF YOU ARE USING AN EARLIER VERSION PLEASE UNINSTALL AND INSTALL THIS NEW VERSION
Updated and rolled into one package, from admin you can now select whether to enable/disable the IPM (on disable all original postbit settings will be restored) select where you would like the IPM displayed, Signature or Postbit, as well as selecting how many items you would like displayed.
Because this is a work in progress and as much a learning process for myself as modification project I'm going to just keep updating as it develops. but if you do decide to use this on a forum please be sure to check back for any updates, as i'm sure as time goes on i will realise things could have been done differently and better.
Goals for the next build
Introduce an inventory display sorting system to allow for a wider range of conditions (price, category etc)
Finally add the split and display trade items as well and expand on the current tooltips
Expand the admin section
And possibly something to do with members profile page depends
Special Note: Thank you to feeble for helping with the while loop i feel stupid now haha Daniel for telling me about seperating operations and visual output and Basil Beard for giving me a kick in the right direction when i thought **** this **** **** *** of a mod. cheers fellas. now that emmy esque speech is over with onto the pics
Signature
(http://img293.imageshack.us/img293/4374/smfshopinventorysigeu3.jpg)
Postbit
(http://img522.imageshack.us/img522/5100/smfshopinventorystatszl2.jpg)
Admin
(http://img297.imageshack.us/img297/7498/ipmadminov0.jpg)
>:D
-
very nice
i like the like design as well
-
cheers glad ya liking it
-
Just taken a look through your package
I know its early days, so I'll only suggest one thing at the moment
change
//BEGIN SMFShop Inventory Signature MOD
echo '<fieldset><legend><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Inventory</a></legend>';
//get the inventory
$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
LIMIT 10", __FILE__, __LINE__);
//item image and tooltip descriptions
$varia = mysql_fetch_assoc($result);
if ($varia == 0){echo "<img src='{$boardurl}/Sources/shop/item_images/blank.gif'> ";}
elseif ($varia > 0){
echo "<img src='{$boardurl}/Sources/shop/item_images/{$varia['image']}'title='{$varia['desc']}'> ";
$varia = mysql_fetch_assoc($result);
if ($varia > 0) {
echo "<img src='{$boardurl}/Sources/shop/item_images/{$varia['image']}'title='{$varia['desc']}'> ";
}
$varia = mysql_fetch_assoc($result);
if ($varia > 0) {
echo "<img src='{$boardurl}/Sources/shop/item_images/{$varia['image']}'title='{$varia['desc']}'> ";
}
$varia = mysql_fetch_assoc($result);
if ($varia > 0) {
echo "<img src='{$boardurl}/Sources/shop/item_images/{$varia['image']}'title='{$varia['desc']}'> ";
}
$varia = mysql_fetch_assoc($result);
if ($varia > 0) {
echo "<img src='{$boardurl}/Sources/shop/item_images/{$varia['image']}'title='{$varia['desc']}'> ";
}
$varia = mysql_fetch_assoc($result);
if ($varia > 0) {
echo "<img src='{$boardurl}/Sources/shop/item_images/{$varia['image']}'title='{$varia['desc']}'> ";
}
$varia = mysql_fetch_assoc($result);
if ($varia > 0) {
echo "<img src='{$boardurl}/Sources/shop/item_images/{$varia['image']}'title='{$varia['desc']}'> ";
}
$varia = mysql_fetch_assoc($result);
if ($varia > 0) {
echo "<img src='{$boardurl}/Sources/shop/item_images/{$varia['image']}'title='{$varia['desc']}'> ";
}
$varia = mysql_fetch_assoc($result);
if ($varia > 0) {
echo "<img src='{$boardurl}/Sources/shop/item_images/{$varia['image']}'title='{$varia['desc']}'> ";
}
$varia = mysql_fetch_assoc($result);
if ($varia > 0) {
echo "<img src='{$boardurl}/Sources/shop/item_images/{$varia['image']}'title='{$varia['desc']}'> ";
}
}
echo'</fieldset>';
//END SMFShop Inventory Signature MOD
to
//BEGIN SMFShop Inventory Signature MOD
//get the inventory
$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
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 Inventory</a></legend>';
while ($row = mysql_fetch_assoc($result)){
echo "<img src='{$boardurl}/Sources/shop/item_images/{$row['image']}'title='{$row['desc']}'> ";
}
echo '</fieldset>';
}
//END SMFShop Inventory Signature MOD
-
yeh that's what i was thinking that's just a loop isn't it? i just wasn't sure how to do it that looks dope though.
one thing when a user has no items it will show the blank.gif image the only reason i say is if the fieldset doesn't haven't something inside of it it loses the borders and just has the view inventory link which doesn't look very good imo. do you know how i would get it so if the members inventory is 0 it will still display the blank.gif image?
could i do it like this?
if(mysql_num_rows($result) == 0){
{echo '<fieldset><legend><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Inventory</a></legend>';
while ($row = mysql_fetch_assoc($result)){
echo "<img src='{$boardurl}/Sources/shop/item_images/blank.gif'> ";
}
echo '</fieldset>';}}
}
elseif(mysql_num_rows($result) > 0){
echo '<fieldset><legend><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Inventory</a></legend>';
while ($row = mysql_fetch_assoc($result)){
echo "<img src='{$boardurl}/Sources/shop/item_images/{$row['image']}'title='{$row['desc']}'> ";
}
echo '</fieldset>';}
i haven't tested that but it looks sorta right, i'm still learning so don't know a heap yet. cheers for the cleaner code though feeble i'll update the packages soon.
EDIT: actually the way you had it makes it not display the section at all which is probably a better way to go hmmm i'm not sure i kinda like it there even if they have no items
-
yes that would work fine
but just change
elseif(mysql_num_rows($result) > 0){
to
else{
as it will always be true
Also a small note,
the changes that I suggested, actually, if inventory is 0, the "View Inventory" field will not be displayed, so either solution should be fine.
basically it depends on how you want it to look.
-
yeh i just noticed that with the view inventory not being shown. not sure about which way to go. cheers for all the help feeble.
-
no worries
there are a few other things that I would like to suggest, but they can wait for another time
but for the most part, its a very nice add on to SMFShop, so I'm sure it'll get used plenty
-
yeh cool any time
this is the code i'ma go with i'm gonna keep the blank fieldset just for consistency if anyone wants it the other way they can just make the change themselves :)
//BEGIN SMFShop Inventory Signature MOD
//get the inventory
$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
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 Inventory</a></legend>';
while ($row = mysql_fetch_assoc($result)){
echo "<img src='{$boardurl}/Sources/shop/item_images/blank.gif'> ";
}
echo '</fieldset>';
}
else{
echo '<fieldset><legend><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Inventory</a></legend>';
while ($row = mysql_fetch_assoc($result)){
echo "<img src='{$boardurl}/Sources/shop/item_images/{$row['image']}'title='{$row['desc']}'> ";
}
echo '</fieldset>';
}
//END SMFShop Inventory Signature MOD
EDIT: I was thinking about putting all the shop items when it's in the left pane inside the fieldset just to make it all look a bit tidier but i dunno how much daniel would like that so i'll prob leave that for the moment. but i def want to add in some code so it only shows up once per page of a thread for each user but that can wait until i learn a little more php
EDIT: PACKAGES UPDATED IN FIRST POST
-
Apologies made a small mistake
change
if(mysql_num_rows($result) == 0){
echo '<fieldset><legend><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Inventory</a></legend>';
while ($row = mysql_fetch_assoc($result)){
echo "<img src='{$boardurl}/Sources/shop/item_images/blank.gif'> ";
}
echo '</fieldset>';
}
to
if(mysql_num_rows($result) == 0){
echo '<fieldset><legend><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Inventory</a></legend>
<img src="{$boardurl}/Sources/shop/item_images/blank.gif">
</fieldset>';
}
-
ahh true cheers again feeble O0
Packages updated in first post
-
Hmm is the pet supposed to show up?
I only see a link with view pets and have to click on it and it brings me to another page.
Is it possible to make the pet show up?
4] a further section will be offered for those using the SMF Pets mod by Basil Beard in which a users pets can be displayed as the inventory is now with the mouseover description containing the current pets level health hunger ranking etc
oh, guess its not yet done =/
-
yeh not done yet. i'll actually do that as a separate mod after a bit of thinking but prob won't have it up for a little while
-
O0 well good luck with the mod. O0
Hope it will appear soon. ^^
p.s: Anyone knows what smiley pack is installed here?
-
packages updated just a small change code change no new functions or anything
-
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!!
-
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
$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.
-
Hi, thanks for the reply!
Is there a code I can use now to display items only from certain categories? I want to only show items from the "collectibles" and "toys" categories. The rest such as steal item are put in other categories which I don't want to show up... I don't mind which order they appear in, but I would rather have miscellaneous items like that hidden...
-
something like this
//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">
</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']}'> ";
}
elseif (($row['category']) == 2){
echo "<img src='{$boardurl}/Sources/shop/item_images/{$row['image']}'title='{$row['desc']}'> ";
}
}
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
-
I will give it a shot and let you know, thanks much :D
EDIT: I'm going to wait for the next version actually. I like the idea of only displaying once per page :) Also, that way I won't have to hack anything and hopefully it will install smoothly! I'm keeping an eye on this thread.
-
Hey inkstains, nice work. This has been requested heaps, and it's great to know that someone's finally worked on it. Again, this was one of the things I was going to work on, but never had any time to. :)
I've got a few suggestions for you. The main thing is that with SMF, it's usually suggested that no queries should be added to the templates. Basically, the Source files (in Sources directory) contain all the "business logic" (database queries, etc.), and the Templates are responsible for formatting it all nicely. Yes, I used queries in the templates in older versions of SMFShop, but this has been fixed in the current version (compare the SMFShop 3.0 Display.template.php edit with previous versions).
So, how do you do this properly? The best way is to edit the loadMemberData and loadMemberContext functions in Sources/Load.php. These are the functions that load all the member data (group, post count, karma, etc.) for member profiles, as well as the "postbit" (the bit to the left of posts). You'd need to add your own query here.
Basically, underneath the bit that says:
$user_profile[$row['ID_MEMBER']] = $row;
You'd add something like:
// BEGIN SMFShop Inventory Signature MOD
// Get their inventory.
$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 = {$row['ID_MEMBER']} AND inv.itemid = it.id
LIMIT 10", __FILE__, __LINE__);
// Start with an empty list.
$user_profile[$row['ID_MEMBER']]['shop_items'] = array();
// Loop through all their items.
while ($row = mysql_fetch_assoc($result))
{
// Add this item to the list.
$user_profile[$row['ID_MEMBER']]['shop_items'][] = array(
'image' => $row['image'],
'desc' => $row['desc'],
);
}
// END SMFShop Inventory Signature MOD
Then, your code in Display.template.php would look a little like:
// BEGIN SMFShop Inventory Signature MOD
// Are there any inventory items?
if (count($message['member']['shop_items']) != 0)
{
echo '<fieldset><legend><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Inventory</a></legend>';
// Loop through all the items
foreach ($message['member']['shop_items'] as $shop_item)
{
echo '<img src="', $boardurl, '/Sources/shop/item_images/', $shop_item['image'], '" title="', $row['desc'], '"> ';
}
}
// END SMFShop Inventory Signature MOD
A lot neater, wouldn't you say? Also, you can now display the same stuff on their profile, by editing Profile.template.php ;)
Disclaimer: I have not tested this code, and have not looked at your mod (other than the code posted in this topic). This would need minor tweaks to get it to work.
Hope this helps you :). Please refer to the SMF Coding Guidelines as well, as these detail things like this (as well as other important things like coding styles).
-
Is it possible to set a limited number of items to show?
-
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.
-
Oh wow, so soon. I can wait then :)
-
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. :)
-
Sure, no problems :) I don't need an admin section at all, just the code for things like showing their items for trade, etc. But I understand other's might want an admin section for everything.
Take your time, no rush :D
-
updated. please check first post. :)
-
Thanks for your work!
-
no problem if you want a hand setting it up so it'll only show from those to categories like you were saying earlier in this thread just send me an IM
also package updated
-
Yay! The admin configuration is a definite lifesaver! Thank you!
-
no problem if you want a hand setting it up so it'll only show from those to categories like you were saying earlier in this thread just send me an IM
also package updated
No need thanks! the code you gave me worked just fine :)
I noticed a lot of people have asked for this, surprised it isn't more popular!
-
Hi there. Thanks for the mod.
I am having an issue with smf 1.14 and shop 3.0
I went to upload the mod and it only showed a list files link and no install/apply mod link to install it.
I dont see the link in shop mod block in admin and the mod isnt listed on the packages page.
Any suggestions?
Thanks,
Richard Wing
-
yeh it won't show and [apply now] link after it's uploaded go back and browse your packages and you'll see it there. if it's not there i can only recommend trying to upload again unless it threw an error?
-
very very nice thank you
-
I tried this out, but unfortunately i couldn't implement it. every time i clicked the link in the admin section it just went to the homepage..
also, it says it needs to change something in "index.php", and cannot find the code to replace/add. But SMF shop never added anything to that.
I tried to a clean install by removing the mod, then SMF shop, then tried to reinstall, but got this error, after trying installation of the mod:
Duplicate entry 'ShopIpDis' for key 1
File: /home/sixuang/public_html/forums/Packages/temp/dbInstall.php
Line: 14
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.
what exactly does this mean?
Please do keep up the good work though, I really want to see this on my forum one day. 8)
-
I tried this out, but unfortunately i couldn't implement it. every time i clicked the link in the admin section it just went to the homepage..
also, it says it needs to change something in "index.php", and cannot find the code to replace/add. But SMF shop never added anything to that.
I tried to a clean install by removing the mod, then SMF shop, then tried to reinstall, but got this error, after trying installation of the mod:
Duplicate entry 'ShopIpDis' for key 1
File: /home/sixuang/public_html/forums/Packages/temp/dbInstall.php
Line: 14
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.
what exactly does this mean?
Please do keep up the good work though, I really want to see this on my forum one day. 8)
your post it a little confusing but what i'm guessing is that you tried to install it and the first time you did it threw an error on the index.php file but you went ahead with the install anyway. but didn't actually follow through and do those modifications after you installed. then added to the confusion by uninstalling/reinstalling multiple times. basically if that's the case. throw the IPM package through the package parser here
http://modparser.dev.dansoftaustralia.net/
and find the code you need to add for index.php and make the edits. i'd say some other mod has edited your index.php file so what it says to look for in the package parser may be slightly altered\ so just keep that in mind. as for that db error that's just saying those entries already exist which i should really add some error handling for in the package and i will but i haven't got time at the moment so it'll be in the next update.
so try what i've said above and let me know how you go.
ps. if it error'd on any other files when you first installed (and i guess now if you need to re-install) you'll need to do those edits as listed in the package parser.
poice
-
Apologies, I shouldn't have posted so late and so tired!
The first time around:
I installed the inventory, the only "failure"during the test was that "index.php" failed. I installed anyway, I just figured i'd have to install it manually.
This is the syntax in question:
In file $boarddir/index.php
Find:
// End SMFShop code
);
Add Before:
//BEGIN SMFShop IPM
'shop_IPM' => array('shop/ShopAdmin.php', 'ShopIPM'),
//END SMFShop IPM
But as you can see in my index.php:
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?>
But SMF shop never altered anything in this file. I checked its install package twice. :-\
Apart from this, it was successful. As for the DB error, where should i look to delete those entries? SMF_shop, for instance? or?
Thanks, ;)
-
you're trying to edit the wrong index.php file. the index.php file that you want to edit is in your base forum folder so like this forum daniel15 if you look at the link in the address it's like this
http://www.daniel15.com/forum/
the part in bold is the name of the folder on the server that holds the forum aka the board directory. in this folder is where the index.php file you need to edit is. :)
-
ahh thanks, that did it! I'm so used to editing in the default theme directory, almost like second nature.
The only problem im having right now is that i can't seem to buy anything, even though ive given myself 10000 credits (and yes the item is cheaper). Checked my Mysql database:
SMF_Members:
Money: 10000
MoneyBank: 500
It's all there, but yet when i go to the shop,it says I don't have enough money?
an enigma I know, but i'm sure you know what i need to do to correct that? 8)
Thanks.
EDIT: As a strange side effect, when i click on "who is online", everyone online has an I.P address of: 0.0.0.0 ... hmmmm
-
first of all id like to say thanks this is an awsome mod! just what i needed.
heres a quik problem i have, i like the border you have around the items, and it neaten's up the area alot more. i cant get it to display correctly on my theme for some reason, installation went fine.
(http://img100.imageshack.us/img100/6371/noborderhz3.jpg)
no inventory border :'(
anyways i was wondering if you could show me where i can check and edit the code for my theme. thanks..i have a feeling that fieldset or legend might be the tags controling the border but i duno really..lol any help is appritiated. thanks
O0
-
Found out why, SMF shop isn't installing tables after it was uninstalled.
-
Found out why, SMF shop isn't installing tables after it was uninstalled.
hmm it all sounds a bit messy with the multiple installs/uninstalls.
SMFShop should leave the tables intact when it's uninstalled i believe (which i believe is standard SMF guidelines) and only install whatever tables/columns/rows are missing when reinstalled perhaps you should try and uninstall all SMFShop related mods (IPM etc) and then uninstall the SMFShop and remove the tables manually from the db then do a fresh install of SMFShop and related mods. that's assuming you are doing this on a test board ;) if not on a test board i'd recommend not doing that. and seeking answers in the appropriate area on this board for SMFShop problems.
first of all id like to say thanks this is an awsome mod! just what i needed.
heres a quik problem i have, i like the border you have around the items, and it neaten's up the area alot more. i cant get it to display correctly on my theme for some reason, installation went fine.
(http://img100.imageshack.us/img100/6371/noborderhz3.jpg)
no inventory border :'(
anyways i was wondering if you could show me where i can check and edit the code for my theme. thanks..i have a feeling that fieldset or legend might be the tags controling the border but i duno really..lol any help is appritiated. thanks
O0
hmm are you saying you've tried to edit a custom themes Display.template.php file to display the IPM? if so can you upload the custom themes Display.template.php file here so i can have a squizz at it and a link to your forum also.
-
Basicaly the installation did successfully edit the display.template, but shows no border(becuase its not default theme), i have looked into display.template, knowing this is where the border shud be displaying, but i had no luck so i didnt edit anything.
my site forum is> http://www.psp-customs.com/forum
heres a link to a direct post showing my inventory> http://www.psp-customs.com/forum/index.php?topic=3551.0
and ive attached display.template below, thanks for any help you can give.
-
SMFShop should leave the tables intact when it's uninstalled i believe (which i believe is standard SMF guidelines) and only install whatever tables/columns/rows are missing when reinstalled perhaps you should try and uninstall all SMFShop related mods (IPM etc) and then uninstall the SMFShop and remove the tables manually from the db then do a fresh install of SMFShop and related mods. that's assuming you are doing this on a test board ;) if not on a test board i'd recommend not doing that. and seeking answers in the appropriate area on this board for SMFShop problems.
Completely, IPM is uninstalled and the codes have been removed from the files. As for SMF shop, i have uninstalled them but obviously there must be some conflict or code remnant that's interfering with the re installation process. I'll manually go through them and see what I can sort out. 'm sure your mod will work wonderfully after SMF Shop stops being a pain in the arse! :)
-
Basicaly the installation did successfully edit the display.template, but shows no border(becuase its not default theme), i have looked into display.template, knowing this is where the border shud be displaying, but i had no luck so i didnt edit anything.
my site forum is> http://www.psp-customs.com/forum
heres a link to a direct post showing my inventory> http://www.psp-customs.com/forum/index.php?topic=3551.0
and ive attached display.template below, thanks for any help you can give.
your site link doesn't work.
The IPM won't show up in a custom theme if that custom theme has it's own Display.template.php file and the needed edits aren't done to it's Display.template.php file or if they are done incorrectly.
can you switch to the default theme and see if the IPM shows correctly.
-
Went through all the files and deleted, maybe three stray lines of SMF shop code. Reinstalled, then applied the inventory mod.
Works like a bloody charm! Well done.
Do you think in the future, the sig inventory will have one of those minimise/maximise buttons? because that would look amazing!
-
oh sorry yeh i fogot to mention i did a kinda work around so that i could install mods more easily i droped the custom theme into the default one, so that official mods could be installed on custom theme in the default directory. there is no default theme to switch to becuase thats the custom one now :-\
but like i said the display.template file did respond as a successfull install, the only file that failed was index.template, i tried to edit that afterwards but could not find the code.(as its a a custom theme)
does the border on post area have anything to do with index.template?
could you tell me what possible edits i can make to the display.template in order to show the border. (ive spent ages searching install.xml with no luck :()
thanks again for any help given.
-
isn't it just in "display.template"?
in or near "==Show signature?=="
it looks like a HTML table <td></tr> etc...
-
isn't it just in "display.template"?
in or near "==Show signature?=="
it looks like a HTML table <td></tr> etc...
hmm ill have a look at it again, but if the install.xml file didnt input anything like <td></tr> then why would it be there...i will look more into this.
inkstains do you have any other ideas, or know what the code should look like.
can one of you show me the code from your working display.template, so i can find out why the border is missing from mine.
-
Went through all the files and deleted, maybe three stray lines of SMF shop code. Reinstalled, then applied the inventory mod.
Works like a bloody charm! Well done.
Do you think in the future, the sig inventory will have one of those minimise/maximise buttons? because that would look amazing!
glad to hear it's working properly as for minimize maximize i don't think so unless i removed the fieldset and did it a different way.
oh sorry yeh i fogot to mention i did a kinda work around so that i could install mods more easily i droped the custom theme into the default one, so that official mods could be installed on custom theme in the default directory. there is no default theme to switch to becuase thats the custom one now :-\
but like i said the display.template file did respond as a successfull install, the only file that failed was index.template, i tried to edit that afterwards but could not find the code.(as its a a custom theme)
does the border on post area have anything to do with index.template?
could you tell me what possible edits i can make to the display.template in order to show the border. (ive spent ages searching install.xml with no luck :()
thanks again for any help given.
very confusing.
your Display.template.php file is correct that isn't your problem.
you need to fix that error that you had on the index.template.php file to begin with (though that may not be your whole problem) you say you can't find the index.template.php file
on an ordinary install the index.template.php file edited is in the default themes folder and if you wanted to do it for a custom you would locate the index.template.php file in that themes folder. seeing as your install seems a little screwy and i don't fully understand what you've done but from what i can decipher is you've copied the files from your custom themes folder and pasted them into the default themes folder overwriting all duplicate files (not a good idea imo) so you'll locate it in the default themes folder if so.
the edits you need to do to the index.template.php file are as follows
Find:
if (in_array($context['current_action'], array('shop_general', 'shop_items_add', 'shop_items_edit', 'shop_cat', 'shop_inventory', 'shop_restock', 'shop_usergroup')))
Replace with:
if (in_array($context['current_action'], array('shop_general', 'shop_items_add', 'shop_items_edit', 'shop_cat', 'shop_inventory', 'shop_restock', 'shop_usergroup', 'shop_IPM')))
if fixing index.template.php doesn't work....
you say you've replaced the default theme?? i don't understand. if you go into your boards admin and go
Configuration>Themes and Layout
can you see SMF Default Theme - core??
if so can you set your forum to that and see if the IPM works correctly then post here again.
-
yeh i know ive kinda done the things i shudnt have done. thats exactly it ive made pasted my custom theme into my defualt theme directory, purposfully so that any mod i install would work, as it installs to the default theme.
also in index.template the code below doesnt exist anywhere. i think i can figure out this by looking at a original index.template and using my own custom one.
if (in_array($context['current_action'], array('shop_general', 'shop_items_add', 'shop_items_edit', 'shop_cat', 'shop_inventory', 'shop_restock', 'shop_usergroup')))
ill get back to you once ive modified the index.template correctly. and tell you if that fixes the border issue.
thanks for the help mate.
-
you won't be able to find that exact line mentioned in the Find part if you could it would have made the modification to that file successfully. :) you'll need to look for a slightly different version of it. try searching for maybe the first half of the Find part or post your file up here and i'll do it for you. let me know how ya go.
-
ok ive successfully edited the index.template, and the border is still missing. :tickedoff:
i am now thinking it must be the tables not coded properly or the css for the 1px border doesnt not exist for my theme.
the problem must lie in display template.
there must be an edit i can make to this section of the code, im still a begginner at PHP but i think the fix can be made somewhere here.
inkstains can you give me any guidance as what to edit to show border.
thanks for all the help.
// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';
// Show how many posts they have made.
// echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// <br />';
//BEGIN SMFShop Code IP EDIT
if ($modSettings['ShopIpDis'] == 0)
{
// BEGIN SMFShop MOD New Version Code
// Removed one <br /> from end of post count line.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';
echo '
<br>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '<br /> <a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Inventory</a><br />
<a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">Send Money to ', $message['member']['name'], '</a><br />';
//END SMFShop code
}
else{
// BEGIN SMFShop MOD New Version Code
// Removed one <br /> from end of post count line.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';
echo '
<br>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '<br />
<a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">Send Money to ', $message['member']['name'], '</a><br />';
//END SMFShop code
}
//END SMFShop Code IP EDIT
//BEGIN SMFShop IPM
//Check if postbit is the chosen display section or if IPM is even turned on
if ($modSettings['ShopIpDis'] == 1 && $modSettings['ShopIpPos'] == 0)
{
//Check there actually are items in the array
if (count($message['member']['shopitems']) != 0)
{
//Set up the fieldset with legend link to members inventory
echo '<fieldset><legend><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Entire Inventory</a></legend>';
//Loop through all the items and output
foreach ($message['member']['shopitems'] as $shopitem)
{
echo "<img src='{$boardurl}/Sources/shop/item_images/{$shopitem['image']}'title='{$shopitem['desc']}'> ";
}
echo '</fieldset>';
}
}
//END SMFShop IPM
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';
-
your Display.template.php file is fine for a standard setup but your setup is a little non-standard :D
this may or may not work but make a backup of your Display.template.php file then use the attached in it's place
-
nope no change it didnt work :(
EDIT: ok i did it another way using css, and omg the result is amazing i totally change the rest of the post area and it looks soo much better!
heres a screenshot
(http://img91.imageshack.us/img91/8830/sweetaa8.jpg)
-
thanks for all the help inkstains and sixu.
O0 :D :smitten:
-
Ok... I deleted the original shop. Reinstalled 3.0 and tried to add the upgrade and I got this.
I'm running 1.1.4
Installations actions for "SMFShop 2.3 to 3.0 Update":
Installing this package will perform the following actions:
Type Action Description
1. Extract File ./Sources/shop/dointerest.php
2. Extract File ./Sources/shop/item_engine.php
3. Extract File ./Sources/shop/Shop.php
4. Extract File ./Sources/shop/ShopAdmin.php
5. Extract File ./Sources/shop/Shop-Bank.php
6. Extract File ./Sources/shop/Shop-Buy.php
7. Extract File ./Sources/shop/Shop-Inventory.php
8. Extract File ./Sources/shop/Shop-Send.php
9. Extract File ./Sources/shop/Shop-Subs.php
10. Extract File ./Sources/shop/Shop-Trade.php
11. Extract File ./Sources/shop/shopVersion.php
12. Extract File ./Sources/shop/items/AddToPostCount.php
13. Extract File ./Sources/shop/items/ChangeDisplayName.php
14. Extract File ./Sources/shop/items/ChangeOtherTitle.php
15. Extract File ./Sources/shop/items/ChangeUsername.php
16. Extract File ./Sources/shop/items/ChangeUserTitle.php
17. Extract File ./Sources/shop/items/DecreasePost.php
18. Extract File ./Sources/shop/items/DisplayMessage.php
19. Extract File ./Sources/shop/items/EmailAdmin.php
20. Extract File ./Sources/shop/items/filedownload.php
21. Extract File ./Sources/shop/items/IncreaseKarma.php
22. Extract File ./Sources/shop/items/IncreaseTimeLoggedIn.php
23. Extract File ./Sources/shop/items/PrimaryMemberGroup.php
24. Extract File ./Sources/shop/items/RandomMoney.php
25. Extract File ./Sources/shop/items/Rock.php
26. Extract File ./Sources/shop/items/Steal.php
27. Extract File ./Sources/shop/items/StickyTopic.php
28. Extract File ./Sources/shop/items/testitem.php
29. Extract File ./Sources/shop/items/testitem2.php
30. Extract File ./Themes/default/languages/Shop.english.php
31. Extract File ./Themes/default/ShopAdmin.template.php
32. Extract File ./Themes/default/Shop.template.php
33. Execute Modification ./index.php Test failed
34. Execute Modification ./Sources/Post.php Test failed
35. Execute Modification ./Sources/Subs.php Test failed
36. Execute Modification ./Themes/default/Display.template.php Test failed
37. Execute Modification ./Themes/default/index.template.php Test failed
38. Execute Modification ./Sources/Load.php Test successful
39. Execute Modification ./Sources/ManagePermissions.php Test successful
40. Execute Modification ./Themes/default/Profile.template.php Test successful
41. Execute Modification ./Themes/default/languages/Errors.english.php Test successful
42. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
43. Execute Code updateScript.php
-
http://www.daniel15.com/forum/index.php/board,16.0.html
is the section for SMFShop install questions
the basic resons for the fail is it can't find the section it needs to edit or the edits have already been done. you should put the SMFShop package through the package parser
http://modparser.dev.dansoftaustralia.net/
and follow the instructions to make the required edits.
-
okay- hey all..been looking for something like this and looks great but I am having a issue that is simular...clean install on Shop3.0 as well as a Package install of the IPM and have the IPM listed in my shop admin but when I click it it takes me back to the homepage as it did for a previous member but my installs are clean without mods or default overlay custom themes. I did check the IPM in the default setting and it worked the same-as in took me to the front page. I Parsed it with Daniels Parser and manually checked to see all the code was in place....was a lot on the eyes...lol
any ideas??
thanks much -Andy
-
i ill try it
-
Im getting 3 errors installing
1st one. Duplicate entry 'ShopIpDis' for key 1
File: /home/urbaric4/public_html/Packages/temp/dbInstall.php
Line: 14
2 index .php test failed
3 ./Themes/default/index.template.php test failed
Ive tried the unistall i found the files i thought i should remove. I made a new temp folder. and still the same errors.
-
Hi!
Are you still working on it for SMF 1.1.X or are you waiting for SMF 2.0 for being released?
-
Im on 1.1.4
-
It works on my defalt theme i want to work on my other themes. what code and where do i add it thank you
-
Thank you! I've been looking for this for a while now! <3
-
I've re-installed it over and over but it keeps coming up with the same error:
Unable to load the 'ShopIPM' template.
-
Hello...
I just install this mod and i am getting this error :
8: Undefined index: shopitems
File: /home/alliance/public_html/ogame/Themes/default/Display.template.php (main sub template - eval?)
I think had something to do with my language but i cant find it...
-
Is there anyone who can help me with the problem above ?
-
Anyone ???
-
Hello...
I just install this mod and i am getting this error :
8: Undefined index: shopitems
File: /home/alliance/public_html/ogame/Themes/default/Display.template.php (main sub template - eval?)
I think had something to do with my language but i cant find it...
Same error
-
Ok, i think i have a fix but i don't know how it works...
Replace
if (count($message['member']['shopitems']) != 0)
To
if (isset($message['member']['shopitems']) && (count($message['member']['shopitems'])) != 0)
-
Any news here? I'm waiting :D
-
I am Speak Spanish!
Hola,
Alguién podría ayudarme?
cuando coloco esos codigos me sale un error :S
bueno, en realidad me sale cuando entro a un post como rayas!
muy feo :S
-
I Speak Spanish West-Board
Bueno primero tienes que instalar el Shop Item: Profile Image para que te funcione y hay te funcionara :D espero se sirvio
Saludos, Jhon xD
-
Is possible organize the items to show?
If I have more items... can I organize the items to show?
Are any modification for that?
-
In Shop Administration. When i click Inventory Post Mod. It doesnt take me to Inventory Post Mod settings it takes me back to the home page on my site. Any ideas?
Thank you
-
Hey Don't know if anyone can help me, tried installing it and the following warning came up.
2. Execute Modification ./index.php Test failed
that's the only problem I've checked the package parser and tried putting in the code it suggests for my /index.php file but it still comes up with a warning, even looked at the install xml file in the package and taken the code from that and put it where it seems to be pointing which created a parse error itself.
Website is http://lovelycountry.net if anyone wants a gander I'm using the default theme I've just altered the colours.
-
Execute Modification ./Themes/default/Display.template.php Test failed
Any help? On installing.
-
It works great on core, but I can not get it to work on my custom themes, I have been looking through the code on core, display.template.php and index.template.php but no luck transfering that code over.
I shows the block and boarder but no inventory items. Anyone know what code to add to those files to get it to work?
-
Execute Modification ./Themes/default/Display.template.php Test failed
Any help? On installing.
That's the issue I've got still.
-
It works great on core, but I can not get it to work on my custom themes, I have been looking through the code on core, display.template.php and index.template.php but no luck transfering that code over.
I shows the block and boarder but no inventory items. Anyone know what code to add to those files to get it to work?
Can someone please take a look at this file and tell me why it does not show any images in this theme? like i said it only works in Core, not any of my custom themes... I do not understand why
-
nm i fixed it, got it to work great on all my themes
-
I would like to put the images 90% smaller (for example), it is possible?
-
Hi. I think this mod is a great addition to the shop mod. I really like it.
Just a question. From what I see currently each single item is displayed by an image, even when it's an item of the same kind. Let's say a member receives 10 or 20 times the same flower bouquet as welcome gift. Then 10 or 20 flower bouquet images are displayed.
That's using much space and requires loading time. I'm wondering, if it's possible to display just 1 image plus the total number of the particular items that the member owns? That would allow that members can receive masses of items of the same kind without that their inventories run out of control.
Why masses of items? Well, think on the thank you mod that's available for SMF. Why not send a thank you sign to people instead? Or a "i hate you" sign. Or any other signs. lol
Or you build a catalog or virtual gifts and presents which members can buy in the shop for themselves or to send as present to other members.
The more presents one received the more honor. lol Well, I see unlimited options.
-
Hi, How install manuality This Mod
PLis xd
-
There is no version of this mod for 3.1.1?
-
Hiya
I have just added this and its not showing me how to add new items so ppl can buy items instead of the karma and posts etc.
Also when i installed its not showing on the mods installed - does it auto go into the shop mod
-
Ok i have it working its just how do i get them to actually show on somones profile
-
how i can order the items randomly?
-
I am getting errors when i try and install it :'(
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Sources/Load.php Test failed
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/Subs.php Test successful
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/languages/Shop.english.php Test successful
6. Execute Modification ./Sources/shop/ShopAdmin.php Test successful
7. Execute Modification ./Themes/default/ShopAdmin.template.php Test successful
8. Execute Modification ./Themes/default/Display.template.php Test failed
9. Execute Code dbInstall.php
I love this mod and would love to use it - Can anyone tell me how to instal it manually?
-
There are errors in dbinstall.php
Incorrect table name ''
Dosya: /home/www/......../dbInstall.php
line: 14
-
I installed it manually and it works great now O0
-
I only want to show items on signature.Is there a shorter solution without installing mod.
I using smf 1.1.10
-
in the end I installed.fool admin wrote code in correctly.I made my own skills
-
where i can download
-
First post hun x
-
Ok, i think i have a fix but i don't know how it works...
Replace
if (count($message['member']['shopitems']) != 0)
To
if (isset($message['member']['shopitems']) && (count($message['member']['shopitems'])) != 0)
Just wanna say thanx, I came here looking for the same solution. So far it's fixed the errors popping up in the Error Log.
-
Hello excuse my English
I have installed the mod on smf SMFShop3.1.5.1forSMF2.0 RC3
Agraxeceria I discuss how I can install the module or I can do to make the items are in the signature bean
thank you very much
--------------------------------------------------------------------------------------------------------------------------
Hola disculpen mi ingles
Tengo instalado el mod SMFShop3.1.5.1forSMF2.0 en smf RC3
Agraxeceria me comenten como puedo instalar el modulo o que puedo hacer para que los itens se bean en la firma
muchas gracias
-
I haven't changed anything, but apprently items being bought are now being displayed in the opposite order they buy them in.
I can't find where this changed. I'm looking for ASC and DSC in the code, but have no luck.
I want the first item they bought, to the be first item displayed, and each additional item displayed after that.
I know it's the default setting, and it was working before, but now, they're being displayed differently :(
-
This piece of Code on 1.1.11 has an error.. and I follow the parser intructions:.. any help?
This is in Load.php in my source folder
//BEGIN SMFShop IPM
//Set variable for LIMIT amount
$row = 0;
$max = $modSettings['ShopIpDisMax'];
//Begin database query
$request3 = 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 = {$profile['ID_MEMBER']} AND inv.itemid = it.id
LIMIT $max", __FILE__, __LINE__);
//Start with an empty array
$profile['shopitems']['shopitems'] = array();
//Loop through all items
while ($row = mysql_fetch_assoc($request3))
{
// Add item to the array
$profile['shopitems']['shopitems'][] = array(
'image' => $row['image'],
'desc' => $row['desc'],
);
}
mysql_free_result($request3);
//END SMFShop IPM
Thanks
-
What error does it give?
-
I'm not on the same computer, but it showed, Unexpected T_While... something like that....
-
Excelente mod. Otherwise no one knows what you own cause no one wants to go checking the members inventorys.
Is working without further modificactions in As Theme by Fussilet
-
BTW, I got it working.... It showd lots of errors but with the parser did the modifications and working neatly.
-
Please... update it to SMF 2.0 RC3!!!
This mod is great!
-
Yes, Upadate it to 2.0 RC2 and RC3
-
Hi,
I tried to install this mod. At first it was working but then I had to upgrade the forum and when I tried to re-install it, it keeps on giving me an error saying
Duplicate entry 'ShopIpDis' for key 'PRIMARY'
File: /.../Packages/temp/dbInstall.php
Line: 14
Does anyone know how to fix this?
Thanks :)
-
please could you upgrade to 2.0 rc3? This mod is very good thanks
-
please upgrade this mod to rc3 please and i do not know why people have this mod installed in smf rc3 now. Fro example.
http://kekomundo.com/foro/index.php?topic=32536.0
This forum is smf rc3 and already do this change.
Help me....
-
Fatal error: Call to undefined function db_query() in public_html/Packages/temp/dbInstall.php on line 9
please can upgrade this to SMF 2.0 RC3 T.T
-
Awww its not compatable with 2.0 RC3 yet is it! Please can you upgrade it as I love this mod!
-
Installed and Working!!
well, most of my users speaks spanish, so i made a traduction. Hope you find it useful. Just copy on /Themes/default/languages/Modifications.YOUR_LAUNGUAGE.php:
// Shop Inventory Post Mod by Pilla
$txt['shop_ip_display'] = 'Mostrar en el Post el Inventario?';
$txt['shop_ip_display_max'] = 'Cantidad máxima de objetos del inventario a mostrar*';
$txt['shop_ip_display_max_tip'] = '*Se recomienda no exceder los 20 objetos';
$txt['shop_ip_position'] = 'Localización de la Muestra de Inventario en el Post';
$txt['shop_ip_position_postbit'] = 'Cuadro de Perfil';
$txt['shop_ip_position_sig'] = 'Firma';
$txt['shop_admin_shop_IPM'] = 'Muestra de Inventario en el Post';
$txt['shop_admin_IPM'] = 'Configurar la Muestra de Inventario en el Post';
$txt['shop_ip_admin_title'] = 'Configurar Muestra de Inventario en el Post';
$txt['shop_ip_display_yes'] = 'Sí';
$txt['shop_ip_display_no'] ='No';
-
Would someone please help me install index.php and load.php? I am having problems. :( I can't really work out how to use install.xml and those are the two files that didn't install through the package manager. I really need this mod.
1. Execute Modification ./Sources/Load.php Test failed
2. Execute Modification ./index.php Test failed
3. Execute Modification ./Sources/Subs.php Test successful
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/languages/Shop.english.php Test successful
6. Execute Modification ./Sources/shop/ShopAdmin.php Test successful
7. Execute Modification ./Themes/default/ShopAdmin.template.php Test successful
8. Execute Modification ./Themes/default/Display.template.php Test successful
9. Execute Code dbInstall.php
-
Are you sure you're using smf shop version 3?
Here are the edits
Sources/Load.php
Find
// Begin SMFShop MOD Version New Version
'money' => $profile['money'],
// End SMFShop MOD
Replace with
// Begin SMFShop MOD Version New Version
'money' => $profile['money'],
// End SMFShop MOD
//BEGIN SMFShop IPM
'shopitems' => $profile['shopitems']['shopitems'],
//END SMFShop IPM
Find
// What a monstrous array..
Add Before
//BEGIN SMFShop IPM
//Set variable for LIMIT amount
$row = 0;
$max = $modSettings['ShopIpDisMax'];
//Begin database query
$request3 = 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 = {$profile['ID_MEMBER']} AND inv.itemid = it.id
LIMIT $max", __FILE__, __LINE__);
//Start with an empty array
$profile['shopitems']['shopitems'] = array();
//Loop through all items
while ($row = mysql_fetch_assoc($request3))
{
// Add item to the array
$profile['shopitems']['shopitems'][] = array(
'image' => $row['image'],
'desc' => $row['desc'],
);
}
mysql_free_result($request3);
//END SMFShop IPM
And, your index.php
Find
// End SMFShop code
);
Add Before
//BEGIN SMFShop IPM
'shop_IPM' => array('shop/ShopAdmin.php', 'ShopIPM'),
//END SMFShop IPM
I recommend using this package parser, when you're not sure of edits to make
http://resourcez.biz/PackageParser/
Hope that helps.
-
Is this mod still supported? does it work with the latest SMF version? this mod is really neat, I hope it's still supported I want to install it in SMF 2.0 but i'm afraid it will mess things up :(
-
Hello!
Please update it to SMF 2.0 RC3 :-\