I tried to install the Off-Topic BBC Tag 1.1.2 by (Ha)2 on a Simple Machines Forum (SMF) version 2.0 RC5 forum. The installation process reported errors for its testing, however.
Type | Action | Description |
---|---|---|
Execute Modification | ./Themes/default/languages/Modifications.english.php | Test successful |
Execute Modification | ./Themes/default/languages/Modifications.swedish.php | Skipping file |
Execute Modification | ./Sources/Subs.php | Test failed |
Execute Modification | ./Sources/Subs-Editor.php | Test failed |
Execute Modification | ./Themes/default/style.css | File not found |
Extract tree | ./Themes/default/images |
At Re: Off-Topic BBC Tag, I found a poster, JD82, had posted an update to the mod for 2.0 RC3. When I used the mod, when I clicked on Install Mod, I no longer saw any of the errors that I had seen above. However, I did see errors under Install in Other Themes for other themes that were available on the forum.
Type | Action | Description |
---|---|---|
Execute Modification | ./Themes/default/languages/Modifications.english.php | Test successful |
Execute Modification | ./Themes/default/languages/Modifications.swedish.php | Skipping file |
Execute Modification | ./Themes/default/languages/Modifications.italian-utf8.php | Skipping file |
Execute Modification | ./Sources/Subs.php | Test successful |
Execute Modification | ./Sources/Subs-Editor.php | Test successful |
Execute Modification | ./Themes/default/css/index.css | Test successful |
Extract tree | ./Themes/default/images |
For each theme, I saw two "Test failed" entries for the file ./Themes/core/css/index.css
.
Examing package-info.xml
within
Off-topic_BBC_Tag_RC3.tar.gz
, I saw the following:
<install for="2.0 RC3 - 2.99.99.99">
<modification>off-topic_2_0_curve.xml</modification>
<require-dir name="images" destination="$themedir" />
<readme type="file" parsebbc="true">readme.txt</readme>
</install>
That showed me that for SMF 2.0 RC3 or later 2.x versions, the
installation process would use off-topic_2_0_curve.xml
.
Checking the code it was looking for by examing the
off-topic_2_0_curve.xml
file within the
Off-topic_BBC_Tag_RC3.tar.gz
, I saw the following:
<file name="$themedir/css/index.css">
<operation>
<search position="before"><![CDATA[/* The "Quote:" and "Code:" header parts... */
.codeheader, .quoteheader
{
color: #666;
font-size: x-small;
font-weight: bold;
padding: 0 0.3em;
}]]></search>
<add><![CDATA[/* The "Off-topic:" header part... */
.off-topicheader
{
color: #696969;
text-decoration: none;
font-style: normal;
font-weight: bold;
font-size: xx-small;
line-height: 1.1em;
}]]></add>
</operation>
<operation>
<search position="before"><![CDATA[/* A quote, perhaps from another post. */
blockquote.bbc_standard_quote, blockquote.bbc_alternate_quote
{
font-size: x-small;
color: #000;
line-height: 1.4em;
background: url(../images/theme/quote.png) 0.1em 0.1em no-repeat;
border-top: 2px solid #99A;
border-bottom: 2px solid #99A;
padding: 1.1em 1.4em;
margin: 0.1em 0 0.3em 0;
overflow: auto;
}]]></search>
<add><![CDATA[/* Silly users may go off-topic */
.off-topic
{
color: #444444;
background-color: #dadde2;
border: 1px dotted #696969;
margin: 2px;
padding: 2px;