Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
List View: Unread posts - force newline for spListLabel
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 18, 2012 - 7:02 pm

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

Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jan 23, 2012 - 9:30 am

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

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Jan 23, 2012 - 10:21 am

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.

Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jan 23, 2012 - 11:00 am

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 23, 2012 - 11:06 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jan 23, 2012 - 11:51 am

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 23, 2012 - 2:18 pm

Nice to know it works!

andy-signature.png
YELLOW
SWORDFISH
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