Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-02-2008, 10:46 PM
New Pligger
Pligg Version: 9.9
 
Join Date: Jun 2008
Posts: 3
Thanks: 0
Thanked 2 Times in 2 Posts
Thumbs up [Solution] Captcha in Registration Sidebar

Allot of people have asked for a solution to adding captcha to the registration sidebar so here it is.

In login.tpl add

Code:
// only add this if not on the registration page to avoid conflict
{if $pagename ne "register"}
	{if isset($register_step_1_extra)}
		<br />
		{$register_step_1_extra}
	{/if}
{/if}
to the registration form.

Next add

Code:
//don't need to do this if already logged in
if(!$current_user->authenticated) {
check_actions('register_showform', $vars);
}
under

Code:
// module system hook
$vars = '';
check_actions('index_top', $vars);
in your index.php in the root directory of your pligg installation.

There you go!

I have tested this on 9.9
Reply With Quote
The Following User Says Thank You to Arcticus For This Useful Post:
  #2 (permalink)  
Old 07-16-2008, 12:47 PM
Casual Pligger
 
Join Date: Jul 2008
Posts: 42
Thanks: 1
Thanked 1 Time in 1 Post
Has anyone got this to work? It has been given trouble and I can't get anything to show up. I like having the registration in the sidebar but I have been getting some spam lately.

Where exactly does the code go in the login.tpl? That might be part of my problem. Thanks

Bryan
__________________
ArmchairGM.net
Reply With Quote
  #3 (permalink)  
Old 09-07-2008, 05:33 AM
New Pligger
Pligg Version: 9.9.5
Pligg Template: default
 
Join Date: Jun 2008
Location: Cape Town
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Works Like a Charm
Thankyou
Reply With Quote
  #4 (permalink)  
Old 10-01-2008, 02:28 PM
Casual Pligger
 
Join Date: Mar 2008
Posts: 33
Thanks: 9
Thanked 0 Times in 0 Posts
bryan0514, I have the same problem.

I have Pligg 9.9.5 and it tested with it but doesn't work

I have insert the code in login.tpl around line 48 (at the end of the form):

Code:
<input type="hidden" name="process" value="1"/>	
            {if $pagename ne "register"}
            	{if isset($register_step_1_extra)}
					<br />
				{$register_step_1_extra}
				{/if}
			{/if}            	
		</form> 
Anybody can help us?

Thanks
Reply With Quote
  #5 (permalink)  
Old 11-01-2008, 11:41 PM
New Pligger
 
Join Date: Oct 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Red face

Quote:
Originally Posted by nuki View Post
bryan0514, I have the same problem.

I have Pligg 9.9.5 and it tested with it but doesn't work

I have insert the code in login.tpl around line 48 (at the end of the form):

Code:
<input type="hidden" name="process" value="1"/>	
            {if $pagename ne "register"}
            	{if isset($register_step_1_extra)}
					<br />
				{$register_step_1_extra}
				{/if}
			{/if}            	
		</form> 
Anybody can help us?

Thanks

That's the wrong place. Do this:

Code:
<br />{#PLIGG_Visual_Register_Verify_Password#}:<br /><input type="password" id="verify" name="password2" size="20" tabindex="55"/>
{if $pagename ne "register"}
         {if isset($register_step_1_extra)}
               <br />
              {$register_step_1_extra}
	 {/if}
         {/if}   
<br /><input type="submit" name="submit" value="{#PLIGG_Visual_Register_Create_User#}" class="log2" tabindex="56" />
<input type="hidden" name="regfrom" value="sidebar"/>
<input type="hidden" name="process" value="1"/>
Reply With Quote
  #6 (permalink)  
Old 11-01-2008, 11:58 PM
New Pligger
 
Join Date: Oct 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
That doesn't work for some reason!

I get it in the sidebar only if the previous page was Register. It doesn't appear, for instance, on the first page after entering the site.
Reply With Quote
  #7 (permalink)  
Old 11-14-2008, 11:08 AM
New Pligger
Pligg Version: 9.9.5
 
Join Date: Oct 2008
Location: Boston, MA
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
This is working fine for the most part but it's not showing on the story pages. Is this happening for anyone else?
__________________
Marketing for Mavens: Automatically Match Your Web Promotions and Content to the Needs of Your Visitors
(www.marketingformavens.com)
Web Marketing Tribe: A Community of People Dedicated to Web Marketing
(www.webmarketingtribe.com)
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Registration captcha not working! financialaidnews Installation and Upgrade Help 3 03-18-2008 02:51 AM
Top 5 Tags sidebar based on last 24 h registration tbones Suggestions 0 03-13-2008 11:24 AM
Captcha not in Sidebar...how to get? BoDomain General Help 0 02-25-2008 01:58 AM
Captcha on registration form? financialaidnews General Help 2 02-14-2008 04:31 PM
Sidebar Registration did`nt work Jascha General Help 11 10-18-2007 04:30 PM


Search Engine Friendly URLs by vBSEO 3.2.0