Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Addons/Mods Graveyard

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 06-07-2009, 06:35 PM
shiningheart shiningheart is offline
Member
 
Join Date: Jun 2009
Posts: 3
Credits: 250
shiningheart
Default RE: A quick Profile Add-on Modification

This code rocks, but I have a problem. Is there a way that when the person views the other person's profile, it can also the list their pets? Because if some people don't have anywhere to post their pets, how are they going to advertise them and get more clicks? So I was wondering if you could give me the code so I can add the pets to it.
Reply With Quote
  #2  
Old 06-07-2009, 06:58 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 45,653
Bloodrun
Send a message via Yahoo to Bloodrun
Default RE: A quick Profile Add-on Modification

Quote:
Originally Posted by shiningheart
This code rocks, but I have a problem. Is there a way that when the person views the other person's profile, it can also the list their pets? Because if some people don't have anywhere to post their pets, how are they going to advertise them and get more clicks? So I was wondering if you could give me the code so I can add the pets to it.
Yes, actually, lol I forgot that I removed that part out, what you need to do is, go to your profile2.php and,

place this:

PHP Code:
    $query "SELECT * FROM ".$prefix."owned_adoptables WHERE owner = '".$user."'";
    
$result mysql_query($query);
    
$numpets mysql_numrows($result); 
Right after this:

PHP Code:
    if($yahoo == ""){
    
$yahoo "No YIM Information Given";
    }
    

    
$i++;
    } 
Then where ever you want the pets to show up, place this into that section (note, the section will look something like $article_content, $about_me, etc.. etc):

PHP Code:
    <b>Number Of Pets Owned:</b".$numpets."<br><br>
    <
b><u>".$usersname."'s Pets:</u></b><br><br> 
Then, go to the end of the section you placed that bit of code in, (the end of the section will be marked with ";) and immediately after that, place this:

PHP Code:
    if($numpets 0){

    
$i=0;
    while (
$i $numpets) {

    
$aid=@mysql_result($result,$i,"aid");
    
$image getcurrentimage($aid);

    
$article_content $article_content."<a href='levelup.php?id=".$aid."'><img src='".$image."' border='0'></a>";


    
$i++;
    }
    }
    else{
    
$article_content $article_content."This user currently does not have any pets.";
    } 
You have to make sure you do not place that bit of quote in a section, or else you will get an error.
Reply With Quote
Reply

Thread Tools
Display Modes

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
A modification jcga1992 Questions and Supports 7 11-07-2011 02:31 PM
Modification Dictionary AlexC Mys v1.2.x Mods 2 07-05-2011 09:44 AM
Modification Directory Kaeliah Mys v1.1.x Mods 14 02-28-2011 05:14 PM
Custom Profile Modification Bloodrun Mys v1.1.x Mods 50 01-22-2011 09:17 PM
Modification Out-Dated New one will be added. Bloodrun Addons/Mods Graveyard 19 05-23-2009 01:52 AM


All times are GMT -5. The time now is 10:58 PM.

Currently Active Users: 3421 (0 members and 3421 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