Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Show Favorite Pet in Side Bar
So I'd like to have the user's chosen "favorite pet" (the pet in the spot light, etc) in the side bar. That's all, just the pet's image, and if the user has not chosen a favorite pet yet, then it simply shows an empty box with the text "no active pet" in it.
How would I accomplish this? Thanks, Abron
__________________
My Mods Site (1.3.4, 2020 Mods) |
#2
|
||||
|
||||
umm all you need to do is to go to class_page.php, find the method that defines sidebar, and insert the image of user's favorite pet into sidebar. It should be quite simple, and on a quick note the favorite pet script can be found at class_userprofile.php.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#3
|
||||
|
||||
Okay, I inserted this into the side bar:
Code:
<img src='http://www.".constant("DOMAIN").constant("SCRIPTPATH")."/siggy.php?id={$this->favpet}' border=0>
__________________
My Mods Site (1.3.4, 2020 Mods) |
#4
|
|||
|
|||
Lol I was just working on this too... I thought it was only me getting stuck. I tried various things from including other files to javascript document. scripts... its probably just something simple that I missed a comma on lol.
__________________
Chocolate butterfly cat pudding. o.o And since even the programming on this forum doesnt like me anymore heres my sites address. XD http://felkyocreatures.com/index.php |
#5
|
||||
|
||||
Urb. Well, let me know if you figure it out ;_;
EDIT: Okay...I got it to show "none selected" but when I go to select a favorite pet it automatically sets it back to having no pet selected...it's like it's not saving it...erg. So, what I did is I went through and added: Code:
private $favpet; Code:
$this->favpet = ($this->favpet == 0)?"None Selected":"<a href='http://www.".constant ("DOMAIN").constant("SCRIPTPATH")."/levelup.php?id={$this->favpet}' target='_blank'><img src='http://www.".constant("DOMAIN").constant("SCRIPTPATH")."/siggy.php?id={$this->favpet}' border=0></a>"; Code:
if($mysidia->user->isloggedin == TRUE) { So, what am I doing wrong?
__________________
My Mods Site (1.3.4, 2020 Mods) Last edited by Abronsyth; 02-21-2013 at 10:35 AM. |
#6
|
|||
|
|||
I think this has been fixed by the way. ^_^
__________________
Chocolate butterfly cat pudding. o.o And since even the programming on this forum doesnt like me anymore heres my sites address. XD http://felkyocreatures.com/index.php |
#7
|
||||
|
||||
Yeup, Ruinily and Isura were able to get it working, so now it's all good :)
__________________
My Mods Site (1.3.4, 2020 Mods) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What is your favorite band? | Tequila | Other Chat | 3 | 12-03-2013 05:14 PM |
Side Bar v1.3.3 | Nieth | Questions and Supports | 10 | 06-04-2013 07:11 PM |
Favorite Games on Adoptable Sites | Rozel | Other Chat | 14 | 08-25-2011 11:05 PM |
Display images side by side? | SilverDragonTears | Questions and Supports | 5 | 06-06-2011 03:55 AM |
Favorite THREE Music Group/Singer/Musician/Whatever | alonaria | Other Chat | 7 | 01-22-2011 02:04 PM |
What's New? |
What's Hot? |
What's Popular? |