Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 02-06-2016, 01:38 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 129,307
Kyttias is on a distinguished road
Default

"Some of the items are and others aren't" -- based on what criteria?

To remove an item - You need to know it's name and the amount you want to remove. You'd need something this on a form (or ajax) submission.

PHP Code:
$item_name "Flower";
$qty 5;
$item = new PrivateItem($item$mysidia->user->username);
$item->remove($qty$mysidia->user->username); 
As for a button - Anything with a button will either send users to another page (with a form) or require ajax (which I know how to do now, but it isn't built into Mysidia's core functionality to allow ajax). These aren't official notes, they're my notes, but there's details on how to make forms the built in way here. I'd suggest examining how donate.php and view/donateview.php work together to allow users to send one another money via a form.

To add a column to the database
- Log into phpmyadmin. Visit the 'adopts_users' table. Open the Structure tab. At the bottom, hit 'Go' at the end of 'Add Column'. Call it lastday. Let's just go with it being VARCHAR 20, and NULL is an okay value if its never been filled before.



Alternatively, you can just enter SQL from the third tab:
Code:
ALTER TABLE `adopts_users` ADD `lastday` VARCHAR(20) NULL DEFAULT NULL ;
While we're at it, I suggest checking out this tutorial on how to make an explore system.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 02-06-2016 at 02:01 AM.
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 -5. The time now is 12:57 PM.

Currently Active Users: 3471 (0 members and 3471 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636