Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#51
|
||||
|
||||
Ok clicked one and it let me level: You already leveled this adoptable today. You may only level an adoptable once per day. Please come back tomorrow to level this adoptable again.The record is stored as 547 in the voters table.
Clicked another and got this (that I hadn't leveled) ou already leveled this adoptable today. You may only level an adoptable once per day. Please come back tomorrow to level this adoptable again.The record is stored as 39 in the voters table. |
#52
|
||||
|
||||
I see, now it is possible that something is wrong with your table prefix.voters, the very last one from your database. Take a look at the row with void '39' and '547', chances are the record of you clicking on these adoptables were already stored in database. Its weird though, no way it should occur with the way I designed the script...
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#53
|
||||
|
||||
Should I empty it?
Derp. It was the adoptid. You know how I have letters? Forgot to change it in that db :/ |
#54
|
||||
|
||||
Ah I see. I did some test myself and it seems to be working too, glad you figured it out on your own. At least, well, I know for sure this is not a glitch with the new script. I was quite worried before. XD
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#55
|
||||
|
||||
Darn me and my need for letter codes :D Everyone is ok with the site re install. The new pound features are really neat and I saved everyone's dragons so it's all good. But now I have to get use to another new way of coding, lol. How do I join tables?
|
#56
|
||||
|
||||
I see, glad it works out nicely, thought your members will be angry at the fact that they have to start over again. I do recommend you to be careful next time, you have an active site running already so the cost of rebuilding your site is immensely high compared to those who do not have much activity going on.
Actually the old code still works, you can write $query = "' and run it with $adopts->query(). Thats the beauty of the database class, it has backward compatibility. The new methods are really easy to use though, if you want to learn. The below code demonstrates such an example: PHP Code:
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#57
|
||||
|
||||
Hmm having some issues with it. I want to join owned_adoptables and adoptables... not sure really how to write it out though. I need currentlevel from owned_adoptables and description, hatchdescript, hatchmdescript and adult descript from adoptables.
|
#58
|
||||
|
||||
The code should look like this:
PHP Code:
PHP Code:
And btw the script now wont autoban your user unless they try to adopt pets that have been taken away from pound center one day ago or earlier. In future I may improve this performance by allowing admins to determine how long this 'session' is going to be. Of course if you have a user trying to adopt a pet that has been adopted one day ago, he/she is most likely a cheater/hacker using inspect element(unless he/she takes a day to adopt a pound pet, which is stupid I say?). XD
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#59
|
|||
|
|||
I did everything you said to do to upgrade my sire from 1.3.0 to 1.3.1 and something is wrong :\ Everytime I try to login it just says I have a programing error...help?!
Snapshot: http://www.iaza.com/work/120410C/iaza18671524773200.png Code of Login Page: Quote:
__________________
Just your average everyday human bean. |
#60
|
||||
|
||||
No, what I'm trying to do is if an adopt is a certain currentlevel, then show a certain description...
Code:
if($row->currentlevel == '6') { $article_content .="<p align='justify'>{$row->adultdescript}"; }else if($row->currentlevel == '5') { $article_content .="<p align='justify'>{$row->hatchmdescript}"; }else if($row->currentlevel == '4') { $article_content .="<p align='justify'>{$row->hatchdescript}"; }else if($row->currentlevel <= '3') { $article_content .="<p align='justify'>{$row->description}"; } |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mysidia Adoptables v1.3.3[Security Release] | Hall of Famer | Mysidia Adoptables Official Announcement | 122 | 05-18-2013 04:02 PM |
Mysidia Adoptables v1.3.0[Security Release] | Hall of Famer | Mysidia Adoptables Official Announcement | 180 | 04-01-2012 10:16 PM |
Mysidia Adoptables v1.2.0[Security Release] | Hall of Famer | Mysidia Adoptables Official Announcement | 21 | 03-22-2011 04:13 PM |
Mysidia Adoptables v1.1.4[Security Release] | Hall of Famer | Mysidia Adoptables Official Announcement | 15 | 01-28-2011 11:48 AM |
Mysidia Adoptables v1.1.3[Security Release] | Hall of Famer | Mysidia Adoptables Official Announcement | 27 | 01-26-2011 02:59 PM |
What's New? |
What's Hot? |
What's Popular? |