A couple of questions please

phpBB SEO Premod for phpBB3 support forum.
This premodded version of phpBB3 includes the three different type of URL rewriting for phpBB3 by phpBB SEO. It comes with several other Search Engine Optimization mods installed.

Moderator: Moderators

A couple of questions please

Postby SEOmers » Tue Nov 19, 2013 5:39 pm

Hi Guys

Great plugin/mod but I'm finding the odd 'bug'

I own http://motovlog.com and everything seems to be in working order expect for the 'recent tops' section at the top of my forum? (and the jump to latest comment arrows all go through a redirect?) Surely that (well it will) cause an unwanted load on the server?

For example i.imgur.com/7TPRgiD.jpg

Also, is there anyway to sort out the old urls to a nice keyworded structure? AT the moment, new topics work fine?

I haven't used phpbb for some years so please forgive me :)
SEOmers
 
Posts: 5
Joined: Tue Nov 19, 2013 4:55 pm

Advertisement

Re: A couple of questions please

Postby HB » Tue Nov 19, 2013 8:54 pm

I don't know which recent topics mod you're using, but the required changes are along these lines: NV recent Topics problem.

BACKGROUND: If you haven't looked at the phpbb_seo_class.php, it may help to understand what's required. In a nutshell, this class is called to remap "vanilla" URLs into forum title/topic title injected versions. This is done by providing it with the necessary topic and forum ID mappings. In the phpBB-SEO premod, the standard phpBB append_sid(...) method in functions.php is modified to call the $phpbb_seo->format_url(...) method. Your recent topics isn't working because your version of it doesn't include calls to $phpbb_seo->set_url(...). See viewtopic.php for an example:

Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->set_url($topic_data['forum_name'], $forum_id, 'forum');
...snip...
$phpbb_seo->prepare_iurl($topic_data, 'topic', $_parent);

Your code won't be exactly like the above, but hopefully that will give you an idea of how to modify your recent topics mod.

As for the redirect... technically it won't matter, since the redirect will lead to the canonical URL. Yes, it will cause a server round trip for the 301, but that load is barely measurable.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1536
Joined: Mon Oct 16, 2006 2:25 am

Re: A couple of questions please

Postby HB » Tue Nov 19, 2013 9:08 pm

SEOmers wrote:Also, is there anyway to sort out the old urls to a nice keyworded structure? AT the moment, new topics work fine?

phpBB-SEO caches the calculated topic URL in the topics table. You can set that column to null and it will recalculate it next time, or you can run the phpbb_seo/sync_url.php to force a recalculation for all URLs.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1536
Joined: Mon Oct 16, 2006 2:25 am

Re: A couple of questions please

Postby SEOmers » Tue Nov 19, 2013 11:11 pm

Much appreciated although that guide is suggesting to change a file that my template doesn't have. I've looked all over for includes/functions_recenttopics.php and its' not in my theme at all

The site isn't using any mods, other than the php seo one which is the one I thought could handle it

The guide is over three years old, I would have thought things have changed since then ?
SEOmers
 
Posts: 5
Joined: Tue Nov 19, 2013 4:55 pm

Re: A couple of questions please

Postby SEOmers » Wed Nov 20, 2013 8:54 am

HB wrote:
SEOmers wrote:Also, is there anyway to sort out the old urls to a nice keyworded structure? AT the moment, new topics work fine?

phpBB-SEO caches the calculated topic URL in the topics table. You can set that column to null and it will recalculate it next time, or you can run the phpbb_seo/sync_url.php to force a recalculation for all URLs.


Where is that value held though? I can't find a topics table?


It's just the one plugin I need right?
SEOmers
 
Posts: 5
Joined: Tue Nov 19, 2013 4:55 pm

Re: A couple of questions please

Postby HB » Wed Nov 20, 2013 2:18 pm

It looks like you've made changes since your original post... the recent topics last post is invalid:

Code: Select all
http://motovlog.com/general-discussion/slipped-off-my-bike-o-t5257.html&p=43599#p43599

That looks pretty close to correct, except for the missing "?". Sorry I can't offer specifics on the phpBB-SEO recent topics mod; I've never used it. I assume it worked as advertised and something happen when you applied it to your board. The usual recommendation applies: Double-check your work.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1536
Joined: Mon Oct 16, 2006 2:25 am

Re: A couple of questions please

Postby SEOmers » Wed Nov 20, 2013 2:47 pm

I've just brought the forum.

Trouble is, I can only edit what is there
SEOmers
 
Posts: 5
Joined: Tue Nov 19, 2013 4:55 pm

Re: A couple of questions please

Postby HB » Wed Nov 20, 2013 5:37 pm

If you've bought the code and don't know how it works, I would do a side-by-side comparison with the premod and your site. Then you'd know precisely what was installed (and hopefully figure out why). Here's some tips I posted in phpBB on a related subject:

HB wrote:Generally speaking, the phpBB auto-updater does a fine job of merging changes from a newer phpBB install into an existing one. It flags conflicts and presents you with options for resolving them (i.e., use the phpBB delivered code or keep the existing code). That said, if you have a heavily modified board, upgrading is a good time to take stock of what changes have been made and consciously choose which to carry forward and which may be obsolete. If this sort of "clean sweep" approach sounds appealing, read on. If not, go with the auto-updater and hope for few conflicts.

So, in your case, the "clean sweep" approach would start with downloading the original phpBB 3.0.9 zip and comparing it against your current installation using a source code comparison tool like WinMerge, Beyond Compare, Eclipse/PHP, etc. That will tell you precisely what code has changed. Many mods include some comments (e.g., "// start XXX mod" and "// end XXX mod") that will give you clues about what was installed. If you have a mix of manually installed mods, AutoMOD installs, and your own mods, it may be easier to reapply the latest AutoMOD installs to a fresh 3.0.12 install and then manually merge in the (hopefully few) mods from your 3.0.9 (modified) to 3.0.9 (unmodified) comparison.

In a nutshell, the clean sweep approach is:

  • Get the list of AutoMOD installs from your current installation as Oyabun1 suggests
  • Get the original 3.0.9 zip and compare it against your current install. Add to your list of mods any that were not in the ACP AutoMOD list for consideration (assuming of course they're identifiable by the code change via flagging)
  • Note any custom modifications not belonging to a 3rd-party mod (i.e., more than likely your styling modifications like CSS modifications and template modifications)
  • Get the latest phpBB 3.0.12 zip and latest version of the mods on your existing board. Install them in a fresh test environment (see below)
  • Using a source comparison/merge tool, merge changes not accounted for in the previous steps (again these are more than likely CSS or template changes)
  • Make a note to yourself to keep track of changes for next time. :)
Test the above in a local environment: How to set up a local server using xampp explains how to do that. Unless you have a lightly traffic'd site where users don't mind it being down for maintenance, don't skip this step. Set up a local environment, test it thoroughly, then upload to the live site during a slow period (e.g., late Saturday night or early Sunday morning).

From https://www.phpbb.com/community/viewtop ... &t=2210876 ... basically I am making the same recommendation, where you'd be substituting "phpBB-SEO 3.0.12" with 3.0.9 mentioned above. It may take you a day or two to track down all the changes, but then at least you'd know how your (newly acquired) board works.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1536
Joined: Mon Oct 16, 2006 2:25 am


Return to phpBB SEO Premod

Who is online

Users browsing this forum: No registered users and 3 guests