View Single Post
  #9  
Old 02-24-2014, 12:09 AM
Vaporman87 Vaporman87 is offline
Member
 
Join Date: Feb 2014
Posts: 32
Gender: Male
Credits: 7,541
Vaporman87 is on a distinguished road
Default

Oh yeah! Sure thing.

Simply open the myadoptsview.php file in the /view folder, and find the following piece of code:

Code:
$forumComment = new Comment("Forum BBCode: ");		
		$forumComment->setUnderlined();
        $forumcode = "[img]{$mysidia->path->getAbsolute()}levelup/siggy/{$adopt->getAdoptID()}[/img]";		
	    $forumArea = new TextArea("forumcode", $forumcode, 4, 50);
		$forumArea->setReadOnly(TRUE);
		
		$altComment = new Comment("Alternative BBCode: ");		
		$altComment->setUnderlined();
        $altcode = "[img]{$mysidia->path->getAbsolute()}get/{$adopt->getAdoptID()}.gif\"[/img]";
	    $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);
Now add your size preferences to each of these three forum code choices. (Keep in mind that forums using BBCode instead of HTML will sometimes have their settings for using resizing turned off, or they may use a different set of resizing code)

Here I added my resizing preference to the first BBCode option:

Code:
$forumComment = new Comment("Forum BBCode: ");		
		$forumComment->setUnderlined();
        $forumcode = "[img height=126 width=145]{$mysidia->path->getAbsolute()}levelup/siggy/{$adopt->getAdoptID()}[/img]";		
	    $forumArea = new TextArea("forumcode", $forumcode, 4, 50);
		$forumArea->setReadOnly(TRUE);
Above, I changed the [img] to [img height=126 width=145]. If this doesn't work in a specific forum, you can also try [img 126x145]. Next, do the same for the "Alternative BBCode":

Code:
$altComment = new Comment("Alternative BBCode: ");		
		$altComment->setUnderlined();
        $altcode = "[img height=126 width=145]{$mysidia->path->getAbsolute()}get/{$adopt->getAdoptID()}.gif\"[/img]";
	    $altArea = new TextArea("altcode", $altcode, 4, 50);
		$altArea->setReadOnly(TRUE);
And then, the one that works most reliably, the HTML code:

Code:
$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()}' width='145' height='126' border=0></a>";
	    $htmlArea = new TextArea("htmlcode", $htmlcode, 4, 50);
		$htmlArea->setReadOnly(TRUE);
Above, I have just added the " width='145' height='126' " in between the " getAdoptID()}' " and " border=0> " text.

Hope this helps somebody. :)
Reply With Quote