How to move User rating

From Joomla! Documentation
(Difference between revisions)
Jump to: navigation, search
(New page: Only real solution I found is a hack though, namely in file mambots/content/mosvote.php. Change <source lang="php"> $_MAMBOTS->registerFunction( 'onBeforeDisplayContent', 'botVoting' ); <...)
 
m
Line 13: Line 13:
 
[[Category:Tips and tricks]]
 
[[Category:Tips and tricks]]
 
[[Category:Tips and tricks 1.0]]
 
[[Category:Tips and tricks 1.0]]
 +
 +
This is relevant to version 1, however for version 1.5 mambots have become plugins, therefore you should look for the file /plugins/content/vote.php
 +
 +
and change
 +
 +
<source lang="php">
 +
$mainframe->registerEvent( 'onBeforeDisplayContent', 'plgContentVote' );
 +
</source>
 +
to
 +
<source lang="php">
 +
$mainframe->registerEvent( 'onAfterDisplayContent', 'plgContentVote' );
 +
</source>

Revision as of 23:23, 12 January 2011

Only real solution I found is a hack though, namely in file mambots/content/mosvote.php. Change

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

to

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

This is relevant to version 1, however for 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' );
Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox