Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#21
|
||||
|
||||
@Ittermat In class_itemshop.php, you basically replace the whole public function display section. Clicking the first opening bracket next to 'public function display' should also highlight the closing bracket. So you take everything inside that, erase it, and replace with new code. Make sure to save your original code first.
|
#22
|
||||
|
||||
Okay so...Can we make this a bit easier?
We start at public display- and end at? where? XD |
#23
|
||||
|
||||
End at the end of the display function. Brackets always line up. You'll have to see where that function ends. In a text editor meant for code, such as Sublime Text 2 or Notepad++, syntax highlighting will help you recognize where code ends and begins, and as Tahbikat said, if you click on a bracket, the closing bracket will highlight itself, showing where it ends.
Anyway, obviously one function must end before the next begins. Just look for the start of the next one?
__________________
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. |
#24
|
||||
|
||||
ohhh!! OKAY! See I didnt know that small bit of info... actually that will help alot and puts a main puzzle piece in place! thank you!
|
#25
|
||||
|
||||
For some reason tool tips will not work (in shop or inventory) even after following all the steps. I'm not sure if it's because I'm using the bookstore theme. I double checked the tootip.css, tooltip.js and the header file.
|
#26
|
||||
|
||||
Does that theme have jQuery? If not, include a link to the jQuery library. For the tooltips to work, its .js file must come after jQuery, as it is dependant on it. Keep in mind that this may break your profile pages since they come with their own link to jQuery and having two links to different versions will cause errors on that page!
This should have been covered in section 2, in the third code block.
__________________
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-14-2016 at 02:35 PM. |
#27
|
||||
|
||||
I did follow that part as well but no luck. So I thought i'd ask just in case. I'm going to go over it a third time to see if I missed something.
Last edited by Corsair; 02-14-2016 at 04:27 PM. |
#28
|
||||
|
||||
Unrelated to my last post but I'm having a issue with key items being able to be sold in the inventory.
I saw: Quote:
Quote:
|
#29
|
||||
|
||||
About the Inventory - you're absolutely right, although... I was going off of existing code in class_itemtablehelper.php, which used if($item->category == "Key Items") return "N/A"; . . . . obviously, yeah, that'd only take effect if the item's category was "Key Items".
It'd probably be better to check for $item->function. I updated the chunk of code above, but also here - PHP Code:
Anyway, do the tooltips work on the Inventory, but not elsewhere? Do any of your item names or descriptions happen to have apostrophes or quotations in them (this might be relevant and would be good to know, I thought I'd caught all of this).
__________________
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. |
#30
|
||||
|
||||
I seem to be getting the same error even after changing the !== to !=
Quote:
I'm not sure if it's related but I've been noticing errors with drop downs and radio buttons related to this GUIContainer even in the admin panel where I have your bootstrap theme installed. |
Tags |
item display, item shop, npc, shop, shopkeeper |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mys v1.3.4 Shop Listing Display | Kyttias | Mys v1.3.x Mods | 13 | 06-13-2016 03:31 PM |
Item Bug? | tahbikat | Questions and Supports | 4 | 11-24-2015 06:28 PM |
Changing Shop and Item Display? | Abronsyth | Questions and Supports | 2 | 12-16-2014 04:25 PM |
Buy X of Item A to receive X of Item B | AndromedaKerova | Suggestions and Feature Requests | 0 | 11-09-2014 09:17 PM |
What's New? |
What's Hot? |
What's Popular? |