IP.Board Tutorials

IPB 4 Background Picker For Groups (IPSFocus Skins)

Submitted by babalucas, , Thread ID: 89059

Thread Closed
babalucas
Lurker
Level:
0
Reputation:
0
Posts:
3
Likes:
0
Credits:
3
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)

lucario27
Closed Account
Level:
0
Reputation:
0
Posts:
5
Likes:
0
Credits:
4
30-05-2019, 11:51 AM
#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)

Kekkers
Newbie
Level:
1
Reputation:
0
Posts:
15
Likes:
0
Credits:
11
21-10-2021, 01:42 PM
#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)

tupdate
Lurker
Level:
0
Reputation:
0
Posts:
5
Likes:
0
Credits:
5
26-10-2021, 03:05 AM
#4
This condition can be used to block bots from seeing profile links (if they are private). Good example!

Users browsing this thread: 1 Guest(s)