Signature images

Forum
Last Post
Threads / Messages

Phoeniix

Member
Member
Joined
Oct 28, 2013
Messages
62
Points
6
Mysidian Dollar
3,427
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.
 
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:
 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()}"[/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
 
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
 
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?
 
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.
 
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.
 
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:
 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", $forumcode, 4, 50);
    	$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", $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='{$adopt->imageurl}' 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);
    }
 
Last edited:

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,122
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top