Pressblog:Upgrade to version 3.0 for Drupal 7

From MtTWiki

Jump to: navigation, search

This document will guide you to upgrade your Drupal 7 Pressblog 2.4.1 installation to Pressblog 3 for Drupal 7.

Contents

Prepare your workbench

  1. Be sure that you are currently running Pressblog 2.4.1 for Drupal 7. If not, please upgrade your installation to Pressblog 2.4.1 for Drupal 7 first.
  2. Create a temporary installation of Drupal 7 PressBlog 3.0 using our installation profile. You will use this as a reference to guide you.

Backup

  1. Backup everything.
  2. Just in case, make sure you backed up everything =) (besides, it's always a good idea).

Update Drupal core

Take a breath and read Drupal's Upgrading from previous versions first. This upgrade will update your Drupal core to the version 7.12. We asume that you are curently using a 7.x version so it's about a "Minor update procedure".

  1. Locate the root folder of your site. This is the Drupal root folder, where the index.php file is located.
  2. Delete all Drupal files and folders except the [sites] folder.
  3. Copy all the Drupal files and folders from your temporary installation except the [sites] folder.
  4. Login to your Drupal installation as administration user, your site should still work usual.
  5. Run the update.php file calling a url like http://www.example.com/update.php or http://www.example.com/test_site/update.php, if your site is located under a subdirectory.

Update extra modules

Pressblog comes with several extra modules required to achieve its functionality. The following process will update them to the latest (by the time these lines are written) version, as marked bellow:

  1. Locate the extra modules folder of your site, usually at [sites/all/modules].
  2. Delete the Views module folder [sites/all/modules/views].
  3. Delete the Chaos tool suite (ctools) module folder [sites/all/modules/ctools].
  4. Copy the Views module folder from your temporary installation [sites/all/modules/views] to the corresponding folder [sites/all/modules].
  5. Copy the Chaos tool suite (ctools) module folder from your temporary installation [sites/all/modules/ctools] to the corresponding folder [sites/all/modules].
  6. Login to your Drupal installation as administration user, your site should still work as usual.
  7. Run the update.php file calling a url like http://www.example.com/update.php or http://www.example.com/test_site/update.php, if your site is located under a subdirectory.

Patch your Pressblog theme files

  1. Locate our theme folder in your temporary installation. Usually at [sites/all/themes/pressblog]
  2. Locate our theme folder in your drupal 7 site. Usually at [sites/all/themes/pressblog]
  3. Replace the following files in your installation, using the corresponding source files from the temporary installation.
    1. comment.tpl.php
    2. page.tpl.php
    3. node.tpl.php
    4. node--blogpost.tpl.php
    5. template.php
    6. theme-settings.php
    7. pressblog.info
    8. style.css
    9. js/SpryAssets/SpryTabbedPanels.css
    10. images/search-submit.png
  4. Add the following folders in your installation, using the corresponding folders from the temporary installation.
    1. css
    2. fonts
    3. font-styles
    4. images/brown
    5. images/gray
    6. images/green
    7. js/yoxview
  5. Add the following files in your installation, using the corresponding files from the temporary installation.
    1. files field--field_image--article.tpl.php
    2. field--field_image--blogpost.tpl.php
    3. pressblog.settings.form.css
    4. style-brown.css
    5. style-gray.css
    6. style-green.css
  6. Add the following images in your installation, using the corresponding images from the temporary installation.
    1. images/backtotop-arrow.png
    2. images/backtotop-arrow-dark.png

Clear all cached data

This step is important in order to force your template to be informed for the changes you have made in the template files.

To do this go to Administer » Site configuration » Performance » Clear cached data

Update Pressblog distribution’s settings

  1. Copy Site name "Pressblog, Premium drupal theme by More than Themes" to Slogan field and change Site name to "Pressblog" through Home » Administration » Configuration » System » Site information.
  2. Disable the Logo or the Site name through Home » Administration » Appearance » Settings.
  3. Move the following view blocks from Content region to Highlighted region through Home » Administration » Structure » Blocks
    1. Promoted blogposts
    2. Latest blogposts
    3. Older articles
  4. Remove the Default front page “node/1” through Home » Administration » Configuration » System » Site information.
  5. Edit/Add the following image styles through Home » Administration » Configuration » Media » Image styles.
    1. Change "large" image style from "Scale and crop 620x354" to "Scale and crop 740x423".
    2. Add new image style with name "small" and effect "Scale and crop 146x85".
    3. Add new image style with name "x-medium" and effect "Scale and crop 460x284".
  6. Update promoted_blogposts view through Home » Structure » Views.
    1. Export the promoted_blogposts view from the temporary installation.
      1. Locate the promoted_blogposts in the temporary installation.
      2. From the drop-down menu in the "OPERATIONS" column select "export".
      3. Copy the content of the "Export" text-area.
    2. Import the new view in your installation.
      1. Select "Import".
      2. Add "promoted_blogposts" in the View name field.
      3. Check the "Replace an existing view if one exists with the same name" check-box.
      4. Paste the code from the exported view in the "Paste view code here" text-area.
      5. Press the "import" button.
  7. Update latest_blogposts view through Home » Structure » Views.
    1. Export the latest_blogposts view from the temporary installation.
      1. Locate the latest_blogposts in the temporary installation.
      2. From the drop-down menu in the "OPERATIONS" column select "export".
      3. Copy the content of the "Export" text-area.
    2. Import the new view in your installation.
      1. Select "Import".
      2. Add "latest_blogposts" in the View name field.
      3. Check the "Replace an existing view if one exists with the same name" check-box.
      4. Paste the code from the exported view in the "Paste view code here" text-area.
      5. Press the "import" button.

Add Superfish module support

  1. Add the following folders in your installation, using the corresponding folders from the temporary installation.
    1. sites/all/modules/superfish
    2. sites/all/modules/libraries
    3. sites/all/libraries
  2. Enable the modules Superfish and Libraries through Drupal’s Modules page Home » Administration » Modules
  3. All Superfish menus use the block system. You will notice Superfish has created 4 blocks which can be viewed at the Blocks configuration page Home » Administration » Structure » Blocks
  4. Configure "Superfish 1" block.
    1. Set the "Block title" to “<none>”
    2. Select from the "Menu Parent" drop-down menu the "<Main Menu>" item.
    3. Select from the "Style" drop-down menu the "None" item.
    4. Deactivate the "Drop shadows" check-box.
    5. In the "Region Settings" fieldset select from the "PressBlog - MoreThanThemes (default theme)" drop-down menu the "Main navigation" item.
  5. Configure "Superfish 2" block.
    1. Set the "Block title" to “<none>”
    2. Select from the "Menu Parent" drop-down menu the "<Secondary Menu>" item.
    3. Select from the "Style" drop-down menu the "None" item.
    4. Deactivate the "Drop shadows" check-box.
    5. In the "Region Settings" fieldset select from the "PressBlog - MoreThanThemes (default theme)" drop-down menu the "Secondary navigation" item.
Personal tools
Namespaces
Variants
Actions
Main Menu
Premium Themes
Toolsets
Freebies
Navigation
Toolbox
This wiki is hosted by morethanthemes.com, creators of top quality premium and free themes for Drupal 6 and 7, as well as HTML and PSD themes.
Find out more
for Drupal 6 & 7