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 10-26-2020, 08:08 PM
Phoeniix Phoeniix is offline
Member
 
Join Date: Oct 2013
Posts: 60
Gender: Male
Credits: 6,504
Phoeniix is on a distinguished road
Default Signature images

Ive searched through all the siggnature images psots and nothing is working. everytime i try a different code it either breaks the manage adopts page or the whole site entirely.
Reply With Quote
  #2  
Old 10-27-2020, 03:03 PM
Ittermat's Avatar
Ittermat Ittermat is offline
The awesomesauce
 
Join Date: Feb 2016
Location: in front of my laptop
Posts: 272
Gender: Female
Credits: 38,417
Ittermat is on a distinguished road
Default

Im not sure exactly what you're asking for- but I do know there was an issue with pet signature images? So if thats what you're asking This is how you fix it.

Go into Myadoptsview.php and find the "Public function BBCode" Replace the entire function with this code instead:

PHP Code:
 public function bbcode(){
        
$mysidia Registry::get("mysidia");
        
$adopt $this->getField("adopt");            
        
$document $this->document;
        
$document->setTitle($this->lang->bbcode.$adopt->getName()); 
        
$document->addLangvar($this->lang->bbcode_info);
        
$document->add(new Comment("<br>"));

        
$forumComment = new Comment("Forum BBCode: ");        
        
$forumComment->setUnderlined();
        
$forumcode "[url={$mysidia->path->getAbsolute()}levelup/click/{$adopt->getAdoptID()}][img]{$mysidia->path->getAbsolute()}levelup/siggy/{$adopt->getAdoptID()}[/img][/url]";        
        
$forumArea = new TextArea("forumcode"$forumcode450);
        
$forumArea->setReadOnly(TRUE);

        
$altComment = new Comment("Alternative BBCode: ");        
        
$altComment->setUnderlined();
        
$altcode "[url={$mysidia->path->getAbsolute()}levelup/click/{$adopt->getAdoptID()}][img]{$mysidia->path->getAbsolute()}get/{$adopt->getAdoptID()}"[/img][/url]";
        
$altArea = new TextArea("altcode", $altcode, 4, 50);
        
$altArea->setReadOnly(TRUE);

        
$htmlComment = new Comment("HTML BBCode");        
        
$htmlComment->setUnderlined();
        
$htmlcode = "<a href='{$mysidia->path->getAbsolute()}levelup/click/{$adopt->getAdoptID()}' target='_blank'>
<
img src='{$mysidia->path->getAbsolute()}levelup/siggy/{$adopt->getAdoptID()}' border=0></a>";
        
$htmlArea = new TextArea("htmlcode", $htmlcode, 4, 50);
        
$htmlArea->setReadOnly(TRUE);

        
$document->add($forumComment);
        
$document->add($forumArea);
        
$document->add($altComment);
        
$document->add(($mysidia->settings->usealtbbcode == "yes")?$altArea:new Comment("The Admin has disabled Alt BBCode for this site."));
        
$document->add($htmlComment);
        
$document->add($htmlArea); 
This is what works on my site =3

if thats not what you asked for Im sorry I tried lol
Reply With Quote
  #3  
Old 10-28-2020, 09:45 PM
Phoeniix Phoeniix is offline
Member
 
Join Date: Oct 2013
Posts: 60
Gender: Male
Credits: 6,504
Phoeniix is on a distinguished road
Default

I tried it but my myadopts page is now blank. I think it has something to do with the pic uploader because even when i right click and select copy image adreess and put the [img] bb codes it still doesnt work
Reply With Quote
  #4  
Old 10-29-2020, 11:23 PM
Micolai's Avatar
Micolai Micolai is offline
Loving Mysidia!
 
Join Date: May 2020
Location: Tennessee
Posts: 130
Gender: Female
Credits: 50,797
Micolai is on a distinguished road
Default

Uhh... I'm a little confused also about what exactly you're trying to do. Are you trying to copy one of the BB codes and use it as a signature somewhere? and that's what is messing up?
__________________
"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
  #5  
Old 10-30-2020, 01:53 AM
Phoeniix Phoeniix is offline
Member
 
Join Date: Oct 2013
Posts: 60
Gender: Male
Credits: 6,504
Phoeniix is on a distinguished road
Default

Quote:
Originally Posted by Micolai View Post
Uhh... I'm a little confused also about what exactly you're trying to do. Are you trying to copy one of the BB codes and use it as a signature somewhere? and that's what is messing up?
right. the images work on the site but not on a forum. I've even used into rain's fix for the public function bbcode.
Reply With Quote
  #6  
Old 10-30-2020, 02:16 AM
Micolai's Avatar
Micolai Micolai is offline
Loving Mysidia!
 
Join Date: May 2020
Location: Tennessee
Posts: 130
Gender: Female
Credits: 50,797
Micolai is on a distinguished road
Default

Ah. The image urls being used in the copied bbcode might need to be changed to different urls to work. If you save the picture you're wanting to use and reupload it to imgur, that will probably fix the issue. I noticed for most my images to work I have to upload my image to imgur, right click the image that was uploaded and open in new window, then right click that and open that in a new tab. Once it's in a new tab I copy the url in the address bar and paste that where I'm needing the image.

This method has been working for me most cases.

As for a more permanent fix, I would have to try and get into trying to use the bbcode and see what it was doing then try and use Ittermat's code and see from there. I'll try and see if I can tell what's going on.
__________________
"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
  #7  
Old 11-08-2020, 10:32 PM
Ittermat's Avatar
Ittermat Ittermat is offline
The awesomesauce
 
Join Date: Feb 2016
Location: in front of my laptop
Posts: 272
Gender: Female
Credits: 38,417
Ittermat is on a distinguished road
Default

APOLOGIES- I did have it fixed but I forgot I replaced alot of files after a certain coder fiasco...... but I worked on it again and came up with this- works for me.

this goes in myadopts view- replacing the whole public function


PHP Code:
 public function bbcode(){
        
$mysidia Registry::get("mysidia");
        
$adopt $this->getField("adopt");            
        
$document $this->document;
        
$document->setTitle($this->lang->bbcode.$adopt->getName()); 
        
$document->addLangvar($this->lang->bbcode_info);
        
$document->add(new Comment("<br>"));

        
$forumComment = new Comment("Forum BBCode: ");        
        
$forumComment->setUnderlined();
        
$forumcode "[url={$mysidia->path->getAbsolute()}levelup/click/{$adopt->getAdoptID()}][img]{$adopt->imageurl}[/img][/url]";        
        
$forumArea = new TextArea("forumcode"$forumcode450);
        
$forumArea->setReadOnly(TRUE);

        
$altComment = new Comment("Alternative BBCode: ");        
        
$altComment->setUnderlined();
        
$altcode "[url={$mysidia->path->getAbsolute()}levelup/click/{$adopt->getAdoptID()}][img]{$adopt->imageurl}[/img][/url]";
        
$altArea = new TextArea("altcode"$altcode450);
        
$altArea->setReadOnly(TRUE);

        
$htmlComment = new Comment("HTML BBCode: ");        
        
$htmlComment->setUnderlined();
        
$htmlcode "<a href='{$mysidia->path->getAbsolute()}levelup/click/{$adopt->getAdoptID()}' target='_blank'>
<img src='
{$adopt->imageurl}' border=0></a>";
        
$htmlArea = new TextArea("htmlcode"$htmlcode450);
        
$htmlArea->setReadOnly(TRUE);

        
$document->add($forumComment);
        
$document->add($forumArea);
        
$document->add($altComment);
        
$document->add(($mysidia->settings->usealtbbcode == "yes")?$altArea:new Comment("The Admin has disabled Alt BBCode for this site."));
        
$document->add($htmlComment);
        
$document->add($htmlArea);
    } 

Last edited by Ittermat; 11-08-2020 at 10:37 PM.
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 02:46 AM.

Currently Active Users: 1009 (0 members and 1009 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