Re: Wordpress integration plugin :)

You could select all of them (except admin) and insert login/email in the wordpress database, but the passwords would have to be regenerated - users would have to use the "forgotten password" stuff smile
The plugin move wordpress users to punBB, but not the other way.

My site [PHP, Python, Linux]

102

Re: Wordpress integration plugin :)

I see... I only have 2 users in my wordpress. What I can do to make wordpress to read and register passwords the punbb password format? ;-)

103

Re: Wordpress integration plugin :)

Integrating wordpress and PunBB members will require commenters to sign up first before commenting. This will severely discourage visitors from commenting and popularizing your blog!

104

Re: Wordpress integration plugin :)

I have been working a idea that and thought that i had..  i wanted to pull wp stuff inside of punbb and i think that i got it working...

i can pull the menu and the cats from wp inside of punbb i think that i can even pull the side bar .. but i dont want to take away from the punbb
here is my example: http://256studio.com -->wp
http://256studio.com/forum --> pun 1.2.20


Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: Wordpress integration plugin :)

Riklaunim wrote:

The plugin move wordpress users to punBB, but not the other way.

Have anyone made a version of this plugin that does it the other way around? Importing users to from punbb to WP.

106 (edited by quaker 2008-09-06 17:12)

Re: Wordpress integration plugin :)

im working on sumthing and i thought that i would share it.

forum active user on the frontpage of wordpress.
http://nalan.org

add this code to your sidebar.php in your theme.

<h2><span><b>Forum active users</b></span></h2>
<ul>
   <?php
 define('PUN_ROOT', './forum/'); //remember to set the location of the forum
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'include/parser.php';
$result = $db->query('SELECT id, username, num_posts FROM '.$db->prefix.'users ORDER BY num_posts DESC, username LIMIT 20') or error('Unable to fetch user data', __FILE__, __LINE__, $db->error());
while ($data = $db->fetch_assoc($result))
{
    if ($data['id'] != 1)
    {
        echo "\t\t\t\t\t\t".'<li><a href="./forum/profile.php?id='.$data['id'].'">'.pun_htmlspecialchars($data['username']).'</a> ('.$data['num_posts'].') '.'</li>'."\n";
    } //also set it here to the lcoation of the forum
}

?>
</ul>
My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

107

Re: Wordpress integration plugin :)

I have listed my codes for my wordpress and punbb..

http://nalan.org/forum/viewtopic.php?id=4

I hope that helps..
Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

108

Re: Wordpress integration plugin :)

thanks for writing such a great plugin. im on wp 2.6.2 and punbb 1.2 but when i login from punbb it redirects me to the wp dashboard. if i go back to punbb and doesnt show me as logged in.

any suggestions?

109 (edited by gravitygripp 2008-10-17 22:52)

Re: Wordpress integration plugin :)

I'm having a similar problem,I'd like for when a user logs in, to use the wordpress login screen but then re-direct them back to the forums. Right now, when a user clicks the login button, it sends them to the wordpress login page but then once they login, they go into the wordpress dashboard.

Re: Wordpress integration plugin :)

I fixed the problem I was having where when a user would click login to the forums, it would redirect them to the wordpress login and once they logged in there, it would redirect them to the profile. I wanted it to redirect back to the forum.

So here's what I did.

in wp-login.php at line 470

<input type="hidden" name="redirect_to" value="<?php echo attribute_escape($redirect_to); ?>" />

change it to look like this

<?php
if($_SERVER['HTTP_REFERER'] === "your forum address here")
{
?>
        <input type="hidden" name="redirect_to" value="<?php echo attribute_escape("your forum address here"); ?>" />
<?php
}else{
?>
        <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($redirect_to); ?>" />
<?php
}
?>

So what this will do is say, if you are coming from my forums, once logged in, go back to my forums.

I'm sure there's a more elegant way to do this, but it works for me...at least until I have to update wordpress. Hope this helps someone.

111

Re: Wordpress integration plugin :)

the registration is working for me, but not the login, so I think i'm doing something wrong with the cookies. But when I login (it redirects me to wordpress to login) then it doesn't create a cookie for punbb.

someone had the same problem?

112

Re: Wordpress integration plugin :)

Ok, I got it working! Even tough, the design is not yet finished!

PunBB 1.3.x and Wordpress 2.6.3

http://www.nino-net.org/blog/
http://www.nino-net.org/discussions/

Check out my site, I also wrote a small article.

http://www.nino-net.org/2008/11/integra … press-263/

113 (edited by late 2008-11-28 22:21)

Re: Wordpress integration plugin :)

Hi. I ran into some problems again hmm

When user clicks logout at the forum, he will only logout of the forum (not forum AND wp like he is supposed to, right?) or if the user logs out from WP, he will still remain logged in on the forum.

My WP files are located at www.domain.com/wordpress/ but the url for accessing the site is just www.domain.com. PunBB files are at www.domain.com/forum/. Using PunBB 1.3 and WP 2.6.3.

I guess this has something to do with the cookies? Would be great if someone could help me out.

EDIT. Actually Punbb logout doesn't log the user out no matter if he is still logged in on WP or not...

114

Re: Wordpress integration plugin :)

Do you try to set

$cookie_domain = 'www.domain.com';
$cookie_path = '/';

in config.php?

115

Re: Wordpress integration plugin :)

Yeah, it didn't help.

116

Re: Wordpress integration plugin :)

i have tried a few things and still i cant get it to work..

Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

117

Re: Wordpress integration plugin :)

here is my main.tpl for my integrating the style with the template..

http://punbb.informer.com/forums/post/120302/#p120302

Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

118

Re: Wordpress integration plugin :)

hi -- this is really exciting, would this plugin work for WPMU2.7?

119

Re: Wordpress integration plugin :)

I'm not sure but you can try just back up ur header.php and footer.php

Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

120

Re: Wordpress integration plugin :)

Spam. mad

Benoît V.
My Board