Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Signature height is cut off / only a few centimenters
Avatar
Halo Diehards
Member
Free Members
sp_UserOfflineSmall Offline
Sep 18, 2014 - 2:26 am

I've been all in and out of the settings, and can't figure it out, so appeal to you for helps! Can anyone tell me why the sig's in my forum are cut off?

At first I had them set at default, to 0 and they were cut off, so I tried setting them at 252 width and 150 height and they're still cut off. Here is a Gyazo screenshot. Pay no attention to the post on avatars, it's really old:

Image Enlarger

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Sep 18, 2014 - 3:29 am

How have you adjusted the signature height? I think there there is a guideline in the Codex to change the height in the template function call rather than the admin panel but this caught me out recently too!

You can match up the two however, so if you want people to only use signatures that are 80px tall, change it in the function and the forum admin.

If you are using 'Default' theme, see forum-themes > default > templates > spTopicView.php

Find the call to the signature

sp_PostIndexUserSignature('tagClass=spPostUserSignature spCenter&maxHeightBottom=65');

And change the 'maxHeightBottom' to whatever height you want to use.

Avatar
Halo Diehards
Member
Free Members
sp_UserOfflineSmall Offline
Sep 18, 2014 - 12:33 pm

I'm changing the signature height and width in the SP Admin settings, Profiles > Signature Image Size. 

So, just to be clear: the signature field is not designed to expand to fit signature images? I have to go in to each theme and set the dimensions myself?

 

Edit: I'm using Unified

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Sep 18, 2014 - 2:37 pm

Right.

Look at it as - set the signature size in the template, set the upload image dimensions in the admin panel. The size constraints you put in place in the admin panel show up in the profile page as image size limits (pixels)

Avatar
Halo Diehards
Member
Free Members
sp_UserOfflineSmall Offline
Sep 18, 2014 - 6:45 pm

Thanks for your response. I checked out the Unified code and searched for spPostUserSignature. It only shows up three times, once for mobile, where it states not to show the sig at all, and then twice here. It's not showing any height at all:

/* --------------------------
Post section - Signature
-----------------------------*/

#spMainContainer .spTopicPostSection .spPostUserSignature {
font-size: <?php echo($postUserSignatureFontSize); ?>;
padding: 20px 0;
margin: 0;
border-top: <?php echo($postBorder); ?>;
}

#spMainContainer .spTopicPostSection .spPostUserSignature a {
text-decoration: <?php echo($postLinkDecoration); ?>;
}

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 18, 2014 - 8:18 pm

No, that is not what Ike meant...  please see this:   https://simple-press.com/docum.....signature/

the signature height is controlled from the template file...  so assuming you mean the signatures at the bottom of each post, that would be in spTopicView.php template file...  this line from unified:

                                    sp_PostIndexUserSignature('tagClass=spPostUserSignature spCenter&maxHeightBottom=55');

try adjusting the 55 height of the signature...  there is a similar one for mobile in the same file...

We have a new theme coming out soon (Reboot) that makes heavy use of CSS3 and flexbox to get rid of the need for the signature height...  when the current themes were written browser support for those was not that good... but now, they are and we can switch too it...

Avatar
Halo Diehards
Member
Free Members
sp_UserOfflineSmall Offline
Sep 20, 2014 - 2:01 am

Awesome, thanks guys. I don't know why, but the first time I searched for sp_PostIndexUserSignature in that file, I didn't find it, so I wound up just searching Signature. Got it fixed, though.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 20, 2014 - 2:31 am

no worries..glad to help...

Avatar
SunRider
Member
Free Members
sp_UserOfflineSmall Offline
Sep 25, 2014 - 1:54 am

I was having the same problem so thankful for this thread.  One thing, I effected the changes as nstructed and the signature is now 100% visible, but I noticed that by doing so, it increased the bottom margin on the message area right above it so that it's added a lot of useless white space into the message section.  Did I miss something?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Sep 25, 2014 - 5:43 am

Unfortunately no, I believe it's a compromise. How large are you trying to make it? It's really just the way the topic view is designed. Sticky footers are not simple!

However, we have a theme coming out soon that fully supports the use of CSS3 Flexbox, which makes problems like this a thing of the past. We will also be adding a couple of template functions so with a bit of change you should be able to add flex rules to some of the standard theme's.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626