phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
ezPortal by Smartor

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
::  
Author Message
andrei155



Joined: 05 Jan 2008
Posts: 14

ezPortal by SmartorPosted: Wed Jan 23, 2008 12:16 am    Post subject: ezPortal by Smartor

Has anyone figured out how to get the Advanced URL rewrite to work for the ezportal announcements?

My website is located at www.bldhosting.net
Notice the news on the right, and how it links to old URL's
Back to top
mdster



Joined: 23 Jan 2008
Posts: 5

ezPortal by SmartorPosted: Wed Jan 23, 2008 5:53 am    Post subject: Re: ezPortal by Smartor

I just went thru this issue with my own seo mod & ezportal tonight - however I'm not sure if it's what is affecting your particular installation - it was with mine...

It has to do with the way that append_sid parsed the inbound links.
If the fields are passed to append_sid using params...

ie:
append_sid("{phpbb_root_path}viewtopic.$phpEx" , 'f='....
(note the comma, followed by the parameter f=)

Then it may work... however, in the ezportal scheme, in the
bb3portal->block-> directory you may find the offending animal depending on the specific module you're using - for instance, in news.php - the append_sid link looks like this:
Code:

'U_VIEW_COMMENTS'   => append_sid($phpbb_root_path . 'viewtopic.' . $phpEx . '?t=' . $fetch_news[$i]['topic_id'] . '&f=' . $fetch_news[$i]['forum_id']),

Note, everything is sent to append_sid as a URL, with NO parameters.

In my install, I changed this to read:
Code:

'U_VIEW_COMMENTS'   => append_sid("{$phpbb_root_path}viewtopic.$phpEx",'?t=' . $fetch_news[$i]['topic_id'] . '&f=' . $fetch_news[$i]['forum_id']),

and everything worked great. You may want to try this change to the particular line in the file that is generating your urls - it won't hurt anything as this is the 'standardized' way used throughout phpbb3.

Your mileage may vary - Good seo is priceless.
Workout - Bodybuilding
Back to top
andrei155



Joined: 05 Jan 2008
Posts: 14

ezPortal by SmartorPosted: Wed Jan 23, 2008 4:13 pm    Post subject: Re: ezPortal by Smartor

However, i have phpbb2
Back to top
mdster



Joined: 23 Jan 2008
Posts: 5

ezPortal by SmartorPosted: Wed Jan 23, 2008 6:37 pm    Post subject: Re: ezPortal by Smartor

The problem should be fixed by something like this:
Code:

Find:
'U_VIEW_COMMENTS' => append_sid('viewtopic.' . $phpEx . '?t=' . $fetchposts[$i]['topic_id']),


Code:

Try replacing with this:
'U_VIEW_COMMENTS' => append_sid($phpbb_seo->format_url($fetchposts[$i]['topic_title'],$phpbb_seo->seo_static['forum']) . '-t' . $fetchposts[i]['topic_id'] . '.html'),


(Careful it's not tested and may error out).

I'm not sure if this will work for you - It's gotta be close though. I had version 2.x previously and modded it myself with the portal - but a cursory look at the mixed mod indicates that this might work ok.

dcz may want to verify this.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: