Welcome to vbmods.rocks! Get FREE and paid vBulletin mods, plugins, addons, API extensions, custom modules, custom BB Codes, vBCloud mods, CORE hacks, JS hacks, custom coding by Glenn, an ex-vBulletin Developer. You must register before you can post, download the files or copy the code from the free plugins.
How to show only content slider to unregistered users instead of main forum in vB5 !
I want to make my forum private. But want to view only Content slider to unregistered users. so that they can know the latest topics. but can not view full site without login/register.
Log into the AdminCP.
Go to Styles and Themes, Style Manager, Edit Template.
Scroll down to the bottom and expand Module Templates.
Locate widget_contentslider and edit it.
Add as the first line
Code:
<vb:if condition="is_member_of($[B]user, 0[/B])">
Add as the last line
Code:
</vb:if>
Save edits.
Using the site builder, add the Content Slider module where you want it.
ONLY unregistered users will be able to see it now.
The user, 0 value tells the module to appear only if the person is a member of User Group 0, which is unregistered users.
Note that if you are attempting to use multiple Content Slider modules, this edit will affect them all.
Also, if your user groups are different, you may need to use a different number. Check your user groups ID to be certain.
Note that by default, Content Slider module only shows featured topics. If you want to show latest topics, you have to modify the search JSON criteria.
Btw, using Content Slider module to show latest topics for guests is not a good choice in my opinion as it would be hard to keep up with continuously sliding content. Why not use a Search module?
Comment