[TYPO3-community] Multiblog community with timtab
Alexander Obster
alex at xooh.de
Mon Oct 8 18:04:33 CEST 2007
Hi,
i used tt_news with News_feedit. In the news database a new column
tx_newsfeedit_fe_cruser_id.
sry for my bad english :D
here is a solution from georg ringer:
write a new extension
-----------------------------
in the localconf.php:
<?
if (TYPO3_MODE == 'FE') {
require_once(t3lib_extMgm::extPath('yourext').'class.tx_rgnewsowner.php');
}
$TYPO3_CONF_VARS['EXTCONF']['tt_news']['selectConfHook'][] =
'tx_rgnewsowner';
?>
----------------------------
in the class.tx_rgnewsowner.php:
<?
class tx_rgnewsowner {
// hook for tt_news
function processSelectConfHook(&$pObj,$conf) {
$this->cObj = t3lib_div::makeInstance('tslib_cObj'); //
local cObj.
$this->pObj = &$pObj;
$this->realConf = $pObj;
$rgsgConf = $this->realConf->conf['rgsmoothgallery.'];
#$userid = $this->realConf->conf['userid'];
$userid = ... here the userid from get index.php?id=108&userid=16
// wenn userid, erweiterst du das select und gibst es zurück
if ($userid ) {
$conf['where'].= ' AND tx_newsfeedit_fe_cruser_id IN (
'.$userid .')';
}
return $conf;
} #end extraItemMarkerProcessor
}
if (defined('TYPO3_MODE') &&
$TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/rgsmoothgallery/class.tx_rgsmoothgallery_fe.php'])
{
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/rgsmoothgallery/class.tx_rgsmoothgallery_fe.php']);
}
?>
-------------------------------
a example link:
index.php?id=108&userid=16
id=108 = tt_news list
this is not the best solution, because the user news in one sysfolder,
but this works with tt_news.
Regards
Alexander Obster
Dawid schrieb:
> Hi,
>
> the problem i want to solve is multiblog - I'm using cwt_community as a
> community extension with allow users to register on site and i want it to
> createing a user blog just after registration. So, my question is how to
> organize the page structure and how can i set up userblog during
> registration. I'll be thankfull for all tips.
>
> Thanks,
> David.
More information about the TYPO3-project-community
mailing list