Sub Menu
Links Menu
Online Users

In total there are 668 users online :: 0 registered, 0 hidden and 668 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: No registered users based on users active over the past 60 minutes

Integramod doesn't like .png files that are php?

General discussion of anything. Discuss a topic in and out of IntegraMOD

Moderator: Integra Moderator

Integramod doesn't like .png files that are php?

PostAuthor: Frost » Thu Apr 12, 2007 9:23 pm

Hey, I'm working on making a dynamic sig for my site, but for some reason my profile doesn't like it.

I found a dynamic sig mod [url=http]HERE[/url] and everything works fine until I try to add it to my signature.

When previewing the signature I get this error:

Code: Select all
Your signature is not valid.  Impossible to control the image size of]http://www.black-fusion.com/forum/Signa ... ephpbb.png[/url]"Either there is no image at this address or the forum can not control it, so you can't use it.


But if you look at the actual address of the png file it works just fine. See it [url=http]HERE[/url]

If I enter the signature and just press submit, it doesn't go through and I get these errors:

Code: Select all
Warning]: Data is not in a recognized format. in /xxx/x/public_html/forum/profilcp/profilcp_profil_signature.php on line 263  Warning: Cannot modify header information - headers already sent by (output started at /xxx/x/public_html/forum/profilcp/profilcp_profil_signature.php:263) in /xxx/x/public_html/forum/includes/page_header.php on line 1158  Warning: Cannot modify header information - headers already sent by (output started at /xxx/x/public_html/forum/profilcp/profilcp_profil_signature.php:263) in /xxx/x/public_html/forum/includes/page_header.php on line 1160  Warning: Cannot modify header information - headers already sent by (output started at /xxx/x/public_html/forum/profilcp/profilcp_profil_signature.php:263) in /xxx/x/public_html/forum/includes/page_header.php on line 1161


then the other error above below it. I've tried 3 different dynamic sig mods and all of them result in this.

So, the only things I could think of are the site doesn't know to read png as php, but I have the htaccess file in the signature folder with this:

Code: Select all
<FilesMatch>    SetHandler application/x-httpd-php</FilesMatch>


and it still doesn't work

I also tried to look in both the signaturephpbb.php and png files to make sure there were no extra white space...

I'm out of ideas... anyone else have a working dynamic sig that works for integramod?

Edit Ok I solved the first error by selecting "Allow if impossible to control" in ACP > General > Configuration

And now it lets me submit the image, but I still get the major errors when submitting, so I think that's a genuine bug
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Integramod doesn't like .png files that are php?

PostAuthor: found it » Fri Apr 13, 2007 2:50 am

the one I use doesn't use any coding just picks up info from the database....

just sometimes a pain to get it to work.... it is in my downloads at founditforum.com

just change the look to suit...

<img>
Last edited by found it on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http]themes.[/url]
http://www.founditforum.com :: [url=http]Joining people together[/url]

[url=http][img=left]http://www.bbful.com/bbful_banner2.png[/img][/url]
User avatar
found it
Dev Team
Dev Team
 
Posts: 792
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:29 am
Cash on hand: 0.00

Re: Integramod doesn't like .png files that are php?

PostAuthor: Frost » Fri Apr 13, 2007 5:02 am

Ok, I'll look into it...

I read this thread after spending about 5 hours completely recoding a very basic one I found on detecties.com to get what I wanted out of it. :))

Thanks Found It
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Integramod doesn't like .png files that are php?

PostAuthor: found it » Fri Apr 13, 2007 8:34 am

No problem

I like the look of yours excellant image too...

what codes are those...?

:mrgreen:
Last edited by found it on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http]themes.[/url]
http://www.founditforum.com :: [url=http]Joining people together[/url]

[url=http][img=left]http://www.bbful.com/bbful_banner2.png[/img][/url]
User avatar
found it
Dev Team
Dev Team
 
Posts: 792
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:29 am
Cash on hand: 0.00

Re: Integramod doesn't like .png files that are php?

PostAuthor: Frost » Fri Apr 13, 2007 8:17 pm

The image will rotate eventually, I will have it rotate each time the page is refreshed, and each time it will show a different image. The images will be like a display of available themes I've made. Right now I have it showing the e.fusion theme I'm almost done with. (part of the header). And right now I have 3 images rotating but saved the same image as gif,png.jpg etc..

I will prob remove the jpg one becuase it's quality when put through php is kind of edgy (even with 100% quality in PS2)

Anyway, which codes do you mean?

I will show an example of what i think you mean...

Let's say to display top posters would look like:

Somewhere in the top of the php/png file you would add (this is for phpbb applications):

Code: Select all
//top poster$query = "SELECT username, user_postsFROM phpbb_users WHERE user_id != '1'ORDER by user_posts DESC LIMIT 3";$abc = mysql_query($query);while ($gettop = mysql_fetch_array($abc)){$toppostername = $gettop['username'];$highestposts = $gettop['user_posts'];$topposterstr = $toppostername.'('.$highestposts.') ';$topposter = $topposter.$topposterstr;}


That will get your usernames and how many posts, then organize it into one string using $ top poster (no space)

Then you would just use imagestring to display it (or imagettftext, but I'm working on that now to display strings too instead of just language variables so you can use ttf fonts instead of the ugly gd default fonts)

Code: Select all
imagestring($pic, 3, 9, 105, $topposter, $black);


This is how it outputs, "$ pic" = the background image, "3, 9, 105" is text size, pixels from left, pixels from top, then the string to display, then the color of the font.

In order to use $ black like that you have to let php know what it means first by doing something like]$black = imagecolorallocate($pic, 0,0,0);[/code]

Anyways, that is the normal way to do it, but on mine I wanted it to say "Top Posters:" before the string so I added a field in lang_main.php to do this like so:

Code: Select all
$lang['Sig_TopPoster'] = 'Top Posters';


Then back in the php/png file I added]$info20 = $lang['Sig_TopPoster'] . $doublepoint_space . $topposter;[/code]

Then for the output I used this:

Code: Select all
imagestring($pic, 3, 9, 105, $info20, $black);


the doublepoint_space is defined earlier in my php file as a colon and space like "]$doublepoint_space = ': ';[/code]

But instead of all that extra crap that I didn't think about before, you could prob just add the : in the lang file and remove the double_space all-together like:

Code: Select all
 $lang['Sig_TopPoster'] = 'Top Posters] . $topposter;  then  imagestring($pic, 3, 9, 105, $info20, $black);


But anyway, that's pretty much how I did it, I have to trim a lot of fat, and rewrite the whole thing as it still has traces of wichers code in it, then I will release mine with all the extra things I can think of commented out in case someone wants to use it, with wicher's original info left in tact because without his, I wouldn't have had anything to go on..

I still wanna see yours though lol


... if that's what you meant lol <img>
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Integramod doesn't like .png files that are php?

PostAuthor: found it » Sat Apr 14, 2007 12:14 am

Nice

Once I get a chance I will have a look at upgrading mine...

Thank you for that..

:mrgreen:
Last edited by found it on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http]themes.[/url]
http://www.founditforum.com :: [url=http]Joining people together[/url]

[url=http][img=left]http://www.bbful.com/bbful_banner2.png[/img][/url]
User avatar
found it
Dev Team
Dev Team
 
Posts: 792
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:29 am
Cash on hand: 0.00

Re: Integramod doesn't like .png files that are php?

PostAuthor: Frost » Sat Apr 14, 2007 3:56 am

No problem, we should open a topic somewhere to show updates, I want to build a new one from the ground up specifically for integramod

Like include commented out sections of all the mods installed at user's disposal

I'll start this when I'm done with the themes
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3


Return to General Discussion

Who is online

Registered users: No registered users

cron