View Single Post
12-17-2008   #7 (permalink)
Kabuto
MMOG Lurker
 
Join Date: Dec 2008
Posts: 4
iTrader: (0)
Kabuto is on a distinguished road
Default

Thank you Medoria

While awaiting I have done a bit of research, I think I am close but I failed to write the query properly, so here is as far as I went:

PRODUCT_PLUGIN.xml

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="wiki_usereditcount" active="1">
	<title>Wiki Edit Count</title>
	<description>This addon shows the number of wiki edits each user has on the thread postbit, and their profile.</description>
	<version>0.0.8</version>
	<codes>
	</codes>
	<templates>
	</templates>
	<plugins>
		<plugin active="1">
			<title>MemberInfo Wiki Edit Count (Total Wiki Edits)</title>
			<hookname>member_customfields</hookname>
			<phpcode><![CDATA[$wiki_editcount = ???? ]]></phpcode>
		</plugin>
		<plugin active="1">
			<title>ShowThread Wiki Edit Count (Total Wiki Edits)</title>
			<hookname>postbit_display_start</hookname>
			<phpcode><![CDATA[$wiki_editcount = ???? ]]></phpcode>
		</plugin>
	</plugins>
	<phrases>
		<phrasetype name="GLOBAL" fieldname="global">
			<phrase name="wiki_usereditcount">><![CDATA[Wiki Edits]]></phrase>
		</phrasetype>
	</phrases>
	<options>
	</options>
</product>
then in the templates, where you want the number of wiki edits to appear, add

Code:
$vbphrase[wiki_usereditcount]: $wiki_editcount
???? are the missing parts

I am sure NoeJeko will be capable to figure out a proper query. So I am waiting amxiously his return!!!