Support Forum

Subscribe and Watch plugins formatting error only in Chrome

33 Answers

New Answer

CF Conrad_Farlow
Conrad_Farlow
Member

Just one question look at the output using the list class from a search, in my spListView I have the following code:

sp_ListTopicName('tagClass=spListTopicRowName spLeft&truncate=60', __sp('Browse the thread %NAME%'));

When I do a search I get.

 

Which looks fine and the long topic title is truncated, yet when I run the watch or subscribed plugin I get this.

 

 

 

Any ideas why that might be?

MP Mr Papa
Mr Papa
Member

currently, they dont use the same template file… because while they use the same list view class, they do slightly different thing… the subs and watches currently come with their own template file which you would want to mke the same change…

but I wouldnt get too excited or react quite yet… the commits last night were a test and we are discussing the current status… it has not been released into the wild yet, so things may or may not change… we will either use different template files (like now) or need to make more modifications to the list view class to use the same one…

bottom line, work in progress…

CF Conrad_Farlow
Conrad_Farlow
Member

OK but where can I add the truncate command? As far as I’m concerned the appearance would be spot on for me with that. I like tinkering, if you do change well so what? I’ve been on this journey a while…..

MP Mr Papa
Mr Papa
Member

copy the spSubscriptionsView.php template file in the subscriptions plugin to your sp theme template file directory and edit…  same for the spWatchesView.php template in the watches plugin…

CF Conrad_Farlow
Conrad_Farlow
Member

Perfect thanks.

I don’t see why you shouldn’t just continue with things as they are, being able to copy the files into the theme templates works for me.

MP Mr Papa
Mr Papa
Member

Andy and I are not in agreement on this yet. I like it this way – more flexible, but he likes it to use the same template file as unread posts and search…

plusses and minuses both ways… so will decide soon…

CF Conrad_Farlow
Conrad_Farlow
Member

It’s nice that you can disagree so frequently and still remain such good friends wink

MP Mr Papa
Mr Papa
Member

so frequently? lol…

but he won this time wink

and I have committed all the changes to use the same template file…

CF Conrad_Farlow
Conrad_Farlow
Member

Well I actually read the bug tracker occasionally so I know wink. So if I svn up the themes I should be able to see the changes there in spList.php and alter mine accordingly?

CF Conrad_Farlow
Conrad_Farlow
Member

Forget that, did the svn up for everything and of course the plugins now use the theme spList.php which is formatted correctly and now so are the plugins.

Seems to work perfectly here.

MP Mr Papa
Mr Papa
Member

part of the change did modify the spListView.php template file… so you might want to grab those changes or you might be missing the unsubscribe/stop watching buttons…

CF Conrad_Farlow
Conrad_Farlow
Member

Ah yes glaringly obvious now you say – fixed!

MP Mr Papa
Mr Papa
Member

cool. let us know if you come across any issues…

CF Conrad_Farlow
Conrad_Farlow
Member

 

 

Take a look at the screenshot – I’d rather always have the unsubscribe or stop watching button at the extreme right, how do I achieve that?

MP Mr Papa
Mr Papa
Member

afraid since we are using a common template file, I cannot force that in the plugin…  you need to modify your template file…

in your spListview.php template file, switch the order of:

sp_ListNewPostButton and sp_ListViewBodyEnd template tag calls…

just be advised if any other plugin (and there are none today) attempt to hook into the list view body stuff, it may not get in right spot (body end wont be end of the body)…