[Typo3-dev] Changes in class.tslib_fe.php

Wengrzik, Andreas Wengrzik at ewr.de
Tue Nov 16 15:06:43 CET 2004


Hi Kasper and Core development,

i have a feature Request for class.tslib_fe.
Theres a part which declares the marker ###USERNAME###
in fact of using extensions with UID i added some lines to the file to
simply use a marker for the fe_user uid:



/**
	 * Determines if content should be outputted.
	 * Outputting content is done only if jumpurl is NOT set.
	 *
	 * @return	boolean		Returns true if $this->jumpurl is not set.
	 */
	function isOutputting()	{
		return (!$this->jumpurl);
	}

	/**
	 * Processes the output before it's actually outputted. Sends headers also.
	 * This includes substituting the USERNAME comment, getMethodUrlIdToken, sending additional headers (as defined in the TypoScript "config.additionalheaders" object), tidy'ing content, XHTML cleaning content (if configured)
	 * Works on $this->content
	 *
	 * @return	void
	 */
	function processOutput()	{
			// Substitutes username mark with the username
		if ($this->fe_user->user['uid'])	{
			$token = trim($this->config['config']['USERNAME_substToken']);
			$this->content = str_replace($token ? $token : '<!--###USERNAME###-->',$this->fe_user->user['username'],$this->content);
		}


// Changes by me - START

		if ($this->fe_user->user['uid'])	{
			$token = trim($this->config['config']['UID_substToken']);
			$this->content = str_replace($token ? $token : '<!--###LORDUID###-->',$this->fe_user->user['uid'],$this->content);
		}

// Changes by me - END





So maybe you can include it - sure with another marker - into the next release? Or you say STOP this is not what we want ?

Just my two cents for a new 'feature' ;)

Go on with your great work!

bye  & Thanks
andy w.




More information about the TYPO3-dev mailing list