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
Missing options and user photo size
Avatar
Punya Mishra
Rookie
Free Members
sp_UserOfflineSmall Offline
Aug 26, 2012 - 2:24 pm

A previous version of SP had options for "Post Settings", "Topic settings" that easily allowed me to hide a bunch of options that were not relevant to me. I use WP and SP as part of a online teaching setup - where i don't need to show a lot of these options (it is a small group of students and they all know each other). These various options just end up taking up valuable real estate, and I would like to clean stuff up a bit. However, I can't find these options any more. So what are my choices here? 

Also, I am using the User Photo plugin and it is working great integrating with SP. However I would like the thumbnails to come out smaller (50x50) in the forum. I have spent a long time but can't figure out what i should be doing. 

Any help would be appreciated. 

~ punya

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 26, 2012 - 3:18 pm

First, Simple Press 5 moved to a theme based system rather than thousands of options... So most display elements are now controlled by template functions in your sp theme... That means you can easily add, remove or move around the elements to completely and totally customize your display of Simple Press...

So you just need to edit your various Simple Press Template files (in the template-files folder of your sp theme) that are page view pased... this is very much like WordPress itself...

Now we strongly recommend that you create your own sp theme vs editing one of our provided themes to keep from losing your changes on upgrade... This codex article explains how to create your own theme from one of ours:

http://codex.simple-press.com/.....g-a-theme/

Not sure what user photo plugin is... and where you are showing them... is an avatar replacement? just a guess based on the 50x50 comment... but same answer as above... where ever in the template files you output an avatar (and there are multiple places) you can add an argument to the template function to change the size of the avatar... for example, in the header of each page:

sp_UserAvatar('tagClass=spImg spLeft');

changed to:

sp_UserAvatar('tagClass=spImg spLeft&size=25');

to use 25px avatar instead... 50px is the default...

Avatar
Punya Mishra
Rookie
Free Members
sp_UserOfflineSmall Offline
Aug 26, 2012 - 4:15 pm

I thought I had sent a reply but I guess I didn't hit submit. Here we go again

First, I appreciate your prompt response. That said, I am not comfortable getting into the php code. I am an educator who is reasonably tech savvy but I much preferred the previous version that allowed me some control from the interface level - rather than getting into the php code. Just too much scope for screwing up!

Similar issue for the second problem - that of image size. But what the heck... i jumped in and tried to find the instances where sp_UserAvatar showed up and included the size=25, but no change in size of avatar. 

Hmmm... ~ punya

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 27, 2012 - 5:26 am

Punya Mishra said
I thought I had sent a reply but I guess I didn't hit submit. Here we go again

First, I appreciate your prompt response. That said, I am not comfortable getting into the php code. I am an educator who is reasonably tech savvy but I much preferred the previous version that allowed me some control from the interface level - rather than getting into the php code. Just too much scope for screwing up!

I guess it's a matter of not being able to please all of the people all of the time smile

The problem with options is where do you stop? We were continually adding options on user request and they were getting - to be frank - a little out of hand. At the same time the scope for our users to customise their forum display was getting slimmer and slimmer. V5 was a complete rewrite that takes its format from standard WP themes which allows for limitless customisation of the display and allows for all of those options that people always wanted but would not be available via the admin panels. This also results in less code, better performance and basically infinite flexibility.

As we have adhered to the WP theme functional syntax the basics of changing WP theme templates transposes easily to the basics of changing SP templates.

Similar issue for the second problem - that of image size. But what the heck... i jumped in and tried to find the instances where sp_UserAvatar showed up and included the size=25, but no change in size of avatar. 

Hmmm... ~ punya

I am not sure why Steve focused on avatars. Is this what you actually mean or did you mean embedded images in posts - which is how I read it? If the latter then I am afraid that 100px is the smallest thumbnail size that SP supports.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 27, 2012 - 8:08 am

actually, I asked 'if' he meant avatars... if so.... and the user photo thing seemed to imply same... ;)

but was hoping for feedback or example...

Avatar
Punya Mishra
Rookie
Free Members
sp_UserOfflineSmall Offline
Aug 27, 2012 - 10:18 am

Appreciate the quick responses. I understand the issue of creating options on options. It is just that I am an educator, I love WP and SP - have used them in all my classes in both master's and doctoral levels. I have little if any tech support - so I have to do both the setting up of the website AND the curricular stuff. Not that it matters to you - but just giving you a sense of where I am coming from. 

As for the photos: I meant the little photos that show up by your name when you post to the forum. I am including an screenshot. I would like these photos to be 25px by 25px. thanks ~ punyascreenshot.pngImage Enlarger

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 27, 2012 - 10:59 am

Ah - Mr papa was right - you DID mean the avatars.

For the posts you need to look at the sfTopicView.php template. You can use the SP theme editor for this.

Locate the call that displays the avatar and by default it probably looks like this:

sp_UserAvatar('tagClass=spPostUserAvatar spCenter&context=user', $spThisPostUser);

You need to simply add a size argument like so:

sp_UserAvatar('tagClass=spPostUserAvatar spCenter&context=user&size=25', $spThisPostUser);

Note the ampersand before the size name.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Punya Mishra
Rookie
Free Members
sp_UserOfflineSmall Offline
Aug 27, 2012 - 11:36 am

Thanks ~ punya

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 27, 2012 - 11:44 am

Hope that worked for you

andy-signature.png
YELLOW
SWORDFISH
Avatar
Punya Mishra
Rookie
Free Members
sp_UserOfflineSmall Offline
Aug 28, 2012 - 9:31 am

I got a friend (more savvy than me) to help out and we have it working now. thanks for all your help. ~ punya

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
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