Support Forum

Display actual time for posts in all views

CF Conrad_Farlow
Conrad_Farlow
Member

I know that we had a discussion about this and that there was a fully customisable function to change how post times are displayed but I can’t for the life of me find the thread.

Can someone help with this, I have been writing stuff down this time as I get things looking just how I want them.

15 Answers

New Answer

CF Conrad_Farlow
Conrad_Farlow
Member

Found the thread at last:

/support-forum/sp5-general-topics/post-time-display/page-8/

YS Yellow Swordfish
Yellow Swordfish
Member

So I’ll assume you are good unless we hear more…

CF Conrad_Farlow
Conrad_Farlow
Member

Well actually how do I alter the fact that each line of the time appears to be centre justified, and I’d prefer left justified?

I think that because I have so much text displayed that it would look better left justified. Also on V4.5.1 there is a link arrow to the last post in a forum but no topic title, how would I go about removing the title, left justifying the whole text in that column and just having a link arrow after the time on the bottom line?

Should I start another thread pertaining to column formatting and include the time formatting in that? I’m sure that others would like to know and it might make it easier for them to find?

MP Mr Papa
Mr Papa
Member

the themes we provide center justify… you control that from your theme… find the group view template file and change center to left…

CF Conrad_Farlow
Conrad_Farlow
Member

Hi Steve so how would I add this to the following code excerpt? I know that there is a function spLeft but not sure of the correct syntax.

    # Column 4 of the forum row
                        # ----------------------------------------------------------------------
                        sp_ColumnStart('tagClass=spColumnSection spRight&width=32%&height=55px');
                            sp_ForumIndexLastPost('tagClass=spInRowPostLink&nicedate=0&date=1&time=1&stackdate=1',__sp('Last Post'));
                        sp_ColumnEnd();

Conrad

CF Conrad_Farlow
Conrad_Farlow
Member

I also realised that the content for column 4  that I wanted in Group view was available in forum view so I managed to figure that out.

MP Mr Papa
Mr Papa
Member

eh, sorry… looks like I am wrong…  that is controlled in the sp theme css…  so you need to edit the styling for

#spMainContainer .spInRowPostLink

in the theme css file… currently its text-align: center…  change it to left…

CF Conrad_Farlow
Conrad_Farlow
Member

Great Steve done it and I think that it looks much better but how would I make column 3 more central and column 4 further to the right in the spGroupForumSections? They both appear to be aligned right at the moment and column 3 is not quite in the middle and the gap between the content of columns 3 and 4 could do with being greater.

I am beginning to really appreciate the power of the whole V5.0 forum concept now.

Conrad

MP Mr Papa
Mr Papa
Member

good to hear on the themes… we are really looking forward to seeing what our users can come up with!  and user contributed themes…

if you want to ship the columns around, play with the spColumnSection widths for each of the columns… just adjust the widths to what you want…

CF Conrad_Farlow
Conrad_Farlow
Member

Once I realised the the total allocated widths were percentages, even though it clearly says ‘width=xx%’ it was easy. I read the height declaration was in px and just stopped reading.

Sometimes my stupidity amazes even me, and I’m used to it! embarassed

YS Yellow Swordfish
Yellow Swordfish
Member

Actually it has been really great to see you start to plunge in and make all these custom alterations. I know from my own learning curve that it can be daunting but once you make a start it gets easier and, of course, most rewarding.
I am looking forward to seeing the final, polished result.

CF Conrad_Farlow
Conrad_Farlow
Member

More bother with this left justified stuff. The problem now is that the spArrowRight.png link hyperlink arrows are declared as spRight which of course puts them very close to the left margin of the next column.

Have a look at http://g0ruz.com/ABF_Test/forum/test-forum/ to see what I mean.

Would the best way to sort this out to be right padding? Can I do it in the spForumView.php file?

BR Brandon
Brandon
Member

By the looks of it you should add a padding right.

You are using modified Default theme right?
Look in it for

#spMainContainer .spInRowLabel a.spInRowLastPostLink img {
    padding-bottom: 30px;

 

add

 padding-right: 20px;

That should make the arrow approximately centered.

CF Conrad_Farlow
Conrad_Farlow
Member

Beautiful Brandon thank you very much as usual.

Yes it is a modified default theme.

Conrad