Announcement

Collapse
No announcement yet.

Setting Default Tab in vBulletin 5.1.2 Alpha

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting Default Tab in vBulletin 5.1.2 Alpha

    I've uploaded vBulletin to my domain. When I navigate to my domain, the FORUMS page loads by default. Since vBulletin has CMS, I would rather the ARTICLES tab to load by default, but I can't figure out how to make that happen.

    In version 4.2.2, I could do this by going into the Admin CP > Settings > Navigation Manager

    In version 5.1.2, the Navigation Manager is not present.

    I have done searches and even watched the youtube video on how to change a default tab, but that was referring to the Latest Activity Module. I have also tried doing this through the Navigation Bar option after enabling the "Edit Site" button in the top right corner.

    How do I set the default tab in the Navigation Bar?

  • #2
    Start by using site builder to rename the forums page to something else. Currently it is just "/", so call it something like "/boards" (don't use "/forum" as that is already in use).
    Then, edit the /articles page and rename that to "/" (like the forums page used to be).

    Then you need to use site builder to update the links in the navbar tabs.
    MARK.B | vBULLETIN SUPPORT

    TalkNewsUK - My vBulletin 5.5.6 Demo
    AdminAmmo - My Cloud Demo

    Comment


    • #3
      For the first step, are you referring to the Navigation Bar button to make those changes? If that's the case, what do you mean by the second step? Because that sounds like the same thing because the navbar is editted through the Navigation Bar option.

      I toggled Edit Site to On.

      I selected Navigation Bar

      I clicked the pencil icon beside Forums and changed the target URL to /boards
      Please note that this is a problem because the URL /boards does not exist.

      I clicked the pencil icon beside Articles and changed it to / then saved my changes.

      I'm still not sure what you mean by "Then you need to use site builder to update the links in the navbar tabs." Isn't that what I just did?

      I saved my changes, but when I click on the Articles tab, the forums load, but the Articles tab is active in the Navigation Bar.

      Click image for larger version

Name:	articles-forum.JPG
Views:	83
Size:	40.5 KB
ID:	4069007



      If I click on the Forum tab, I get an invalid URL message



      Click image for larger version

Name:	forum-invalidurl.JPG
Views:	32
Size:	37.6 KB
ID:	4069008



      Comment


      • #4
        You have your routes wrong....

        In Site Builder under Navigation what are those tabs linking to?

        We also need to see what each URL is set to for each page. The above screen shots provide no helpful information.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API - Full / Mobile
        Vote for your favorite feature requests and the bugs you want to see fixed.

        Comment


        • #5
          I'm aware the routes are wrong. It's the result of the instructions I followed the first time.

          In Site Builder, there is no option for Navigation. There is an option for Navigation Bar, which is what I used to follow the instructions Mark posted.

          Click image for larger version

Name:	articles-tab.JPG
Views:	47
Size:	59.3 KB
ID:	4069111

          Click image for larger version

Name:	forums-tab.JPG
Views:	30
Size:	61.7 KB
ID:	4069112

          These screenshots show the default values. Following Mark's instructions, I changed the values in the Target URL field and renamed the forums page /boards and I renamed the articles page /. The instructions then say to update the links in the navbar tab. Is that the Navigation Bar?

          Comment


          • #6
            What you've done there is the second part of my instructions, which is to edit the nav tabs.

            To do the first part, in site builder, make sure you're on the correct page, and click "Edit Page".
            Save it without changing anything and you will come to the screen that has the page URL.
            In my example below, this is the forum page, so you'll see the "Save the page URL" field is blank. Change this to match whatever you changed the nav tab to.
            Click image for larger version

Name:	Capture.PNG
Views:	27
Size:	8.7 KB
ID:	4069128

            Then, go to your Articles page, and do the same thing, but this time change the URL field FROM articles to being blank.
            MARK.B | vBULLETIN SUPPORT

            TalkNewsUK - My vBulletin 5.5.6 Demo
            AdminAmmo - My Cloud Demo

            Comment


            • sandypuc
              sandypuc commented
              Editing a comment
              At this step for me, I get the following error message when I try to save the page:
              Error Database error in vBulletin 5.1.4: Invalid SQL: INSERT INTO routenew (`name`,`prefix`,`regex`,`class`,`controller`,`action`,`template`,`arguments`,`contentid`, `guid`,`product`) VALUES('home','boards','boards(?:/page(?P[0-9]+))?','vB5_Route_Channel','page','index','','a:4:{s:9:"channelid";i:1;s:6:"nodeid";i:1;s:7 :"pagenum";s:8:"$pagenum";s:6:"pageid";i:254;}',1,'vbulletin-4ecbdacd6a4ad0.58738735','vbulletin') /**routenew**/; MySQL Error : Duplicate entry 'home' for key 'route_name' Error Number : 1062 Request Date : Thursday, December 4th 2014 @ 12:48:02 PM Error Date : Thursday, December 4th 2014 @ 12:48:02 PM Script : http:///forums/ajax/api/page/pageSave Referrer : http://forum.sandypucuniversity.com/forums/ IP Address : 50.183.63.198 Username : admin Classname : vB_Database_MySQLi MySQL Version : 5.5.40-cll

          • #7
            It worked. That last part you posted was the part I was missing. Thanks again for your help!

            Comment


            • #8
              Glad you got it sorted.
              MARK.B | vBULLETIN SUPPORT

              TalkNewsUK - My vBulletin 5.5.6 Demo
              AdminAmmo - My Cloud Demo

              Comment


              • #9
                I have been trying to do this in Version 5.1.3 Release Candidate 1 and keep getting the error exception_trace when I attempt to change the name of the forums any ideas what I am doing wrong please
                Rheena.com For Xbox360 Wii-u PS Vita 3DS iphone ipad Android Devices And More

                Comment


                • #10
                  To change the overall name of the entire forums, you would use the admincp.

                  You would use site builder to change the name of individual pages.

                  Try clearing the system cache under maintenance then attempt the change again.

                  If you are then still having problems, please start your won thread with full details of the issue.
                  MARK.B | vBULLETIN SUPPORT

                  TalkNewsUK - My vBulletin 5.5.6 Demo
                  AdminAmmo - My Cloud Demo

                  Comment


                  • #11
                    Originally posted by Mark.B View Post
                    To change the overall name of the entire forums, you would use the admincp.

                    You would use site builder to change the name of individual pages.

                    Try clearing the system cache under maintenance then attempt the change again.

                    If you are then still having problems, please start your won thread with full details of the issue.
                    Below are the images of the steps I have taken and the error, I have cleared the cache and still receive the same error, if I am doing something wrong then please let me know or if there are any clear instructions on how to do this then please point me to them.


                    Rheena.com For Xbox360 Wii-u PS Vita 3DS iphone ipad Android Devices And More

                    Comment


                    • #12
                      Try this first...if this doesn't fix it we'll need debug mode and probably a support ticket.

                      Run these two queries:

                      TRUNCATE TABLE cache
                      TRUNCATE TABLE cacheevent

                      NOTE: Do NOT truncate ANY other tables, as you will break your site.

                      You can run queries within the vBulletin Admin Control Panel by going to Maintenance -> Execute SQL Queries.

                      To run Queries in the Admin Control Panel you need to edit your /core/includes/config.php file and add your user ID to the Can Run Queries section. It looks like:

                      // ****** USERS WITH QUERY RUNNING PERMISSIONS ******
                      // The users specified here will be allowed to run queries from the control panel.
                      // See the above entries for more information on the format.
                      // Please note that the ability to run queries is quite powerful. You may wish
                      // to remove all user IDs from this list for security reasons.
                      $config['SpecialUsers']['canrunqueries'] = '';

                      Place your user id between the single quotes.
                      MARK.B | vBULLETIN SUPPORT

                      TalkNewsUK - My vBulletin 5.5.6 Demo
                      AdminAmmo - My Cloud Demo

                      Comment


                      • #13
                        Originally posted by Mark.B View Post
                        Try this first...if this doesn't fix it we'll need debug mode and probably a support ticket.

                        Run these two queries:

                        TRUNCATE TABLE cache
                        TRUNCATE TABLE cacheevent

                        NOTE: Do NOT truncate ANY other tables, as you will break your site.

                        You can run queries within the vBulletin Admin Control Panel by going to Maintenance -> Execute SQL Queries.

                        To run Queries in the Admin Control Panel you need to edit your /core/includes/config.php file and add your user ID to the Can Run Queries section. It looks like:

                        // ****** USERS WITH QUERY RUNNING PERMISSIONS ******
                        // The users specified here will be allowed to run queries from the control panel.
                        // See the above entries for more information on the format.
                        // Please note that the ability to run queries is quite powerful. You may wish
                        // to remove all user IDs from this list for security reasons.
                        $config['SpecialUsers']['canrunqueries'] = '';

                        Place your user id between the single quotes.

                        I have done this now but still get the same error after when trying to change the name.

                        If it helps the error email I receive is as follows:

                        Database error in vBulletin 5.1.3 Release Candidate 1:

                        Invalid SQL:
                        INSERT INTO routenew (`name`,`prefix`,`regex`,`class`,`controller`,`action`,`template`,`arguments`,`contentid`, `guid`,`product`)
                        VALUES('home','boards','boards(?:/page(?P<pagenum>[0-9]+))?','vB5_Route_Channel','page','index','','a:4:{s:9:"channelid";i:1;s:6:"nodeid";i:1;s:7 :"pagenum";s:8:"$pagenum";s:6:"pageid";i:156;}',1,'vbulletin-4ecbdacd6a4ad0.58738735','vbulletin')
                        /**routenew**/;

                        MySQL Error : Duplicate entry 'home' for key 'route_name'
                        Error Number : 1062
                        Request Date : Saturday, September 6th 2014 @ 03:18:27 PM
                        Error Date : Saturday, September 6th 2014 @ 03:18:27 PM
                        Script : http:///ajax/api/page/pageSave
                        Referrer : http://www.rheena.com/
                        IP Address : removed
                        Username : Bald Bouncer
                        Classname : vB_Database_MySQL
                        MySQL Version : 5.5.37-cll
                        Rheena.com For Xbox360 Wii-u PS Vita 3DS iphone ipad Android Devices And More

                        Comment


                        • #14
                          We will need a support ticket for this.
                          MARK.B | vBULLETIN SUPPORT

                          TalkNewsUK - My vBulletin 5.5.6 Demo
                          AdminAmmo - My Cloud Demo

                          Comment


                          • #15
                            Originally posted by Mark.B View Post
                            We will need a support ticket for this.
                            Don't you have to pay extra for support tickets after the one month period or have I misread something?
                            Rheena.com For Xbox360 Wii-u PS Vita 3DS iphone ipad Android Devices And More

                            Comment

                            Related Topics

                            Collapse

                            Working...
                            X