vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - MMstore RC2 (sell real items) (https://vborg.vbsupport.ru/showthread.php?t=120100)

micheal332001 07-01-2006 10:00 PM

MMstore RC2 (sell real items)
 
Downloads for this modification have been removed according to Official Policy: When Security Vulnerabilities in Hacks are Found



What is MMstore
************************************************** ***********
MMstore is a online store system for selling real items.

User area
*********
User can view items in the store.
View items by categorys
View payments to there items a user has added
Search the store for a item
See the store rules of use
Add new items if the usergroup has permissions too
View the items you have added to the store and delete them
Contact us system PM or leaves a message in the store admincp
View the PM's you have sent and delete them if no longer needed
Admincp
*******
General MMstore Settings
************************
MMstore On/Off?
Categorys Per Page
Items Per Page
Sites URL
MMstore Paypal Payment Settings
*******************************
Turn Paypal ON/OFF
Paypal URL
Return URL From PayPal
Button URL PayPal
MMstore Currency Code And Pay Symbol Settings
*********************************************
Currency Code
Pay Symbol
MMstore Image Settings
**********************
Store Image
Image URL
Image Upload Path

List Items
Store Inactive Items
Add New Items
Active Rules
Inactive Rules
Add Rules
Store Payments
Categorys
Add Categorys
Contact Us

Installation
************
1. Upload files as-is to board but not the product-mmstore free rc2.xml file.
2. Log into admincp, Goto Plugin System then manage pruducts click [Add/Import Product]
then inport the product-mmstore free rc2.xml file.
3. navigate back into admincp, (might need a refresh to get nav options)
4. click MMstore Management, then Store settings, Change the setting here to your needs
5. Edit navbar in navigation / breadcrumb templates
************************************************** ************
Find
************************************************** ************
PHP Code:

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

************************************************** ************
Add under
************************************************** ************
PHP Code:

<td class="vbmenu_control"><a href="mmstore.php">Online Store</a></td>
************************************************************** 

Usergroup Permissions
*********************
You will need to set all user group permissions to who can view the store and add items.
If you want to use this as a way to earn some money make the sellers by a subscription to sell items.
To do this you will need to make a new usergroup called sellers or some thing like that.
Then add a new subscription and set a price for them to sell items like.
1 month of selling ?5
3 months selling ?10
6 months selling ?25
12 months selling ?45
So when someone buys a subscription they will be able to sell as many items as they like for as long
as there subscription lasts.
All prices for subscription are up to you.
If you make them pay for subscription you will need to change the usergroup permissions so that only that usergroup can add items.
All other usergroups set to cannot add items.
6. all done add some items.

All done

Many thanks and enjoy this hack.

Thanks to SkyCatcher you can add images to the new random and most hit items by adding in this code.
When i get the time i will make a upgrade to the mmstore.php file to include this.

in mmstore.php:
---------------
find every instance of
PHP Code:

$mmstorenewitems[price] = $mmstorenewitems['price']; 

and add afterwards:

PHP Code:

$mmstorenewitems[itemimage] = $mmstorenewitems['itemimage'];
if (
$mmstorenewitems[itemimage] == ""){
$mmstorenewitems[itemimage] = $noimage;


find every instance of

PHP Code:

$mmstorerandomitems[price] = $mmstorerandomitems['price']; 

and add afterwards:

PHP Code:

$mmstorerandomitems[itemimage] = $mmstorerandomitems['itemimage'];
if (
$mmstorerandomitems[itemimage] == ""){
$mmstorerandomitems[itemimage] = $noimage;


find every instance of

PHP Code:

$mmstoremosthititems[price] = $mmstoremosthititems['price']; 

and add afterwards:

PHP Code:

$mmstoremosthititems[itemimage] = $mmstoremosthititems['itemimage'];
if (
$mmstoremosthititems[itemimage] == ""){
$mmstoremosthititems[itemimage] = $noimage;


There will be a couple instances where those are already in the code but there are like 20 instances where it needs to be added.

Then in
------------------
Template mmstore
------------------

Find:
PHP Code:

<td width="33%" align="center">$newitemsrightblock<br></td

Replace with:
PHP Code:

<td class="alt1" width="33%" align="center">$newitemsrightblock<br></td

Find
PHP Code:

<td width="33%" align="center">$randomitemscenterblock<br></td

Replace with:
PHP Code:

<td class="alt2" width="33%" align="center">$randomitemscenterblock<br></td

Find:
PHP Code:

<td class="alt1" width="33%" align="center">$mosthititemsrightblock<br></td

Replace with:
PHP Code:

<td class="alt1" width="33%" align="center">$mosthititemsrightblock<br></td

To alternate colors.


In template
----------------------------------
mmstore_mosthit_items_right_block
----------------------------------

Find:
PHP Code:

[hits]<br

Add AFTER:
PHP Code:

<a href="$mmstoremosthititems[itemimage]target=_blank><img src="$mmstoremosthititems[itemimage]width="50" height="50" align="center"></a><br /><br /> 

In template
------------------------------
mmstore_new_items_left_block
------------------------------
Find:
PHP Code:

[price]<br

Add AFTER:
PHP Code:

<a href="$mmstorenewitems[itemimage]target=_blank><img src="$mmstorenewitems[itemimage]width="50" height="50" align="center"> <br /><br /> 

In Template
---------------------------------
mmstore_rand_items_center_block
---------------------------------

Find:
PHP Code:

[price]<br

Add AFTER:
PHP Code:

<a href="$mmstorerandomitems[itemimage]target=_blank><img src="$mmstorerandomitems[itemimage]width="50" height="50" align="center"><br /><br /> 

And that should do it

To add the newest items added to the store on your forum home page click here for how to install.
I have made a install files for the plugin that can be downloaded.

micheal332001 07-02-2006 09:09 AM

Re-uploaded new files with out the executionorder and should work now.
Just uninstall the mmstore and redownload the zip file and install the new product.xml file.

Let me know if this works

kenanulas 07-02-2006 09:20 AM

thank you

BCC 07-02-2006 09:25 AM

Any Screenshots Avalible?
Thanks

micheal332001 07-02-2006 09:29 AM

i will post screen shots later

sensimilla 07-02-2006 10:59 AM

Nice and very handy hack, looking for final release

thans

klaush 07-02-2006 11:12 AM

Well, we are waitung for such a store since we switched to vb.

Thanks!

Could you please include vat to the price information for in Germany you have to do that if you are selling from b2b.

Edit: First bug? The permissions donĀ“t work correctly for the usergroups.

erjavid 07-02-2006 01:16 PM

sorry my inglish
this work in vbulletin 3.6

micheal332001 07-02-2006 04:45 PM

Quote:

Originally Posted by erjavid
sorry my inglish
this work in vbulletin 3.6

Yes i have installed it on my pc the 3.6 version and it works fine as far as i know.

micheal332001 07-02-2006 04:47 PM

Quote:

Originally Posted by klaush
Well, we are waitung for such a store since we switched to vb.

Thanks!

Could you please include vat to the price information for in Germany you have to do that if you are selling from b2b.

Edit: First bug? The permissions don?t work correctly for the usergroups.

There is only 2 usergroup permissions for the store can view and can add items, both do work in my tests.

What version of vb are you using.

micheal332001 07-02-2006 04:48 PM

Quote:

Originally Posted by sensimilla
Nice and very handy hack, looking for final release

thans

There is a final release that has 3 payment options and a PM system.
There will be more added in time to the final pro version, but i cannot talk to much on that here.

klaush 07-02-2006 04:52 PM

Quote:

Originally Posted by micheal332001
There is only 2 usergroup permissions for the store can view and can add items, both do work in my tests.

What version of vb are you using.

3.5.4! Any problems known with other modifications?

Hint: If i do a reinstall i get this:

MySQL-Fehler : Unknown column 'executionorder' in 'field list'

So, my last information ist, that the column 'executionorder' only exist in 3.6?

micheal332001 07-02-2006 05:44 PM

Quote:

Originally Posted by klaush
3.5.4! Any problems known with other modifications?

Hint: If i do a reinstall i get this:

MySQL-Fehler : Unknown column 'executionorder' in 'field list'

So, my last information ist, that the column 'executionorder' only exist in 3.6?

Ok i will look into this for you and see why this is.

PabloAM 07-02-2006 06:09 PM

MySQL Error : Unknown column 'stormpayemail' in 'field list'

Help?

MotMann 07-02-2006 06:45 PM

Maybe it's nice, if User can post the Article as "search", "sell" or "change".

Is that possible?

micheal332001 07-02-2006 09:06 PM

Quote:

Originally Posted by PabloAM
MySQL Error : Unknown column 'stormpayemail' in 'field list'

Help?

Can you give a bit more info on this and when and where this happens so i can fix.

micheal332001 07-02-2006 09:08 PM

Quote:

Originally Posted by MotMann
Maybe it's nice, if User can post the Article as "search", "sell" or "change".

Is that possible?

Yes this is and can be added.
I will see what i can do.
But can you give a bit more info on what you mean i think i know what you mean, but more info would be good lol.

MotMann 07-02-2006 09:21 PM

https://vborg.vbsupport.ru/attachmen...9&d=1151862593

Well... that there is a row, where the User can select "Sell", "Change" or "Search".

funinthesun 07-02-2006 10:22 PM

Just a quick note but can 'Welcome to are store' be changed to 'Welcome to our store. Thanks :)

Been waiting for this for a very very long time!

SCORPION1 07-02-2006 11:15 PM

hi there i got this error when try a tester on the board
Database error in vBulletin 3.5.4:

Code:

Invalid SQL:
INSERT INTO mmstore_items ( itemname , itemdiscription , catid , itemimage , submitterid , submitter , paypalemail , stormpayemail , moneybookers , price , amounttosell , shippingamount , aprove ) VALUES ('this is a tester','kjhzjh zkjhz hjkzshdhrihz kjhzkhzk;lj vnzf;kh knjz; nkdf kjndf','5','http://www.vaultsecrets.com/forum/images/mmstore/stored/phpqD9QEQ.jpg','1','madace','','','','100','1','9.99','0');

MySQL Error  : Unknown column 'stormpayemail' in 'field list'
Error Number : 1054
Date        : Sunday, July 2nd 2006 @ 08:12:22 PM
Script      : http://www.vaultsecrets.com/forum/mmstore.php?do=additemconfirm
Referrer    : http://www.vaultsecrets.com/forum/mmstore.php?do=addnewitem
IP Address  : *****
Username    : ****
Classname    : vb_database


micheal332001 07-03-2006 07:32 AM

Quote:

Originally Posted by SCORPION1
hi there i got this error when try a tester on the board
Database error in vBulletin 3.5.4:

Code:

Invalid SQL:
INSERT INTO mmstore_items ( itemname , itemdiscription , catid , itemimage , submitterid , submitter , paypalemail , stormpayemail , moneybookers , price , amounttosell , shippingamount , aprove ) VALUES ('this is a tester','kjhzjh zkjhz hjkzshdhrihz kjhzkhzk;lj vnzf;kh knjz; nkdf kjndf','5','http://www.vaultsecrets.com/forum/images/mmstore/stored/phpqD9QEQ.jpg','1','madace','','','','100','1','9.99','0');
 
MySQL Error  : Unknown column 'stormpayemail' in 'field list'
Error Number : 1054
Date        : Sunday, July 2nd 2006 @ 08:12:22 PM
Script      : http://www.vaultsecrets.com/forum/mmstore.php?do=additemconfirm
Referrer    : http://www.vaultsecrets.com/forum/mmstore.php?do=addnewitem
IP Address  : *****
Username    : ****
Classname    : vb_database


you need to chmod the stored folder to 777 for uploading of images.

Im just about to upload the fixed files now

SCORPION1 07-03-2006 10:01 AM

Quote:

Originally Posted by micheal332001
you need to chmod the stored folder to 777 for uploading of images.

Im just about to upload the fixed files now

yeah already done that m8 and still got that error:confused:

SkyCatcher 07-03-2006 11:02 AM

Quote:

Originally Posted by SCORPION1
hi there i got this error when try a tester on the board
Database error in vBulletin 3.5.4:

Code:

Invalid SQL:
INSERT INTO mmstore_items ( itemname , itemdiscription , catid , itemimage , submitterid , submitter , paypalemail , stormpayemail , moneybookers , price , amounttosell , shippingamount , aprove ) VALUES ('this is a tester','kjhzjh zkjhz hjkzshdhrihz kjhzkhzk;lj vnzf;kh knjz; nkdf kjndf','5','http://www.vaultsecrets.com/forum/images/mmstore/stored/phpqD9QEQ.jpg','1','madace','','','','100','1','9.99','0');

MySQL Error  : Unknown column 'stormpayemail' in 'field list'
Error Number : 1054
Date        : Sunday, July 2nd 2006 @ 08:12:22 PM
Script      : http://www.vaultsecrets.com/forum/mmstore.php?do=additemconfirm
Referrer    : http://www.vaultsecrets.com/forum/mmstore.php?do=addnewitem
IP Address  : *****
Username    : ****
Classname    : vb_database




You need to add stormpayemail and moneybookers fields to the database as they don't exist right now.

micheal332001 07-03-2006 11:11 AM

Quote:

Originally Posted by SkyCatcher
You need to add stormpayemail and moneybookers fields to the database as they don't exist right now.

open the mmstore.php file and do a search for stormpay and remove it and all will be ok.
I have uploaded the new files with the edits done to this file.
So you could just redownload the zip file and over wright the files already installed.

sickboy6ths 07-03-2006 11:32 AM

Nice Product!!

But not working for me..
It seems the tables don't get created, except 1: mmstore_categorys
all the rest doesnt get created, and thus I get this error accessing the control panel:
Code:

Database error in vBulletin 3.5.4:

Invalid SQL:
SELECT * FROM mmstore_settings;

MySQL Error  : Table 'XX.mmstore_settings' doesn't exist
Error Number : 1146
Date        : Monday, July 3rd 2006 @ 02:28:17 PM
Script      : http://www.XXXXXX.XX/admincp/mmstore_admin.php?do=general
Referrer    : http://www.XXXXXXX.XX/admincp/index.php?do=nav
IP Address  : XX.XX.XX.XX
Username    : XXXX
Classname    : vB_Database_MySQLi

PHP 5.1.2
MySQL 5.0.21

Thanks for any assitence!

SCORPION1 07-03-2006 07:32 PM

Quote:

Originally Posted by micheal332001
open the mmstore.php file and do a search for stormpay and remove it and all will be ok.
I have uploaded the new files with the edits done to this file.
So you could just redownload the zip file and over wright the files already installed.

working fine now cheers for that:cool:

meissenation 07-04-2006 12:34 AM

Installed and works perfect!!! There's a lot of little wordings that need to be edited. For one, when going to add an image, it says "Upload an image to add to the joke" or something like that, also Random is spelled wrong on the store page... little things like that, but considering it's beta and so new, it's definitely no big deal. A very great mod, about time we had something like this available!

micheal332001 07-04-2006 06:18 AM

Quote:

Originally Posted by meissenation
Installed and works perfect!!! There's a lot of little wordings that need to be edited. For one, when going to add an image, it says "Upload an image to add to the joke" or something like that, also Random is spelled wrong on the store page... little things like that, but considering it's beta and so new, it's definitely no big deal. A very great mod, about time we had something like this available!

Thanks for the nice words on this mod.
All the spelling misstakes will be sorted out soon.
But for now you can change most of them in the phrases manager just do a search for mmstore_

And all the store phrases will show up for you.

sickboy6ths 07-04-2006 06:43 AM

PS .. This software totally rules.... you earn my grattitude!!! I was searching and searching for something as good working as this one! I am looking forward to all new versions and functions etc ;)

refering to my error: https://vborg.vbsupport.ru/showpost....8&postcount=25

I opened your xml, and changed default '' at all mysql INT fields, to default '0'
otherwise it didn't want to accept the tables etc... Would this make any problems in the future?



------

Another small bug report...
in the templates you have href="?do=viewitem or ?do=viewcat etc. etc. etc.
I guess you forgot "mmstore.php" since at my site it was linking to my domainurl.com/?do=viewitem :)


oh and most of the code doesn't seem to understand: ' or \ ... guess the htmlspecialchars thingy or something?


Another small buggie...
My platform is Windows and not Linux, hence your /tmp/ ereg replace in mmstore.php for the images doesn't work for me, again a problem with \, and I recommend an option to be able to configure the TMP folder for your own system, so it's versatile... Or otherwise maybe the temp folder is readable from the PHP settings, so it is done automaticly

geevest.com 07-04-2006 10:54 AM

uhm im access in cpanel MMSTORE management ... and i cant open..Store setting..etc...
page cannot found..why?
thanks

micheal332001 07-05-2006 08:33 PM

Quote:

Originally Posted by geevest.com
uhm im access in cpanel MMSTORE management ... and i cant open..Store setting..etc...
page cannot found..why?
thanks

Have you uploaded all the files to your forum root folder as if they are not there it will not find them.

PitPunks 07-05-2006 10:58 PM

Menu wont load, is there an alternative menu?

SkyCatcher 07-05-2006 11:00 PM

Quote:

Originally Posted by PitPunks
Menu wont load, is there an alternative menu?

The menu is an swf file, so make sure your browser has a flashplayer installed to be able to view it.

PitPunks 07-06-2006 01:08 AM

I know its a swf file, but it would be nice to have an alternative html menu because i know alot of my veiwers dont have shockwave/flash.

PitPunks 07-06-2006 01:15 AM

i have it installed and the swf file still doesnt work

PitPunks 07-06-2006 01:38 AM

fixed it, s0rry

toolblast 07-06-2006 02:18 AM

This looks like a great start Michael!

Do you have any sort of live working demo URL we can check out? I'd like to take a test drive :)

PitPunks 07-06-2006 02:50 AM

Live demo: http://www.pitpunks.com/forum/mmstore.php

toolblast 07-06-2006 02:58 AM

Thanks pitpunks, i'll check it out!

toolblast 07-06-2006 03:00 AM

I just checked out your site.... no items in your store?? I went to every category, they are all empty. :(


All times are GMT. The time now is 03:52 AM.

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.01539 seconds
  • Memory Usage 1,893KB
  • 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
  • (4)bbcode_code_printable
  • (20)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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