Support Forum
Not sure if I should ask customisation questions for themes here at this stage so feel free to tell me to go away for a while if you are too busy but........
I would like the avatar display size at the top of the Group view, forum and topic view and topic view to be different from that used at the side of the posts. How would I best go about this?
My thinking is that I don't want to use up much real estate at the top of pages but I like decent sized avatars for the actual posts in topic view.
Conrad
For example:
The avatar located in the top left code is in your templates spHead.php.
# Start the 'userInfo' section # ---------------------------------------------------------------------- sp_SectionStart('tagClass=spPlainSection', 'userInfo'); sp_UserAvatar('tagClass=spImg spLeft');
We then alter it to add the size argument (I set it at 32), or will default to the options size.
# Start the 'userInfo' section # ---------------------------------------------------------------------- sp_SectionStart('tagClass=spPlainSection', 'userInfo'); sp_UserAvatar('tagClass=spImg&size=32 spLeft');
If you refer to the actual function we are calling that I referenced in the last post, you can see what arguments it will accept, and the defaults it will choose if you don't specify anything.
This is an awesome forum software, just moved from phpbb. I'm looking at the avatars at the moment, are there any automatic resizing options yet to fit the different areas on the forum? If not i'm wondering if timthumb would work well here? I just played around with the avatar uploading and noticed that the user needs to get the picture the right size which is an annoying issue we had with phpbb untill I installed a mod which automatically resized and never rejected a users image...
Well I added it to the main functions but it would be obviously better if I added it as a custom function due to updating etc etc, but it's quite a cool small feature especially when you want to do a bit of template customisation. I've made it so you can just add your width and height to the function to determine the size you want the image in the different parts of the template. The other way of improving the upload image might be to use a jquery image upload and resize plugin... but that might be to complex, I think Timthumbs a good quick solution. But still would be cool to make this into a custom timthumb function
1 Guest(s)