Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Signature images (http://www.mysidiaadoptables.com/forum/showthread.php?t=5694)

Phoeniix 10-26-2020 07:08 PM

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.

Ittermat 10-27-2020 02:03 PM

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

Phoeniix 10-28-2020 08:45 PM

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

Micolai 10-29-2020 10:23 PM

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?

Phoeniix 10-30-2020 12:53 AM

Quote:

Originally Posted by Micolai (Post 37741)
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.

Micolai 10-30-2020 01:16 AM

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.

Ittermat 11-08-2020 09:32 PM

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);
    } 



All times are GMT -5. The time now is 06:32 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.