-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmod_cblistmodule.xml
More file actions
162 lines (154 loc) · 6.04 KB
/
Copy pathmod_cblistmodule.xml
File metadata and controls
162 lines (154 loc) · 6.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="3.6.0" client="site" method="upgrade">
<name>Community Builder list module</name>
<author>Tazzios (original Magnus Hasselquist https://github.com/magnushasselquist/hqcblistmodule) </author>
<authorUrl>https://github.com/Tazzios</authorUrl>
<version>3.6.0</version>
<creationDate>September 2026</creationDate>
<license>GNU General Public License version 2 or later</license>
<description>Displaying Users from a selected CB List in a Module.</description>
<files>
<filename>mod_cblistmodule.xml</filename>
<filename module="mod_cblistmodule">mod_cblistmodule.php</filename>
<filename>index.html</filename>
<filename>helper.php</filename>
<filename>cblisthelper.php</filename>
</files>
<config>
<fields name="params">
<fieldset name="basic">
<field
name="listid"
type="sql"
default=""
label="SELECT the CB List to be presented in the module"
key_field="listid"
value_field="title"
query="SELECT listid, title FROM #__comprofiler_lists where published=1" />
<field
name="user-limit"
filter="integer"
default="10"
label="Number of users to show" />
<field
name="orderby"
type="sql"
default="list default"
label="Order by field"
key_field="id"
value_field="title"
query="SELECT 0 AS sort, 'list_default' AS id, 'List default' AS title UNION SELECT 1 AS sort, name AS id, name AS title FROM #__comprofiler_fields WHERE published=1 and tablecolumns <> '' ORDER BY sort,title ASC" />
<field
name="sortorder" type="list"
default="list"
label="Sort order"
>
<option value="list_default">List default</option>
<option value="asc">Ascending </option>
<option value="desc">Descending</option>
<option value="random">Random</option>
</field>
<field
name="text-above"
type="editor"
label="Text to be included ABOVE the user list."
buttons="false"
filter="raw" />
<field
name="columns" type="list"
default="0"
label="Number of columns"
>
<option value="0">Responsive auto-fit</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</field>
<field
name="Minwidth"
type="text" default="5"
label="Minimum width column (rem)"
filter="integer"
description=""/>
<field
name="template"
type="editor"
label="Template for displaying each user. Use [cb_fieldname] syntax to include fields."
buttons="false"
default="<div class="yourclasstostyle">[show_avatar]</div><div class="yourclasstostyle">[Linked_name]</div>"
filter="raw" />
<field
name="rules"
type="subform"
default='{"rules0":{"tag_name":"avatar","htmlcode":"[avatar]","htmlcode_no":"components\/com_comprofiler\/plugin\/templates\/default\/images\/avatar\/tnnophoto_n.png"},"rules1":{"tag_name":"show_avatar","htmlcode":"<a href=\"cb-profile\/[user_id]\"><img src=\"[avatar]\" alt=\"[name]\" title=\"[name]\" width=\"80\" height=\"80\" \/><\/a>","htmlcode_no":"Not used with a custom tag name"},"rules2":{"tag_name":"canvas","htmlcode":"<img src=\"[canvas]\" width=\"100\" height=\"60\" \/>","htmlcode_no":"There is no canvas image"},"rules3":{"tag_name":"Linked_name","htmlcode":"<a href=\"cb-profile\/[user_id]\">[name]<\/a>","htmlcode_no":"Not used with a custom tag name"}}'
label="Rules"
description="Here you can create a rule for each tag"
multiple="true"
min="0"
max="10"
>
<form>
<field
name="tag_name"
default=""
type="text"
label="tag name"
description=""
/>
<field
name="accesslevel" type="accesslevel"
label="accesslevel"
description="Select the accesslevel which can see this field"
default="1"
multiple="true"
/>
<field
name="htmlcode"
type="textarea"
default=""
label="html code to replace tag with"
filter="raw"
description="Insert here your html code to show when data is available. You can use tags like [name]."
cols="20"
rows="4"
/>
<field
name="htmlcode_no"
type="textarea"
default=""
label="html code to replace tag with when there is no data available"
filter="raw"
description="Insert here your html code to place when no data is available"
cols="20"
rows="4"
/>
</form>
</field>
<field
name="text-below"
type="editor"
label="Text to be included UNDER the user list"
buttons="false"
filter="raw" />
<field
name="debug" type="radio"
default="0"
label="Turn on DEBUG output to help find errors in list filter (make sure to turn off in production)."
>
<option value="0">OFF</option>
<option value="1">ON</option>
</field>
</fieldset>
</fields>
</config>
<updateservers>
<server type="extension" priority="2" name="Community Builder list module">https://raw.githubusercontent.com/tazzios/cblistmodule/master/updates.xml</server>
</updateservers>
</extension>