Rewrite of phpBB3 Gallery index.php

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators

Postby Fazan » Tue Dec 23, 2008 9:54 pm

Sorry, what to edit for Simple phpBB3 SEO mod Rewrite V 0.4.8 and phpbb gallery 0.4.0 ?

I apologize for my bad English :oops:

oops not in the section :(
Fazan
 
Posts: 3
Joined: Tue Dec 23, 2008 9:47 pm
Location: Ukraine

Advertisement

Postby GoBieN » Tue Dec 23, 2008 10:46 pm

Funny thing, i was just trying this out tonight myself !
It seems that since the new Seo is path aware, not much needs changing.

The only problem i saw, was a gallery page in plain text with no styling at all.
This can be solved like this:
Open /gallery/includes/common.php
Find:
if ( !defined('IN_PHPBB') )
{
die('Hacking attempt');
}

After Add:
$template->assign_vars(array(
'S_IN_GALLERY' => true,
));


Open /styles/prosilver/templates/overall_header.html
Find:
</head>

Add Before:
<!-- IF S_IN_GALLERY -->
<base href="http://www.yourdomain.com/subdir_if_needed/gallery/" />
<!-- ENDIF -->


This is a quick & dirty solution.
Last edited by GoBieN on Tue Dec 23, 2008 10:46 pm, edited 1 time in total.
GoBieN
PR1
PR1
 
Posts: 124
Joined: Mon Mar 10, 2008 7:12 pm
Location: Belgium

Postby GoBieN » Tue Dec 23, 2008 10:46 pm

oops quote instead of edit
GoBieN
PR1
PR1
 
Posts: 124
Joined: Mon Mar 10, 2008 7:12 pm
Location: Belgium

Postby Fazan » Wed Dec 24, 2008 8:12 am

GoBieN wrote:This is a quick & dirty solution.

I use subsilver2, and want elegant solution:)

Moderators, please separate messages to the correct podforum.

problems in
Virtual Root:

value NO ok,
value YES gallery not working
Fazan
 
Posts: 3
Joined: Tue Dec 23, 2008 9:47 pm
Location: Ukraine

Postby SeO » Thu Dec 25, 2008 4:17 pm

Add :

Code: Select all
      if (strpos($this->seo_opt['req_self'], GALLERY_ROOT_PATH) !== false) {
         $this->seo_opt['file_hbase']['index'] = $this->seo_opt['file_hbase']['search'] = $this->seo_path['phpbb_url'] . GALLERY_ROOT_PATH;
      }


Before :
Code: Select all
      if ( $this->seo_opt['url_rewrite'] && !defined('ADMIN_START') && isset($this->seo_opt['file_hbase'][$this->seo_opt['req_file']])) {   
         $this->seo_opt['seo_base_href'] = '<base href="' . $this->seo_opt['file_hbase'][$this->seo_opt['req_file']] . '"/>';
      }


in phpbb_seo/phpbb_seo_class.php ;)
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby GoBieN » Sat Dec 27, 2008 11:20 pm

SeO wrote:Add :
....


With this, my quick & dirty solution is no longer needed ?
GoBieN
PR1
PR1
 
Posts: 124
Joined: Mon Mar 10, 2008 7:12 pm
Location: Belgium

Postby SeO » Sun Dec 28, 2008 8:13 am

Nope ;)

The above code will be part of the url rewriting patch, it's just there to add the required base href tag to fix the gallery when virtual root is on.

A part from that, no other tweak is necessary since the phpbb_seo class have become path aware since 0.4.6 ;)
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Re: Rewrite of phpBB3 Gallery index.php

Postby dcz » Mon Jul 27, 2009 7:59 am

Now the full story : SEO URL phpBB Gallery

;)
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21394
Joined: Fri Apr 28, 2006 9:03 pm

Re: Rewrite of phpBB3 Gallery index.php

Postby Elephantspike » Thu Jul 30, 2009 9:05 pm

Hi, I am running the Ultimate SEO URL and phpbb gallery 1.0.0 and I'm having the issue of my header links misdirecting everything to phpbb/gallery/... instead of just phpbb/... only when clicked from the gallery page.

I know the answer is close-by, but I'm a bit confused by the fact that this thread and the one on flying bits are linked to each other and I can't seem to find the current fix for this issue.

Thanks.
Elephantspike
 
Posts: 41
Joined: Mon Mar 26, 2007 3:39 pm

Re: Rewrite of phpBB3 Gallery index.php

Postby dcz » Sun Aug 02, 2009 1:48 pm

So you're not using the SEO URL phpBB Gallery V1.0.1RC1 mod ?

Could you confirm and post or PM the url to your gallery ?

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21394
Joined: Fri Apr 28, 2006 9:03 pm

Re: Rewrite of phpBB3 Gallery index.php

Postby Elephantspike » Tue Aug 04, 2009 7:17 pm

I haven't installed that yet, but I fixed the link issue by adding {U_INDEX} at the begining of the urls.

http://www.sitesourcetech.com/forum/gallery/index.php
Elephantspike
 
Posts: 41
Joined: Mon Mar 26, 2007 3:39 pm

Previous

Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: YandexBot [Bot] and 8 guests