Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > uCash & uShop
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
How to set up an item shop in uCash & uShop Details »»
How to set up an item shop in uCash & uShop
Version: , by midihead midihead is offline
Developer Last Online: May 2011 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-11-2005 Last Update: Never Installs: 0
 
No support by the author.

I've seen a few people ask for an add-on to uCash & uShop that will allow them to add physical goods. I'm not a programmer, and I thought that this tip might be helpful to those who are unable to hack at the code and make their own modifications.

Basically, I was looking for a feature that would allow someone to purchase physical goods like CD's, T-Shirts, etc. with their points. Here's what I did by using the current, unmodified installation:
  • Create a forum with rules to disallow access to anyone. Write down the forum ID (you'll need to know this later). Place an item that you want to "sell" in this forum, with instructions on how to obtain that item.
  • Next, go into the Admin control panel and find the "uTT store hack" menu. Select "Action Manager". To the right of the template "Buy Forum Access" select "copy" from the drop-down menu. The template will open and allow you to edit the settings.
  • Change the "short name" to "forumaccess1" or something different of your choosing. Edit all your settings to your liking, then at the bottom you will notice "Action Specific Variables System". Enter the forum ID that you created to place the item, in the "Allowed Forums" field.
  • Repeat this process for EACH physical item that you want to add to your store (so you have control over quantity, price, etc).

If you only want to allow a user to buy one of each item, go into your Admin control panel and select "Users" then "Search for users" then the user's name. Next, find the "Quick user links" at the top left and select "Edit forum permissions (access masks)". Find the forum for which the item was purchased from and reset it to "default".

I know it's a bit of a cumbersome process, but I've not found any other way to do this. I hope this will help a few of you.

Cheers,

Midihead

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-12-2005, 06:17 AM
radicaledward's Avatar
radicaledward radicaledward is offline
 
Join Date: Jul 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Eh, I have a custom shop on my site - you can see it in action here but that isn't how I went about writing it. Basically I setup the shop as an action in the database for the uShop, and then wrote the custom shop a custom database, admincp section, action script, and shop script. In short each does this:

Custom database: one table for the items, and one table for the history, and one table for items owned
AdminCP section: controls what is shown in the shop, its associated image, cost, ect
Shop script: shows the items in the selected section
Action script: handles the sale of the item and adds it the appropriate users account

Granted it is a good amount of code that you need to write (However, I may release my script once the polish is on it), but it is alot more flexible.
Reply With Quote
  #3  
Old 03-14-2005, 04:11 PM
midihead midihead is offline
 
Join Date: Nov 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's cool that you were able to code your own hack for this mod. I wish I could do my own hacking. It would be very nice of you to share it with the community in the future. I, like a few people here am not a code-head and have no knowledge of how to do what you've done. The method I shared is the only solution I could find for those of us who have no coding knowledge. If the process of hacking the script is too convoluted, a guy like me will just shut down. Maybe it's ADD but I just don't have the mind set for it.

Cheerz,

Midihead
Reply With Quote
  #4  
Old 03-15-2005, 12:00 AM
radicaledward's Avatar
radicaledward radicaledward is offline
 
Join Date: Jul 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I will work on the script some more, and with any luck I may be able to get a release out sometime this month. Most of the work that is left is just minor stuff behind the scenes. Keep an eye here on this forum, and I will make the release post here
Reply With Quote
  #5  
Old 03-17-2005, 08:24 PM
midihead midihead is offline
 
Join Date: Nov 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I look forward to it, and I'm sure many others will thank you.
Reply With Quote
  #6  
Old 03-17-2005, 10:04 PM
DavidL DavidL is offline
 
Join Date: Jan 2005
Location: Florida
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My main reason for wanting to use ucash and ushop will be only for physical goods. I tried with the latest version and gave up :ermm:
To have an option just for this would be great.
Reply With Quote
  #7  
Old 11-29-2005, 10:38 AM
clasione clasione is offline
 
Join Date: Aug 2004
Location: NY
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very Helpful info... :squareeyed:


Quote:
Originally Posted by midihead
I've seen a few people ask for an add-on to uCash & uShop that will allow them to add physical goods. I'm not a programmer, and I thought that this tip might be helpful to those who are unable to hack at the code and make their own modifications.

Basically, I was looking for a feature that would allow someone to purchase physical goods like CD's, T-Shirts, etc. with their points. Here's what I did by using the current, unmodified installation:
  • Create a forum with rules to disallow access to anyone. Write down the forum ID (you'll need to know this later). Place an item that you want to "sell" in this forum, with instructions on how to obtain that item.
  • Next, go into the Admin control panel and find the "uTT store hack" menu. Select "Action Manager". To the right of the template "Buy Forum Access" select "copy" from the drop-down menu. The template will open and allow you to edit the settings.
  • Change the "short name" to "forumaccess1" or something different of your choosing. Edit all your settings to your liking, then at the bottom you will notice "Action Specific Variables System". Enter the forum ID that you created to place the item, in the "Allowed Forums" field.
  • Repeat this process for EACH physical item that you want to add to your store (so you have control over quantity, price, etc).

If you only want to allow a user to buy one of each item, go into your Admin control panel and select "Users" then "Search for users" then the user's name. Next, find the "Quick user links" at the top left and select "Edit forum permissions (access masks)". Find the forum for which the item was purchased from and reset it to "default".

I know it's a bit of a cumbersome process, but I've not found any other way to do this. I hope this will help a few of you.

Cheers,

Midihead
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:13 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.03971 seconds
  • Memory Usage 2,263KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete