
Plugins T2 templates system support many different types of templates used for all kinds of rendering. Each template can use other templates, and can have several elements. Elements use HTML/CSS and number of special tags. For each template type plugin inserts into database one or more default or extended templates you can use directly or use to create your own.
Template editor show for each element supported tags from the full list of allowed tags. Also, you can create as many different templates for each of the types as you want.
- Element Word Votes: this template has two elements, one for singluar and other plural of the word vote. No tags can be used for this type of templates. This type replaces tag %WORD_VOTES%.
- Element For Alternating Table Rows: also two elements, one CSS class for odd and the other even row of a table. This type replaces tag %TABLE_ROW_CLASS%.
- Standard Ratings Text: this is the text added in standard rating block with info about votes and ratings. This type has 3 different elements. Normal is used for regular situation, and the other two for time restricted ratings. Many of tags for this template tag can be used, but not every one for all 3 elements. This type replaces tag %RATING_TEXT%.
- Comments Ratings Text: this is used for standard comments rating block with info about votes and rating. This type replaces tag %CMM_RATING_TEXT%.
- Multi Ratings Text: similar to standard rating text, only this is used for multi ratings block. This type replaces tag %MUR_RATING_TEXT%.
- Standard RSS Rating Block: Complete rating block rendered for posts in RSS feeds. Right now uses only standard post/page ratings.
- Standard Ratings Block: used to render standard ratings block. Block can use CSS classes set on the settings tab for posts and pages.
- Comments Ratings Block: used to render coments ratings block. Block can use CSS classes set on the settings tab for comments.
- Widget Star Rating: this template is used to render star rating widget. Template has 3 elements, for header and footer part and item element for each of the rows rendered by the widget.
- Widget Blog Rating: used to render top blog rating widget. Only one element is used.
- Widget Comments Rating: similar to star rating widget but used to render comments rating widget. Also, has 3 rendering elements.
These templates are used for now. Article will be expanded as new templates are added.
loading...





Comment Link
I edited the T2 templates and set the one I created as my default, but the change is not taking effect. I’m trying to remove the text under the stars so I deleted the fields in %RATING_TEXT%… any idea why its not working?
loading...
Comment Link
Once you create new template you must use it. For instance:
Standard Rating Block [SRB] uses Standard Ratings Text [SRT]. So if you make new SRT template, you need to make also another SRB that will use newely created SRT. And finaly, you need to select new SRB as rating block for posts on post tab on settings panel. Or if you use custom functions, use template id of the newly created SRB.
loading...