Request/howto ||| user shops add-in for shop mod

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Request/howto ||| user shops add-in for shop mod
ArtilleryMaster
CZ Newbie
ArtilleryMaster has been a member for over 19 year's 19 Year Member
Gender: Male
Website:
Status: Offline
Joined: Mar 28, 2005
0.00 posts per day
Posts: 5
Points: 359
   
On zarath's page, I saw an add-in for his shop mod that lets users build their own shops. I have been trying to get it to work for a while now. It seems fine, but with errors above each page and when Someone tries to actually BUILD a shop, they get a whole bunch of errors which are looking for files that ARE their. I don't think i'm a noob at this since I have installed quite alot of mods to my site. Can someone PLEASE help? icon_cry.gif



Back to top Reply with quote
#2   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Attach the add-on in a zip and I will take a look.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: Request/howto ||| user shops add-in for shop mod
ArtilleryMaster
CZ Newbie
ArtilleryMaster has been a member for over 19 year's 19 Year Member
Gender: Male
Website:
Status: Offline
Joined: Mar 28, 2005
0.00 posts per day
Posts: 5
Points: 359
   
Here it is. By the way, I have gotten further in making it work, I think I have almost got it! I'm just having some trouble getting the sql to work properly but aside from that there appears to be nothing wrong, with the exception of some "session_pagestart" error appearing above some of the shop pages.

BY THE WAY: [ Register or login to view links on this board. ] that's zarath's site



Attached Files
user_shops_beta.zip (20.39 KB, Downloaded: 5239 Time(s))


Back to top Reply with quote
#4   re: Request/howto ||| user shops add-in for shop mod
ArtilleryMaster
CZ Newbie
ArtilleryMaster has been a member for over 19 year's 19 Year Member
Gender: Male
Website:
Status: Offline
Joined: Mar 28, 2005
0.00 posts per day
Posts: 5
Points: 359
   
Will somebody not answer? PLEASE HELP ME!! icon_cry.gif icon_cry.gif icon_cry.gif



Back to top Reply with quote
#5   
x-caliber
CZ Newbie
x-caliber has been a member for over 19 year's 19 Year Member
usa.gif ohio.gif
Status: Offline
Joined: Aug 21, 2004
0.00 posts per day
Posts: 25
Points: 1,558
   
I'll help you, I know the shops mod well. I will go thru the above file and fix the errors that I see in it and post it back up here for you.

Then you can test it and let me now if it works right.



Back to top Reply with quote
#6   re: Request/howto ||| user shops add-in for shop mod
x-caliber
CZ Newbie
x-caliber has been a member for over 19 year's 19 Year Member
usa.gif ohio.gif
Status: Offline
Joined: Aug 21, 2004
0.00 posts per day
Posts: 25
Points: 1,558
   
In Shop_users.php, shop_users_edit.php AND shop_users_view.php
FIND THIS (its right at the top)
define('IN_PHPBB', true);


BEFORE IT INSERT THIS CODE

if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
    die ("You can't access this file directly...");
}

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
require("modules/".$module_name."/nukebb.php");


NEXT

PUT the .TPL files in the THEMES/THEMENAME YOUR USING/FORUMS Directory.

PUT THE admin_user_shops.php File in the /modules/Forums/admin Directory.

SQL Querries:

CREATE TABLE `nuke_user_shops` (
  `id` INT( 5 ) NOT NULL AUTO_INCREMENT ,
  `user_id` INT( 10 ) NOT NULL ,
  `username` VARCHAR( 32 ) NOT NULL ,
  `shop_name` VARCHAR( 32 ) NOT NULL ,
  `shop_type` VARCHAR( 32 ) NOT NULL ,
  `shop_opened` INT( 30 ) NOT NULL ,
  `shop_updated` INT( 30 ) NOT NULL,
  `shop_status` INT( 1 ) DEFAULT '0' NOT NULL ,
  `amount_earnt` INT( 10 ) DEFAULT '0' NOT NULL ,
  `amount_holding` INT( 10 ) DEFAULT '0' NOT NULL ,
  `items_sold` INT( 10 ) DEFAULT '0' NOT NULL ,
  `items_holding` INT( 10 ) DEFAULT '0' NOT NULL ,
  PRIMARY KEY ( `user_id` ) ,
  INDEX ( `id` )
);

CREATE TABLE nuke_user_shops_items` (
  `id` INT( 10 ) NOT NULL AUTO_INCREMENT ,
  `shop_id` INT( 10 ) NOT NULL ,
  `item_id` INT( 10 ) NOT NULL ,
  `seller_notes` VARCHAR( 255 ) NOT NULL ,
  `cost` INT( 10 ) NOT NULL ,
  `time_added` MEDIUMINT( 30 ) NOT NULL ,
  INDEX ( `shop_id` ) ,
  PRIMARY KEY ( `id` )
);

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('u_shops_enabled', '0');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('u_shops_open_cost', '0');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('u_shops_tax_percent', '0');

INSERT INTO `nuke_bbconfig` (config_name, config_value) VALUES ('u_shops_max_items', '100');




DO that and let me know if you get it working.


Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum