Home

OFF-SOFT.net

OFF-SOFT.net

This site is support & information site of WEB,and Software. This site might help you that create software or Web Site…perhaps?[:]

AlphaContent in Ajax Rating System to disable the effect of each article

Published on| April 6th, 2009 | No Comment.
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.

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 ) ) {
Change as follows.
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.

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
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')) {
Change as follows.
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')) {

Comments

Leave a Reply







  • はてなブックマークへ追加する
  • Facebookでシェアする
  • twitter でつぶやく
  • Google Plusでシェアする
  • Pocketでシェアする
ページトップへ