![]() |
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 |
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.
|
Okay, I inserted this into the side bar:
Code:
<img src='http://www.".constant("DOMAIN").constant("SCRIPTPATH")."/siggy.php?id={$this->favpet}' border=0> |
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.
|
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 Code:
if($mysidia->user->isloggedin == TRUE) { So, what am I doing wrong? |
I think this has been fixed by the way. ^_^
|
Yeup, Ruinily and Isura were able to get it working, so now it's all good :)
|
All times are GMT -5. The time now is 04:04 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.