| :: |
| Author |
Message |
pvchat1
Joined: 15 Jul 2007 Posts: 13 Location: California
|
Posted: Sun Jul 15, 2007 3:24 pm Post subject: Problem with PHPBB3 Adv Rewrite Mod and FAQ page |
|
|
I'm testing the SEO mods and there seems to be a problem with the relative links on the faq page not working anymore because of the added base href. Removing that will allow the faq page to work correctly but then all the relative links (style, etc) on the forum pages no longer work.
Thanks,
Jeff |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
|
| Back to top |
|
 |
thedolphinboy
Joined: 24 Jul 2007 Posts: 8
|
Posted: Fri Jul 27, 2007 4:22 pm Post subject: Re: Problem with PHPBB3 Adv Rewrite Mod and FAQ page |
|
|
I have same problem, links inside faq.php doesnt work and jump to index again...
any quick fix until arrive RC3, please??? thanks... |
|
|
| Back to top |
|
 |
pvchat1
Joined: 15 Jul 2007 Posts: 13 Location: California
|
Posted: Fri Jul 27, 2007 9:21 pm Post subject: Re: Problem with PHPBB3 Adv Rewrite Mod and FAQ page |
|
|
I fixed it for now by creating a template variable that gets set in faq.php and gets checked in overall_header.html to skip adding the href.
Basically like this
| Code: | <!-- IF not S_HIDE_HREFBASE --><base href="{PHPBB_FULL_URL}"><!-- ENDIF -->
|
|
|
|
| Back to top |
|
 |
thedolphinboy
Joined: 24 Jul 2007 Posts: 8
|
Posted: Fri Jul 27, 2007 10:38 pm Post subject: Re: Problem with PHPBB3 Adv Rewrite Mod and FAQ page |
|
|
sorry about question, but where i must copy it, in faq.php or in overall_header.html???? and where in it??? can i put it where i wanna??
thanks anyway, sounds perfect  |
|
|
| Back to top |
|
 |
pvchat1
Joined: 15 Jul 2007 Posts: 13 Location: California
|
Posted: Fri Jul 27, 2007 10:51 pm Post subject: Re: Problem with PHPBB3 Adv Rewrite Mod and FAQ page |
|
|
ok - here are the changes in context.
in overall_header.html
| Code: |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>
<!-- IF not S_HIDE_HREFBASE --><base href="{PHPBB_FULL_URL}"><!-- ENDIF -->
|
and in faq.php (and any other non-forum content type page)
| Code: |
// Lets build a page ...
$template->assign_vars(array(
'S_HIDE_HREFBASE' => true,
'L_FAQ_TITLE' => $l_title,
'L_BACK_TO_TOP' => $user->lang['BACK_TO_TOP'])
);
|
|
|
|
| Back to top |
|
 |
thedolphinboy
Joined: 24 Jul 2007 Posts: 8
|
Posted: Fri Jul 27, 2007 10:59 pm Post subject: Re: Problem with PHPBB3 Adv Rewrite Mod and FAQ page |
|
|
yeahhhhhhhhh it works PERFECT!!!!! thanks a lot, you are really a genius!!!!  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
|
| Back to top |
|
 |
pvchat1
Joined: 15 Jul 2007 Posts: 13 Location: California
|
Posted: Mon Aug 06, 2007 12:16 am Post subject: Re: Problem with PHPBB3 Adv Rewrite Mod and FAQ page |
|
|
| Yes - tried this latest RC out and that problem along with a few others is now fixed. Good job. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
|
| Back to top |
|
 |
|
|