View Full Version : 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:
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 = "{$mysidia->path->getAbsolute()}levelup/siggy/{$adopt->getAdoptID()} ({$mysidia->path->getAbsolute()}levelup/click/{$adopt->getAdoptID()})";
$forumArea = new TextArea("forumcode", $forumcode, 4, 50);
$forumArea->setReadOnly(TRUE);
$altComment = new Comment("Alternative BBCode: ");
$altComment->setUnderlined();
$altcode = "{$mysidia->path->getAbsolute()}get/{$adopt->getAdoptID()}.gif\" ({$mysidia->path->getAbsolute()}levelup/click/{$adopt->getAdoptID()})";
$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);
(other stuff here...)
Next to this (in that function!!):
$adopt = $this->getField("adopt");
add this:
$imageLink = $adopt->getImage();
so it looks like this:
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:
{$imageLink}
and
<img src="{$imageLink}'>
So it should look like this now:
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 = "{$imageLink} ({$mysidia->path->getAbsolute()}levelup/click/{$adopt->getAdoptID()})";
$forumArea = new TextArea("forumcode", $forumcode, 4, 50);
$forumArea->setReadOnly(TRUE);
$altComment = new Comment("Alternative BBCode: ");
$altComment->setUnderlined();
$altcode = "{$imageLink} ({$mysidia->path->getAbsolute()}levelup/click/{$adopt->getAdoptID()})";
$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='{$imageLink}' border=0></a>";
$htmlArea = new TextArea("htmlcode", $htmlcode, 4, 50);
$htmlArea->setReadOnly(TRUE);
(other stuff here...)
(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
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.