$thread.isBlur() template conditional
Anywhere $thread is available in templates you can use the "isBlur" conditional to determine if the thread is blurred or not. Example below:
Code:
<xf:if is="$thread && $thread.isBlur()">
<div class="wutime-forcereg-blur">Thread is blurred</div>
<xf:else />
<div>Thread is not blurred</div>
</xf:if>
How do I switch from "Guest Mode" to "User Mode" and continue to keep content blurred for Guests?
I you're using "Guest Mode" mode, the only change you need to make to mimic "Guest Mode" under "User Mode" is:
- Switch to "User Mode" in Content Blur Pro options
- Note, by default, all user permissions default to showing all content "unblurred"
- Therefore, for "Unregistered/Unconfirmed" we need to change the above setting to blur the content...
- Visit "User Group Permissions"
- admin.php?permissions/user-groups/
- Select "Unregistered / Unconfirmed" (Guests)
- admin.php?permissions/user-groups/unregistered-unconfirmed.1/
- Change the permission set for this user group to "No"
- View stickies unblurred (set to No)
- View thread content unblurred (set to No)
The above will set Guests to see all content blurred for regular forum content and stickies.
Note, once you have content blurred for Guests using the settings above you can more granularly set "unblurred" content for specific forums using "Node Permissions"
Why should guest page caching be disabled?
Guest page caching limits the ability of XenForo to change content for different types of visits for a period of time. There's a few reasons why this doesn't play well with Content Blur Pro, here's one example:
With guest page caching the page is saved for a period of time and XenForo CANNOT make any changes to the content of that page for a period of time.
During that time, let's say the page is cached, blurred, and obfuscated. Now Google visits, and it indexes your blurred + obfuscated page. This would be bad for your organic search results.
If you're only using the "users" system, and not blurring content for guests, then please inquire how to disable this limitation, as using "Guest page caching" works just fine in the aforementioned scenario.
I altered the phrase [wutime_forcereg_blur_please_register_message] and my HTML is showing as plain-text, why?
This phrase is directly injected into posts, therefore you must use BB CODE instead of HTML.
This only applies to "Guest" mode, using "Users Mode" allows direct template modifying and regular HTML.