Forums

Set a new Modulposition

mac 25 Apr, 2009
Hi,
by the confirm-message after Users Activate (with the Joomla User-Regsitration) I want to create a new Moduleposition to show a Modul only by this message.
In components/com_user/controller.php after line 340 is this code:
// Lets activate this user
		j// Lets activate this user
		jimport('joomla.user.helper');
		if (JUserHelper::activateUser($activation))
		{
			// Page Title
			$document->setTitle( JText::_( 'REG_ACTIVATE_COMPLETE_TITLE' ) );
			// Breadcrumb
			$pathway->addItem( JText::_( 'REG_ACTIVATE_COMPLETE_TITLE' ));

			$message->title = JText::_( 'REG_ACTIVATE_COMPLETE_TITLE' );
			$message->text = JText::_( 'REG_ACTIVATE_COMPLETE' );
		}import('joomla.user.helper');
		if (JUserHelper::activateUser($activation))
		{
			// Page Title
			$document->setTitle( JText::_( 'REG_ACTIVATE_COMPLETE_TITLE' ) );
			// Breadcrumb
			$pathway->addItem( JText::_( 'REG_ACTIVATE_COMPLETE_TITLE' ));

			$message->title = JText::_( 'REG_ACTIVATE_COMPLETE_TITLE' );
			$message->text = JText::_( 'REG_ACTIVATE_COMPLETE' );
		}

REG_ACTIVATE_COMPLETE_TITLE lt. Sprachdatei wird hier ausgegeben: Aktivierung abgeschlossen!
REG_ACTIVATE_COMPLETE lt. Sprachdatei: Ihr Benutzerkonto wurde erfolgreich aktiviert! Sie können sich jetzt mit dem von Ihnen bei der Registrierung gewählten Benutzernamen und Passwort anmelden.



Is it posible to set hier a Modulposition:
[code]<?
global $mainframe;
$document = &JFactory::getDocument();
$renderer = $document->loadRenderer( 'modules' );
$options = array( 'style' => 'xhtml' );
echo $renderer->render( 'user9', $options, null);
?> [/code]
On the position '[i]user9[/i]' I want to show my Module.

Two questions:
- Is is posible to set a Modulposition by this way?
- Can someone give me a tip, which the right php is?

Thanks a lot!
Mac
GreyHead 26 Apr, 2009
Hi Mac,

I'm not sure that I undeerstand what you are trying to do here. Normally you can set module usage in the Admin Module manager. If you need to add code to a module then you can do this with Jumi (or with ChronoForms if you prefer).

Bob
mac 27 Apr, 2009
Hi Bob,
...my 'old' wish :wink:
I want to show a Module when the 'REG_ACTIVATE_COMPLETE' is shown in the Content of the page. I do'nt wante to show this Module on each page.

Regards
Mac
GreyHead 27 Apr, 2009
Hi Mac,

OH OK, no real idea. You could use Jumi to check the System message list perhaps.

Bob
This topic is locked and no more replies can be posted.