Forum

Whether it's a plugin thats causing issues, a theme, or just needed help with styling your site...We can help! Live Person Support for all your Wordpress Needs!

Welcome Guest

Pages: 1 2
Integrate forum with Theme My Login plugin
cartpaujPostJan 10 2011, 06:58 PM

Administrator
Posts: 2976
Registered:
Apr 27 2010, 05:10 PM
Hot topicIntegrate forum with Theme My Login plugin

As of Mingle Forum 1.1.0 this is no longer required. Use the login/signup/logout options in the settings instead.

NOTE: All references to YOURSITE.com/THEMEMYLOGINPAGE/ below need to be modified to fit your sites links.

Open wpf.class.php

1) find:

			$meta = "<p>".__("Welcome Guest, posting in this forum requires", "mingleforum")." <a href='$this->reg_link'>".__("registration.", "mingleforum")."</a></p>".$this->login_form();

And change it to:

			$meta = "<p>".__("Welcome Guest, posting in this forum requires", "mingleforum")." <a href='http://YOURSITE.com/THEMEMYLOGINPAGE/?action=register'>".__("registration.", "mingleforum")."</a></p>".$this->login_form();

2) find:

	function login_form(){
		global $user_ID;
		$user = get_userdata($user_ID);
		$login = $user->user_login;
		$login_msg = "";
		if ($login)
			$login_msg = "<p>".__("You are logged in as:", "mingleforum")." ".$user->user_login."</p>";
		else
			$login_msg = "";

		$settings = $this->get_forum_admin_ops();

		if(!is_user_logged_in() && $settings['forum_show_login_form']){
			return "<form action='".get_option('siteurl')."/wp-login.php' method='post'>
				<label style='font-size:100%;' for='log'>".__("Username: ", "mingleforum")."</label><br /><input type='text' name='log' id='log' value='".wp_specialchars(stripslashes($user_login), 1)."' size='20' /><br />
				<label style='font-size:100%;' for='pwd'>".__("Password: ", "mingleforum")."</label><br /><input type='password' name='pwd' id='pwd' size='20' /> 
				<input type='submit' name='submit' value='Login' id='wpf-login-button' class='button' /><br />
				<label style='font-size:100%;' for='rememberme'><input name='rememberme' id='rememberme' type='checkbox' checked='checked' value='forever' /> ".__("Remember Me", "mingleforum")."</label>
				
				<input type='hidden' name='redirect_to' value='".$_SERVER['REQUEST_URI']."'/>
			</form>";
		}
		else
			return $login_msg;
	}

And change it to:

	function login_form(){
		global $user_ID;
		$user = get_userdata($user_ID);
		$login = $user->user_login;
		$login_msg = "";
		if ($login)
			$login_msg = "<p>".__("You are logged in as:", "mingleforum")." ".$user->user_login."</p>";
		else
			$login_msg = "";

		$settings = $this->get_forum_admin_ops();

		if(!is_user_logged_in() && $settings['forum_show_login_form']){
			return "<form name='registerform' id='registerform' action='http://YOURSITE.com/THEMEMYLOGINPAGE/?action=login' method='post'>
				<label style='font-size:100%;' for='log'>".__("Username: ", "mingleforum")."</label><br /><input type='text' name='log' id='user_login' value='' size='20' /><br />
				<label style='font-size:100%;' for='pwd'>".__("Password: ", "mingleforum")."</label><br /><input type='password' name='pwd' id='user_pass' size='20' /> 
				<input type='submit' name='wp-submit' value='Login' id='wpf-login-button' class='button' /><br />
				<label style='font-size:100%;' for='rememberme'><input name='rememberme' id='rememberme' type='checkbox' checked='checked' value='forever' /> ".__("Remember Me", "mingleforum")."</label>
				
				<input type='hidden' name='redirect_to' value='".$_SERVER['REQUEST_URI']."'/>
				<input type='hidden' name='testcookie' value='1'>
				<input type='hidden' name='instance' value=''>
			</form>";
		}
		else
			return $login_msg;
	}

3) find:

		{
			$ProfLinky = "<a href='".site_url("wp-admin/profile.php") . "'>".__("Edit Profile", "mingleforum")."<br />";
		}

And change it to:

		{
			$ProfLinky = "<a href='http://YOURSITE.com/THEMEMYLOGINPAGE/?action=profile'>".__("Edit Profile", "mingleforum")."<br />";
		}

Cartpauj...it's pronounced (cart.paw.ja) - Donate!
Mingle Forum Video Tutorials



Shrink, Track, Share, Control ... Dominate
kumarPostJan 11 2011, 06:29 PM

Newbie
Posts: 16
Registered:
Dec 18 2010, 10:51 PM
Hot topicRe: Integrate forum with Theme My Login plugin

Great. This is very useful. Thank you!!!

topperaPostJan 13 2011, 03:59 PM

Newbie
Posts: 24
Registered:
Nov 24 2010, 07:40 PM
Hot topicRe: Integrate forum with Theme My Login plugin

It works when I changed all the "login/?action" for "login?action" (no slash).

cartpaujPostJan 13 2011, 05:41 PM

Administrator
Posts: 2976
Registered:
Apr 27 2010, 05:10 PM
Hot topicRe: Integrate forum with Theme My Login plugin

Yes if your permalink structure does not end with a / you will have to remove the slash from the steps above.

Cartpauj...it's pronounced (cart.paw.ja) - Donate!
Mingle Forum Video Tutorials

ghillcornerPostJan 19 2011, 06:52 AM

Newbie
Posts: 17
Registered:
Nov 26 2010, 08:12 AM
Hot topicRe: Integrate forum with Theme My Login plugin

i like this one but honestly i dont know how to set up :( any help

nickellisonPostFeb 26 2011, 02:36 PM

Newbie
Posts: 2
Registered:
Jan 14 2011, 02:30 PM
Hot topicRe: Integrate forum with Theme My Login plugin

did my best but got this error: Parse error: syntax error, unexpected '=' in /home/nellison/public_html/talktorbay.com/wp-content/plugins/mingle-forum/wpf.class.php on line 1938

cartpaujPostFeb 26 2011, 04:16 PM

Administrator
Posts: 2976
Registered:
Apr 27 2010, 05:10 PM
Hot topicRe: Integrate forum with Theme My Login plugin

You most likely deleted a " or ' somewhere. To deactivate the forum so you can use your site until you fix it just rename or remove the Forum folder using FTP or your Hosts FileManager.

Cartpauj...it's pronounced (cart.paw.ja) - Donate!
Mingle Forum Video Tutorials

damianPostApr 27 2011, 12:38 PM

Newbie
Posts: 1
Registered:
Apr 27 2011, 06:04 PM
Hot topicRe: Integrate forum with Theme My Login plugin

Thanks, Cartpauj, for sharing how to make Mingle Forum compatible with Theme My Login.

I've implemented your suggestions, and everything works great, except one thing:

The MF logout link doesn't work. In fact, it leads me to the Theme My Login profile page, and it doesn't log me out at all. Here is the URL the TML logout link says it links to (when I hover over the link):

http://www.damianmoskovitz.com/login/?action=logout&redirect_to=http%3A%2F%2Fwww.damianmoskovitz.com%2Fforum%2F&_wpnonce=fa2b674c1c

However, when I click it, I end up at this URL (which results in the profile page):

http://www.damianmoskovitz.com/login/?action=profile

You can test it by visiting http://www.damianmoskovitz.com/forum/ and logging in with:

user: temp
pass: temp111

Then try logging out, and you'll see what I'm talking about.

I've tried getting help from the developer of Theme My Login on his support forum at http://www.jfarthing.com/support/topic/registration-page-not-working#post-1592 but so far, he hasn't been able to solve it, so I thought I'd see if you had any ideas.

Thanks in advance for your help!

annabwasherePostMar 15 2012, 06:09 AM

Newbie
Posts: 5
Registered:
Feb 28 2012, 07:23 PM
Hot topicRe: Integrate forum with Theme My Login plugin

Thanks! Works great!

RodgePostApr 11 2012, 02:55 PM

Newbie
Posts: 9
Registered:
Apr 10 2012, 07:55 PM
Hot topicRe: Integrate forum with Theme My Login plugin

Worked fine for me! :)

GregDSPostJun 06 2012, 01:54 PM

Newbie
Posts: 1
Registered:
Jun 06 2012, 07:51 PM
Hot topicRe: Integrate forum with Theme My Login plugin

I had this working fine but when I upgraded to the Mod-skin 1.1 for Universal Black then went to redo it it messes up the lay out of the forum? Any ideas how to fix it?

tedwillPostAug 21 2012, 10:31 AM

Newbie
Posts: 2
Registered:
Aug 21 2012, 04:27 PM
Hot topicRe: Integrate forum with Theme My Login plugin

It works, but my question is why have 2 places to login. I assume there is already a login widget, right?
Is it not better just comment out? Like this:
// $meta = apply_filters('wpwf_guest_welcome_msg', "<p>".__("Welcome Guest, please login or", "mingleforum")." "."<a href='$this->reg_link'>".__("register.", "mingleforum")."</a></p>".$this->login_form()); //--weaver--
// $welcome = __("Welcome", "mingleforum"). " <strong>".$this->get_userdata($user_ID, $this->options['forum_display_name'])."</strong>";
$colspan = "";
}
if(!$user_ID && !$this->allow_unreg()){
// $meta = "<p>".__("Welcome Guest, posting in this forum requires", "mingleforum")." <a href='$this->reg_link'>".__("registration.", "mingleforum")."</a></p>".$this->login_form();

aasthaguptajainPostDec 08 2012, 08:08 AM

Newbie
Posts: 2
Registered:
Dec 08 2012, 12:40 PM
Hot topicRe: Integrate forum with Theme My Login plugin

Thanks, Cartpauj, for sharing how to make Mingle Forum compatible with Theme My Login.
I've implemented your suggestions, and everything works great, except one thing:

I am getting every message two times like " An email is sent to you for confirmation" and " you are now logged in"

Can you please help me with it.

booyahrcPostFeb 23 2013, 09:30 PM

Newbie
Posts: 3
Registered:
Feb 24 2013, 04:16 AM
Hot topicRe: Integrate forum with Theme My Login plugin

I can't seem to find these individual css areas. I look for the words but can not find them.
I am in the wpf.class.php folder. How do I find where i need to copy and paste to edit?

cartpaujPostFeb 23 2013, 10:36 PM

Administrator
Posts: 2976
Registered:
Apr 27 2010, 05:10 PM
Hot topicRe: Integrate forum with Theme My Login plugin

Theme my login integration will be more automatic (mostly) in the next release. No hacking files will be necessary.

Cartpauj...it's pronounced (cart.paw.ja) - Donate!
Mingle Forum Video Tutorials

Pages: 1 2
Mingle Forum by Cartpauj | Version: 1.1.0beta | Page loaded in: 0.358 seconds.


Shrink, Track, Share, Control ... Dominate