Username replacement
I am a member at a multitude of discussion boards, and one of them being vBulletin.

There is a code that I saw, called 'You replacement'. Basically, when a user makes a post, and types in the bbcode "[you]", it replaces that code with the username of the person viewing it.

I was just wondering if there was anything of that effect made for mybb. If not, then I do have a copy of the xml code, and was wondering if it could be ported to mybb.

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

<product productid="j00_replace" active="1">
	<title>j00 Replacement</title>
	<description><![CDATA[This will replace a word with the viewing member's name.]]></description>
	<url />
	<versioncheckurl />
	<apm_relatedurl />
	<apm_extrainfo />
	<apm_extraedit />
		<plugin active="1" executionorder="5">
			<title><![CDATA[[j00] Archive Edit]]></title>
			<phpcode><![CDATA[$output = str_replace('[j00]', $vBulletin->userinfo['username'], $output);]]></phpcode>
		<plugin active="1" executionorder="5">
			<title><![CDATA[[j00] Global]]></title>
			<phpcode><![CDATA[$output = str_replace('[j00]', $vBulletin->userinfo['username'], $output);]]></phpcode>
		<plugin active="1" executionorder="5">
			<title><![CDATA[[j00] Profile Edit]]></title>
			<phpcode><![CDATA[$output = str_replace('[j00]', $vbulletin->userinfo['username'], $output);]]></phpcode>

This is the vB code. I'm not sure how the coding for mybb works, or else I would have done it myself.

If anybody can help me out with this, it would be greatly appreciated.
I think this is what you are looking for. Wink
computergeek67 Wrote:I think this is what you are looking for. Wink


Thank you.

Forum Jump:

Users browsing this thread: 1 Guest(s)