Announcement

Collapse
No announcement yet.

Default Home Page

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

  • [CMS] Default Home Page

    This is probably somewhere in the forums and its probably blatant as hell, but I couldn't find it. How do I make my CMS as the default page vs. the forums?

    Thanks,
    Last edited by ldove; Mon 28 Jun '10, 4:00pm.
    -Lyle

  • #2
    By default, the CMS is the default homepage located at your root domain. You have to change a file to make forum.php be the homepage.

    Comment


    • #3
      Originally posted by ldove View Post
      This is probably somewhere in the forums and its probably blatant as hell, but I couldn't find it. How do I make my CMS as the default page vs. the forums?

      Thanks,

      -Lyle
      See the comments in your index.php file.
      ...steven
      www.318ti.org (vB3.8) | www.nccbmwcca.org (vB4.2)
      bmwcca.org/forum | m135i.net
      "I tried to clean this up but this thread is beyond redemption." - Steve Machol

      Comment


      • #4
        Hmm.. appears that content.php is commented out already as it states to do. However, it still defaults to the forum as the homepage. Also, when you click the logo, it defaults to forum as well.
        Code:
        /**
         * You can choose the default script here.  Uncomment the appropriate line
         * to set the default script.  Note: Only uncomment one of these, you must
         * add // to comment out the script(s) that you DO NOT want to use as your
         * default script.
         *
         * You can choose the default script even if you do not plan to move this
         * file to the root of your website.
         */
        
        /**
         * Use the CMS as the default script:
         */
        
        require('content.php');
        
        
        /**
         * Use the forum as the default script:
         */
        
        // require('forum.php');
        -Lyle

        Comment


        • #5
          htaccess file?
          vbSEO?
          Redirects?

          In your admin section. . .
          CMS url set properly?
          Forum url set properly?

          How about a URL?
          ...steven
          www.318ti.org (vB3.8) | www.nccbmwcca.org (vB4.2)
          bmwcca.org/forum | m135i.net
          "I tried to clean this up but this thread is beyond redemption." - Steve Machol

          Comment


          • #6
            no .htaccess file.
            vbSEO?
            no redirects.

            Everything is default except for the logo I replaced in stylevars.

            http://dev.lacoastlineumpires.org/vb

            I did put something into the CMS URL field, it was blank, now the default URL above, goes to the CMS default. Great! Now, I'm trying to find out where to change the logo URL to point to it as well without having to manually change the template, or is there an option for that?
            -Lyle

            Comment


            • #7
              Originally posted by ldove View Post
              Now, I'm trying to find out where to change the logo URL to point to it as well without having to manually change the template, or is there an option for that?
              I think it's always going to point to the forum unless you edit the template.
              You would think that the logo would point to the CMS if you where in the CMS section or the forum if you were in the forum.
              ...steven
              www.318ti.org (vB3.8) | www.nccbmwcca.org (vB4.2)
              bmwcca.org/forum | m135i.net
              "I tried to clean this up but this thread is beyond redemption." - Steve Machol

              Comment


              • #8
                Originally posted by ldove View Post
                Hmm.. appears that content.php is commented out already as it states to do.
                Not from what you are showing above. You stated it is all default. You need to be as specific as possible with your questions. For example, some people think that clicking on the logo should take them to the homepage, not the forum.php page, so that is a change within another template, etc. Specifics.

                Again, if you edited anything in the index.php from what it is default (as you have copied above), you will break it, as content.php is set to default. Commented lines have // in front of them or areas are commented by enclosing within /* ... */

                As you will notice, content.php has no such commenting around it, hence it is live.

                Comment


                • #9
                  Originally posted by anthonyparsons View Post
                  Not from what you are showing above. You stated it is all default. You need to be as specific as possible with your questions. For example, some people think that clicking on the logo should take them to the homepage, not the forum.php page, so that is a change within another template, etc. Specifics.

                  Again, if you edited anything in the index.php from what it is default (as you have copied above), you will break it, as content.php is set to default. Commented lines have // in front of them or areas are commented by enclosing within /* ... */

                  As you will notice, content.php has no such commenting around it, hence it is live.
                  I don't think you read the code correctly then, because that is the default as it was installed. 'content.php' is not commented out, ie-default. The only issue I'm looking to see now, since that was resolved about going to the homepage, is if a variable is the URL link for the logo by a stylevar or something, or is it a manual change in the template?
                  -Lyle

                  Comment


                  • #10
                    Hi Lyle,

                    content.php IS NOT supposed to be commented out. If it is commented out, then it means it WON'T work. If you wanted to make forum.php the default homepage, it would read like this:

                    // content.php

                    forum.php

                    See how the // is now placed in front of content.php and // removed from forum.php? That would change the CMS from being the homepage to the forum being the new homepage, ie. http://www.yourdomain.com would take you to forum.php instead of the default factory set, content.php.

                    To change the logo path you edit the header template, which is called into all the master templates. The line you're looking for is:

                    HTML Code:
                    <div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div>

                    Comment


                    • #11
                      Originally posted by anthonyparsons View Post
                      Hi Lyle,

                      content.php IS NOT supposed to be commented out. If it is commented out, then it means it WON'T work. If you wanted to make forum.php the default homepage, it would read like this:

                      // content.php

                      forum.php

                      See how the // is now placed in front of content.php and // removed from forum.php? That would change the CMS from being the homepage to the forum being the new homepage, ie. http://www.yourdomain.com would take you to forum.php instead of the default factory set, content.php.

                      To change the logo path you edit the header template, which is called into all the master templates. The line you're looking for is:

                      HTML Code:
                      <div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div>
                      content.php, as I stated previously, is *NOT* commented out as it was shown in my initial code that I included, and is working fine as shown below.

                      Code:
                      /**
                       * You can choose the default script here.  Uncomment the appropriate line
                       * to set the default script.  Note: Only uncomment one of these, you must
                       * add // to comment out the script(s) that you DO NOT want to use as your
                       * default script.
                       *
                       * You can choose the default script even if you do not plan to move this
                       * file to the root of your website.
                       */
                      
                      /**
                       * Use the CMS as the default script:
                       */
                      
                      require('content.php');
                      
                      
                      /**
                       * Use the forum as the default script:
                       */
                      
                      // require('forum.php');
                      That never changed from day one when I installed it, so I think we beat that dead horse enough.

                      The logo link is where i was looking to change merely a stylevar or variable somewhere vs. actually modifying the template. I was aware of where to make the change, I just wanted to do it via the application vs. modifying files.

                      Thanks for the help...
                      -Lyle

                      Comment


                      • #12
                        You can change the image from the image stylevar, yes. Sorry, my mistake on reading the above with content.php... long day and tired eyes.

                        Comment


                        • #13
                          Originally posted by anthonyparsons View Post
                          You can change the image from the image stylevar, yes. Sorry, my mistake on reading the above with content.php... long day and tired eyes.
                          I got the picture changed, I want to change the URL it points to.
                          -Lyle

                          Comment


                          • #14
                            I could be wrong but I think you have to change a template to do it. The way I do it is to edit the header template like so;

                            Find: <a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image">

                            Replace: <a name="top" href="http://www.yoursite.com" class="logo-image"
                            .

                            Comment


                            • #15
                              Originally posted by zappaDPJ View Post
                              I could be wrong but I think you have to change a template to do it. The way I do it is to edit the header template like so;

                              Find: <a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image">

                              Replace: <a name="top" href="http://www.yoursite.com" class="logo-image"
                              Yea.. that's what I was hoping to avoid.
                              -Lyle

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...
                              X