Signature Images not appearing?

Forum
Last Post
Threads / Messages

Pear

Woah man.
Member
Joined
Dec 14, 2013
Messages
169
Points
16
Age
27
Location
The Underworld
Mysidian Dollar
40,823
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
 
In the file myadoptsview.php:

search this function:
PHP:
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", $forumcode, 4, 50);
		$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", $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:
PHP:
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:


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

So it should look like this now:
PHP:
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", $forumcode, 4, 50);
		$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", $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
 
Last edited:

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,129
Members
1,603
Latest member
Monako
BETA

Latest Threads

Latest Posts

Top