[ABD] UPS Easy Shop 0.7.0

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
Wuerzi
Registered User
Posts: 60
Joined: Fri Aug 15, 2008 11:38 pm
Location: Germany/Würzburg

Re: [Beta] UPS Easy Shop 0.5.0

Post by Wuerzi »

Seapyramid1 wrote:
plasmino wrote: color nick, change the colors of the nick name in the forum, but lacks the ability to return to the default color .. Help
Change the default user group & then change it back. It resets to the original color. :)

Sea
Or create a new item with the name:

Code: Select all

user_color_standard

Code: Select all

<?php
/**
*
* @package - phpbb3 UPS Easy Shop
* @version $Id: $
* @copyright (c) Wuerzi (http://spieleresidenz.de), (c) femu (http://die-muellers.org)
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/*
 * @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

class user_color_standard extends item
{
	function init()
	{

	}

	function get_actions()
	{
		global $user;

		$actions = array();

		//In most cases, items that have an action with them should use the "use" action.
		//To enable it, uncomment the following code:
		$actions['use'] = array(
			'name'		=> $user->lang['ITEM_USE'],
			'confirm'	=> sprintf($user->lang['ITEM_CONFIRM_USE'], $this->data['name']),
			'function'	=> 'use_item'
		);

		$actions = array_merge($actions, parent::get_actions());
		return $actions;
	}

	function use_item()
	{
		global $user, $shop, $db, $phpEx, $phpbb_root_path;

		$this->remove_item();
		
		$color 	= $user->data['user_colour'] = '';

		$sql_ary = array(
			'user_colour'		=> $color,
		);

		$sql = 'UPDATE ' . USERS_TABLE  . '
			SET ' . $db->sql_build_array('UPDATE', $sql_ary) . '
			WHERE user_id = ' . (int) $user->data['user_id'];
		$db->sql_query($sql);
	}
}
?>
:ugeek:
User avatar
Wuerzi
Registered User
Posts: 60
Joined: Fri Aug 15, 2008 11:38 pm
Location: Germany/Würzburg

Re: [Beta] UPS Easy Shop 0.5.0

Post by Wuerzi »

lovelysummer wrote:Hi,

IE8 cannot see the image in ucp /inventory. FF is fine . ;)
Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaah i hate IE :cry:

Thanks for reporting! ;)

Fix:

Open includes/ucp/ucp_shop.php and search:

Code: Select all

					'NAME'			=> $item->data['name'],
After add:

Code: Select all

					'ICON_WIDTH'	=> $item->data['icon_width'],
					'ICON_HEIGHT'	=> $item->data['icon_height'],
User avatar
woipi90
Registered User
Posts: 908
Joined: Mon Feb 16, 2009 5:32 pm
Location: Austria

Re: [Beta] UPS Easy Shop 0.5.0

Post by woipi90 »

hey that sounds great.... ;)

question: is a permission sell tool planed like in the abd shop system of adrian1?

would be great!

by the way if you need help i'd help you out too.... :lol:


grz woipi
My mods: Ultimate Board Clubs
Support: only for the UBCS!
-----
function be_friends($uid, $u){return ($u == $user->['user_id']) ? false : true;}
$this->be_friends($uid, $user->['user_id']) ? $allow_pm : echo "You failed again";
User avatar
karot
Registered User
Posts: 61
Joined: Fri Apr 17, 2009 2:55 pm
Location: http://sedxbor.com

Re: [Beta] UPS Easy Shop 0.5.0

Post by karot »

nice mod very very very nice ^^
i love it

i tryed to make a plugin that Users can sell their topics. but fail auhsuhsuauhsa

can u help me ?

or someone have any idea how can i do it ?

THX
sedxbor.com
Anyasha
Registered User
Posts: 704
Joined: Mon Aug 07, 2006 4:02 am
Name: Anyasha

Re: [Beta] UPS Easy Shop 0.5.0

Post by Anyasha »

What? No plans for categories?! You guys!! I am heartbroken. :cry: :cry:
Kiss me, I'm Polish!
sotis
Registered User
Posts: 294
Joined: Tue Oct 17, 2006 4:56 pm
Location: Bulgaria

Re: [Beta] UPS Easy Shop 0.5.0

Post by sotis »

darkonia wrote: this mod has nothing todo with the adrians shop mod, so you must deinstall your old shop when you want to use this one.
I know that. And exactly because of this I am asking for mеrsy. I have more then 100 items.
And I know it is not only me who suffer with Adrian's shop mod.

So I am not satisfied with your answer. If femu decide to do nothing I will understand, because I knew what he did for points system mod. But I will wait for his answer.
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm

Re: [Beta] UPS Easy Shop 0.5.0

Post by keith10456 »

Currently, can the admin get a PM when a member purchase an item from the shop? If so, can he/she select which items to obtain a pm about or is it universal?
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany

Re: [Beta] UPS Easy Shop 0.5.0

Post by darkonia »

sotis wrote:
darkonia wrote: this mod has nothing todo with the adrians shop mod, so you must deinstall your old shop when you want to use this one.
I know that. And exactly because of this I am asking for mеrsy. I have more then 100 items.
And I know it is not only me who suffer with Adrian's shop mod.

So I am not satisfied with your answer. If femu decide to do nothing I will understand, because I knew what he did for points system mod. But I will wait for his answer.
im a moderator on his board and i know what his answer will be, so i said it to you.

but you can rename your db entrys for the items to the easy shop mod entrys, maybe you can hold your items...

but in dont think so :ugeek:

but whay you want to change, when your shop mod runs good?
the easy shop mod is a very easy and simple shop...
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
User avatar
Wuerzi
Registered User
Posts: 60
Joined: Fri Aug 15, 2008 11:38 pm
Location: Germany/Würzburg

Re: [Beta] UPS Easy Shop 0.5.0

Post by Wuerzi »

The shop from Adrian have a complete other structure!

Sorry, but you can´t update from this mod! ;)
User avatar
Wuerzi
Registered User
Posts: 60
Joined: Fri Aug 15, 2008 11:38 pm
Location: Germany/Würzburg

Re: [Beta] UPS Easy Shop 0.5.0

Post by Wuerzi »

keith10456 wrote:Currently, can the admin get a PM when a member purchase an item from the shop? If so, can he/she select which items to obtain a pm about or is it universal?
The User where buy a item become a pm.
You can only set the Name from the Shop Admin and the text in pm comes from lang file.
femu
Registered User
Posts: 1070
Joined: Tue Sep 27, 2005 10:03 am

Re: [Beta] UPS Easy Shop 0.5.0

Post by femu »

Ok. To summerize it a little bit.

As Wuerzi said: It's an EASY Shop Mod!

Therefore we won't do any specials on this one. What we said ie. NO categories. Of course we will add a how to do a plugin, BUT this will be only useful for those of you, which have programming skills and do know, what they are doing! It will never become a "professional" shop. It's for playing around and spend some virtaul dollars.

For the PM. The buyer will get PMs but definitly NOT the admin. You would kill us, if you have a bord with 500 users and each buys 5 items a day und you get a PM ..... As far as I have in mind, the buys are logged. So you can check these in the log files. Should be enough!

And there couldn't and won't be a conversion from Adrians Shop Mod, as it is far away from our mod!

And keep in mind ... it's a first BETA! So we started this project out of phatoms mod, as he doesn't have time to continue his original project.

So really keep in mind .. it's a simple and easy mod!
Regards, femu
_____________________________________________
[My development page] - [My normal homepage (German only)]
User avatar
woipi90
Registered User
Posts: 908
Joined: Mon Feb 16, 2009 5:32 pm
Location: Austria

Re: [Beta] UPS Easy Shop 0.5.0

Post by woipi90 »

femu wrote:Ok. To summerize it a little bit.

As Wuerzi said: It's an EASY Shop Mod!

Therefore we won't do any specials on this one. What we said ie. NO categories. Of course we will add a how to do a plugin, BUT this will be only useful for those of you, which have programming skills and do know, what they are doing! It will never become a "professional" shop. It's for playing around and spend some virtaul dollars.

For the PM. The buyer will get PMs but definitly NOT the admin. You would kill us, if you have a bord with 500 users and each buys 5 items a day und you get a PM ..... As far as I have in mind, the buys are logged. So you can check these in the log files. Should be enough!

And there couldn't and won't be a conversion from Adrians Shop Mod, as it is far away from our mod!

And keep in mind ... it's a first BETA! So we started this project out of phatoms mod, as he doesn't have time to continue his original project.

So really keep in mind .. it's a simple and easy mod!
sorry to ask again but is there also some kind of permission buy tool included? i'm not aware of what had been included in the phantoms mod.... :(


grz woipi
My mods: Ultimate Board Clubs
Support: only for the UBCS!
-----
function be_friends($uid, $u){return ($u == $user->['user_id']) ? false : true;}
$this->be_friends($uid, $user->['user_id']) ? $allow_pm : echo "You failed again";
User avatar
Hotmetal33
Registered User
Posts: 88
Joined: Fri Nov 13, 2009 10:39 am

Re: [Beta] UPS Easy Shop 0.5.0

Post by Hotmetal33 »

Thanks you so much! I chose the wrong shop mod, and then in the middle of installing it two things happened; the mod died, and there was an error in my SQL syntax that I wasn't able to fix. I thank you for making a shop mod for UPS
femu
Registered User
Posts: 1070
Joined: Tue Sep 27, 2005 10:03 am

Re: [Beta] UPS Easy Shop 0.5.0

Post by femu »

woipi90 wrote: sorry to ask again but is there also some kind of permission buy tool included? i'm not aware of what had been included in the phantoms mod.... :(
Not included, but I'm pretty sure it's possible to set permissions, if you know, how it's done normally. I never tried it by myself, but if you know how to do it, you can simply create a plugin for it.

Edit

Ok. I just played arround. You may try following for example, if you like to give permissions (save as root/includes/shop/items/user_permission_XXXXX.php). The XXXXX should be replaced with the permission you like to give (name and also in the PHP below). The second XXXXX in the code is the ID of the permission. So you need check your phpbb_acl_options table and check, which permission you like to "sell". So lets say u_play_hangman with the ID 210 ... Then you :
  • save the file as user_permission_hangman
  • rename the below class name from user_permission_XXXXX to user_permission_hangman
  • change below $auth_id = XXXXX; to $auth_id = 210;
Then you should be able to "sell" the permission to play Hangman ;)

BUT: It's untested. If you like to see, if it works, please do it LOCALLY !!!! Not in a live enviorment !!!

Especially permissions are very delicate !!!

So below one checks first, if the permission is not already set for the user_id (doesn't matter if yes/no/never) and if not, performs what it should do. If it's set somehow, it shows the error message.

Code: Select all

<?php
/**
*
* @package - phpbb3 UPS Easy Shop
* @version $Id: user_posts_100.php 79 2010-02-09 08:12:15Z femu $
* @copyright (c) Wuerzi (http://spieleresidenz.de), (c) femu (http://die-muellers.org)
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/*
 * @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

class user_permission_shop extends item
{
	function init()
	{

	}

	function get_actions()
	{
		global $user;

		$actions = array();

		//In most cases, items that have an action with them should use the "use" action.
		//To enable it, uncomment the following code:
		$actions['use'] = array(
			'name'		=> $user->lang['ITEM_USE'],
			'confirm'	=> sprintf($user->lang['ITEM_CONFIRM_USE'], $this->data['name']),
			'function'	=> 'use_item'
		);

		$actions = array_merge($actions, parent::get_actions());
		return $actions;
	}

	function use_item()
	{
		global $user, $shop, $db, $phpEx, $phpbb_root_path;

		$this->remove_item();

		$auth_setting = 1;
		$auth_id = XXXX;

		$sql = 'SELECT *
			FROM ' . ACL_USERS_TABLE . '
			WHERE user_id = ' . (int) $user->data['user_id'] . '
				AND auth_option_id = ' . $auth_id;
		$result = $db->sql_query($sql);

		if ( !$result )
		{
			$sql_ary = array(
				'auth_setting '		=> $auth_setting,
				'auth_option_id'	=> $auth_id,
				'user_id'			=> (int) $user->data['user_id'],
			);

			$sql = 'UPDATE ' . ACL_USERS_TABLE  . '
				SET ' . $db->sql_build_array('UPDATE', $sql_ary);
			$db->sql_query($sql);
		}
		else
		{
			$meta_info = append_sid("{$phpbb_root_path}shop.$phpEx");
			meta_refresh(3, $meta_info);
			$message = $message . 'This permission is already set!<br /><br />' . sprintf($user->lang['RETURN_PAGE'], '<a href="' . $meta_info . '">', '</a>');
			trigger_error($message);		}
	}
}
?>
Regards, femu
_____________________________________________
[My development page] - [My normal homepage (German only)]
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm

Re: [Beta] UPS Easy Shop 0.5.0

Post by keith10456 »

femu wrote:Ok. To summerize it a little bit.

As Wuerzi said: It's an EASY Shop Mod!

Therefore we won't do any specials on this one. What we said ie. NO categories. Of course we will add a how to do a plugin, BUT this will be only useful for those of you, which have programming skills and do know, what they are doing! It will never become a "professional" shop. It's for playing around and spend some virtaul dollars.

For the PM. The buyer will get PMs but definitly NOT the admin. You would kill us, if you have a bord with 500 users and each buys 5 items a day und you get a PM ..... As far as I have in mind, the buys are logged. So you can check these in the log files. Should be enough!

And there couldn't and won't be a conversion from Adrians Shop Mod, as it is far away from our mod!

And keep in mind ... it's a first BETA! So we started this project out of phatoms mod, as he doesn't have time to continue his original project.

So really keep in mind .. it's a simple and easy mod!
Thanks for the clarification... I wasn't aware of the logs.

Thanks again for the mod!

Return to “[3.0.x] Abandoned MODs”