inherit
200100
0
Jun 14, 2019 17:37:50 GMT -8
Slendy
129
September 2013
slendy
|
Post by Slendy on Dec 9, 2013 16:39:14 GMT -8
So I have the gold shop installed and I was asking if there's a way to hide items from users so they cannot purchase certain ones. Texas - Is there a way to make it so that a user cannot buy a specific item. Like I have some items in the shop that say you can buy 0 of the item but people can still buy them and it just goes in to negative numbers instead. My original post above. Crow Valkairi: Go to the profile of the user that you would like to remove an item from, and you should see a button that says "remove item" by the edit profile button (or where the edit profile button would normally be). Items are removed very similarly to the way they are given, just give the ID and amount (though there is actually a bug with the amount that won't let you remove more than ten at a time...that will be fixed when I finally get around to finishing this update I'm working on) Slendy: Unfortunately not. However, a simple plugin could be made to hide certain items from users. You could post over on the request board asking for such a plugin, I currently do not have the time to write one. SSAP: Yes, I noticed that a while ago, hopefully you can hang tight. It will be fixed in the next update. Was the response I got. Um so I'm here, requesting a plugin to hide items in the gold shop. It'd be really helpful. Thanks.
|
|
inherit
200100
0
Jun 14, 2019 17:37:50 GMT -8
Slendy
129
September 2013
slendy
|
Post by Slendy on Dec 13, 2013 15:22:33 GMT -8
Bump.
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Dec 13, 2013 16:06:55 GMT -8
Hey Slendy, it might be easier to use CSS instead of waiting for someone to write a plugin that does this. The :nth-of-type selector will allow you to remove items from the gold shop by starting from the top and counting down the list, replacing the highlighted number below with whatever place in the list your item is. For example, to remove the "Hi-Potion" item from your gold shop, since it is the second item down, the CSS would look like this: I noticed you have multiple themes, so place this code in your Global Header. Just don't forget about it later!
|
|
inherit
200100
0
Jun 14, 2019 17:37:50 GMT -8
Slendy
129
September 2013
slendy
|
Post by Slendy on Dec 14, 2013 11:57:46 GMT -8
Omg Thank you so much. My only question is, will staff still be able to see the items? Because I kind of need them to be able to so they can get the items on their accounts?
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Dec 14, 2013 12:09:06 GMT -8
They won't, Slendy, but an alternative to this that will allow that is to place the above code I provided on your style sheet instead, in Admin > Themes > Advanced Styles & CSS > Style Sheet tab. Do this for all of your themes, as they all have separate style sheets. Then, create a new theme labeled "Staff" or some such, and in Admin > Themes > Theme Manager, edit the permissions of the theme to only allow Staff to see/use it. Do not include the code on this theme's style sheet, and staff will still be able to see the items when they have it selected as their active theme.
|
|
inherit
200100
0
Jun 14, 2019 17:37:50 GMT -8
Slendy
129
September 2013
slendy
|
Post by Slendy on Dec 14, 2013 12:16:30 GMT -8
Awesome, thank you so much, you've been a great help.
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Dec 14, 2013 12:18:23 GMT -8
One quick thing I forgot to mention Slendy - for CSS on your style sheet, don't use the <style></style> tags around the code. They're not needed.
|
|
inherit
200100
0
Jun 14, 2019 17:37:50 GMT -8
Slendy
129
September 2013
slendy
|
Post by Slendy on Dec 14, 2013 12:28:57 GMT -8
Lol, yeah I know, um I've run in to a slight problem. I'm adding it in but it's hiding things in other categories of the shop. So if I put (8) it hides number 8 on the list for ALL categories of the shop. Is there a way to get around that?
Note:- Sorry I'm being such a pain in the backside.
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Dec 14, 2013 13:12:23 GMT -8
Oops, you're right, Slendy. I'll have to take another look and find a workaround on this one.
|
|
inherit
200100
0
Jun 14, 2019 17:37:50 GMT -8
Slendy
129
September 2013
slendy
|
Post by Slendy on Dec 14, 2013 13:25:36 GMT -8
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Dec 14, 2013 13:51:15 GMT -8
I found an alternative to the CSS route we were taking, Slendy, but it's just a tad more complicated so I'm sorry about that. Here's a couple examples of the code in action. Highlighted in red is the area where you'll want to input the name of the item or, more specifically, what pops up when you mouse over the item you want to hide. Highlighted in green is the ID number of the same item - the one that shows in the "ID" column to the right hand side.
|
|
inherit
200100
0
Jun 14, 2019 17:37:50 GMT -8
Slendy
129
September 2013
slendy
|
Post by Slendy on Dec 14, 2013 13:55:19 GMT -8
Well that doesn't seem too complicated to grasp. Thank you very much for all your help, this is super helpful and it's very much appreciated.
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Dec 14, 2013 13:58:15 GMT -8
Hope that works as a suitable solution until hiding items can be implemented in the plugin itself.
|
|
inherit
200100
0
Jun 14, 2019 17:37:50 GMT -8
Slendy
129
September 2013
slendy
|
Post by Slendy on Dec 14, 2013 14:09:28 GMT -8
It works like a charm. <3 I already have half the items I wanted hidden hidden. Soon all the ones I want hidden will be hidden. I'll just get my staff to switch to the skin only staff can access and they'll be able to see and get to the items. :3
Thank you for taking the time and having the patience to deal with my request. ?
|
|
inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Dec 24, 2013 8:42:27 GMT -8
Oops, that's not gonna work anymore...in fact I don't even see a way to do this at all with the way I re-wrote the tables. I'll adjust this to make it easier in the next update.
|
|