Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#41
|
||||
|
||||
hey maybe you can help me..Im trying to use this mod- but everytime I try I keep getting errors... Im putting everything in as you say to...but it still wont work...Im not sure whats wrong.. maybe you can help?
this is my Itemshop.php code. Quote:
|
#42
|
||||
|
||||
Looks like you've copy pasted your error into nearly every single shop. Make sure there is a closing " in case 3 of every shop. Specifically lines 176, 189, 202, 215, 228, 241, 255, 268, 281, and 294.
Please check out the free text editor Notepad++! It comes with syntax highlighting meant for coding so it's EASY to spot syntax errors because the colors coded system of how it displays lines will jam up. Lines are also numbered. All I literally had to do was copy paste your code into my text editor and the errors were all just sitting there, very easy to spot. Definitely look into getting a program to program in if you're going to be modding your site so heavily.
__________________
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. |
#43
|
||||
|
||||
thanks kyttias... stupid mistakes I know...but i dont see the mistakes since I dont get the coding...and i do have notepad ++ it just doesnt actually help me much XD (Again probably because of my lack of knowledge on the subject) Thanks though...now i know what the issue was.. XD
|
#44
|
||||
|
||||
Edit: Nevermind! I have writen the shop name wrong!
__________________
https://www.viagrasansordonnancefr.c...-en-pharmacie/ Last edited by LUC1G07CH1; 04-03-2016 at 12:28 PM. |
#45
|
||||
|
||||
How would I make it so the tooltips appear on a specific spot on the map where the hotspot is located? At the moment Im using them as Titles for buildings on an image map, but the tool tip appears at the top of the image- even though I have the Rel=tooltip and Title=building in the code for each one.
|
#46
|
|||
|
|||
Thank you for sharing this. Installed and works great.
If anyone knows how to use this on the adoption page and the my adopts page please share :-) Thanks, Suzanne |
#47
|
||||
|
||||
Glad I found this again for installing.. XD Do you have plans to make a similar adopt shop? That would be awesome 0w0
|
#48
|
||||
|
||||
My retail job is eating a lot of my time. I'm not actually sure when I'll be around to work on stuff like 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. |
#49
|
||||
|
||||
Oh, that's totally fine ^_^ I think a job is definitely more important! XD
(Oh, and I dunno if anyone is interested but I started a new course at college and I'm doing IT and one of the parts we're doing is coding and we're doing PHP, server side scripting, CSS, HTML and Javascript! I'm so excited! I can actually learn stuff in an actual teaching environment! Why didn't I think of this before?! XD I didn't actually know that we were doing coding when I chose IT, I just like computers... XD Yeah, sorry XD) |
#50
|
|||
|
|||
Help
I've seemed to have messed up the code.
It's saying: Parse error: syntax error, unexpected '$document' (T_VARIABLE), expecting function (T_FUNCTION) in /home/equiland/public_html/view/inventoryview.php on line 34 Here is the code: public function index(){ $mysidia = Registry::get("mysidia"); $document = $this->document; $document->setTitle($mysidia->lang->inventory); $inventory = $this->getField("inventory"); $inventoryTable = new TableBuilder("inventory"); $inventoryTable->setAlign(new Align("center", "middle")); $inventoryTable->buildHeaders("Image", "Category", "Name", "Description", "Quantity", "Use", "Sell", "Toss"); $inventoryTable->setHelper(new ItemTableHelper); $iids = $inventory->getiids(); for($i = 0; $i < $iids->length(); $i++){ $item = $inventory->getitem($iids[$i]); $cells = new LinkedList; $cells->add(new TCell($inventory->getitemimage($item->imageurl))); $cells->add(new TCell($item->category)); $cells->add(new TCell($item->itemname)); $cells->add(new TCell($item->description)); $cells->add(new TCell($item->quantity)); $cells->add(new TCell($inventoryTable->getHelper()->getUseForm($item))); $cells->add(new TCell($inventoryTable->getHelper()->getSellForm($item))); $cells->add(new TCell($inventoryTable->getHelper()->getTossForm($item))); $inventoryTable->buildRow($cells); } $document->add($inventoryTable); } $document->add($inventoryTable); } public function uses(){ $mysidia = Registry::get("mysidia"); $document = $this->document; if($mysidia->input->post("aid")){ $message = (string)$this->getField("message"); $document->setTitle($mysidia->lang->global_action_complete); $document->addLangvar($message); return; } $petMap = $this->getField("petMap"); $document->setTitle($mysidia->lang->select_title); $document->addLangvar($mysidia->lang->select); $chooseFrom = new Form("chooseform", "uses", "post"); $adoptable = new DropdownList("aid"); $adoptable->add(new Option("None Selected", "none")); if($petMap->size() > 0){ $iterator = $petMap->iterator(); while($iterator->hasNext()){ $adopt = $iterator->nextEntry(); $adoptable->add(new Option($adopt->getValue(), $adopt->getKey())); } } $chooseFrom->add($adoptable); $chooseFrom->add(new PasswordField("hidden", "itemname", $mysidia->input->post("itemname"))); $chooseFrom->add(new PasswordField("hidden", "validation", "valid")); $chooseFrom->add(new Button("Choose this Adopt", "submit", "submit")); $document->add($chooseFrom); } public function sell(){ $mysidia = Registry::get("mysidia"); $document = $this->document; $document->setTitle($this->lang->global_transaction_complete); $document->addLangvar("{$this->lang->sell}{$mysidia->input->post("quantity")} {$mysidia->input->post("itemname")} {$this->lang->sell2}"); } public function toss(){ $mysidia = Registry::get("mysidia"); $document = $this->document; if($mysidia->input->get("confirm")){ $document->setTitle($this->lang->global_action_complete); $document->addLangvar("{$this->lang->toss}{$mysidia->input->post("itemname")}{$this->lang->toss2}"); return; } $document->setTitle($this->lang->toss_confirm); $document->addLangvar($this->lang->toss_warning); $confirmForm = new FormBuilder("confirmform", "toss/confirm", "post"); $confirmForm->buildPasswordField("hidden", "action", "toss") ->buildPasswordField("hidden", "itemname", $mysidia->input->post("itemname")) ->buildButton("Please Toss", "confirm", "confirm"); $document->add($confirmForm); } } ?> |
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? |