![]() |
#51
|
||||
|
||||
![]()
I didn't try the original, but in the one I edited, I believe I allowed for the order. It doesn't seem to work though.
../admincp/alchemy.php @ line 85 I changed: PHP Code:
PHP Code:
from: PHP Code:
PHP Code:
|
#52
|
||||
|
||||
![]()
Of course it doesnt work, because you are just reversing the order of the WHERECLAUSE, rather than changing the actual content. In your sample code, these two are equivalent, and make no difference:
Code:
item = {$mysidia->input->post("item")} and item2 = {$mysidia->input->post("item2")} and item3 = {$mysidia->input->post("item3")} Code:
item2 = {$mysidia->input->post("item2")} and item = {$mysidia->input->post("item")} and item3 = {$mysidia->input->post("item3")}
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#53
|
||||
|
||||
![]()
Oh, wow. I see the difference in the first statement now, I can't believe I overlooked that the first time. Thanks a bunch. I'mma rewrite it a bit, I'm sure I'll be able to get it to work this time. xD
Man, I feel so stupid for not noticing the placements. I just need to figure out how many different 'OR's that I need now. EDIT: Yep, all good and functional now. Thanks for the help, still new to trying to program/edit stuff. Last edited by Nieth; 11-13-2015 at 02:06 PM. |
#54
|
||||
|
||||
![]()
You are very welcome, I am glad I can help. You can also try SQL IN clause, so you will get rid of the OR operators. However, you will need to compare each user input, ie. $mysidia->input->post("item"), and $mysidia->input->post("item2") so that your users wont enter the same item for item1, item2, etc. Here is an example for two items SQL:
Code:
$items = "({$mysidia->input->post('item')}, {$mysidia->input->post('item2')})"; $whereClause = "(item IN {$items} and item2 IN $items)"; http://www.w3schools.com/sql/sql_in.asp
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#55
|
||||
|
||||
![]()
Ah, alright! Thanks again, I'm learning so much by messing around with everything, realizing what means what etc. Still a complete beginner, but learning is still learning.
Would there be a simple way to change the URL for the alchemy stuff or would that be too difficult to do? Also, where can the alchemy page be edited? I'd like to add images and specific things to that page, but I can't find where to edit it. Last edited by Nieth; 11-13-2015 at 03:41 PM. |
#56
|
||||
|
||||
![]()
Well there are two view files you can edit to add images and other specific things to the alchemy page:
/view/inventoryview.php /admincp/view/alchemyview.php Note you need to understand GUI programming in order to make changes, its not the HTML a front end designer may be familiar with. The style of coding is similar to Java swing, so if you understand how swing works, it will be easy for you.
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#57
|
||||
|
||||
![]()
Yeah, I figured out after reading some guides that I would have to edit the view pages to change what the user sees, so I went in there and tried looking around to see what made sense. Absolutely nothing! So, I've decided to leave that alone until I've reached a bit more advanced stage.
|
#58
|
||||
|
||||
![]()
Its not actually that hard to understand, you just need some OOP skills and understand how the composite design pattern works. I would recommend you to read the tutorial for Java swing, and after going through it you should have no problem dealing with Mysidia's GUI API(although you will need basic Java programming knowledge to follow the tutorial):
http://www.tutorialspoint.com/swing/
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#59
|
||||
|
||||
![]()
Which file am I supposed to upload the file into?
|
#60
|
||||
|
||||
![]()
Using the FTP, you upload the contents of the folder to the public_html folder. All the directories should split and upload into their appropriate folders so long as you do it correctly.
|
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Alchemy Mod - HoF | Nieth | Questions and Supports | 4 | 11-13-2015 11:52 AM |
What's New? |
What's Hot? |
What's Popular? |