-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.xml
101 lines (94 loc) · 4.1 KB
/
install.xml
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?>
<!--NOTICE: Please open this file in your web browser. If presented with a security warning, you may safely tell it to allow the blocked content.-->
<!--For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD.\nAlthough MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD.\nNo support will be given for MODs not found within the MODs Database which can be found at http://www.phpbb.com/mods/-->
<mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://www.phpbb.com/mods/xml/modx-1.2.6.xsd">
<header>
<meta name="generator" content="MODX file generated with PP MODX Creator by tumba25 (online version)"/>
<license><![CDATA[http://opensource.org/licenses/gpl-license.php GNU General Public License v2]]></license>
<title lang="en"><![CDATA[Parse BBCode in Custom Profile Fields]]></title>
<description lang="en"><![CDATA[This mod parses BBCode in Custom Profile Fields. Works in both ViewTopic and Memberlist.
If you want to see Custom Profile Fields in the default memberlist view, you need to modify your template first.
Example given with subsilver2.
Go to styles\subsilver2\template and edit memberlist_body.html,
then find the area that looks like this
<!-- IF memberrow.S_PROFILE_FIELD1 -->
<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
<td class="gen" align="center"> {memberrow.PROFILE_FIELD1_VALUE}</td>
<!-- ENDIF -->
You need to change FIELD1 to your custom profile field name.
Remember to clear your cache when you're done and now the BBCode should be parsed.]]></description>
<author-group>
<author>
<realname><![CDATA[Trefex]]></realname>
<username><![CDATA[Trefex]]></username>
<homepage><![CDATA[http://www.trefois.com]]></homepage>
<email><![CDATA[trefex@gmail.com]]></email>
</author>
</author-group>
<mod-version>1.0.6</mod-version>
<installation>
<level>easy</level>
<time>300</time>
<target-version>3.0.11</target-version>
</installation>
<history>
<entry>
<date>2008-01-21</date>
<rev-version>0.1.0</rev-version>
<changelog lang="en">
<change><![CDATA[Initial Release]]></change>
<change><![CDATA[Works for viewtopic only]]></change>
</changelog>
</entry>
<entry>
<date>2008-07-05</date>
<rev-version>1.0.0</rev-version>
<changelog lang="en">
<change><![CDATA[Created MODX Install Template]]></change>
</changelog>
</entry>
<entry>
<date>2008-07-23</date>
<rev-version>1.0.3</rev-version>
<changelog lang="en">
<change><![CDATA[Install File was wrong]]></change>
</changelog>
</entry>
<entry>
<date>2010-06-18</date>
<rev-version>1.0.4</rev-version>
<changelog lang="en">
<change><![CDATA[Tested for latest phpBB version]]></change>
</changelog>
</entry>
<entry>
<date>2012-11-08</date>
<rev-version>1.0.5</rev-version>
<changelog lang="en">
<change><![CDATA[Tested for latest phpBB version]]></change>
</changelog>
</entry>
<entry>
<date>2013-05-20</date>
<rev-version>1.0.6</rev-version>
<changelog lang="en">
<change><![CDATA[Simplified Install Script]]></change>
</changelog>
</entry>
</history>
</header>
<action-group>
<open src="includes/functions_profile_fields.php">
<edit>
<find><![CDATA[foreach ($field_data as $user_id => $row)
{]]></find>
<action type="after-add"><![CDATA[$uid = $bitfield = $options = '';
$allowed_bbcode = $allowed_smilies = $allowed_urls = true;
generate_text_for_storage($row['pf_' . $used_ident], $uid, $bitfield, $options, $allowed_bbcode, $allowed_smilies, $allowed_urls);
$row['pf_' . $used_ident] = generate_text_for_display($row['pf_' . $used_ident], $uid, $bitfield, $options);]]></action>
</edit>
</open>
<diy-instructions lang="en"><![CDATA[Clear the cache after finishing installation in the ACP]]></diy-instructions>
</action-group>
</mod>