Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   lvl up and adopt problem... (http://www.mysidiaadoptables.com/forum/showthread.php?t=1025)

ipman 07-26-2009 11:48 PM

lvl up and adopt problem...
 
How can I make a "pet" to level up ONLY if someone visits the link? I mean to remove the level up from when a registered user visits the link? because now if someon visits the link gives 1 point, and if that same persson registers and visit the same link, gives another point in the same day ^^

And the second question, how can I force users to adopt only one pet per account? I fount this thread: http://www.rusnakweb.com/forum/showthread.php?tid=1177 but I cannot find the specific code in the functions.php page to edit.

And is there a way to see every users visiotrs? I mean the ip-s that clicked on his pet's page? to prevent proxy fraud?

thanks!

BMR777 07-27-2009 04:52 PM

RE: lvl up and adopt problem...
 
Ok, to allow only one pet per account, in inc > functions.php find:

PHP Code:

// End the is there conditions if statement 

Add after:

PHP Code:

$query "SELECT * FROM ".$prefix."owned_adoptables WHERE owner='".$loggedinname."'";
    
$result mysql_query($query);
    
$num mysql_numrows($result);

    if(
$num 0){
    
$canadopt "no";
    } 

As far as limiting the double level up situation, currently there's not really a way to prevent this. This isn't too big of an issue though because usually users only register one account. I can look into it though.

Also, as far as viewing the detailed info about who clicked what, you can do this in PHPMyAdmin by looking at the adopts_vote_voters table, which lists all votes by username or IP address and which adoptable they voted for.

Hope this helps,
Brandon

ipman 07-28-2009 01:12 AM

RE: lvl up and adopt problem...
 
Thank you!
The info was very helpful.
But about what ip voted for someones pet I cant figure it out :( where to see them in myadmin? If I click that table I get this:

http://img142.imageshack.us/img142/3263/myadmin.jpg

But I want to see, for example:

User X - Pet Y - Votes From: ip1, ip2, ip3, etc. or something like that...

Saphira 07-28-2009 04:57 AM

RE: lvl up and adopt problem...
 
click on the browse tab next to structure. If there's a red x when you hover over the tab it means that there's no data there and the table is currently empty.

BMR777 07-28-2009 03:07 PM

RE: lvl up and adopt problem...
 
Run the following SQL query on your database to view the data:

Code:

SELECT * FROM adopts_vote_voters
You can run the query by clicking the SQL icon from the row of icons on the top left. :)

Brandon


All times are GMT -5. The time now is 08:43 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.