Advertisement

Display module on index.php?option=com_user&task=reg

Need help with the Administration of your Joomla! 1.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
lord_alan
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Wed Jun 28, 2006 5:48 pm
Location: Farnham, Surrey, England.
Contact:

Display module on index.php?option=com_user&task=reg

Post by lord_alan » Tue Dec 01, 2009 4:56 pm

I'm looking into an extension called Lyften Bloggie and it looks like it will do exactly what I need.

However, my website requires a module position to be occupied on all pages and I have two different modules which I use by selecting various menu items in the Menu Assignment area of the relevant module configuration.

When using this blog extension, to post a comment I want the user to register. The extension sends the user to the registration page with the

Code: Select all

index.php?option=com_user&task=register
appended to the URI.

That works fine, but I have no way of assigning a module to display on this registration page other than selecting the "all" radio button. This of course is no good as I want different modules to display on different pages.

So, how can I assign a specific module to show on this registration page please?

Thanks

Al
The Way Out Is Open!
http://www.theopensourcerer.com

Advertisement
User avatar
tj.baker
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 231
Joined: Tue Feb 14, 2006 6:23 am

Re: Display module on index.php?option=com_user&task=reg

Post by tj.baker » Tue Dec 01, 2009 7:18 pm

Hi,

You could set up a 'dummy' menu item to the reg page in an unpublished menu so that you could assign the module only to that link.

User avatar
lord_alan
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Wed Jun 28, 2006 5:48 pm
Location: Farnham, Surrey, England.
Contact:

Re: Display module on index.php?option=com_user&task=reg

Post by lord_alan » Tue Dec 01, 2009 7:32 pm

Thanks for the reply tj but I've tried that.

Neither creating a menu item for the default User Registration Layout, or an external menu link with the "index.php?option=com_user&task=register" as the url work. Unfortunately.

I have a dummy menu already with several menu items - I use this trick quite often. But this one doesn't seem to want to work.

I should say I'm using Joomla! 1.5.15.

Quite a few of these blogging extensions do the same thing so I can't be the only one struggling with this surely? A module config option where I can say display on "all" pages except the following choices would be quite useful in this instance...

Cheers

Al
The Way Out Is Open!
http://www.theopensourcerer.com

User avatar
tj.baker
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 231
Joined: Tue Feb 14, 2006 6:23 am

Re: Display module on index.php?option=com_user&task=reg

Post by tj.baker » Tue Dec 01, 2009 7:41 pm

Hrmm.. well, my next step would be to open up the extension and see where the 'redirect' is defined and set it to be your URL that you set up in your dummy menu.

Ideally the extension would allow you to make this change with an HTML override, but if not you may have to hack it.

At least, this is what my next step would be :) Someone else may (and quite possibly) have a better solution for you.

Lastly, I would ask, have you contacted the creator of the extension for advice? (sorry, seems an obvious step but sometimes we overlook the obvious, at least I do anyways lol)

User avatar
lord_alan
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Wed Jun 28, 2006 5:48 pm
Location: Farnham, Surrey, England.
Contact:

Re: Display module on index.php?option=com_user&task=reg

Post by lord_alan » Tue Dec 01, 2009 7:53 pm

In controller.php the register redirect is as I've already mentioned above, i.e.

Code: Select all

<a href="<?php echo JRoute::_( 'index.php?option=com_user&task=register' ); ?>" class="rbutton"><?php echo JText::_('REGISTER'); ?></a>
I agree it would be the ideal to have editable fields in the backend for this, but all three blogging components I've looked at are using the same method with the same result :-(

I think it might be hackeroo time too. I was hoping I was doing something daft...

I am just trying the whole process with the Joomla! SEO truned off to see if that is affecting it at all. If anything occurs I'll make a note.

Cheers
Al
The Way Out Is Open!
http://www.theopensourcerer.com

stephenb
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 169
Joined: Tue Jan 22, 2008 4:05 am

Re: Display module on index.php?option=com_user&task=reg

Post by stephenb » Fri Dec 11, 2009 1:00 am

Al,

the answer to your initial question is MetaMod. With MetaMod you can target modules to very precise pages, based on URL parameters (even with SEF urls turned on), date, time, time of day, browser, GeoIP location, etc etc.

So I would use the following rule in MetaMod:

if ($option == "com_user" and JRequest::getVar("task") == "register") return 101;

(replace 101 with the ID of the module you want to include on that page).

A good place to start with MetaMod is the Quick Start page:

http://www.metamodpro.com/get-started/quick-start

Hope that helps,
Stephen
Cheers,
Stephen
MetaMod & Chameleon developer: http://www.metamodpro.com/

User avatar
lord_alan
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Wed Jun 28, 2006 5:48 pm
Location: Farnham, Surrey, England.
Contact:

Re: Display module on index.php?option=com_user&task=reg

Post by lord_alan » Fri Dec 11, 2009 7:21 am

Thanks for the suggestion - that looks to be an interesting extension.

Fortunately, thanks to Brian Teeman, I managed to satisfy my needs using only standard Joomla! com_content and the Disqus comments extension.

Now I have a tightly integrated blog and the comments are managed - in effect - externally which is great actually.
The Way Out Is Open!
http://www.theopensourcerer.com

Advertisement

Locked

Return to “Administration 1.5”