Support Forum

List View: Unread posts – force newline for spListLabel

26 Answers

New Answer

CF Conrad_Farlow
Conrad_Farlow
Member

Done.

As I like the search box so much perhaps I can use the formatting used to generate that for the unread posts? Would that be easy?

YS Yellow Swordfish
Yellow Swordfish
Member

if I don’t get to this tonight I will in the morning – that’s a promise.
Theoretically – the CSS is the same for both already….

CF Conrad_Farlow
Conrad_Farlow
Member

But one seems to be a pop up that relies on some widget and the other appears to be in the main container (spSearchSection) or am I missing something?

I reiterate once again that the support on this site is nothing short of excellent.

Conrad

YS Yellow Swordfish
Yellow Swordfish
Member

Your Wp theme (wasteland) styles.css file on line 31 defined ‘body’ with a rule of text-align: center; and this is the problem.

Now we may need to address this in our own theme CSS for cases liek this but…

Find the style for  .spTopicListSection in your SP theme CSS and add a text-align: left; statement, That should do it.

CF Conrad_Farlow
Conrad_Farlow
Member

Indeed it does in fact this would also work for the default theme.

I put it here:

#spMainContainer .spRecentPostSection .spTopicListSection .spListLabel,
#spMainContainer .spRecentPostSection .spTopicListSection .spListPostLink,
#spMainContainer .spSearchSection .spTopicListSection .spListLabel,
#spMainContainer .spSearchSection .spTopicListSection .spListPostLink {
    font-size: <?php echo($spListPostLink_spListLabel); ?>;
    text-align: left;
MP Mr Papa
Mr Papa
Member

yup. we have a ticket open to adjust for the odd wp themes doing this and make our styles explicit.

CF Conrad_Farlow
Conrad_Farlow
Member

At upgraded to build 7759 at the weekend and the only remaining casualty after carefully moving any hacks from the core was the list view generated by clicking the unread posts icon again. It now appears like it did on post 7. This is despite the fact that in my theme default the code as shown in Post 20 is still there. The list produced by search is formatted correctly.

I have been able to correct the problem by putting

text-align: left

in my WP theme style.css file but I would rather it was forced by SP if possible, I’m sure that this was fixed prior to the build change.

I noticed a spTextAlign class somewhere when I was looking around but can’t find it now embarassed. I haven’t edited my spListView.php file for my theme so not sure why it stopped working.

Conrad

BR Brandon
Brandon
Member

Did you update the template files or merge the new changes with your old ones? Specifically the spListView.php?

Around line 23 you should see sp_SectionStart(‘tagClass=spTopicListSection spTextLeft’, ‘list’); in the latest version. You might want to check and see if yours has that.

CF Conrad_Farlow
Conrad_Farlow
Member

Mine doesn’t have that and that is the issue, I knew I’d seen spTextLeft somewhere. I ended up with

sp_SectionStart(‘tagClass=spTopicListSection spListViewSection spTextLeft’, ‘list’); which looks perfect to me.

YS Yellow Swordfish
Yellow Swordfish
Member

I added this into the template as a default class afyter your probem. But not n that line – rather in:

# Start the 'list' section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spTopicListSection spTextLeft', 'list');

The section start below.

CF Conrad_Farlow
Conrad_Farlow
Member

Yes that works great Andy thanks, I can see that spListView.php for the default theme is set like that now. Bit short on time and that one got through.

Conrad