vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   IShop - Simple, Flexible, and Integrateable. (https://vborg.vbsupport.ru/showthread.php?t=109515)

Blaine0002 03-04-2006 10:00 PM

IShop - Simple, Flexible, and Integrateable.
 
Version 1.1.4 RELEASE
Now with AJAX!

IShop

YOU NEED AN EXTERNAL CASH HACK FOR THIS TO WORK!
OMG YES IT WORKS WITH 3.6.X!!!

Works best with ICASH (also made by me)
I can actually give you support on the integration with ICash

By
Blaine0002

With help from:
Siradrian
Zachariah
eXtremetim
Ggiersdorf
Zero Tolerance


allows:
Your users to buy images with their money for their postbit or to have their own inventory

Features

+Multiple Shop Categories
+Unlimited Items
+Little Queries!
+Stock
+ICash Or EBux Integrated
+Detailed items/categories/shops stats(number of sold items, Stock)
+Item Donation
+Postbit Inventory and cash display
+Users sort items using AJAX
+Users may own multiple items of the same type
+Admin limits viewable icons in postbit!
+recipiant and admin notification on buy/sell/donate!


Database Tables

*[itemshop_cat]-Itemshop Categories stored here
*[itemshop_items]-Items That go in the categories
*[itemshop_stock]-Items left to buy


Installation

1.BACK UP YOUR DATABASE.
2.Import included XML file in main folder
3.Upload all files as is
4.Name Money field in VBulletin Options
5.Link to ishop.php


Upgrade from Ultra Imageshop To IShop:
1. Back up as normal
2. Delete all files that came with Ultra Imageshop, and rename 'Itemshop' directory to 'ishop'
3. upload all new files
4. upload XML file opting to overwrite
5. RE-SET options in ISHOP OPTIONS.
6. Re-do below template edit, if done.

Upgrade from V1.0.1 to V1.1.0!
Reupload all files,
Reimport XML, Prompt to overwrite.
WARNING:
In the previous version there was a bug where it would not add stock back to the shop when an item was sold.
If your Stock and Sold do not add up to your original stock for that item, you may upload countupdate.php from your DO NOT UPLOAD folder to your forum root. MAKE SURE YOU BACK UP YOUR DATABASE. Run the php from your browser , then DELETE IT!
WARNING: This will reset ALL of your items stock to 50! and then subtract items sold from this number. if your items did not have a stock of 50, you may want to edit the file and change the number, or edit the numbers in your database via PHPMYADMIN.




CLICK INSTALL!
Thanks!


Too add this to your navbar
open navbar template
find:
PHP Code:

<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td

Add after:
PHP Code:

<td class="vbmenu_control"><a href="ishop.php$session[sessionurl_q]">iShop</a></td


Blaine0002 03-05-2006 02:32 PM

reserventated.

open Postbit template (either or)
Find:
----------
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>

Add after:
----------
Code:

<!-- show inventory -->
<fieldset><legend><a href="ishop.php?do=ViewMember&id=$post[userid]" title="$post[username]'s Inventory">$post[username]'s Inventory</a></legend>
<div>
$post[invrow]
<br>
</div>
</fieldset>
<!-- /show inventory -->


waza 03-05-2006 03:07 PM

Can you post screens or a demo, cause I don't really get the idea.
thx,
seba

Blaine0002 03-05-2006 03:20 PM

added ;) forgot.

screenshot on the left is ubar old and the screenshot on the right is what you can do with your postbit.

nvhlinh 03-05-2006 05:41 PM

Request: Gift feature

Blaine0002 03-05-2006 06:03 PM

well i think ecash has gifts so you can use it with that. :)

Michael_Tree 03-05-2006 08:41 PM

u rock blane if this works

Michael_Tree 03-05-2006 08:54 PM

error :(

Database error in vBulletin 3.5.3:

Invalid SQL:
INSERT INTO itemshop_cat (cid, cname, cdescr, csold, cprofit, citems) VALUES (1, 'Test Category', 'Get your items here!', 0, 0, 0);

MySQL Error : Table 'habbsus1_forumHEREWEGO.itemshop_cat' doesn't exist
Error Number : 1146
Date : Sunday, March 5th 2006 @ 04:54:20 PM
Script : http://www.habbotrades.us/admincp/plugin.php
Referrer : http://www.habbotrades.us/admincp/pl...?do=productadd
IP Address : 172.149.33.49
Username : Skatea
Classname : vb_database

Blaine0002 03-05-2006 08:57 PM

already been fixed :) try installing the newest verison.

Blaine0002 03-05-2006 09:32 PM

Latest version should be stable :)

MissKalunji 03-06-2006 12:26 AM

i dont get the idea either...

Blaine0002 03-06-2006 12:35 AM

idea is after people get points by posting, they can go into this itemshop where they can "buy" images (made by you) to show off in their postbit or inventory. it has no real reason, but its quite fun.

CongTuDepTrai 03-06-2006 01:48 AM

can we put the item below signature? if yes, please show me how


so i have to hack the ebux first which is the one:

https://vborg.vbsupport.ru/showthrea...highlight=ebux

then i have to hack this mod right?

Reeve of shinra 03-06-2006 01:52 AM

Good mod, thank you for sharing.

Is it possible to have this show up on certain pages only? I'd like to use this but I'm not sure yet if I want it in the postbit.

Blaine0002 03-06-2006 01:28 PM

currently i havent released the postbit code, i will in a bit, but as of now each person has a seperate itemshop "inventory"

as for having it below the signature, im not at home right now so this is right off the top of my head, but try checking your postbit code and right under the signature php create a new table, and paste the code i will soon supply into there.

CongTuDepTrai 03-06-2006 01:54 PM

do i have to hack the ebux md to work with this code?

Gizmo5h1t3 03-06-2006 02:10 PM

whilst it looks a decent hack, its got its work cut out with eshop.

Blaine0002 03-06-2006 03:01 PM

this sells diffrent items, and ill work on the postbit when i get home

you only need to install ecash and eshop before installing this

CongTuDepTrai 03-06-2006 03:50 PM

ecash is this code right?

https://vborg.vbsupport.ru/showthread.php?t=106953

Blaine0002 03-06-2006 09:42 PM

yep!

my3shadows 03-08-2006 04:19 AM

Ok, stupid question... but when you say Donation in the list of features, are you talking about donating an image to someone else or are you talking about just being able to donate cash or points, or both?

My users loved the ability in the original ushop to buy a gift (image) for someone else and attach a message to it (which showed up as a tooltip)...and that's what I've been waiting for before I install a new store system. So if this does the same thing, then it looks like I'll be busy installing hacks this weekend. :nervous:

theorigin 03-08-2006 09:18 AM

I love this..but I have a question. When you release the postbit/signature code, is there anyway to limit the items that show up in the postbit/signature? My items are bigger than others, and I really don't want the signatures to take up an entire page because there's so many items. XMB had an option where you could limit the amount and then a 3-dotted link would take you to your profile where it showed all of your purchased items. I realize this would involve creating a table in the member profile, so hopefully it wouldn't take too much. If you need an example, I could provide one. :nervous:

Blaine0002 03-08-2006 02:07 PM

i understand what you mean, and believe it can be done fairly easily.

Blaine0002 03-08-2006 02:14 PM

Quote:

Originally Posted by my3shadows
Ok, stupid question... but when you say Donation in the list of features, are you talking about donating an image to someone else or are you talking about just being able to donate cash or points, or both?

My users loved the ability in the original ushop to buy a gift (image) for someone else and attach a message to it (which showed up as a tooltip)...and that's what I've been waiting for before I install a new store system. So if this does the same thing, then it looks like I'll be busy installing hacks this weekend. :nervous:

yes, you can do this, but you cant attach a message yet.

also each person can only have 1 of each item, so make sur the people donate before the person you are buying the item for buys it themselves :D

BrentW 03-08-2006 05:56 PM

I'll post the requests I had in the old thread...

1. All users automatically have a 'profile.'
2. An equip feature like in RPG Infero -- equiped items displayed in postbit.

Blaine0002 03-08-2006 07:57 PM

all users automaticly DO have an itemshop inventory. i can also try adding an equip. Would the unequip items still show in their inventory and not their postbit?

Holidazed 03-08-2006 09:23 PM

Quote:

Originally Posted by Blaine0002
reserventated.

open Posbit (not legacy)
Find:
----------
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>

Add after:
----------
Code:

<!-- show inventory -->
<fieldset><legend><a href="itemshop.php?do=ViewMember&id=$post[userid]" title="$post[username]'s Inventory">$post[username]'s Inventory</a></legend>
<div>
$post[invname]
$post[inventory]
<br>
$post[invcash]
</div>
</fieldset>
<!-- /show inventory -->


I did the change to my postbit template, but when I di, it whacks out the look of my site. See the attachment. The first post comes up kinda ok, the rest is fubared. It does not matter where I put your code either. I put it under the signature and it whacks out the page too.

Blaine0002 03-08-2006 09:36 PM

now THAT shouldnt happen, if you take it out does it go back?

Holidazed 03-08-2006 09:42 PM

Quote:

Originally Posted by Blaine0002
now THAT shouldnt happen, if you take it out does it go back?

First thing I checked.

Yes, if I take it out, it goes back.

Here is a link to that exact same post without the modification in it.
http://www.hidingplace.com/vbb350/showthread.php?t=925

Blaine0002 03-08-2006 10:07 PM

ah

replace everything in itemshop_invpostbit_end template with

Code:

<br>
{$themember['username']} has {$themember[$vbulletin->options['itemshop_pointfield']]} {$vbulletin->options['moneyname']} On Hand


Holidazed 03-09-2006 01:29 AM

Quote:

Originally Posted by Blaine0002
ah

replace everything in itemshop_invpostbit_end template with

Code:

<br>
{$themember['username']} has {$themember[$vbulletin->options['itemshop_pointfield']]} {$vbulletin->options['moneyname']} On Hand


That did it. Thanks

theorigin 03-09-2006 04:02 AM

Alright, I fixed it so that I could have the items under the signature, but now my question is, is there a way to choose which items show in the sigs and which just show in the inventory?

Also, when adding items, is there any way to make them listed alphabetical? I realize you could do it by inputting them in alphabetically to begin with, but when you add new items later, that could become a problem.

Chaotican 03-09-2006 12:01 PM

Im having issues getting this one installed. When I try to import the XML, I get an error similar to the one previously mentioned:

Invalid SQL:
INSERT INTO itemshop_cat (cid, cname, cdescr, csold, cprofit, citems) VALUES (1, 'Test Category', 'Get your items here!', 0, 0, 0);

Im trying to install file currently listed above, have tried redownloading and installing again, but with the same issue.

Im anxious to get this working, as its what im lacking to get my eStore working for the purpose I put it in for. Any help with this issue would be much apperciated.

Also, what is the name of the default money field for eBux/eStore?

Blaine0002 03-09-2006 02:02 PM

Quote:

Originally Posted by Chaotican
Also, what is the name of the default money field for eBux/eStore?

ebux, its the defaut value added

The easiest way to reinstal fresh is to delete the 'Install' code in the xml file and import it. Once its installed, uninstall it to rid your boards of bad tables and stuff, then reinstall the xml WITH the install part.

CongTuDepTrai 03-09-2006 03:17 PM

we waiting for you to move the item from postbit down to signature. thanks

Blaine0002 03-10-2006 01:16 AM

this can easily be achieved by moving the part of the postbit template anywhere in your postbit.

lairnoc 03-11-2006 06:15 AM

ok installed it, but no items in the shop and i cannot choose anything :(

Blaine0002 03-11-2006 12:44 PM

:) you need to make them in your admincp

mikeylikesitz 03-11-2006 01:41 PM

does this work with vbplaza?

lairnoc 03-11-2006 04:14 PM

Quote:

Originally Posted by Blaine0002
:) you need to make them in your admincp

weird now i see the options those were not there earlier maybe somehing with history refresh or so


All times are GMT. The time now is 04:39 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01638 seconds
  • Memory Usage 1,830KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete