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 02-18-2013, 04:09 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 133,107
Abronsyth is on a distinguished road
Default 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)
Reply With Quote
  #2  
Old 02-18-2013, 08:21 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 487,968
Hall of Famer is on a distinguished road
Default

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.
Reply With Quote
  #3  
Old 02-19-2013, 02:06 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 133,107
Abronsyth is on a distinguished road
Default

Okay, I inserted this into the side bar:
Code:
<img src='http://www.".constant("DOMAIN").constant("SCRIPTPATH")."/siggy.php?id={$this->favpet}' border=0>
Now I'm not sure what else I need to add in, since the image is currently not showing up (the adoptable ID is not being inserted).
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #4  
Old 02-19-2013, 02:52 PM
Ruinily Ruinily is offline
Member
 
Join Date: Mar 2011
Location: England
Posts: 185
Gender: Female
Credits: 24,208
Ruinily is on a distinguished road
Default

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
Reply With Quote
  #5  
Old 02-21-2013, 09:40 AM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 133,107
Abronsyth is on a distinguished road
Default

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;
Under all of the other private $things in class_page.php. Then I added in this:
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>";
Under
Code:
if($mysidia->user->isloggedin == TRUE) {
Then, lastly, I add {$this->favpet} in the side bar.

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.
Reply With Quote
  #6  
Old 02-26-2013, 12:12 AM
Ruinily Ruinily is offline
Member
 
Join Date: Mar 2011
Location: England
Posts: 185
Gender: Female
Credits: 24,208
Ruinily is on a distinguished road
Default

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
Reply With Quote
  #7  
Old 02-26-2013, 10:08 AM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 133,107
Abronsyth is on a distinguished road
Default

Yeup, Ruinily and Isura were able to get it working, so now it's all good :)
__________________
My Mods Site (1.3.4, 2020 Mods)
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
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


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

Currently Active Users: 698 (0 members and 698 guests)
Threads: 4,081, Posts: 32,031, 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