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 not appearing? (http://www.mysidiaadoptables.com/forum/showthread.php?t=4379)

Pear 02-04-2014 08:06 PM

Signature Images not appearing?
 
There is probably an easy fix for this, but whenever I go to the 'get image' link and put it in my signature on forums, it just says "Image". You can click on the link and it will bring you to the page, but the image just doesn't show up on the actual forum. (It does when you click on it, obviously. XD)

However, I can still get the images to show if I copy the image location and replace the image link, but is there an easier way so that I don't have to do that, and my users don't have to either? c:

Thanks!

-Pear

IntoRain 02-04-2014 11:39 PM

In the file myadoptsview.php:

search this 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]{$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()}.gif\"[/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='
{$mysidia->path->getAbsolute()}levelup/siggy/{$adopt->getAdoptID()}' border=0></a>";
        
$htmlArea = new TextArea("htmlcode"$htmlcode450);
        
$htmlArea->setReadOnly(TRUE);
(
other stuff here...) 

Next to this (in that function!!):

$adopt = $this->getField("adopt");

add this:

$imageLink = $adopt->getImage();

so it looks like this:
PHP Code:

public function bbcode(){
        
$mysidia Registry::get("mysidia");
        
$adopt $this->getField("adopt");
                
$imageLink $adopt->getImage();
(
other stuff here...) 

The image URL can be replaced by putting this {$imageLink} instead. For example:

[img]{$imageLink}[/img]
and
<img src="{$imageLink}'>

So it should look like this now:
PHP Code:

public function bbcode(){
        
$mysidia Registry::get("mysidia");
        
$adopt $this->getField("adopt");
                
$imageLink $adopt->getImage();            
        
$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]{$imageLink}[/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]{$imageLink}[/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='{$imageLink}' border=0></a>";
        
$htmlArea = new TextArea("htmlcode"$htmlcode450);
        
$htmlArea->setReadOnly(TRUE);
(
other stuff here...) 


Pear 02-08-2014 07:42 PM

(Sorry for the late reply, I forgot I posted here. :eye:)

Thank you so much! :D I will try it out right now. c:


Edit:
Thanks! :D It fixed it. c:<3


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

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