Log in

View Full Version : creating MODS


jmellors
05-23-2008, 07:25 PM
when i open a .xml file in a text editor i get this source

'<?xml version="1.0" encoding="ISO-8859-1" ?>
- <product productid="seperate-forumcats" active="1">
<title>Seperate Forum Categories</title>
<description>This mod adds a space between each forum category</description>
<version>1.0.1</version>
<url>https://vborg.vbsupport.ru/showthread.php?t=123713</url>
+ <versioncheckurl>
- <![CDATA[ https://vborg.vbsupport.ru/misc.php?do=checkversion&t=123713
]]>
</versioncheckurl>
<dependencies />
- <codes>
- <code version="1.0.0">
<installcode />
<uninstallcode />
</code>
</codes>
- <templates>
- <template name="forumhome_seperate_forumcats" templatetype="template" date="1153277020" username="Jelle" version="3.6.0">
- <![CDATA[
</table>
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>

]]>
</template>
</templates>
- <plugins>
- <plugin active="1" executionorder="5">
<title>Seperate ForumCats: Cache template</title>
<hookname>cache_templates</hookname>
- <phpcode>
- <![CDATA[
if (THIS_SCRIPT === index)
{
$globaltemplates = array_merge($globaltemplates, array('forumhome_seperate_forumcats'));
}

]]>
</phpcode>
</plugin>
- <plugin active="1" executionorder="5">
<title>Seperate ForumCats: Add the seperate template</title>
<hookname>forumbit_display</hookname>
- <phpcode>
- <![CDATA[
if (!isset($catcounter))
{
$catcounter = 0;
}

if (($tempext == '_nopost') AND ($catcounter >= 1))
{
eval('$forumbits .= "' . fetch_template("forumhome_seperate_forumcats") . '";');
}

$catcounter++;

]]>
</phpcode>
</plugin>
</plugins>
<phrases />
<options />
<helptopics />
<cronentries />
<faqentries />
</product>'

can anyone explain me through it abit as i'd love to create my own chat MOD. =]
I have very good experience at HTML and i'm very enthusiastic about learning what i'd need to do to make a vb mod.

many thanks,,
Joe.

Dismounted
05-24-2008, 04:58 AM
Enable Debug Mode. You shouldn't modify XML files directly, just let vBulletin generate them for you.

jmellors
05-24-2008, 09:23 AM
Please can someone talk me through what to enter for these fields

Product ID

Title

Version

Description

Product URL

Version Check URL

Marco van Herwaarden
05-24-2008, 09:31 AM
Please see the manual: Creating a Product (http://www.vbulletin.com/docs/html/creating_a_product)

jmellors
05-24-2008, 09:34 AM
Thanks. =]