Members: 182  ?  Posts: 8752  ?  Topics: 744  ?  Please welcome -SyN-, our newest member.
Please login or register.

Login with username, password and session length
 

News:

Welcome To Graphics Mayhem

collapse

Author Topic: Help with Themes, etc.  (Read 349 times)

0 Members and 1 Guest are viewing this topic.

Shortie

  • Administrator
  • Expert
  • Offline
  • Posts: 2556
  • The Ultimate Boss
  • OS:
  • Windows 7/Server 2008 R2
  • Browser:
  • Firefox 3.5.1
Re: Help with Themes, etc.
« Reply #15 on: July 30, 2009, 03:14:48 AM »
    Spot on Matey - cool

    I can see what is coming next :D:D

    I will put something together later - But I can see that having both set of Prev / Next will be next  ;);)

    Shortie
    Thank You, "Guest" For Reading My Post.

    SoLoGHoST

    • SoLoGHoSt
    • Connoisseur
    • Offline
    • Posts: 1709
    • SMF MOD Expert!
    • OS:
    • Windows Vista/Server 2008
    • Browser:
    • MS Internet Explorer 8.0
    Re: Help with Themes, etc.
    « Reply #16 on: July 30, 2009, 03:45:15 AM »
      Just occurred to me that there is 1 other edit in Display.template.php (this is the footer, as the << Prev Next >> Links get displayed twice, once at the top and again at the bottom.  Didn't catch the 1 at the bottom until just now...

      ./Themes/default/Display.template.php

      FIND (@ around LINE #523)
      Code: [Select]
      ', $context['previous_next'], '

      REPLACE WITH:
      Code: [Select]
      ', $context['prev_topic_page'], $context['next_topic_page'], '

      And if you don't want to show the << Prev and/or Next >> text when there isn't a Previous Page and/or Next Page to go to:

      For the Previous Code I posted for ./Sources/Display.php

      REPLACE ENTIRE CODE WITH:
      Code: [Select]

      if (empty($context['start']))
      $context['prev_topic_page'] = '';
      else
      $context['prev_topic_page'] = '<< Previous';

      if ($context['total_visible_posts'] <= ($context['start'] + $context['messages_per_page']))
      $context['next_topic_page'] = '';
      else
      $context['next_topic_page'] = ' Next >>';


      Well, that takes care of that for sure.
      « Last Edit: July 30, 2009, 03:48:23 AM by SoLoGHoST »

      plusev

      • Proficient
      • Offline
      • Posts: 116
      • OS:
      • Windows XP
      • Browser:
      • MS Internet Explorer 7.0
      Re: Help with Themes, etc.
      « Reply #17 on: July 30, 2009, 12:37:48 PM »
        I couldn't find
        ', $context['previous_next'], '


        Also, now the right side prev/next is rotating the topic post pages but the left side prev/next is still rotating the topics themselves.

        It would probably be helpful to have prev topic/next topic text links on the right side to eliminate confusion. The left side is self explanatory.

        Thx

        SoLoGHoST

        • SoLoGHoSt
        • Connoisseur
        • Offline
        • Posts: 1709
        • SMF MOD Expert!
        • OS:
        • Windows Vista/Server 2008
        • Browser:
        • MS Internet Explorer 8.0
        Re: Help with Themes, etc.
        « Reply #18 on: July 30, 2009, 01:07:18 PM »
          Just do a search for $context['previous_next'] instead and you will find where it needs to be changed.  As all of these variable definitions will need to be changed

          FROM
          Code: [Select]
          $context['previous_next']
          TO
          Code: [Select]
          $context['prev_topic_page'], $context['next_topic_page']

          Be sure to add
          Code: [Select]
          class="smalltext" in the DIV TAG that is calling the variable.

          If you want, you can zip up your Display.template.php file and upload it in here, so I can take a look at it and do the edits for you?
          « Last Edit: July 30, 2009, 01:12:27 PM by SoLoGHoST »

          plusev

          • Proficient
          • Offline
          • Posts: 116
          • OS:
          • Windows XP
          • Browser:
          • MS Internet Explorer 7.0
          Re: Help with Themes, etc.
          « Reply #19 on: July 30, 2009, 02:59:58 PM »
            I think I got everything except a bit unclear about "class="smalltext"".

            +EV

            Shortie

            • Administrator
            • Expert
            • Offline
            • Posts: 2556
            • The Ultimate Boss
            • OS:
            • Windows 7/Server 2008 R2
            • Browser:
            • Firefox 3.5.1
            Re: Help with Themes, etc.
            « Reply #20 on: July 30, 2009, 03:26:57 PM »
              Class="smalltext" is a css tag which can be called from any where it just means that the txt size is consistent across the site

              Shortie
              Thank You, "Guest" For Reading My Post.

              SoLoGHoST

              • SoLoGHoSt
              • Connoisseur
              • Offline
              • Posts: 1709
              • SMF MOD Expert!
              • OS:
              • Windows Vista/Server 2008
              • Browser:
              • MS Internet Explorer 8.0
              Re: Help with Themes, etc.
              « Reply #21 on: July 30, 2009, 03:29:16 PM »
                Here you go.  All fine now as I believe you want the << Previous Next >> link on the left next to the page 1 [2] 3... etc.

                Let me know if you still want the << Previous Next >> links that go to the next topic on the right.  Since I removed that code, but can put it back in for the top right.
                « Last Edit: July 31, 2009, 07:19:52 PM by SoLoGHoST »

                plusev

                • Proficient
                • Offline
                • Posts: 116
                • OS:
                • Windows XP
                • Browser:
                • MS Internet Explorer 7.0
                Re: Help with Themes, etc.
                « Reply #22 on: July 30, 2009, 03:33:55 PM »
                  If you can put back the prev/next for the topics on the bottom (probably more important than the top) and top and maybe make the text read Previous topic / Next topic - that would be perfection. Thx

                  SoLoGHoST

                  • SoLoGHoSt
                  • Connoisseur
                  • Offline
                  • Posts: 1709
                  • SMF MOD Expert!
                  • OS:
                  • Windows Vista/Server 2008
                  • Browser:
                  • MS Internet Explorer 8.0
                  Re: Help with Themes, etc.
                  « Reply #23 on: July 30, 2009, 03:50:48 PM »
                    Previous Topic and Next Topic text will need to be done in Display.php found in your Sources directory.  So you'll want to upload this file also.

                    SoLoGHoST

                    • SoLoGHoSt
                    • Connoisseur
                    • Offline
                    • Posts: 1709
                    • SMF MOD Expert!
                    • OS:
                    • Windows Vista/Server 2008
                    • Browser:
                    • MS Internet Explorer 8.0
                    Re: Help with Themes, etc.
                    « Reply #24 on: July 30, 2009, 03:58:56 PM »
                      Here is the Display.template.php file ==> [ATTACHMENT DELETED]

                      Put it on the top and the bottom.  If you upload your Display.php file in your Sources directory I'll change this too.

                      If you ask me, I think it would be better to have images for going to the Previous/Next Topic page intead of the text.  For example an Arrow Image.  And the Prev arrow image should be just before the "1" in Pages: 1, and the next arrow image should be after the last page #, like this: 

                      Pages: << 1 [2] 3 4 >>

                      But in order to make it look like this will need to have your Display.php file and may need other files also, but not sure on this yet.  So if this is what you want, let me know, k?

                      Solomon
                      « Last Edit: July 31, 2009, 07:20:28 PM by SoLoGHoST »

                      plusev

                      • Proficient
                      • Offline
                      • Posts: 116
                      • OS:
                      • Windows XP
                      • Browser:
                      • MS Internet Explorer 7.0
                      Re: Help with Themes, etc.
                      « Reply #25 on: July 30, 2009, 04:17:39 PM »
                        I agree. Having images denoting prev/next would be the cleanest. The right side prev topic/next topic might be ok to make sure users know it relates to topics with a different functionality than the left side <<>>. Make sense? Suggestions? Basically this mod will duplicate functionality found stock in most other forums except for smf. +EV

                        Shortie

                        • Administrator
                        • Expert
                        • Offline
                        • Posts: 2556
                        • The Ultimate Boss
                        • OS:
                        • Windows 7/Server 2008 R2
                        • Browser:
                        • Firefox 3.5.1
                        Re: Help with Themes, etc.
                        « Reply #26 on: July 30, 2009, 04:34:03 PM »
                          Seeing as I am doing small stuff

                          Shortie


                          Prev Next
                          Thank You, "Guest" For Reading My Post.

                          SoLoGHoST

                          • SoLoGHoSt
                          • Connoisseur
                          • Offline
                          • Posts: 1709
                          • SMF MOD Expert!
                          • OS:
                          • Windows Vista/Server 2008
                          • Browser:
                          • MS Internet Explorer 8.0
                          Re: Help with Themes, etc.
                          « Reply #27 on: July 30, 2009, 10:05:57 PM »
                            Ok, here ya go plusev, replace both Display.php and Display.template.php files and you're all set to go.  Didn't use your images Shortie as they were too big, just created 2 9x8 pixel images which fit better IMO.

                            Anyways, your free to change the image to whatever you want plusev.

                             files4plusev.zip

                            Going to make a MOD Package and add it to the downloads section here right now.  Very simple edit, but very useful IMO :)
                            « Last Edit: July 30, 2009, 10:17:48 PM by SoLoGHoST »

                            plusev

                            • Proficient
                            • Offline
                            • Posts: 116
                            • OS:
                            • Windows XP
                            • Browser:
                            • MS Internet Explorer 7.0
                            Re: Help with Themes, etc.
                            « Reply #28 on: July 31, 2009, 02:31:32 PM »
                              I downloaded the files and uploaded. Everything reverted back to how it was before we even started. I'm also getting this error:

                              Version Information:
                              Forum version: SMF 2.0 RC1.2
                              Current SMF version: SMF 1.1.10
                              (more detailed)

                              SoLoGHoST

                              • SoLoGHoSt
                              • Connoisseur
                              • Offline
                              • Posts: 1709
                              • SMF MOD Expert!
                              • OS:
                              • Windows Vista/Server 2008
                              • Browser:
                              • MS Internet Explorer 8.0
                              Re: Help with Themes, etc.
                              « Reply #29 on: July 31, 2009, 02:39:03 PM »
                                Are you running SMF 2.0 RC1.2 or RC1-1??

                                Or are you running SMF 1.1.10 on your server??
                                 


                                Search


                                Latest Activity.
                                September's Logo Challenge "Up Top" (2009)... by live627
                                [Today at 07:58:43 PM]


                                Shortie's General wallpapers by NerdBoy
                                [Today at 06:44:34 PM]


                                Graphics Mayhem Wallpaper Collection September 2009 by Shortie
                                [Today at 05:14:55 PM]


                                GM Wall by NerdBoy
                                [Today at 04:04:12 PM]


                                GM Dock Images by NerdBoy
                                [Today at 04:01:03 PM]


                                SoLoSMiLeYS by SoLoGHoST
                                [Today at 03:41:21 PM]


                                Some Blue and Black Icons by Shortie
                                [Today at 03:18:17 PM]


                                Purple - To - Black Icons by Shortie
                                [Today at 01:58:46 PM]


                                Some #400040 Dock Icons blending to Black by Shortie
                                [Today at 10:29:06 AM]


                                Some Red and Black Dock icons by NerdBoy
                                [Today at 07:50:34 AM]


                                Some Green and Black Icons to share by Shortie
                                [Today at 07:45:02 AM]


                                Pixel Perfect For SMF 2.x RC1.2 by Shortie
                                [Yesterday at 06:04:33 PM]


                                Loop through posts from any given Board at a Set Interval by SoLoGHoST
                                [Yesterday at 10:30:26 AM]


                                A Genie by MJCSD
                                [September 09, 2009, 11:31:35 PM]


                                Want to start a topic here? by SoLoGHoST
                                [September 09, 2009, 10:49:57 PM]



                                Page created in 0.121 seconds with 24 queries.