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-27-2009, 04:52 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 18,616
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
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 01:31 AM.

Currently Active Users: 1374 (0 members and 1374 guests)
Threads: 4,081, Posts: 32,032, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636