Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 07-26-2009, 11:48 PM
ipman ipman is offline
Member
 
Join Date: Jul 2009
Posts: 4
Credits: 1,060
ipman
Default 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!
Reply With Quote
  #2  
Old 07-27-2009, 04:52 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,737
BMR777 is on a distinguished road
Default 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
Reply With Quote
  #3  
Old 07-28-2009, 01:12 AM
ipman ipman is offline
Member
 
Join Date: Jul 2009
Posts: 4
Credits: 1,060
ipman
Default 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:



But I want to see, for example:

User X - Pet Y - Votes From: ip1, ip2, ip3, etc. or something like that...
Reply With Quote
  #4  
Old 07-28-2009, 04:57 AM
Saphira Saphira is offline
Member
 
Join Date: Jan 2009
Posts: 89
Credits: 5,761
Saphira
Default 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.
Reply With Quote
  #5  
Old 07-28-2009, 03:07 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,737
BMR777 is on a distinguished road
Default 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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adopt pages, and general adopt/index page :L blondbananamix Questions and Supports 26 07-22-2011 12:12 PM
2 - column on Adopt page and my Adopt page? SieghartZeke Questions and Supports 2 10-12-2009 02:58 PM
Adopt Problem SJC Questions and Supports 17 04-19-2009 04:42 PM


All times are GMT -5. The time now is 06:30 PM.

Currently Active Users: 9838 (0 members and 9838 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636