1

(2 replies, posted in PunBB 1.3 extensions)

Slavok, yes that is exactly what I meant, sorry if I did not make that clear.

2

(2 replies, posted in PunBB 1.3 extensions)

I would like to see a support forum extension for PunBB. Essentially, this would modify the post icon and display either a red or green indicator (flag?) if the issue is resolved or un-resolved. It should be configurable by category or sub-category.

A request has been posted on the wiki.

Thanks!

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.

4

(13 replies, posted in PunBB 1.2 show off)

It would probably be best if you make a wiki entry for it smile

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.

6

(13 replies, posted in PunBB 1.2 show off)

That looks very good. I would like to know how you got it integrated with your theme.

Thanks!