show login form in the popup or lightbox

For Joomla! 1.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
sunilsinghgaur
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Sat Oct 30, 2010 12:53 pm

show login form in the popup or lightbox

Post by sunilsinghgaur » Wed Nov 10, 2010 8:49 am

Hey all,

Please help me. i want to show my site login forms in the popup or lightbox. is there any way to implement this.

thanks in advance
sunil

User avatar
MeeDNite
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 249
Joined: Sun Sep 21, 2008 3:31 am

Re: show login form in the popup or lightbox

Post by MeeDNite » Thu Nov 11, 2010 8:17 am

Hi,
Use This:

Code: Select all

<?php JHTML::_('behavior.modal'); ?>
<a class="modal" href="index.php?option=com_user&view=login&tmpl=component">login</a>
Cheers,
Milad

sunilsinghgaur
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Sat Oct 30, 2010 12:53 pm

Re: show login form in the popup or lightbox

Post by sunilsinghgaur » Thu Nov 11, 2010 9:22 am

Thanks Milad, its good...........

arama
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Nov 11, 2010 8:34 am

Re: show login form in the popup or lightbox

Post by arama » Thu Nov 11, 2010 9:54 am

thx I was looking 4 that too

sunilsinghgaur
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Sat Oct 30, 2010 12:53 pm

Re: show login form in the popup or lightbox

Post by sunilsinghgaur » Mon Nov 15, 2010 1:25 pm

Hi,
its working well in localhost, but not online........what can be the problem....

thanks & regards
sunil

User avatar
MeeDNite
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 249
Joined: Sun Sep 21, 2008 3:31 am

Re: show login form in the popup or lightbox

Post by MeeDNite » Mon Nov 15, 2010 4:44 pm

it doesnt depend on where server is.
try deleting Cache folder contents

User avatar
verticalgrain
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 105
Joined: Mon Dec 01, 2008 4:16 am
Contact:

Re: show login form in the popup or lightbox

Post by verticalgrain » Thu Feb 17, 2011 6:28 pm

Awesome, this is such a simple solution to a problem that I have often tried to solve.

User avatar
gilles007
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 237
Joined: Fri Jun 15, 2007 4:58 pm

Re: show login form in the popup or lightbox

Post by gilles007 » Thu Mar 03, 2011 1:06 am

Hi guys,

I'm also interested in getting this to work but I don't understand how/where to use the php code mentioned.
Can anyone lead me in the right direction please?

Cheers,
G

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 35879
Joined: Sat Apr 05, 2008 9:58 pm

Re: show login form in the popup or lightbox

Post by Webdongle » Thu Mar 03, 2011 1:14 am

Another option would be to use JCE editor and mediabox

Create a link in a 'Hidden menu'

Use JCE advanced link to create a link with a lightbox popup

http://extensions.joomla.org/extensions ... editors/88

http://extensions.joomla.org/extensions ... ions/11357
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

User avatar
gilles007
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 237
Joined: Fri Jun 15, 2007 4:58 pm

Re: show login form in the popup or lightbox

Post by gilles007 » Thu Mar 03, 2011 2:17 am

Thanks Webdongle,

your solutions sounds great but I'm having difficulties following your instructions.

how do I link to the plugin via the menu item?

G

villager
Joomla! Intern
Joomla! Intern
Posts: 72
Joined: Wed Jan 14, 2009 6:55 pm

Re: show login form in the popup or lightbox

Post by villager » Thu Mar 03, 2011 2:25 am

Webdongle wrote:Another option would be to use JCE editor and mediabox

Create a link in a 'Hidden menu'

Use JCE advanced link to create a link with a lightbox popup

http://extensions.joomla.org/extensions ... editors/88

http://extensions.joomla.org/extensions ... ions/11357
I added the two extensions to joomla, switched my editor and enabled the media box. However, I think I need a more expanded explanation of what to do next, as my attempts at hacking (a technical term for stumbling around in the dark) seem not to have gotten anywhere. I would greatly appreciate instructions that presume I am a dummy. Thanks!

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 35879
Joined: Sat Apr 05, 2008 9:58 pm

Re: show login form in the popup or lightbox

Post by Webdongle » Thu Mar 03, 2011 3:24 am

When you downloaded mediabox there is a link there called 'Documentation'

Clicking it leads to http://www.joomlacontenteditor.net/supp ... cemediabox

I suggest #5 on the list there

I think the term to use is called RTFM (Read The Fine Manual)
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

User avatar
gilles007
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 237
Joined: Fri Jun 15, 2007 4:58 pm

Re: show login form in the popup or lightbox

Post by gilles007 » Thu Mar 03, 2011 5:36 am

Webdongle...
I may be missing something here. checking the documentation, number5... appears to be:

"Select some text or an image to apply the link to (you can use the Image Manager to insert the image)."

this post is about linking from a menu item, not from an article. how does what you suggest come into play?

sorry for appearing ignorant but 2 of us can't follow what you're recommending.

any chance you could be clearer as to how to link the menu item directly to call the login component in a lightbox?

Thanks for trying to help us out.

User avatar
kurchania
Joomla! Hero
Joomla! Hero
Posts: 2070
Joined: Mon Sep 21, 2009 6:56 am
Location: indore,india
Contact:

Re: show login form in the popup or lightbox

Post by kurchania » Thu Mar 03, 2011 5:57 am

@gilles007
any chance you could be clearer as to how to link the menu item directly to call the login component in a lightbox?
download the following module
Flexi Custom code
or
PHP By Fwd
Open that module and write this code:-

Code: Select all

<?php JHTML::_('behavior.modal'); ?>
<a class="modal" href="index.php?option=com_user&view=login&tmpl=component">login</a>
but now a days people create such module also for you so can use there module also
Qlogin popup
YJpopup Login

make Sense
abhijeet kurchania
The future depends on what you do today

User avatar
gilles007
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 237
Joined: Fri Jun 15, 2007 4:58 pm

Re: show login form in the popup or lightbox

Post by gilles007 » Thu Mar 03, 2011 6:19 am

Thanks kurchania, I'd love to use the modules/plugins you listed.

I know how to use these from an image withing an article, However, how do I trigger the popup (module or plugin) from a menu link?

User avatar
kurchania
Joomla! Hero
Joomla! Hero
Posts: 2070
Joined: Mon Sep 21, 2009 6:56 am
Location: indore,india
Contact:

Re: show login form in the popup or lightbox

Post by kurchania » Thu Mar 03, 2011 6:31 am

open any menu and change its type to external menu
write this line:-

Code: Select all

http://yoursite.com/index.php?option=com_user&view=login&tmpl=component" class="modal
abhijeet kurchania
The future depends on what you do today

User avatar
gilles007
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 237
Joined: Fri Jun 15, 2007 4:58 pm

Re: show login form in the popup or lightbox

Post by gilles007 » Thu Mar 03, 2011 6:50 am

ahhhh.... perfect!!!

Thanks kurchania! Now it makes sense!

If I want to use one of:
Qlogin popup
YJpopup Login

Do I still need to use an ext url??? if so, how would I determine the link?

I appreciate your help.

User avatar
kurchania
Joomla! Hero
Joomla! Hero
Posts: 2070
Joined: Mon Sep 21, 2009 6:56 am
Location: indore,india
Contact:

Re: show login form in the popup or lightbox

Post by kurchania » Thu Mar 03, 2011 6:54 am

hi gilles007,
nope they are module and you don't need to specify any external link for them.they will process automatically.just publish them like a normal module.
but remember if you have community builder ,K2 or any other component which can alter login than don't use them.
abhijeet kurchania
The future depends on what you do today

User avatar
gilles007
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 237
Joined: Fri Jun 15, 2007 4:58 pm

Re: show login form in the popup or lightbox

Post by gilles007 » Thu Mar 03, 2011 7:16 am

Thanks, Luckily, I don't have K2 or CB.

Sorry but I still don't know how to link to a module from a menu link. When creating a menu link, there are options for articles, components, ext url, etc. but no option to link to a module.

how is this done?

User avatar
kurchania
Joomla! Hero
Joomla! Hero
Posts: 2070
Joined: Mon Sep 21, 2009 6:56 am
Location: indore,india
Contact:

Re: show login form in the popup or lightbox

Post by kurchania » Thu Mar 03, 2011 7:26 am

just enable the module.
read the document
no need for linking module to menu
abhijeet kurchania
The future depends on what you do today

User avatar
gilles007
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 237
Joined: Fri Jun 15, 2007 4:58 pm

Re: show login form in the popup or lightbox

Post by gilles007 » Thu Mar 03, 2011 7:48 am

kurchania,

but this is what I need... to use a menu link to trigger the login in the lightbox. My template is very clean and I don't want to have a module position dedicated to the login. If I did, this would be very easy, just publish the module in a mod position and done.

but I want to do this via a menu link.

I hope this makes sense.

PS. I can't find documentation for YJpopup Login on YouJoomla's site. I got the plugin but no doc. I must be losing my mind. :)

User avatar
kurchania
Joomla! Hero
Joomla! Hero
Posts: 2070
Joined: Mon Sep 21, 2009 6:56 am
Location: indore,india
Contact:

Re: show login form in the popup or lightbox

Post by kurchania » Thu Mar 03, 2011 7:54 am

abhijeet kurchania
The future depends on what you do today

User avatar
gilles007
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 237
Joined: Fri Jun 15, 2007 4:58 pm

Re: show login form in the popup or lightbox

Post by gilles007 » Thu Mar 03, 2011 12:37 pm

will this not trigger the standard joomla login component instead of to the stylish YJpopup Login that I want to use?

User avatar
gilles007
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 237
Joined: Fri Jun 15, 2007 4:58 pm

Re: show login form in the popup or lightbox

Post by gilles007 » Fri Mar 04, 2011 3:21 pm

FYI

I tried the code in a menu item, externa url type link:

http://yoursite.com/index.php?option=co ... =component" class="modal

didnt' work. It put the login component in an new page, not a lightbox.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 35879
Joined: Sat Apr 05, 2008 9:58 pm

Re: show login form in the popup or lightbox

Post by Webdongle » Fri Mar 04, 2011 4:47 pm

class="modal
looks like a copy of the original typo to me

Try
class="modal"
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

User avatar
kurchania
Joomla! Hero
Joomla! Hero
Posts: 2070
Joined: Mon Sep 21, 2009 6:56 am
Location: indore,india
Contact:

Re: show login form in the popup or lightbox

Post by kurchania » Sat Mar 05, 2011 4:53 am

@gilles007
write this thing in your template manager.lets see if that work for you.
<?php JHTML::_('behavior.modal'); ?>
abhijeet kurchania
The future depends on what you do today

User avatar
gilles007
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 237
Joined: Fri Jun 15, 2007 4:58 pm

Re: show login form in the popup or lightbox

Post by gilles007 » Sat Mar 05, 2011 2:32 pm

kurchania

I just got it to work by using JCEpopup.
I may still try what you suggested as it would prevent me from loading another extension.
Thanks kindly for all your help.

Gilles

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 35879
Joined: Sat Apr 05, 2008 9:58 pm

Re: show login form in the popup or lightbox

Post by Webdongle » Sat Mar 05, 2011 3:23 pm

gilles007 wrote:.....
I just got it to work by using JCEpopup.
....
Would be useful to know how you used JCE popup to work of a menu item please.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

User avatar
kurchania
Joomla! Hero
Joomla! Hero
Posts: 2070
Joined: Mon Sep 21, 2009 6:56 am
Location: indore,india
Contact:

Re: show login form in the popup or lightbox

Post by kurchania » Sat Mar 05, 2011 3:28 pm

hi gilles007,
Webdongle solution is perfect for you.he told u that thing very earlier
no more experiment from my side now.live life in a peace.
abhijeet kurchania
The future depends on what you do today

User avatar
gilles007
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 237
Joined: Fri Jun 15, 2007 4:58 pm

Re: show login form in the popup or lightbox

Post by gilles007 » Sat Mar 05, 2011 4:37 pm

Hi Webdongle,

I put this in as an external URL link:

Code: Select all

http://www.mysite.com/index.php?option=com_user&view=login&tmpl=component" rel="width[400];height[500];" class="jcepopup 
I hope that makes sense.
G
Last edited by gilles007 on Sun Mar 06, 2011 4:44 pm, edited 1 time in total.


Locked

Return to “Joomla! 1.5 Coding”