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 10-10-2009, 11:43 AM
SieghartZeke SieghartZeke is offline
Member
 
Join Date: Oct 2009
Posts: 149
Credits: 10,134
SieghartZeke
Default How to show the name of adoptable in the profile page?

Someone know how to add in the profile page a feature that you can show the name of the other adoptable?
Reply With Quote
  #2  
Old 10-10-2009, 02:48 PM
Xius Xius is offline
Member
 
Join Date: Apr 2009
Posts: 59
Credits: 7,584
Xius
Default RE: How to show the name of adoptable in the profile page?

Something like this?
http://pokemonepiphany.com/pokepals/levelup.php?id=90
Reply With Quote
  #3  
Old 10-10-2009, 02:59 PM
SieghartZeke SieghartZeke is offline
Member
 
Join Date: Oct 2009
Posts: 149
Credits: 10,134
SieghartZeke
Default RE: How to show the name of adoptable in the profile page?

Yes...
Reply With Quote
  #4  
Old 10-10-2009, 03:06 PM
Xius Xius is offline
Member
 
Join Date: Apr 2009
Posts: 59
Credits: 7,584
Xius
Default RE: How to show the name of adoptable in the profile page?

Just use the ".$name." variable!
Reply With Quote
  #5  
Old 10-11-2009, 05:18 AM
SieghartZeke SieghartZeke is offline
Member
 
Join Date: Oct 2009
Posts: 149
Credits: 10,134
SieghartZeke
Default RE: How to show the name of adoptable in the profile page?

Ehm....where???
Reply With Quote
  #6  
Old 10-11-2009, 10:05 AM
Xius Xius is offline
Member
 
Join Date: Apr 2009
Posts: 59
Credits: 7,584
Xius
Default RE: How to show the name of adoptable in the profile page?

Wherever you want, you just have to pull it from the database first, and most pages already do that.
Reply With Quote
  #7  
Old 10-11-2009, 12:50 PM
gabeki gabeki is offline
Premium Member
 
Join Date: Oct 2009
Posts: 24
Gender: Female
Credits: 1,293
gabeki
Default RE: How to show the name of adoptable in the profile page?

Really? I can just put $name? O:

I did this:

PHP Code:
function getcurrentname($id){

include(
"config.php");

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

//Loop out code
$i=0;
while (
$i 1) {
 
$currentname=@mysql_result($result,$i,"name"); 

$i++;
}

return 
$currentname;

added that to function.php

and this to every page I wanted to show the name:

PHP Code:
    $query "SELECT * FROM ".$prefix."owned_adoptables WHERE owner = '".$user."'";
$aid=@mysql_result($result,$i,"aid");
$nameofpet getcurrentname($aid); 
and then I use $nameofpet, to show the name

I'm so dumb D:
__________________
My Pets site: MaplePet (Released: No)
Done: Stats system, Adoptables Sex system, Battle and using pokeballs like items to capture pets, stats (luck and dexterity) affecting the chance of capturing, Element system (8 elements), Trading, shopping, inventory system, Pet profile for each pet.
Working: Battle System againsts monsters found in the Map
Reply With Quote
  #8  
Old 10-11-2009, 01:05 PM
Xius Xius is offline
Member
 
Join Date: Apr 2009
Posts: 59
Credits: 7,584
Xius
Default RE: How to show the name of adoptable in the profile page?

Yeah. xD

PHP Code:
              //The adoptable's ID
              
$aid = @mysql_result($result$i"aid");
              
$currentlevel = @mysql_result($result$i"currentlevel");
              
$type = @mysql_result($result$i"type");
              
$name = @mysql_result($result$i"name"); 
That's just an example of what it is in the myadopts.php page.
Just pull the name from the database.
Reply With Quote
  #9  
Old 10-11-2009, 02:26 PM
SieghartZeke SieghartZeke is offline
Member
 
Join Date: Oct 2009
Posts: 149
Credits: 10,134
SieghartZeke
Default RE: How to show the name of adoptable in the profile page?

But...when i add $name i cant show the name of my chaarcter in myadopt page!
Reply With Quote
  #10  
Old 10-11-2009, 02:39 PM
Xius Xius is offline
Member
 
Join Date: Apr 2009
Posts: 59
Credits: 7,584
Xius
Default RE: How to show the name of adoptable in the profile page?

You have to include the whole thing -
PHP Code:
".$name." 
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
Blank profile page? gloryKAT Questions and Supports 3 02-08-2015 04:53 PM
Need a bit of help with the viewing profile page :P parayna Questions and Supports 1 09-29-2014 03:01 PM
Show page PTGigi Mys v1.1.x Mods 5 12-01-2010 05:34 AM
Show who recently leveled up a given adoptable kisazeky Addons/Mods Graveyard 3 04-04-2009 05:56 PM
Different Pages in Show Adoptable rosepose Suggestions and Feature Requests 1 03-15-2009 04:58 PM


All times are GMT -5. The time now is 09:52 AM.

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