Jump to content

Forum Signature Issue?


Jbrown1028

Recommended Posts

Hello, I am not sure if I should ask Dave, Marc? Anyways, the bottom 55px of my signature is continually getting cut off, no matter what I do, I believe this is a forum issue as I even placed text below the image in the Signature it is too getting cut off. Is there a way to specify the size of the image to force it to its full size of 525x362?

Thanks,

Jeff

Link to comment
Share on other sites

Hello, I am not sure if I should ask Dave, Marc? Anyways, the bottom 55px of my signature is continually getting cut off, no matter what I do, I believe this is a forum issue as I even placed text below the image in the Signature it is too getting cut off. Is there a way to specify the size of the image to force it to its full size of 525x362?

Thanks,

Jeff

Hi, we have a Maximum Signature size of 200 pixels high by approx 1500 pixels wide.

If your Sig image is bigger than this then yes you may suffer some clipping off the bottom of the screen.

The reason the limit was set was because members were using very large images.

This was taking up server resources and making the reading of threads difficult.

for example someone posts a jokey picture to which most people would reply to with a smiley.

But for every smiley posted you then had to scroll down 1000 pixels of sig image to get to the next comment. . . tiresome.

 

If you need a more technical answer I've Tagged Marc and Jos our Tech Wizards

 

Hope this helps :)

Link to comment
Share on other sites

Yeah, I found the issue in: public/style_css/css_7/ipb_styles.css where the css is set to 300px high, mine is 362px... I guess I can rewrite all of the script and make the images smaller, I was just going off the comment in the edit profile settings that said unlimited size and unlimited images... For now I will leave it until I make a version 3 and I will keep in mind the 300px limitation.

 

.signature {
    border-top1px solid #D5D5D5;
    clearright;
    color#A4A4A4;
    font-size0.9em;
    margin6px 0 4px;
    max-height300px;
    overflowhidden;
    padding10px 0 10px 10px;
    positionrelative;
}

 

Thanks,

Jeff

Link to comment
Share on other sites

Hi, we have a Maximum Signature size of 200 pixels high by approx 1500 pixels wide.

If your Sig image is bigger than this then yes you may suffer some clipping off the bottom of the screen.

The reason the limit was set was because members were using very large images.

This was taking up server resources and making the reading of threads difficult.

for example someone posts a jokey picture to which most people would reply to with a smiley.

But for every smiley posted you then had to scroll down 1000 pixels of sig image to get to the next comment. . . tiresome.

 

If you need a more technical answer I've Tagged Marc and Jos our Tech Wizards

 

Hope this helps :)

 

Ditto to that, except for the server resources. Signatures don't take up resources as they generally aren't hosted on the forum.

The limit was set by us just because the size of people's signatures were getting out of hand where in some cases someone's signature filled up your entire screen, especially annoying if the actual messages was just a single line. The actual post should be more important than the signature :)

Link to comment
Share on other sites

Yep 300 allows 200 for the sig and 100 for a pitapata tag to fit underneath :)

Link to comment
Share on other sites

Yeah, I found the issue in: public/style_css/css_7/ipb_styles.css where the css is set to 300px high, mine is 362px... I guess I can rewrite all of the script and make the images smaller, I was just going off the comment in the edit profile settings that said unlimited size and unlimited images... For now I will leave it until I make a version 3 and I will keep in mind the 300px limitation.

 

.signature {
    border-top1px solid #D5D5D5;
    clearright;
    color#A4A4A4;
    font-size0.9em;
    margin6px 0 4px;
    max-height300px;
    overflowhidden;
    padding10px 0 10px 10px;
    positionrelative;
}

 

Thanks,

Jeff

 

As I think has been already said the limit is intentional. What we ended up with at one point was people having to scroll through more signature images than actual content within posts. Therefore I added the max-height limitation of 300px. At the end of the day 332px for the signature area of a post is still greater than the height of most posts themselves.

Link to comment
Share on other sites

But I had to turn the magnifier on to see what the "fine print" at the very bottom says << laughing >>

 

HAHA, Yeah I debated on even putting that on there... I will probably remove it... this is a pretty simple php script that I wrote that basically generates a random number (so far there are 16 photos) from 1 to 16, then I have it grab a random number from 1 to 16 for the thumbnail, with a do while it will check to see if the thumb's random number matches the main images random number, if it does then generate a new random number for the thumbnail. Then another random number from 0 - 10 for the facts that I have setup in an array. Of course there are some birthdate calculations being done as well, then create the image from the GD library.

 

There are 4 images to the overall image, the background, the main image, the overlay and the thumbnail, I wrote up a quick imagecopymerge_alpha function to preserve the transparency of the images then another function to wrap the text within a certain width of pixels with the imagettfbox, load the ubuntu.ttf file and volia... I have a dynamic signature...

 

It is very easy to add images, thumbs and fun facts to it.

 

Total write time (4 hours), total image time (2 hours, until I had to redo it from 362px high to 300px high... uggghh, then it was 3 hours). Throw it up on my jbrowns.com server and create an htaccess so signature_v2.png will load the signature_v2.php file, there you have it in a nut shell...

 

Ok, so now this leads to another question, can you hack a website this way? I have tested this theory (not on this site, on my own personal site), it is not conclusive just yet... The immediate answer is "NO" because for the image to appear you need to change the header to 'Content-Type: image/png' (gif or jpg), so if you try to use ajax to load something $.load('test.php') script is called after the page renders and the headers have already been sent as a png. I can add a tracking code to see who is visiting the page, and since the php file resides on another server I cannot use any cookie functions either (It tries to get cookies from jbrowns.com, where the images and php files are being hosted).

 

BUT!!! Don't worry, this is my field (visit www.securelive.com -- This is my business). If I find a way, I will let everyone who needs to know here and how to stop it from happening. As for now, it seems very safe.

 

Thanks,

Jeff

Link to comment
Share on other sites

Ok, so now this leads to another question, can you hack a website this way? I have tested this theory (not on this site, on my own personal site), it is not conclusive just yet... The immediate answer is "NO" because for the image to appear you need to change the header to 'Content-Type: image/png' (gif or jpg), so if you try to use ajax to load something $.load('test.php') script is called after the page renders and the headers have already been sent as a png. I can add a tracking code to see who is visiting the page, and since the php file resides on another server I cannot use any cookie functions either (It tries to get cookies from jbrowns.com, where the images and php files are being hosted).

 

BUT!!! Don't worry, this is my field (visit www.securelive.com -- This is my business). If I find a way, I will let everyone who needs to know here and how to stop it from happening. As for now, it seems very safe.

 

Thanks,

Jeff

 

You can't. You cannot insert manual html. -tags are automatically converted to html for you and are protected from html/javascript-injection. You can try and serve code with the loaded image but a browser will never execute Javascript that is loaded with an <img/> tag.

 

You can of course still use cookies (that only work on your host, jbrowns.com, of course so you can't read the forum's cookies) and catch the referer to see which page the user came from. But that's normal http stuff.

 

 

I was just going off the comment in the edit profile settings that said unlimited size and unlimited images... 

 

Had to look at that. Apparently it says that for everyone but not for me  :mellow: I'll put it on my todo list to change when I get time because the sigs are definitely not unlimited!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy , along with dressing your husky as a unicorn on the first Thursday of each month