![]() |
Oh wait a sec what is this about? The glitch you have after trying to manipulate the register.php and login.php files?
|
No. This is a fresh install without modifying the files.
|
Oh a fresh install? I believe the problem is not with the script since I've installed/upgraded the script on my dev demo server for many times and never had problem leveling up/clicking adoptables.
Edit: I visited your site and tested the levelup.php myself on one of your pets. It worked perfectly, as I was able to click it at the first time and then receive an error message when I try to click again: http://oi44.tinypic.com/n680np.jpg So yeah, I have no idea why it was being mean to you. XD |
Well no matter who's pets I click on, I've already leveled them up.
|
I see what you mean, I registered an account on your site and once I click one adoptable, I will not be able to click any others and instead receive the error message saying I've leveled them up. Again this is strange as I never had the issue on my two demo sites, are you sure this is a fresh installation? I just did a fresh installation and did not have this problem. Anyway I will ask other members and see if they have the same problem as well. Thanks for bringing it up.
|
Quote:
Quote:
|
I did add in some modifications but not to the levelup script.
|
Are you sure about that? If so, send me the levelup.php and the modified files on your site so I may see what was the cause of your problem. Also investigate into the table prefix.voters and see if anything appears abnormal there.
|
Nothing looks weird there I don't think.....
Only thing I changed here is the is_numeric thing. But I changed that on my other site and it never messed it up. levelup.php Code:
<?php |
Yeah, it does not look any different from mine. Id recommend you to debug the codes then, and see if any variables are assigned with incorrect values. Assume you have not clicked a pet, the object $voters should be nonexistent and the property $voters->void should be absent. Now find this line:
PHP Code:
PHP Code:
|
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. |
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...
|
Should I empty it?
Derp. It was the adoptid. You know how I have letters? Forgot to change it in that db :/ |
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
|
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?
|
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:
|
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.
|
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 |
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:
|
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') { |
@KaceKuma:
This is strange, your server does not tell you what the error may be? If so, check your root directory and see if there is a file called error_log being generated. Copy/Paste the last lines and I will see what errors you are getting. Chances are you are missing some files. Note if your database table structure differs from a Mys v1.3.0 fresh install, theres no way to upgrade with the simple upgrader. In such a case, do it manually. @Silverdragontears: Yeah, I do not see the difference here besides you need to replace $pet by $row, unless you have another table storing pets descriptions. If this is true, just join another table, plain and simple. The codes I just posted should work fine for ya. |
0.e i don't see an error log...and I haven't editted the database either...
I went through to see if the other errors for the login page (I.E not entering in all feilds) worked and they did, but when I enter everything correctly it comes up with that screenshoted screen. My site is: http://www.generationsaber.com/ If you would like to create an account and see... |
I see, looks like I cannot register lol. Have you heavily modified your users table? If so, the upgrader will not work for you. Also check the files config.php and config_forum.php and see if anything is wrong in these files.
|
I pasted it in and it won't pull up the info.
|
Did you change $pet to $row? Also its better for you to start a new thread asking for questions unrelated to installing/upgrading Mys v1.3.1 here.
|
No my config and forum config both looked filled out and fine. Again I really haden't messed with any of the script or db in fear that something like this would happen when I upgraded. I took a screenie of my adopts_users table as well...I'm veryconfused on what's happening and don't really want to have to wipe my site with other users on it...
Table Screenie: http://www.iaza.com/work/120410C/iaza18671541365100.png |
I see, you were using an earlier version of Mys v1.3.0 that I replaced with an updated file two days later. The version(which I refer to as Mys v1.3.0 RC) you are using is missing a field called 'session' from table prefix.users, so you need to add it manually. The field should be placed between the field 'password' and 'email'. The field 'session' should be VARCHAR(100).
|
Alright...how should I fill this out (Like what should I put for the details and fill in for each user) and would that fix the problem? Also since I already ran the upgraded would that have messed with things? (*Is so clueless XD*)
|
Nope it will not mess up with things, your only problem appears to be the missing field from table prefix.users.
To accomplish this task, you need to go to the tab 'Structure' in Phpmyadmin. Now look at the screenshots below. The first one tells you how to add new field(note you must add the new field after the field 'password'!), the second one gives more detail on what values you should enter when phpmyadmin asks you to add a new field. http://oi44.tinypic.com/2wfu1rk.jpg |
Beautiful! It works fine now, thanks HoF!
|
You are very welcome, glad it works.
|
Small notice;
"Open the file /inc/config_forum.php" It's "Open the file /inc/config_forums.php" ;) |
Thanks for pointing this out. In fact the reason why I changed it from config_forum.php to config_forums.php is that I plan on possibilities of integrating more than just MyBB. In future, users will need to select a forum engine they wish to integrate with their sites, although MyBB is highly recommended over other forum engines such as PhpBB, SMF and PunBB. Integrating with commercial forumwares such as Vbulletin, IPB and XenForo is also possible, but will most likely come out as premium Mod.
|
So I just set up a few shops and I don't see the item I put in one of my shops... It was the Breed1... what should the value be? Maybe that was my error.
Derp. I spelled the shop name wrong. Nm :D What should the value be? Says I can't use it on a dragon that I should be able to? |
Also the chance of an item is suppose to be random yet everytime it's telling me it failed. Sometimes it tells me that the item can't be used then when I try it again it tells me that it failed.... EVERY time. It's set at 50. Also I still can't get the breed1 to work.
|
Well this does not happen to me though, are you sure it is set to be 50? I set the chance to be barely 30 and it works on my adoptables like once per three tries.
|
Hmm.... I'm sure. Maybe it's my letter codes? I dont know... I mean for the click1 it sometimes says my luck sucks or whatever, or it says I can't use it. For breed1 and alts1 I can't ever use it.
Edit: It works for click2, but not the others. |
umm thats strange. My breeding soup(breed1) has only 30% chance to take effect, and I've just tested it a moment ago. It worked 2 out of 3 times, so Id suppose it is indeed working. Did you set the target to 'all'? This aint supposed to be a problem for Mys v1.3.1 as I've set 'all' to be default value incase people make mistakes. Also make sure you do not enter numbers like 0.5 or 0.3 instead of 50 or 30.
|
breed1 works.... it's alts1 and clicks1 that I'm having issues with. I meant clicks not breed
Edit: Set it to all and it works... why doesn't it work when you put in the adopt ids? |
Well I tested it on my site and the click1 item worked, the chance was set to be 80% and it took effect 1 out of 2 times(not sure if it would be 8 out of 10 if I had attempted 10 times lol). The Alt1 function does seem a bit glitchy, I will figure this out later.
|
All times are GMT -5. The time now is 02:34 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.