![]() |
| Home Community Mys-Script Creative Off-Topic |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Okay. So I think I've got it. After fiddling and being impatient for a reply.
But I would like a second pair of eyes to look at my code. (Instead of adding the php in the module area, I prefer to add it to the class_sidebar.php file. It's easier for coding and checking backwards and forwards. The main code: Code:
protected function setFavPetSB(){
$mysidia = Registry::get("mysidia");
$userfavpet = $mysidia->db->select("users_profile", array("favpet"), "username = '{$mysidia->user->username}'")->fetchColumn();
if ($this->userfavpet == "0"){
$this->FavPetSB = new Paragraph;
$this->FavPetSB->add(new Comment("<b>No Favorite Pet Set</b>"));
}
else{
$this->FavPetSB = new Paragraph;
$this->FavPetSB->add(new Comment("<b>Favorite Pet!</b>"));
$this->FavPetSB->add(new Link("levelup/click/{$userfavpet}", new Image("levelup/siggy/{$userfavpet}"), TRUE));
}
$this->setDivision($this->FavPetSB);
}
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Seeking Advanced PHP Coder (PAID) | SoubisSacrifice | Staff Central | 14 | 01-29-2015 10:42 AM |
| Seeking a coder + artists~ | Pear | Staff Central | 14 | 07-06-2014 03:42 PM |
| I need basic coding help | Moontides | Feedback and Suggestions | 23 | 05-28-2014 01:54 PM |
| Seeking Mysidia coder | Solistia | Staff Central | 4 | 05-03-2011 04:19 AM |
| My BASIC programs | SleepWalker | Other Chat | 0 | 04-05-2010 08:37 AM |
What's New? |
What's Hot? |
What's Popular? |