AlphaContent in Ajax Rating System to disable the effect of each article
Published on| April 6th, 2009 | No Comment.
Categories:Extension |
AlphaContent extensions that, Yahoo is well-known extensions can control, such as directories.
This extension, Ajax Rating System is being built, so you can see by the article, tried to hide and think.
Download:
http://www.alphaplug.com/
STEP.1 Ajax Rating System to enable the components
AlphaContent settings (component - AlphaContent) in right, | Use Ajax Rating System: | ● Yes |
And.

Continues, AlphaContent do plug-in.
(Plug-in - AlphaContent)

AlphaContent following information to set the screen settings.
| Valid: | ● Yes |
| Enable plug-ins: | ● Yes |
And.

STEP.2 existing Rating System to disable the
Rating plug-in settings (plug-in - Rating), 
| Valid: | ● No |
And.

So far, and setting, each article appears as a star, can be evaluated.

However, even with a set of evaluation for each individual article, AlphaContent the Ajax Rating System, it is always displayed.
Setting the disabled STEP.3 per article
AlphaContent the Ajax Rating System can not display the disabled per article.
To achieve it will require some source code changes.
There are many different ways, here is the article (or menu item) is a parameter (votes review items), using it to set up disabled.

/plugins/content/alphacontent.php of 83 lines per second
1 | if ( $dparams-->get('activeglobalsystemrating') || $pluginParams-->get( 'enabled', 0 ) ) { |
1 | if ( ($dparams-->get('activeglobalsystemrating') || $pluginParams-->get( 'enabled', 0 )) && $params-->get( 'show_vote' ) ) { |
Now, when you see an article, story (or menu item) is the parameter of the (voting item evaluation) could be realized by switching disabled.
Average item menu item / items in the article parameters and evaluation parameters to vote, or a priority?
Answer)
Priority:
Menu item <the article, go to the parameters of the article.
Answer)
Priority:
Menu item <the article, go to the parameters of the article.
AlphaContent, to display a list of articles and a variety of situations.
Just steps above, only the disabled and in view of the article on the list are the parameters of the overall priority setting, in the same category or section, is one of the output will not be like the stars .
To enable the disabled list by the article as well,
/components/com_alphacontent/views/alphacontent/tmpl/default.php to 450 lines per second
Change as follows.
Just steps above, only the disabled and in view of the article on the list are the parameters of the overall priority setting, in the same category or section, is one of the output will not be like the stars .
To enable the disabled list by the article as well,
/components/com_alphacontent/views/alphacontent/tmpl/default.php to 450 lines per second
1 2 3 4 5 | // get Author $author = ( $params-->get('list_showauthor') ) ? $listing[$i]-->author : ''; // get Ajax rating bar for AlphaContent if ( $params-->get('showsystemrating') && $params-->get('activeglobalsystemrating') && $params-->get('systemrating')) { |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | // get Author $author = ( $params-->get('list_showauthor') ) ? $listing[$i]-->author : ''; $show_vote_def = $params-->get('showsystemrating'); $show_vote = $show_vote_def; if(isset($listing[$i]-->attribs)){ $aparams = new JParameter( $listing[$i]-->attribs ); $show_vote = $aparams-->get('show_vote'); if(!isset($show_vote) || $show_vote==''){ $show_vote=$show_vote_def; } } // get Ajax rating bar for AlphaContent // if ( $params-->get('showsystemrating') && $params-->get('activeglobalsystemrating') && $params-->get('systemrating')) { if ( $show_vote && $params-->get('activeglobalsystemrating') && $params-->get('systemrating')) { |
You might also like:
Trackback URL
After Admin approves this comment, it will be shown.
Comments
Leave a Reply
