Joachim
Full Member
Shhh, can't see me.
Posts: 905
inherit
23771
0
Nov 18, 2012 17:23:23 GMT -8
Joachim
Shhh, can't see me.
905
April 2004
izaeah
|
Post by Joachim on Jan 18, 2013 10:58:40 GMT -8
I'll upload the signature on one of my test boards to try it out as the board in question hasn't betazoned as it wasn't really necessary, I'll see how it works. Edit:: Two images one atop the other.. doesn't trigger the plug in. The 'top' image is 155 high and the bottom one is 140. I tried to set it up as 160 max since they're atop one another and no change. I dropped it back to 150 as a test and the 155 one did change. Be the images side by side but the board width too slight to accommodate so they fall on two lines, or already on two lines due to the user's personal choice, the plug in only works on the image that is higher than the height set up in the plug in. If at all possible in some way, it would be nice if the plugin could take the height of the signature as a whole. No rush to be had though, it's not like it's a life or death thing but testing it out at least brought in answers. Hi Joachim, I just sat down to have a think about this and it really is a conundrum as there would be so many considerations as to the height & width of the images and the width of the forum plus the number of images. Like my images in my signature, I could have 8 but they'd all be on one line but the total height of each added together would be bigger than the limit. The code is meant as a help. If someone is getting around it then a PM to them asking them to change the size is easy to do. I might have a moment of inspiration one day and come up with some mathematical equation to do it! =============================== Thanks truckmodshop That's most fine. As I mentioned above, or I think I did at least, the forum itself is an archive at this point, it is very rare that new posts get put up and while the signature isn't that big of an issue, we figured it would be worth asking if it was possible at all. I appreciate your thought on the subject, thank you.
|
|
inherit
172993
0
Jul 18, 2023 10:28:06 GMT -8
Pheobe Black
141
October 2011
pheobeblack
|
Post by Pheobe Black on Jan 30, 2013 10:04:01 GMT -8
i like this, but it'd be really awesome if you could add a feature to it that controls the width as well. thats a huge problem with a few rpg sites i'm on. people will have these massively wide signatures that stretch and distort the page, and its a HUGE pet peeve.
|
|
inherit
162752
0
Nov 7, 2024 3:58:23 GMT -8
Pebble
Where it all does or doesn't happen!
1,437
January 2011
pebbleleague
|
Post by Pebble on Jan 30, 2013 10:07:45 GMT -8
i like this, but it'd be really awesome if you could add a feature to it that controls the width as well. thats a huge problem with a few rpg sites i'm on. people will have these massively wide signatures that stretch and distort the page, and its a HUGE pet peeve. From my understanding, V5 already resizes images on your forum that are too wide to prevent the layout breaking.
|
|
inherit
172993
0
Jul 18, 2023 10:28:06 GMT -8
Pheobe Black
141
October 2011
pheobeblack
|
Post by Pheobe Black on Jan 30, 2013 16:00:35 GMT -8
i like this, but it'd be really awesome if you could add a feature to it that controls the width as well. thats a huge problem with a few rpg sites i'm on. people will have these massively wide signatures that stretch and distort the page, and its a HUGE pet peeve. From my understanding, V5 already resizes images on your forum that are too wide to prevent the layout breaking. OH!! good to know!! the admins i work with and i have only upgraded our testers, mostly so we can figure out how to code the skins and fix our sidebars and so on like that, so we havent played with sig sizes yet. but this is one plugin ill have to remember to bookmark and share the link to.
|
|
inherit
189150
0
Jul 21, 2015 7:32:06 GMT -8
ermentrude
30
January 2013
ermentrude
|
Post by ermentrude on Feb 10, 2013 17:17:22 GMT -8
Pebble - Our board allows only one image per signature. I know that you said that the process of calculating the height of two images would be complex, but would it be possible to add an option to the plugin to display the "fail" image simply if there is more than one image? Much appreciated.
|
|
inherit
168718
0
Oct 24, 2024 1:20:24 GMT -8
Stern
Out playing with the puppies.
579
July 2011
punktestern
|
Post by Stern on Feb 16, 2013 7:07:28 GMT -8
From my understanding, V5 already resizes images on your forum that are too wide to prevent the layout breaking. What if we wanted to have the images be forced to be smaller than the forum width? Our site has consistantly had an image size limit of 400x200 for signatures, and I'm not too happy with having to change that. Would it be possible to add in a width factor, optionally, perhaps? Thank you so much for the code, though!
|
|
inherit
191470
0
Jan 16, 2018 6:04:59 GMT -8
- TuGs
180
March 2013
tugz
|
Post by - TuGs on Mar 20, 2013 21:53:53 GMT -8
is there a way to resize a image by width and height by percent similar to this old global footer code? <script type="text/javascript"> <!-- /* Modify image size to fit forum By Todge Please keep this header intact */ var picWidth = '550'; //Maximum image width.. var picHeight = '350'; //Maximum image height.. var pics = document.images; if(window.addEventListener) { window.addEventListener('load', imageSize, false); } else if(window.attachEvent) { window.attachEvent('onload', imageSize); } else { window.onload = imageSize; } function imageSize() { var p=pics.length-1; while(p>-1) { if(pics .alt=='[image] ') { if(pics .width>picWidth || pics .height>picHeight) { var thisPicWidth = picWidth; if(pics .height/(pics .width/picWidth)>picHeight) { thisPicWidth = pics .width/(pics .height/picHeight) } var newWidth = 100-parseInt(thisPicWidth/pics .width*100); var picLoaded = document.createElement('A'); picLoaded.setAttribute('href',pics .src); picLoaded.setAttribute('target','_blank'); picLoaded.innerHTML = '<font size="0">This image is reduced by '+newWidth+'%, click it to view full size.</font><br><img src="'+pics .src+'" width="'+thisPicWidth+'" border="0">'; pics .parentNode.replaceChild(picLoaded,pics ); }} p--; }} // --> </script>
|
|
psychotika
inherit
-5227228
0
Nov 22, 2024 1:20:32 GMT -8
psychotika
0
January 1970
GUEST
|
Post by psychotika on Mar 21, 2013 18:05:20 GMT -8
Any way to add a width limit to this as well? I rather like it as it is, but I'd like a little more functionality.
|
|
Former Member
inherit
guest@proboards.com
192162
0
Nov 22, 2024 1:20:32 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Apr 15, 2013 14:20:49 GMT -8
Thanks for that, thats one handy thing to have on a Pokemon forum, with users and their .gif sig pictures.
|
|
inherit
First Contributor
66253
0
Mar 18, 2024 11:09:20 GMT -8
aRMY83
2,925
December 2005
army83
|
Post by aRMY83 on Apr 26, 2013 5:30:06 GMT -8
Hello PebbleNot working at all now and I even set the max as low as 20 and nothing changed at all. I have the current Resize Or Replace Signature Image (BZ) 0.2.2 L.
|
|
inherit
162752
0
Nov 7, 2024 3:58:23 GMT -8
Pebble
Where it all does or doesn't happen!
1,437
January 2011
pebbleleague
|
Post by Pebble on Apr 27, 2013 2:54:02 GMT -8
Hello PebbleNot working at all now and I even set the max as low as 20 and nothing changed at all. I have the current Resize Or Replace Signature Image (BZ) 0.2.2 L. My computer went 'bang!' while travelling. When I get my new one next week I'll be re-writing all my plugins to work with V5 as it is at the moment.
|
|
inherit
162752
0
Nov 7, 2024 3:58:23 GMT -8
Pebble
Where it all does or doesn't happen!
1,437
January 2011
pebbleleague
|
Post by Pebble on May 5, 2013 3:13:39 GMT -8
|
|
inherit
First Contributor
66253
0
Mar 18, 2024 11:09:20 GMT -8
aRMY83
2,925
December 2005
army83
|
Post by aRMY83 on May 5, 2013 5:27:54 GMT -8
Sorry to say Pebble as it's not working for me. Edit: just gave it a go again and it is working now.
|
|
inherit
168718
0
Oct 24, 2024 1:20:24 GMT -8
Stern
Out playing with the puppies.
579
July 2011
punktestern
|
Post by Stern on May 5, 2013 7:36:06 GMT -8
What if we wanted to have the images be forced to be smaller than the forum width? Our site has consistantly had an image size limit of 400x200 for signatures, and I'm not too happy with having to change that. Would it be possible to add in a width factor, optionally, perhaps? Thank you so much for the code, though! If you don't keep the height and width in proportion with each other then it will distort the image. The code she has now does that, if it changes the height of the image it keeps the width in proportion. But if you can manually set the width and height in the plugin you won't have much to play with if someone puts a very wide image in? In my test forum I have a image scroll and I set the height at a limit of 135px and when people send me images to put in on my present V4 forum if they are a little wider or narrower it's ok because it doesn't hurt the resolution of the image if it's that way. I like a width of 180px but some are a little wider or shorter and it's OK as long as the height all matches. betaitistheride.freemessageboards.com/I know that it distorts the image. However, if our rules say 400x200, then I don't particularly mind if the images get distorted, maybe they'll read the rules the next time so that they get a normally proportioned image.
|
|
Former Member
inherit
guest@proboards.com
192162
0
Nov 22, 2024 1:20:32 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 20, 2013 14:04:25 GMT -8
Would be nice to have a setting for different users. On my forum users can pay for more siggy space, just a idea
|
|