Joomla 2.5 Tutorial – How to Move Article Rating Voting to Bottom of Article

by Elaine on April 5, 2012

Joomla 2.5 Tutorial – This tutorial will show you how to move the Article User Rating Voting to appear at the bottom of the article instead of at the top right after the title.  This was created in response to Zahid who asked me how to do this in a previous post.

Article User Rating Voting at the Top BEFORE the code change:

cmsmind joomla 2 5 move vote below article 1 Joomla 2.5 Tutorial   How to Move Article Rating Voting to Bottom of Article

Joomla 2.5 - Article Voting Appears At the Top Under The Title

Article User Rating Voting at Bottom AFTER code change:

cmsmind joomla 2 5 move vote below article 2 Joomla 2.5 Tutorial   How to Move Article Rating Voting to Bottom of Article

Joomla 2.5 - Article User Rating Voting Appears at the bottom of Article After Code Change

Sorry there is no easy way to accomplish this and you will have to access your backend files via FTP manager or SSH access.  High level overview of what you need to change:

  • Access your backend files via FTP Manager or SSH
  • Change Directory to vote plugin folder
  • Edit the vote plugin php file
  • Make code change to move article voting to bottom of article

Steps:

1.  Access your backend files via FTP Manager or SSH

  • Access your Joomla 2.5 website backend files, you can use Filezilla FTP Manager or SSH.
  • If you don’t know your username/password for FTP, you can contact your web hosting for more information.

2.  Change Directory to Vote Plugin Folder

  • Access your voting plugin files which are located in your plugin folder
  • Change Directory to:

../plugins/content/vote

3.  Edit the vote plugin php file

  • Edit the file:

vote.php

4.   Make code change to move article voting to bottom of article

Here you will make some code changes to the vote.php file.  If you are using SSH, easiest is to use PICO. But FTP manager of course you can use notepad.

cmsmind joomla 2 5 move vote below article 3 Joomla 2.5 Tutorial   How to Move Article Rating Voting to Bottom of Article

Joomla 2.5 - Code to move user rating voting to bottom of article

  • Search for the following code:

public function onContentBeforeDisplay($context, &$row, &$params, $page=0)

  • Replace this code with:

// commented by Elaine CmsMind.com Apr 5, 2012 To Move Voting to Below Article
//public function onContentBeforeDisplay($context, &$row, &$params, $page=0)
public function onContentAfterDisplay($context, &$row, &$params, $page=0)

  • Save the file

After you upload the file back to your fileserver or save the file in unix, you can refresh you site.  You will see the voting now at the bottom of the article instead of at the top under the article title.

Hope that helps,

Elaine

 Joomla 2.5 Tutorial   How to Move Article Rating Voting to Bottom of Article

Elaine

Elaine is the founder of CmsMind, an online blog providing Joomla and Wordpress tutorials. Elaine lives in Toronto and when she is not online, she is either Marathon and Triathlon training or travelling and racing somewhere in the world. Find her also at: Save Money, Premium Themes and Templates, and at Webhosting Tips.

More Posts - Website

{ 4 comments… read them below or add one }

Martin May 26, 2012 at 5:48 pm

Thanks Elaine I was looking for this. Worked like a charm. Now, how do I move the Hits to the bottom 🙂

Reply

Elaine May 27, 2012 at 5:50 pm

Hi Martin,
I will try to find a solution for you.
Thanks for your visit,
elaine

Reply

Conna Lee November 2, 2012 at 10:15 am

hi i dont suppose anyone as figured out how to do this yet have they? thanks in advance

Reply

muriel February 28, 2014 at 12:38 pm

Fine ! it work ! but now I have both plugins ‘page-navigation’ and ‘rating’ at the same place ! Changing order of plugins does nothing ! How can I change it ?

Reply

Leave a Comment

Captcha Captcha Reload

Older Post:

Newer Post: