Here are the instructions, to me (evidently) they're as clear as mud!
============================== INSTALLATION ==============================
Change Stars Rating to Like Button
Mod version: 1.0
Dolphin compatibility: 7.0.X
Released: 10/25/2010
Author: micliz
This mod may NOT be redistrubuted under any circumstances by anyone other than micliz or authorized individuales or third parties.
!!!!!! IMPORTANT !!!!!!!
Always backup your files and database before installing any mod.
I do not take responsibility for sites that are already modified and attempt to apply this mod. If your site is modified you must fit these instructions to meet your needs. I am happy to do custom installations.
-------------------------------------------------------------------------------------------
Professional installation is NOT available at this time. Nor is support for this mod. Sorry for the inconvenience.
==========================================================================
==========================================================================
NOTE: You will be editing base template files which means this will work with most new templates unless the new template overrides the affected common.css styles and BxBaseVotingView.php file. If you upgrade to a newer version of Dolphin after installing this mod, this mod may or may not work.
--STEP 1--
Find the file /templates/base/scripts/BxBaseVotingView.php
Rename the file to: BxBaseVotingView.php_before_like
Now upload the included template files to your dolphin root.
--STEP 2--
Edit the file templates/base/css/common.css
Find the rating css code that should look something like this section:
/* * * * Rating * * * */
.boxContent .votes_small {
float:right;
width:40%;
}
.votes_big, .votes_small {
}
.votes_big {
margin-left: auto;
margin-right: auto;
margin-top: 10px;
margin-bottom: 10px;
width: 200px;
}
.votes_gray_big, .votes_gray_small {
position:relative; /*need for 470*/
float:left;
}
.votes_gray_big {
height:16px;
background-image:url(../images/vote_star_gray_32.png)
}
.votes_gray_small {
height:15px;
background-image:url(../images/vote_star_gray_16.png)
}
.votes_active_big, .votes_active_small {
position:absolute;
top:0;
left:0;
z-index:1;
}
.votes_active_big {
height:16px;
background-image:url(../images/vote_star_active_32.png);
}
.votes_active_small {
height:15px;
background-image:url(../images/vote_star_active_16.png);
}
.votes_buttons {
position:absolute;
top:0;
left:0;
z-index:2;
}
.votes_button_big, .votes_button_small {
margin:0;
padding:0;
border:none;
}
.votes_button_big {
width:18px;
height:16px;
}
.votes_button_small {
width:11px;
height:15px;
}
.votes_big b, .votes_small b {
color:#333333;
font-weight:bold;
display:block;
float:left;
}
.votes_big b {
font-size:12px;
line-height:18px;
margin-left:10px;
}
.votes_small b {
font-size:13px;
line-height:11px;
margin-left:6px;
}
.actionsBlock .votes_small {
float:left;
width:90px;
}
/* * * * * * * */
Replace the entire section with:
/* * * * Rating * * * */
.boxContent .votes_small {
float:right;
width:40%;
}
.votes_big, .votes_small {
}
.votes_big {
margin-left: auto;
margin-right: auto;
margin-top: 10px;
margin-bottom: 10px;
width: 200px;
}
.votes_gray_big, .votes_gray_small {
position:relative; /*need for 470*/
float:left;
}
.votes_gray_big {
background-color:#E4F4EA;
background-repeat:no-repeat;
border:1px solid #82D1A6;
height:26px;
padding:0 4px;
margin-bottom: 10px;
}
div.votes_gray_big:hover {
border:1px solid #49AA75;
cursor: pointer;
}
div.votes_gray_big a, div.votes_gray_big a:hover, div.votes_gray_big a:link {
color:#009245;
text-decoration: none;
}
.votes_gray_small {
height:15px;
background-image:url(../images/vote_star_gray_16.png)
display:none;
}
.votes_active_big, .votes_active_small {
position:absolute;
top:0;
left:0;
z-index:1;
}
.votes_active_big {
height:16px;
/*background-image:url(../images/vote_star_active_32.png); */
}
.votes_active_small {
height:15px;
background-image:url(../images/vote_star_active_16.png);
display:none;
}
.votes_buttons {
height: 26px;
top:0;
left:0;
z-index:2;
background-image:url(../images/icons/like.png);
background-repeat: no-repeat;
background-position: left 3px;
}
.votes_button_big, .votes_button_small {
margin:0;
padding:0;
border:none;
}
.votes_button_big {
width:18px;
height:21px;
padding-right: 2px;
}
.votes_button_small {
width:11px;
height:15px;
}
.votes_big b, .votes_small b {
color:#333333;
font-weight:bold;
display:block;
float:left;
}
.votes_big b {
font-size:12px;
line-height:18px;
margin-left:10px;
}
.votes_small b {
font-size:13px;
line-height:11px;
margin-left:6px;
}
.actionsBlock .votes_small {
float:left;
width:90px;
}
.sys_file_search_header {
height: 15px !important;
}
.like_count {
padding-top: 4px;
float:left;
font-weight: bold;
color: #009245;
}
.votes_big b, .votes_small b {
color: #009245 !important;
}
.picRate .like_count {
padding-top: 8px;
}
.picRate .votes_buttons {
display: none;
}
/* * * * * * * */
--STEP 3--
Now go to your administration panel, advanced settings > languages settings
Add the following keys
_Like
String = Like
_Likes
String = Likes
--STEP 4--
Now clear your caches from your admin panel index page
--STEP 5.1-- (Optional)
Votes (Now "Likes") are allowed one per week per IP address by default. If you'd like to change this timeframe you can do so in the following file:
inc/classes/BxDolVoting.php
Find:
define( 'BX_PERIOD_PER_VOTE', 7 * 86400 );
Example, to change to one vote per day put:
define( 'BX_PERIOD_PER_VOTE', 1 * 86400 );
__STEP 5.2--
To make the above change take effect you must delete the following cache file:
Note: this file may be named differently so just delete the file containing "vote" in your cache folder.
/cache/sys_objects_vote.inc
--DONE!!!--
For questions please contact me at micahlisonbee@gmail.com, or under micliz on Boonex.
Enjoy!
----------------
Professional installation is NOT available at this time. Nor is support for this mod. Sorry for the inconvenience.