Time Phrases

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Amaury
    Senior Member
    • Mar 2012
    • 1807
    • 4.2.X

    [Answered] Time Phrases

    To start things off, in forums' started by, it's currently like this example below:

    Started by Amaury, Tuesday, 11/15/2011 12:00 AM
    I would like it to be like this:

    Started by Amaury
    Tuesday, 11/15/2011 at 12:00 AM
    I've already tried it by changing the started_by_x_y_z_a phrase.

    However, when I try changing

    Code:
    <span class="label">Started by&nbsp;<a href="{1}" class="username understate" title="Started by {2} on {3} {4}">{2}</a>{5},&nbsp;{3}&nbsp;{4}</span>
    to

    Code:
    <span class="label">Started by&nbsp;<a href="{1}" class="username understate" title="Started by {2} on {3} {4}">{2}</a>{5}<br>&nbsp;{3} at&nbsp;{4}</span></br>
    it gets messed up and looks like this:

    Click image for larger version

Name:	Started By.jpg
Views:	1
Size:	73.2 KB
ID:	3723952

    I don't want the pagination moved down and the date isn't aligned all the way to the left like the Started by.

    Using the same screenshot, what is the phrase for the time in the Last Post By column? I want to replace the comma with at.

    Also, what are the phrases for the time in the following screenshots? Again, I want to replace the comma with at.

    Click image for larger version

Name:	Index Page.jpg
Views:	1
Size:	82.7 KB
ID:	3723950

    Click image for larger version

Name:	Postbit.jpg
Views:	1
Size:	70.6 KB
ID:	3723951
    Former vBulletin user
  • Riasat
    Senior Member
    • Aug 2006
    • 4013

    #2
    Well, to be honest, the threadbit template (that's the name iirc) in there...is a design nightmare. The css/html used in there is extremely poor if you want to modify it in anyway. Last time I tried to change something like you are trying now, I felt like pulling out my hairs.

    So my honest suggestion would be not to change the layout in there or if you do, change the whole layout to some simple html/css.

    Comment

    • Amaury
      Senior Member
      • Mar 2012
      • 1807
      • 4.2.X

      #3
      Originally posted by CvP
      Well, to be honest, the threadbit template (that's the name iirc) in there...is a design nightmare. The css/html used in there is extremely poor if you want to modify it in anyway. Last time I tried to change something like you are trying now, I felt like pulling out my hairs.

      So my honest suggestion would be not to change the layout in there or if you do, change the whole layout to some simple html/css.
      Ah, okay. For the first one, I think I'll just make a small change, then, and replace the comma with a hyphen.

      So it would be Started by [username] - [date] [time], which still looks pretty good, actually.

      Thanks for the response.
      Former vBulletin user

      Comment

      • Riasat
        Senior Member
        • Aug 2006
        • 4013

        #4
        Yeah. You are welcome

        Comment

        • Amaury
          Senior Member
          • Mar 2012
          • 1807
          • 4.2.X

          #5
          I think this would be another simple one like what I said I did above your reply, CvP.

          In circle 1, I want to add a comma after the date (Today / Yesterday / [date]); in circle 2, I want to add a comma after the date, too, but I also want to reduce the spacing between the date and time on the VM headers.

          Which phrase or phrases would that / those be?

          Click image for larger version

Name:	User Profile.jpg
Views:	1
Size:	83.7 KB
ID:	3689493

          Anyone is welcome to respond, of course.
          Former vBulletin user

          Comment

          • Dustin L.
            Senior Member
            • Mar 2011
            • 639
            • 4.2.X

            #6
            Originally posted by Amaury25
            I think this would be another simple one like what I said I did above your reply, CvP.

            In circle 1, I want to add a comma after the date (Today / Yesterday / [date]); in circle 2, I want to add a comma after the date, too, but I also want to reduce the spacing between the date and time on the VM headers.

            Which phrase or phrases would that / those be?

            [ATTACH=CONFIG]60276[/ATTACH]

            Anyone is welcome to respond, of course.
            Not a phrase.

            First, in this template: memberinfo_block_statistics

            Scroll and add comma after:
            Code:
            {vb:raw prepared.lastactivitydate}
            PHP Code:
            <vb:if condition="$prepared['lastactivitydate']">
                <
            dl class="blockrow stats">
                    <
            dt>{vb:rawphrase last_activity}</dt>
                    <
            dd> {vb:raw prepared.lastactivitydate},<vb:if condition="!$show['detailedtime']"> <span class="time">{vb:raw prepared.lastactivitytime}</span></vb:if></dd
            This will add a comma for the Last Activity of the About Me tab.

            For the sidebar:

            This template: memberinfo_block_ministats

            Scroll and add comma after:
            Code:
            {vb:raw prepared.lastactivitydate}
            PHP Code:
            <dl class="stats">
                    <
            dt>{vb:rawphrase last_activity}</dt>
                    <
            dd> {vb:raw prepared.lastactivitydate},<vb:if condition="!$show['detailedtime']"> <span class="time">{vb:raw prepared.lastactivitytime}</span></vb:if></dd>
                </
            dl>
                </
            vb:if> 
            http://quikmsg.net/strtoupper/ - Convert lowercase text and code to all uppercase!
            http://quikmsg.net/strtolower/ - Convert uppercase text and code to all lowercase!

            Comment

            • Amaury
              Senior Member
              • Mar 2012
              • 1807
              • 4.2.X

              #7
              Originally posted by Dustin L.
              Not a phrase.

              First, in this template: memberinfo_block_statistics

              Scroll and add comma after:
              Code:
              {vb:raw prepared.lastactivitydate}
              PHP Code:
              <vb:if condition="$prepared['lastactivitydate']">
                  <
              dl class="blockrow stats">
                      <
              dt>{vb:rawphrase last_activity}</dt>
                      <
              dd> {vb:raw prepared.lastactivitydate},<vb:if condition="!$show['detailedtime']"> <span class="time">{vb:raw prepared.lastactivitytime}</span></vb:if></dd
              This will add a comma for the Last Activity of the About Me tab.

              For the sidebar:

              This template: memberinfo_block_ministats

              Scroll and add comma after:
              Code:
              {vb:raw prepared.lastactivitydate}
              PHP Code:
              <dl class="stats">
                      <
              dt>{vb:rawphrase last_activity}</dt>
                      <
              dd> {vb:raw prepared.lastactivitydate},<vb:if condition="!$show['detailedtime']"> <span class="time">{vb:raw prepared.lastactivitytime}</span></vb:if></dd>
                  </
              dl>
                  </
              vb:if> 
              Thank you, that worked. Unfortunately, I will have to go through every style and apply those individually since there's no way of applying template changes to all styles.

              Anyway, how about the VM headers? I'd like to add a comma there, too, as well as reduce the excess spacing.
              Former vBulletin user

              Comment

              • Dustin L.
                Senior Member
                • Mar 2011
                • 639
                • 4.2.X

                #8
                In: memberinfo_visitormessage

                Add as I have:

                Code:
                </vb:if>
                             - <span class="postdate">{vb:raw message.date} <vb:if condition="!$show['detailedtime']">,<span class="time">{vb:raw message.time}</span> </vb:if></span>
                            </label>
                Stuff like this should be on vB.org, but while we're at it....

                These are at your own risk.
                http://quikmsg.net/strtoupper/ - Convert lowercase text and code to all uppercase!
                http://quikmsg.net/strtolower/ - Convert uppercase text and code to all lowercase!

                Comment

                • Amaury
                  Senior Member
                  • Mar 2012
                  • 1807
                  • 4.2.X

                  #9
                  Originally posted by Dustin L.
                  In: memberinfo_visitormessage

                  Add as I have:

                  Code:
                  </vb:if>
                               - <span class="postdate">{vb:raw message.date} <vb:if condition="!$show['detailedtime']">,<span class="time">{vb:raw message.time}</span> </vb:if></span>
                              </label>
                  Stuff like this should be on vB.org, but while we're at it....

                  These are at your own risk.
                  Hm, that adds a comma, but there's a space between it and the date, plus there's still that excess space.

                  Oh, well. No biggie. Getting the other things to work (About Me and Sidebar) are good enough.

                  Thanks for the help.
                  Former vBulletin user

                  Comment

                  • Matthew Gordon
                    Senior Member
                    • May 2002
                    • 3243
                    • 1.1.x

                    #10
                    Template memberinfo_visitormessage, find:
                    Code:
                    {vb:raw message.date} <vb:if condition="!$show['detailedtime']"><span class="time">{vb:raw message.time}</span>
                    Replace with:
                    Code:
                    {vb:raw message.date}, <vb:if condition="!$show['detailedtime']">{vb:raw message.time}

                    Comment

                    • Amaury
                      Senior Member
                      • Mar 2012
                      • 1807
                      • 4.2.X

                      #11
                      Originally posted by Matthew Gordon
                      Template memberinfo_visitormessage, find:
                      Code:
                      {vb:raw message.date} <vb:if condition="!$show['detailedtime']"><span class="time">{vb:raw message.time}</span>
                      Replace with:
                      Code:
                      {vb:raw message.date}, <vb:if condition="!$show['detailedtime']">{vb:raw message.time}
                      Awesome, that worked.

                      Now, I need to head over to vBulletin.org to see if there's a way to apply template changes to all styles.
                      Former vBulletin user

                      Comment

                      • Ace
                        Senior Member
                        • Apr 2004
                        • 4051
                        • 4.2.X

                        #12
                        Originally posted by Amaury25
                        a way to apply template changes to all styles.
                        Make the change to the Parent Style, and it will cascade down to all [unaltered] templates in child styles.
                        My Live vB5 Site - NZEating.com
                        vBulletin Hosting | vBulletin Services - Need hosting for your vB? Need it installed? Something else? Let me take that hassle off your hands.

                        Comment

                        • Amaury
                          Senior Member
                          • Mar 2012
                          • 1807
                          • 4.2.X

                          #13
                          Originally posted by Ace
                          Make the change to the Parent Style, and it will cascade down to all [unaltered] templates in child styles.
                          Unfortunately, all styles are individual.
                          Former vBulletin user

                          Comment

                          • Ace
                            Senior Member
                            • Apr 2004
                            • 4051
                            • 4.2.X

                            #14
                            memberinfo_visitormessage is totally different and unique per style?
                            My Live vB5 Site - NZEating.com
                            vBulletin Hosting | vBulletin Services - Need hosting for your vB? Need it installed? Something else? Let me take that hassle off your hands.

                            Comment

                            • Amaury
                              Senior Member
                              • Mar 2012
                              • 1807
                              • 4.2.X

                              #15
                              Originally posted by Ace
                              memberinfo_visitormessage is totally different and unique per style?
                              No, I mean that all of our styles are parents. We only have two child styles -- a light version of our default Dance of the Dream Eater style and a fluid width version of our Darkness style.
                              Former vBulletin user

                              Comment

                              Related Topics

                              Collapse

                              Working...