Author Topic: SMFShop Inventory Post Modification  (Read 96678 times)

Offline sc2

Re: SMFShop Inventory Post Modification
« Reply #30 on: September 30, 2007, 12:31:39 am »
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!

Offline RichardWing

Re: SMFShop Inventory Post Modification
« Reply #31 on: October 09, 2007, 11:41:05 pm »
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

Offline inkstains

Re: SMFShop Inventory Post Modification
« Reply #32 on: October 09, 2007, 11:52:48 pm »
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?

Offline luisbello

Re: SMFShop Inventory Post Modification
« Reply #33 on: October 14, 2007, 11:49:26 pm »
very very nice thank you

Offline sixu

Re: SMFShop Inventory Post Modification
« Reply #34 on: October 17, 2007, 12:16:28 pm »
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:

Quote
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)
« Last Edit: October 17, 2007, 12:21:52 pm by sixu »

Offline inkstains

Re: SMFShop Inventory Post Modification
« Reply #35 on: October 17, 2007, 01:45:28 pm »
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:

Quote
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

Offline sixu

Re: SMFShop Inventory Post Modification
« Reply #36 on: October 17, 2007, 10:49:01 pm »
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:

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

Quote
<?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, ;)

Offline inkstains

Re: SMFShop Inventory Post Modification
« Reply #37 on: October 18, 2007, 05:40:27 am »
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.  :)
« Last Edit: October 18, 2007, 05:46:14 am by inkstains »

Offline sixu

Re: SMFShop Inventory Post Modification
« Reply #38 on: October 18, 2007, 06:53:34 am »
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
« Last Edit: October 18, 2007, 07:54:31 am by sixu »

Offline Zenin

Re: SMFShop Inventory Post Modification
« Reply #39 on: October 18, 2007, 08:40:30 am »
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.


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

Offline sixu

Re: SMFShop Inventory Post Modification
« Reply #40 on: October 18, 2007, 08:47:08 am »
Found out why, SMF shop isn't installing tables after it was uninstalled.

Offline inkstains

Re: SMFShop Inventory Post Modification
« Reply #41 on: October 18, 2007, 10:55:07 am »
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.


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.

Offline Zenin

Re: SMFShop Inventory Post Modification
« Reply #42 on: October 18, 2007, 06:07:33 pm »
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.

Offline sixu

Re: SMFShop Inventory Post Modification
« Reply #43 on: October 18, 2007, 09:51:30 pm »
Quote
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! :)

Offline inkstains

Re: SMFShop Inventory Post Modification
« Reply #44 on: October 19, 2007, 05:59:44 am »
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.
« Last Edit: October 19, 2007, 06:05:22 am by inkstains »