vB5 How To: Create a custom home page

Collapse
X
Collapse
  •  

  • vB5 How To: Create a custom home page

    This Tutorial is out of date and no longer valid.

    Many vBulletin sites have historically used some sort of portal, or even the vB4 CMS, as their default "landing" page if you visit the root URL....www.mysite.com, with no /forum etc.

    Currently in vB5 there is no CMS, and there is no portal addon such as vBAdvanced.

    So what do you do?

    Well, you could simply rewrite the root URL so it points to /forum, or wherever your forum actually is.

    That's fine, but why not utilise the great new Site Builder feature in vBulletin 5 Connect, to create a custom home page and have people landing there?

    Here's how to do this.

    Firstly, make sure you are logged in as an Admin - so you can access Site Builder.

    Then, switch Site Builder ON using the switch at the very top right of the screen.



    Now click "New Page" in the Site Builder Menu at the top.



    You may need to enter your Admin Password to go any further:



    Now, we should see the screen below.
    We need to start off by making sure that any Announcements we add to the forum, will display on our new page.
    So let's drag the Announcement module into the top block on the new page (you can see the blocks outlined in dotted lines).



    Having done this, we can now add something into the main block on the page.
    Let's keep things straightforward for now and put an Activity Stream in there.
    Drag the Activity Stream module into the main block, as below.



    You can now configure your Activity Stream in the normal way by clicking on the Pencil icon.



    Now to complete our page, let's insert a Who's Online block over on the right hand side.



    We're almost done!
    Now, let's save our page.
    Click "Save New Page" at the top.



    In the "Save Page" box that appears, fill in the following fields:
    Save the page name: Home Page
    (This will be the name of the page that will display as its title)

    Save the page URL based on the page name: home
    (This will be the URL that you will use to access the page)

    Template Option: home
    (This will be the name of the template used to render the page)

    Then click the green "OK" button.



    You should now be able to test your new page by going to www.yoursite.com/forum/home

    Now that we've created the page, we need to make the root domain redirect to this page, and to do this we needto edit the.htaccess file in the root folder for your site.

    It is important to make sure you EDIT the existing .htaccess file, rather than creating a new one, otherwise you will break some of vB5's core functionality and your site will not work!

    The following code is based on your forum being in the folder structure www.yoursite.com/forum and your new homepage is at www.yoursite.com/forum/home. If you have different settings, please amend
    this code accordingly. If you're not sure how, post in the vB5 support forum for assistance.
    NOTE: Take a copy of your existing .htaccess file FIRST so you can restore it if anything goes wrong!

    Add this code underneath whatever is already in your .htaccess file.
    You will also need to replace www.yoursite.com and yoursite with your site's root url.

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^yoursite\.com$
    RewriteRule (.*) http://www.yoursite.com/$1 [R=301,L]
    RewriteRule ^$ forum/home [L]
    Once you have saved and uploaded your edited .htaccess file, try visiting your root URL (www.yoursite.com) and you should be redirected to your new home page!

    If you are happy with your page, you might want to add a tab for it into your navbar.
    Click HERE for instructions.
    Last edited by Wayne Luke; Wed 5 Feb '20, 7:59pm.

    • Phillip Morrow
      #7
      Phillip Morrow commented
      Editing a comment
      I would like to know how to access the .htaccess files

    • may
      #8
      may commented
      Editing a comment
      Phillip, in your ftp-browser switch on viewing hidden files.

      Mark, the template has been set but I don't see any possibility to insert content. Neither on the new page directly nor about phrases or templates. What should be the right way?

    • may
      #9
      may commented
      Editing a comment
      I've got it! Created a new template and a new phrase. Both together let the sun shine on new page.
    Posting comments is disabled.

About the Author

Collapse

Mark.B Find out more about Mark.B

Article Tags

Collapse

administration (1) beginner (3) calendar (1) cloud (1) Custom (1) database (2) Google (1) how-to (2) howto (1) how to (1) https (1) Intermediate (4) MYSQL (2) performance (2) recovery tools (1) security (2) seo (1) server information (1) sftp (1) ssl (1) style (1) tls (1) tutorial (4) vb5howto (5) vbcloud (1)

Latest Articles

Collapse

  • Changing your site's favicon
    by Wayne Luke
    The favicon allows you to extend your brand identity to the browser tab. This can often be the only thing a user sees if they have many tabs open. The favicon is a special 16 X 16 icon that the browser automatically looks for in the root directory of your site. vBulletin also ships with one in its root directory. If vBulletin is installed in the root directory of your site, you can overwrite the provided icon to change it for your users. However, you will need to remember to do this with every version...
    Tue 21 Nov '23, 10:39am
  • About .htaccess
    by Wayne Luke
    .htaccess is a configuration file for the Apache Web Server. It allows you to customize how your server works. Depending on how your hosting provider has the server configured, you can redirect people to different locations, secure directories and files, tell browsers how long to cache files, update PHP variables, and more. vBulletin comes with a pretty extensive .htaccess file that does a these things for you. Location vBulletin comes with a file named htaccess.txt in the original download. When ...
    Mon 11 Sep '23, 11:57am
  • Answered Topics
    by Mark.B
    In vBulletin 5.6.5, we added a new feature - Answered Topics.

    Topics can now be marked as "Answered." This is a special status applied to a specific post within the topic. The post that is marked as the Answer will be highlighted and show directly under the starting post in the topic.

    The ability to mark posts as the Answer in a topic is controlled by permissions. There are three different permissions to control this.
    Usergroup and Channel Permissions both...
    Sun 8 Jan '23, 11:43am
  • Custom Node Fields
    by Mark.B


    In 5.7.2, we have added a new feature - Custom Node fields.

    This new feature allows Administrators to define text and text area fields that are assigned to channels (eg forums).
    When a user creates a new topic, defined custom node fields will be available.
    1. The Administrator will create Field Categories in the AdminCP. Each category is assigned to one or more channels.
    2. Within each category, the Administrator can create one or more fields that will get assigned
    ...
    Thu 29 Dec '22, 2:19am
  • Using User Ranks
    by Wayne Luke

    User ranks allow the administrator to set up image and HTML rewards for their users once they reach specific goals. In versions before vBulletin Connect 5.7.1, ranks could only be triggered by the number of posts and the usergroups assigned to the user. In vBulletin Connect 5.7.1, User Ranks have been expanded to allow more flexibility in creating individual ranks. Now you can build combinations of different criteria to create unique ranks for your site.

    ​ Ranks can be created using th...
    Tue 25 Oct '22, 12:04pm
  • Excluding Custom Files from Suspect File Diagnostic
    by Wayne Luke
    If you have custom files, you can create an md5 sums for your smilie directory if you want. Inside the /do_not_upload folder of your download package is a checksum sub-folder. That will create custom md5_sums files.
    1. Copy the included sample_checksum_config.php file to smilies_config.php.
    2. Enter in your forum root.
    3. Give it a product id like 'smilies'.
    4. Delete the existing directories and files in the scanpaths.
    5. Add in '/core/images/smilies', under the directories comment.
    6. Run the command
    ...
    Mon 24 Aug '20, 8:48am
Working...