The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Well, strange error in a product XML File.
Ok, so I was in the process of porting IRC Manager for mIRC to vB 3.5.x, everything is fine, until I try uploading the product XML..
Quote:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <product productid="tylerw998" title="mIRC Manager" description="Shows Current Topic And People Online In mIRC" version="2.0" active="1"> <codes> <code version="2.0"> <installcode><![CDATA[$Queries = array(); $Queries[] = "CREATE TABLE `irc_channel` ( `channel_id` int(10) NOT NULL auto_increment, `handle` varchar(25) NOT NULL default '', `server` varchar(25) NOT NULL default '', `icon` varchar(100) NOT NULL default '', `online` int(10) unsigned NOT NULL default '0', `online_max` int(10) unsigned NOT NULL default '0', `dateline_max` int(10) unsigned NOT NULL default '0', `activity` smallint(5) unsigned NOT NULL default '0', `operators` varchar(255) NOT NULL default '', `halfops` varchar(255) NOT NULL default '', `voiced` varchar(255) NOT NULL default '', `users` varchar(255) NOT NULL default '', `topic` varchar(100) NOT NULL default '', `nick_style` varchar(200) NOT NULL default '', `act0` varchar(50) NOT NULL default '', `act1` varchar(50) NOT NULL default '', `act2` varchar(50) NOT NULL default '', `act3` varchar(50) NOT NULL default '', `act4` varchar(50) NOT NULL default '', `act5` varchar(50) NOT NULL default '', PRIMARY KEY (`channel_id`) ) TYPE=MyISAM;"; foreach ($Queries as $Q) { $vbulletin->db->query($Q); }]]></installcode> <uninstallcode><![CDATA[$Queries = array(); $Queries[] = "drop table `irc_channel`;"; foreach ($Queries as $Q) { $vbulletin->db->query($Q); }]]></uninstallcode> </code> </codes> <templates> <template name="irc_loggedin" templatetype="template" date="1123917050" username="TyleR" version="3.5.1"><![CDATA[<tbody> <tr> <td class="thead" colspan="2"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_$channel[channel_id]')"><img id="collapseimg_forumhome_$channel[channel_id]" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a> <a style="float:$stylevar[right]"><img src="$stylevar[imgdir_misc]/act$channel[alevel].gif" alt="$channel[aname]" /> </a> $channel[handle] @ $channel[server]: $channel[online] online </td> </tr> </tbody> <tbody id="collapseobj_forumhome_$channel[channel_id]" style="$vbcollapse[collapseobj_forumhome_activeusers]"> <tr> <td class="alt2"><img src="$channel[icon]" alt="$vbphrase[view_whos_online]" border="0" /></td> <td class="alt1" width="100%"> <div class="smallfont"> <div style="white-space: nowrap">Most users in the chat was $channel[online_max] on $channel[date_max] at $channel[time_max].<br /> Topic: <i>$channel[topic]</i></div> <div style="padding-top: 7px">$channel[nick_list]</div> </div> </td> </tr> </tbody>]]></template> </templates> <plugins> <plugin active="1"> <title>mIRC Manager Online</title> <hookname>forumhome_complete</hookname> <phpcode><![CDATA[$channels = $db->query(" SELECT * FROM `irc_channel` "); while ($channel = $db->fetch_array($channels)) { $nick_style = explode('||', $channel['nick_style']); $ops = explode(' ', $channel['operators']); $halfops = explode(' ', $channel['halfops']); $voiced = explode(' ', $channel['voiced']); $users = explode(' ', $channel['users']); if (!empty($ops[0])) { foreach ($ops AS $op) { $channel['nick_list'] .= str_replace('{nick}', $op, $nick_style[0] . ', '); } } if (!empty($halfops[0])) { foreach ($halfops AS $halfop) { $channel['nick_list'] .= str_replace('{nick}', $halfop, $nick_style[1]) . ', '; } } if (!empty($voiced[0])) { foreach ($voiced AS $voice) { $channel['nick_list'] .= str_replace('{nick}', $voice, $nick_style[2]) . ', '; } } if (!empty($users[0])) { foreach ($users AS $user) { $channel['nick_list'] .= str_replace('{nick}', $user, $nick_style[3]) . ', '; } } $channel['nick_list'] = substr($channel['nick_list'], 0, -2); if ($channel['activity'] > 100) { $channel['alevel'] = 5; } else if($channel['activity'] == 0) { $channel['alevel'] = 0; } else { $channel['activity'] *= .05; $channel['alevel'] = round($channel['activity']); if ($channel['alevel'] < 1) { $channel['alevel'] = 1; } } $channel['aname'] = $channel["act$channel[alevel]"]; $channel['online_max'] = number_format($channel['online_max']); $channel['online'] = number_format($channel['online']); $channel['date_max'] = vbdate($vboptions['dateformat'], $channel['dateline_max']); $channel['time_max'] = vbdate($vboptions['timeformat'], $channel['dateline_max']); eval('$irc_channels .= "' . fetch_template('irc_loggedin') . '";'); unset($channel['nick_list']); } </plugin> </plugins> </product> - Tyler never mind, i forgot the trailing Code:
]]></phpcode> |
#2
|
|||
|
|||
You shouldn't be editing XML-Files directly.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|