Quick Login - thickbox

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-15-2006, 05:13 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
Demo: http://news.oioplus.com (click on a vote button when not logged in to see it in action)

This 'quick & dirty' hack basically lets a user login from any page they choose, using a bit of AJAX. Now updated to support latest version (9.1).

The updated code can now be found HERE, and requires the modified scriptaculous module to function.

Last edited by Simon; 04-19-2007 at 10:35 AM.
Reply With Quote
  #2 (permalink)  
Old 05-15-2006, 07:47 PM
Constant Pligger
 
Join Date: Feb 2006
Posts: 101
Really nice! Only problem was the first time I clicked the link the window greyed but the box never showed up, had to refresh the page.
Reply With Quote
  #3 (permalink)  
Old 05-15-2006, 11:58 PM
Casual Pligger
 
Join Date: Feb 2006
Posts: 82
Quote:
Originally Posted by Simon
Demo here: http://dev.oioplus.com/pligg/ (click on quick login to see it in action)

This basically lets a user quickly login from any page they choose, using a bit of AJAX. The only flaw is that you have to add an include line to any php page in the root directory you want users to be able to log in from (eg. index.php, sneak.php etc). There's probably a way around that, but i'll leave it for someone else to figure out. Installation instructions included in the zip file.
add the include to the bottom of config.php
Reply With Quote
  #4 (permalink)  
Old 05-16-2006, 09:26 AM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
That's too early to add the include, but adding it to smartyvariables.php should do the trick. Zip file updated.
Reply With Quote
  #5 (permalink)  
Old 05-16-2006, 03:41 PM
New Pligger
 
Join Date: Apr 2006
Posts: 4
nice add on to pligg!!!

However, I am getting an error when I tried it. I added everything. I am able to see the login box. I enter the username and password and when I click on the login button, I get a 404 Page not found error. If I refresh the page, everything is OK. The user is also logged in.

Not sure why I get the page not found error..
Reply With Quote
  #6 (permalink)  
Old 05-16-2006, 10:27 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
Hmm...not sure why that would happen to be honest. I did just update the zip file to include a couple of bugfixes in the thickbox.js itself, so you could try re-downloading and installing again.

It's quite a flexible little system and could easily be turned into other items such as a help system, with different links being called on different pages. You can call any image, html or php page you want in the box, making it quite versatile in terms of showing the content you want.
Reply With Quote
  #7 (permalink)  
Old 04-17-2007, 07:33 AM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
If someone not logged in tries to vote on an item, will this box comeup? Or will the browser take them to the login page?

Geoserv
Reply With Quote
  #8 (permalink)  
Old 04-17-2007, 09:34 AM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
Should do now. I updated it to support the latest version of pligg, and added in an example vote button to bring up the box if a user is not logged in.
Reply With Quote
  #9 (permalink)  
Old 04-17-2007, 11:13 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,960
Thanks reminds me of reddit style login warnings
Reply With Quote
  #10 (permalink)  
Old 04-17-2007, 12:05 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
Ok, I did something wrong, just not sure what yet:

I put this in my footer, just for testing:

Quote:
<a class="thickbox" title="Login to Continue!" href="{$my_pligg_base}/login_box.php?height=150&amp;width=250">Login</a></p>
and this in my pligg.tpl just below the line that calls the template CSS file:

Quote:
<link rel="stylesheet" type="text/css" href="{$my_pligg_base}/thickbox/thickbox.css" media="screen" />
<script type="text/javascript" src="{$my_pligg_base}/thickbox/thickbox.js"></script>
But when I click the link in the footer I get this:

http://www.newsdots.com/login_box.ph...=150&width=250

Where did I screw up?

I already have thickbox installed on my pligg that I use for thumbs in posts, would this effect this mod?

Geoserv
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Optimised Scriptaculous Module with Thickbox Simon Questions and Comments 83 10-08-2010 02:41 AM
Thickbox login with focus on the first field i.e. username.. ashishhbti Questions and Comments 0 11-15-2007 02:48 AM
v9.6 Register Error during login action noyp Questions and Comments 7 10-08-2007 08:57 PM
Login URL redirection problem on IIS sameercdac Questions and Comments 2 04-02-2007 02:13 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development