[BETA] WP-United: WordPress Integration (v0.9.5 04/06/2007)

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
stephen_a
Registered User
Posts: 103
Joined: Thu Mar 18, 2004 12:52 pm

Re: [BETA] WP-United: WordPress Integration (v0.9.0 24/3/07)

Post by stephen_a »

Who knows.

I've also managed to fix the navigation problem too ;)

Does WP-United play around with the 'home' option anywhere?

The reason I ask is that I put some debugging code into the blog code to narrow down why I was getting those extra url parts in the previous post link.

I eventually ended up looking at get_permalink (in link-template.php).

The line

Code: Select all

return apply_filters('post_link', get_option('home') . str_replace($rewritecode, $rewritereplace, $permalink), $post);
returned a different value for get_option('home') for the previous and next links.

For Next Post it returned mywebsite.url/blog.php
For Previous Post it returned mywebsite.url/blog.php/author/steve

However if I do an additional get_option('home') before the return line the problem goes away!

User avatar
Jhong
Registered User
Posts: 538
Joined: Thu Aug 10, 2006 6:53 pm
Location: In a theme sandwich
Contact:

Re: [BETA] WP-United: WordPress Integration (v0.9.0 24/3/07)

Post by Jhong »

Stephen,

Yes, the home link is altered (just about everything is altered on the fly to make 'user blogs' work -- it is not a default wordpress feature). This is so that the link in the header leads back to the root of the author blog, not the site root. WP-United tries to be clever about it though -- only doing it the first time get_options('home') is called in the header , on the assumption that this way, it will catch the header link, and the links on rest of the page won't be affected.

In your case, you deleted the header link, so the first instance it meets is the previous posts link. This also explains why I couldn't reproduce the issue in testing ;-)

The solution is to have a "no home links past this point get altered" as a backup. So we have to pick something that exists on every page, as high up as possible - that can't be deleted like your header link. This would be The Loop -- the loop that grabs all the posts. This is the same in every template and won't be deleted. To hook into this we use the action 'loop_start'.

So, to cut a long story short:

open

wp-united/wpu-plugin.php

at the end, with all the other hooks, add:

Code: Select all

add_action('loop_start', 'wpu_loop_entry');
then further up, in the body of the file, with all the functions, add:

Code: Select all

// This is the last chance we have to prevent the home link from being changed
function wpu_loop_entry() {
	$GLOBALS['altered_link'] = TRUE;
}
And that's it!

I'll include it in the next release. This way, you won't have modified any WP files and won't have to worry about upgrading. :-)
phpBB<->WordPress Integration: www.wp-united.com

stephen_a
Registered User
Posts: 103
Joined: Thu Mar 18, 2004 12:52 pm

Re: [BETA] WP-United: WordPress Integration (v0.9.0 24/3/07)

Post by stephen_a »

That fixed it ;)

Thanks

gansert
Registered User
Posts: 581
Joined: Wed Mar 08, 2006 8:48 pm
Location: KÖLN, GERMANY
Contact:

Re: [BETA] WP-United: WordPress Integration (v0.9.0 24/3/07)

Post by gansert »

Hi Jhong,

while installing this mod in the install file says:
Files to edit:admin/admin_users.php


But there are no changes in the install-file furthermore for that file :?

Could you please check that and tell me what to do?

gansert

User avatar
Jhong
Registered User
Posts: 538
Joined: Thu Aug 10, 2006 6:53 pm
Location: In a theme sandwich
Contact:

Re: [BETA] WP-United: WordPress Integration (v0.9.0 24/3/07)

Post by Jhong »

Ah yes, I need to remove that line... the file is currently not modded in the latest version :-)
phpBB<->WordPress Integration: www.wp-united.com

gansert
Registered User
Posts: 581
Joined: Wed Mar 08, 2006 8:48 pm
Location: KÖLN, GERMANY
Contact:

Re: [BETA] WP-United: WordPress Integration (v0.9.0 24/3/07)

Post by gansert »

okay,
anyway... I am just installing xamPP cause I messed up my site. The installation was no problem at all, tho. But there were conflicts and the site was not shown well so I am gonna try with xamPP first. :oops: Then I have more time.. :lol:

User avatar
Jhong
Registered User
Posts: 538
Joined: Thu Aug 10, 2006 6:53 pm
Location: In a theme sandwich
Contact:

Re: [BETA] WP-United: WordPress Integration (v0.9.0 24/3/07)

Post by Jhong »

There will always be a line or two of CSS you will need to nip and tuck into line when you integrate two separate templates into a single page... The Web Developer toolbar for FireFox is a great help for this.

If you need specific pointers, feel free to post in the CSS forum at wp-united.com.
phpBB<->WordPress Integration: www.wp-united.com

gansert
Registered User
Posts: 581
Joined: Wed Mar 08, 2006 8:48 pm
Location: KÖLN, GERMANY
Contact:

Re: [BETA] WP-United: WordPress Integration (v0.9.0 24/3/07)

Post by gansert »

Thank you very much Jhong.

I am sure I gonna have some questions cause I am not good with css or how to edit the blog.tpl - file

But I managed to finish installation with wordpress and phpBB on xampp. so I am gonna give another try this afternoon :lol:

cu


missdolly
Registered User
Posts: 69
Joined: Wed Sep 14, 2005 5:17 am

Re: [BETA] WP-United: WordPress Integration (v0.9.0 24/3/07)

Post by missdolly »

I'm having a hard time trying to figure out my path for wordpress.my domain folder to enter ftp is public_html and my folder for wordpress is main.The server I'm on is..Linux,What am I suppose to do?I tried
public_html/main and the example it gave..and I siill get this error!

WARNING: A working WordPress install could not be found (Searching for: public_html/main/wp-settings.php). Either the path has been typed or auto-detected incorrectly, or WordPress has not been installed. Please check the provided file path and try again.
ERROR: The WP-United Connection could not be installed. Please check that the path provided or auto-detected is corrrect, and that WordPress is installed and working.

And its definately installed because I logged into Wordpress and everything...

someone please help :(

User avatar
Jhong
Registered User
Posts: 538
Joined: Thu Aug 10, 2006 6:53 pm
Location: In a theme sandwich
Contact:

Re: [BETA] WP-United: WordPress Integration (v0.9.0 24/3/07)

Post by Jhong »

Hi missdolly...

answered here: http://www.wp-united.com/viewtopic.php?p=590#590



J
phpBB<->WordPress Integration: www.wp-united.com

gansert
Registered User
Posts: 581
Joined: Wed Mar 08, 2006 8:48 pm
Location: KÖLN, GERMANY
Contact:

Re: [BETA] WP-United: WordPress Integration (v0.9.0 24/3/07)

Post by gansert »

Does anyone have experience with this mod installing with xampp?

It didnT work for me but I only made a short test. Gonna try it next week again..

User avatar
Jhong
Registered User
Posts: 538
Joined: Thu Aug 10, 2006 6:53 pm
Location: In a theme sandwich
Contact:

Re: [BETA] WP-United: WordPress Integration (v0.9.0 24/3/07)

Post by Jhong »

It should work just fine with Apache and PHP on Windows. What errors were you getting?
phpBB<->WordPress Integration: www.wp-united.com

gansert
Registered User
Posts: 581
Joined: Wed Mar 08, 2006 8:48 pm
Location: KÖLN, GERMANY
Contact:

Re: [BETA] WP-United: WordPress Integration (v0.9.0 24/3/07)

Post by gansert »

hi,
I think I just need two tries. I got it working now on xampp.

The Forum is still fine without problems but the blog index (http://localhost gets redirected to http://localhost/forums/blog.php) is empty and says:
Sorry, No Posts matched your criteria.

Pages: 1 2 3 ... 4 ►



I chose phpBB into Wordpress. But there is no forums shown. And no links either. How can I do that :?

If I login into phpBB and go then to wordpress I get automatically logged in. At least one thinh is how it should be :oops:

User avatar
Jhong
Registered User
Posts: 538
Joined: Thu Aug 10, 2006 6:53 pm
Location: In a theme sandwich
Contact:

Re: [BETA] WP-United: WordPress Integration (v0.9.0 24/3/07)

Post by Jhong »

Hi...

The page is supposed to redirect to your blog entry point (whatver you set in Step 1 of the wizard).

The page shows that because you selected the "use Blog home page"... but there are no user blogs yet. As soon as you or other people start creating blogs, the page will make more sense.

You'll need to add a link to the forum to your WordPress template files. You can just visit the forums directly to see what they look like :-)

Note there is a bug when updaing profiles in this version, when phpBB is inside WordPress. This will be fixed in the next version.

J
phpBB<->WordPress Integration: www.wp-united.com

Post Reply

Return to “[2.0.x] MODs in Development”