Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   GD Question (http://www.mysidiaadoptables.com/forum/showthread.php?t=5432)

aquapyrofan 05-03-2017 07:59 PM

GD Question
 
I know Mysidia uses GD to write the text on images and I'm planning to use it, but is there any way to change what text it writes? Where would I find that in the code? Right now my site's URL is too long to work with it so I'm planning to change some of the text around.

Dinocanid 05-03-2017 08:21 PM

For writing text on images, did you mean the banner at the top of the site? If so, that doesn't use GD, it can be found in your theme's template.tpl file towards the top, similar to this:
HTML Code:

<div id="wrapper" style="text-align:center;">
        <div id="header"><a href="{$path}index">{$site_name}</a></div>

Just replace {$site_name} with something shorter if the name it's pulling is too long.
If not, what were you referring to? Since I haven't noticed any other instances where mysidia does this.

aquapyrofan 05-03-2017 08:51 PM

Quote:

Originally Posted by Dinocanid (Post 36275)
For writing text on images, did you mean the banner at the top of the site? If so, that doesn't use GD, it can be found in your theme's template.tpl file towards the top, similar to this:
HTML Code:

<div id="wrapper" style="text-align:center;">
        <div id="header"><a href="{$path}index">{$site_name}</a></div>

Just replace {$site_name} with something shorter if the name it's pulling is too long.
If not, what were you referring to? Since I haven't noticed any other instances where mysidia does this.

No, I meant on the images from the BBcode/HTML, for example this one:
http://adoptest.katfennec.x10host.com/levelup/siggy/56

See how my site's URL is cut off?

Dinocanid 05-03-2017 09:12 PM

Oh! Well in that case I'm not sure either. I looked through the class files and myadoptsview.php but couldn't find anything for it.

Abronsyth 05-04-2017 08:08 AM

I recently stumbled upon it, can't remember where, though. I'll do a search quickly.

EDIT:
Check out public function siggy() in levelup.php

You should find this a few lines down the function:
PHP Code:

        // Build text for siggy
            
$str1 "Name: ".$this->adopt->getName();
            
$str2 "Owner: ".$this->adopt->getOwner();
            
$str3 "Click Here to Feed Me!";
            
$str4 "More Adopts at:";
            
$str5 "www.".constant("DOMAIN"); 


KatFennec 05-04-2017 08:03 PM

Is there a way to allow it to work with .png files in addition to .gif?


All times are GMT -5. The time now is 12:42 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.