Rated tactics for Logged on Users

From version 1.0.68 of WordPressChess, tactics for logged on users is available. This features makes it possible for you to show tactic puzzles to your logged on users. ELO is also calculated based on how they do it on these puzzles. You can see an example of this in use below.

To use this features, you must first enable user registrations in your WordPress admin(Settings->General).

Here’s an example of the shortcode for the rated tactics:

[chess tactics="1" tpl="2" db="26,27" width="60%" float="left" css="padding-right:8px"]

The import properties are tactics, db and tpl

tactics should be set to 1 and tpl should be set to 2.

The db attribute contains references to the imported chess databases. If you want to show games from more than 1 database, you separate each database id with a comma as in the example above.

When multiple databases are used, WordPressChess will first show games from the first database. Once all those games has been completed(solved or failed), it will show games from the second database and so on.

Not-logged on users

By default, not logged on users will see a clickable box on the board which will redirect them to the login page. After successful login, they will be directed back to the tactics board. If you do not want this feature, you can use the attribute

fallback_tpl="1"

to show the other for not logged on users. This tactics board(tpl=1) does not require a login.

Custom styling

The stylings used in this template is something you can override in your WordPress css (Appearance->Customise).

Here are the css classes used for this tactic template:

Image shown to not logged on users

.wpc-login-image{
background-image: url(../images/login-300x300.png);
}
Clock icon

.wpc-clock{
background:url(../images/clock-icon.png) left center no-repeat;
}
Colors for positive or negative rating change

.wpc-positve-elo{
color:#388E3C;
}

.wpc-negative-elo{
color:#D32F2F;
}

Buttons for next game and reload current game


.wpc-image-button{
background-color:#CCC;
}
.wpc-image-button-over{
background-color: #BBB;
}

Changing the image is not yet supported, but will be implemented soon.

Color of failed and solved box above the board

.wpc-tactics-solved{
background-color:#388E3C;
}

.wpc-tactics-failed{
background-color:#D32F2F;
}

Large start button

.wpc-start-button-large{
background-image:url(../images/btn-play-large.png);
}
Clock


.wpc-clock {
float: right;
padding-left: 35px;
padding-right: 4px;
background: url(../images/clock-icon.png) left center no-repeat;
}
.wpc-clock-digits {
padding-top:2px;
font-family: digital-7, arial, sans-serif;
}

Note: The digital-7 font is a font which comes with WordPressChess PRO. WordPressChess.com has purchased a commercial license for this font.

Please feel free to comment using the form below.

Share This:

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *