Q. How to style duotone font-awesome icons?
A. Duotone support primary/secondary colors which allows font-awesome icons to look at such;
Add css classes to the "css icon" field and ensure the emoji/text and image url are empty;
Each reaction has it's own unique class based on the reaction id observable in the url. This allows per-reaction styling, which should be added to extra.less or included into extra.less from a custom template, (ie rating_colors.less).
Q. How do I make the default ratings bigger?
A. The default ratings using the XenForo Emoji One smilie sheet, which consists of 22 pixels by 22 pixel images. XenForo ships with 44x 44 pixel images, but each is as a separate image.
Set the Image replacement URL and 2 x Image replacement URL entries to the following, and disable "Sprite mode "
Q. How to use the Post Rating Importer
A. The sets for using the importer are:
Before upgrading XenForo 1, leave Post Rating installed
Upgrade to XenForo 2
Install this add-on
Navigate to Tools -> Import data
Select Post Ratings from the list
Select the type of data to import
Rating type categories (ie negative/positive/neutral)
Rating Types (note; Some may be imported with on title, recommend manually fixing up)
Enter an a table name in the "importer log table name" field, this is required.
Importing will start, this will slowly import & rebuild ratings as posts are processed.
See the next question for legacy data.
Q. After importing from Post Rating legacy data is left, how can this be removed
A. To remove the tables:
drop table if exists dark_postrating;
drop table if exists dark_postrating_count;
drop table if exists dark_postrating_post_cache;
drop table if exists dark_postrating_ratings;
drop table if exists <importer log table name>;
('<importer log table name>' is whatever table name you chose in the previous step)
Warning: The stock rating icons under /styles/dark/ratings are re-used and not copied or moved elsewhere. Deleting these will break your imported ratings!
Q. How can the ratings be left-aligned on the rating bar but the menu be right aligned?
A. Use the "Left-align current ratings in the rating bar" style property
Q. The Reactions Given page can be very slow
A. Add the index:
alter table xf_reaction_content add index reaction_user_id_reaction_date (`reaction_user_id`,`reaction_date`);