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 02-04-2014, 08:06 PM
Pear's Avatar
Pear Pear is offline
Woah man.
 
Join Date: Dec 2013
Location: The Underworld
Posts: 169
Gender: Female
Credits: 45,631
Pear is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 02-04-2014, 11:39 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,386
IntoRain is on a distinguished road
Default

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...) 
__________________


asp.net stole my soul.
Reply With Quote
  #3  
Old 02-08-2014, 07:42 PM
Pear's Avatar
Pear Pear is offline
Woah man.
 
Join Date: Dec 2013
Location: The Underworld
Posts: 169
Gender: Female
Credits: 45,631
Pear is on a distinguished road
Default

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

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


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

Last edited by Pear; 02-08-2014 at 07:54 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Signature Images LucasA33 Questions and Supports 3 04-07-2014 12:16 AM
Signature adoptable images tahbikat Questions and Supports 3 03-30-2014 02:24 PM
How to get signature images to work with non-numeric ID's? Infernette Questions and Supports 0 03-13-2013 05:20 PM
Images in signature don't work Brim Questions and Supports 1 11-17-2010 12:51 AM
Signature images not showing Killgore Questions and Supports 23 09-10-2010 03:52 PM


All times are GMT -5. The time now is 04:06 PM.

Currently Active Users: 9408 (0 members and 9408 guests)
Threads: 4,080, Posts: 32,024, 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