Can't moderate gallery

Support for the phpBB3 SEO mods released in the phpBB3 SEO Toolikt forum.

Moderator: Moderators

Can't moderate gallery

Postby Atlantis » Sat Mar 13, 2010 11:29 pm

Hi all,

I'm having a problem with the phpbb Gallery mod (1.0.5) and after some research, I think it may have something to do with an SEO issue. I have recently upgraded using your phpBB SEO Premod V 3.0.7-PL1 package and upgraded all of my styles and mods as it has been a while since I was last able to do that. After upgrading the phpbb gallery mod though, I realized that I cannot access the MCP page and hence, I can't move or edit any submissions. I have gone through and double, even triple checked my permission settings and everything is as it should be. My research on their site suggested that this might be an SEO issue so I came back here and just installed your seo_url_pack_phpbb_galleryV1-0-5 package but still, I cannot moderate the gallery.

Please keep in mind that I am not very savvy when it comes to coding and all of that but it appears as though when I click on the "moderate" link in my gallery, I am redirected to the regular modCP rather than the gallery/mcp.php page where I would be able to do what I need to do.

Usually I would just keep researching on my own and so I have to apologize if I am missing this answer but after searching here, I was only able to find topics that are similar, but not exact to my current situation and so I figured I would just ask here.

--------edit------------

One other quick question...after reading the descriptions on the "more options" area of the .htaccess page, it sounds as though I should have a "re-generate" button somewhere but I am unable to find it. Could this be an error? Is the button hidden at certain times? Perhaps I made an installation error?

Thanks for your time,
Atlantis
Atlantis
 
Posts: 11
Joined: Sun Oct 25, 2009 1:44 am

Advertisement

Re: Can't moderate gallery

Postby SeO » Sun Mar 14, 2010 12:08 am

This maybe :
install.xml wrote:____________
.htaccess :
____________

On the phpBB SEO ACP module, go to the ".htaccess" page and generate a new .htacccess.
If the gallery mod and the SEO URL patch are properly installed, it will add the gallery rewriterules automatically.

You will though need to alter this rewriterules in your .htaccess :

# FIX RELATIVE PATHS : FILES
RewriteRule ^.+/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ /$1 [QSA,L,NC,R=301]

Should be changed to :

# FIX RELATIVE PATHS : FILES
RewriteRule ^(?!galerie)/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ $2 [QSA,L,NC,R=301]

Note that this rewriterule may look a bit different, it can for example include the phpBB directory :

# FIX RELATIVE PATHS : FILES
RewriteRule ^phpBB/.+/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ /phpBB/$1 [QSA,L,NC,R=301]

which should then be changed to :

# FIX RELATIVE PATHS : FILES
RewriteRule ^phpBB/(?!gallery)/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ /phpBB/$1 [QSA,L,NC,R=301]

You just MUST keep the paths and slashes and ONLY replace ".+" with "(?!gallery)" in this rewriterule.
You can also comment / delete it if you experience further trouble.


The .htaccess gets generated (well its code) when you hit the submit button with all your options set.
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Re: Can't moderate gallery

Postby Atlantis » Sun Mar 14, 2010 2:27 am

Thanks for the reply. When I make this change, I always end up with a 500- Internal server error when I try to view an image. My cPanel error log says:
public_html/.htaccess: RewriteRule: cannot compile regular expression '^(?!galerie)/(style\\.php|ucp\\.php|mcp\\.php|faq\\.php|download/file.php)$'\n

Any ideas?
Atlantis
 
Posts: 11
Joined: Sun Oct 25, 2009 1:44 am

Re: Can't moderate gallery

Postby DaMysterious » Sun Mar 14, 2010 11:31 am

Word gallery is wrong spelled in this example "(?!galerie)".

Solution which does work for me.
Code: Select all
    # FIX RELATIVE PATHS : FILES
    RewriteRule ^(?!gallery)/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ $2 [QSA,L,NC,R=301]
    #RewriteRule ^.+/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ $1 [QSA,L,NC,R=301]
DaMysterious
 
Posts: 10
Joined: Mon Mar 10, 2008 6:05 pm
Location: The Netherlands

Re: Can't moderate gallery

Postby SeO » Sun Mar 14, 2010 12:31 pm

Also :
SeO wrote:
install.xml wrote:You can also comment / delete it if you experience further trouble.


It's not that bad not to use this rewriterule ;)
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Re: Can't moderate gallery

Postby Atlantis » Sun Mar 14, 2010 8:04 pm

Ahhh, thank you very much. Firefox pointed out that you and/or your server is in France so I figured "galerie" was right. Thank you very much, everything is working great again.
Atlantis
 
Posts: 11
Joined: Sun Oct 25, 2009 1:44 am


Return to phpBB SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 5 guests