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 06-06-2020, 02:21 PM
Micolai's Avatar
Micolai Micolai is offline
Loving Mysidia!
 
Join Date: May 2020
Location: Tennessee
Posts: 130
Gender: Female
Credits: 51,088
Micolai is on a distinguished road
Question How do I edit html?

I'm having trouble figuring out what files I need to look in to edit certain things. Like, I've been trying to move the avatar to a different area of the page but I see it has no class or id when I inspect, so, I can't move it without all the images trying to move. I'm wanting to get in there and give it an id or class so I can move it but I have no idea where to find the html files for it, and for that matter where I go to edit any html. I looked in php files, lang, view, but I see the avatar image only be called by it's title. No html coding anywhere.
__________________
"You try you fail, you try you fail, but the only true failure is if you stop trying. So try again." - Haunted Mansion
Reply With Quote
  #2  
Old 06-06-2020, 02:41 PM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 32,750
kristhasirah
Default

if you want to move the avatar in the user profile, then you need to edit the class_userprofile.php
PHP Code:
  private function aboutme(){
      
$mysidia Registry::get("mysidia");    
      
$document $mysidia->frame->getDocument();
      
$title = new Comment($mysidia->lang->basic.$mysidia->input->get("user"));
      
$title->setBold(TRUE);
      
$title->setUnderlined(TRUE);
      
$membersince $mysidia->db->select("users", array("membersince"), "username = '{$mysidia->input->get("user")}'")->fetchColumn();      
      
$basicinfo "<br><strong>Member Since:</strong> {$membersince}<br>
                    Gender: 
{$this->gender}<br>
                    Favorite Color: 
{$this->color}<br>
                    Nickname: 
{$this->nickname}<br>
                    Bio: 
{$this->bio}";
      
      
$document->add($title);
      
$document->add(new Image($this->avatar"avatar"100));
      
$document->add(new Comment($basicinfo));                    
  } 
$document->add(new Image($this->avatar, "avatar", 100)); <- this is the code for the image, and the one you need to change, to something like:
$document->add(new Comment("<img src='{$this->avatar}'/>")); and add the size, style like any normal <img src=''>
please take in mind im no coder and i'm just guessing, haven't tried to edit that part of the script.
__________________
Reply With Quote
  #3  
Old 06-06-2020, 03:42 PM
Micolai's Avatar
Micolai Micolai is offline
Loving Mysidia!
 
Join Date: May 2020
Location: Tennessee
Posts: 130
Gender: Female
Credits: 51,088
Micolai is on a distinguished road
Default

Quote:
Originally Posted by kristhasirah View Post
if you want to move the avatar in the user profile, then you need to edit the class_userprofile.php
PHP Code:
  private function aboutme(){
      
$mysidia Registry::get("mysidia");    
      
$document $mysidia->frame->getDocument();
      
$title = new Comment($mysidia->lang->basic.$mysidia->input->get("user"));
      
$title->setBold(TRUE);
      
$title->setUnderlined(TRUE);
      
$membersince $mysidia->db->select("users", array("membersince"), "username = '{$mysidia->input->get("user")}'")->fetchColumn();      
      
$basicinfo "<br><strong>Member Since:</strong> {$membersince}<br>
                    Gender: 
{$this->gender}<br>
                    Favorite Color: 
{$this->color}<br>
                    Nickname: 
{$this->nickname}<br>
                    Bio: 
{$this->bio}";
      
      
$document->add($title);
      
$document->add(new Image($this->avatar"avatar"100));
      
$document->add(new Comment($basicinfo));                    
  } 
$document->add(new Image($this->avatar, "avatar", 100)); <- this is the code for the image, and the one you need to change, to something like:
$document->add(new Comment("<img src='{$this->avatar}'/>")); and add the size, style like any normal <img src=''>
please take in mind im no coder and i'm just guessing, haven't tried to edit that part of the script.
I can't get that to do anything either lol the 100 right after avatar at least changes the avatar's sizing. But I can't move it. :/
__________________
"You try you fail, you try you fail, but the only true failure is if you stop trying. So try again." - Haunted Mansion
Reply With Quote
  #4  
Old 06-06-2020, 06:08 PM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 32,750
kristhasirah
Default

move it to where? to other place or center the image on the same page??
if you want to center right or left the image in the same place, then you need to replace the code with something like this:
$document->add(new Comment("<div class=''><img src='{$this->avatar}' width='100'></div>"));

i played with the code and that works, i center mine with the code i have in CSS (<div class='center'>)
now if you want to display the avatar in another page... then you will need to call the database and other things to get the url of the user and display it in a $document->add(new Comment(""));
haven't tried to display the avatar in another page that's not the userprofile.
__________________

Last edited by kristhasirah; 06-06-2020 at 06:11 PM.
Reply With Quote
  #5  
Old 06-06-2020, 10:05 PM
Micolai's Avatar
Micolai Micolai is offline
Loving Mysidia!
 
Join Date: May 2020
Location: Tennessee
Posts: 130
Gender: Female
Credits: 51,088
Micolai is on a distinguished road
Default

Quote:
Originally Posted by kristhasirah View Post
move it to where? to other place or center the image on the same page??
if you want to center right or left the image in the same place, then you need to replace the code with something like this:
$document->add(new Comment("<div class=''><img src='{$this->avatar}' width='100'></div>"));

i played with the code and that works, i center mine with the code i have in CSS (<div class='center'>)
now if you want to display the avatar in another page... then you will need to call the database and other things to get the url of the user and display it in a $document->add(new Comment(""));
haven't tried to display the avatar in another page that's not the userprofile.
Thank you for your help! Turns out I needed to just change some numbers in a module.
__________________
"You try you fail, you try you fail, but the only true failure is if you stop trying. So try again." - Haunted Mansion
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


All times are GMT -5. The time now is 05:26 PM.

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