J1.5

Difference between revisions of "How to move User rating"

From Joomla! Documentation

(Add in missing close code tag)
(remove and newer)
Line 3: Line 3:
 
The only real solution for moving the user rating is a hack.
 
The only real solution for moving the user rating is a hack.
  
== Joomla! 1.5 {{JVer|1.5}} and newer ==
+
== Joomla! 1.5 {{JVer|1.5}} ==
  
 
In version 1.5 mambots have become plugins, therefore you should look for the file <code>/plugins/content/vote.php</code> and change  
 
In version 1.5 mambots have become plugins, therefore you should look for the file <code>/plugins/content/vote.php</code> and change  

Revision as of 07:33, 27 May 2013

The "J1.5" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Stop hand nuvola.svg.png
Warning!

This is a core hack. Files you change as described on this page will be overwritten during updates of Joomla!. For more information, see Core hack.

The only real solution for moving the user rating is a hack.

Joomla! 1.5 Joomla 1.5[edit]

In version 1.5 mambots have become plugins, therefore you should look for the file /plugins/content/vote.php and change

$mainframe->registerEvent( 'onBeforeDisplayContent', 'plgContentVote' );

to

$mainframe->registerEvent( 'onAfterDisplayContent', 'plgContentVote' );

Joomla! 1.0 Joomla 1.0[edit]

You must hack a mambot, namely in file mambots/content/mosvote.php. Change

$_MAMBOTS->registerFunction( 'onBeforeDisplayContent', 'botVoting' );

to

$_MAMBOTS->registerFunction( 'onAfterDisplayContent', 'botVoting' );