IP.Board Tutorials

IPB 4 Background Picker For Groups (IPSFocus Skins)

Submitted by babalucas, , Thread ID: 89059

Thread Closed
19-05-2018, 06:46 PM
#1
IPB 4 Background Picker For Groups (IPSFocus Skins)

In some cases, you may want to limit the background picker to certain groups - or restrict it to guests (for example).

This tutorial will show the picker to Groups id's 3,4 and 6 (which are Members, Admins and Moderators by default), and it will be hidden for all other groups (such as Guests). For these groups, the first background image will be shown (ipsfocus_bg1)

Browse to core > global > global > js_backgroundPicker and place this at the very start of the file.

{{if member.inGroup(array(3,4,6)) }}


Then place this at the very end.

{{else}}
<script type='text/javascript'>$("html").addClass('ipsfocus_bg1');</script>
<style>.ipsfocus-toggleBgPicker{ display: none !important; }</style>
{{endif}}

RE: IPB 4 Background Picker For Groups (IPSFocus Skins)

#2
Thanks you, this ips forum is really good! thanks i try to install rigth now!

RE: IPB 4 Background Picker For Groups (IPSFocus Skins)

#3
Thanks you, this ips forum is really good! thanks i try to install rigth now!

RE: IPB 4 Background Picker For Groups (IPSFocus Skins)

#4
This condition can be used to block bots from seeing profile links (if they are private). Good example!

Users browsing this thread: 2 Guest(s)