• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Someone with gallery2 installed...

# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
<IfModule mod_rewrite.c>
RewriteEngine On

RewriteBase /gallery2/

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_FILENAME} !main\.php
RewriteRule . - [L]


RewriteCond %{THE_REQUEST} \ /gallery2/admin/(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !main\.php
RewriteRule . /gallery2/main.php?g2_view=core.SiteAdmin [QSA,L]

RewriteCond %{THE_REQUEST} \ /gallery2/v/(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !main\.php
RewriteRule . /gallery2/main.php?g2_view=core.ShowItem [QSA,L]

RewriteCond %{THE_REQUEST} \ /gallery2/d/([0-9]+)-([0-9]+)/([^\/]+)(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !main\.php
RewriteRule . /gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2 [QSA,L]

RewriteCond %{THE_REQUEST} \ /gallery2/v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !main\.php
RewriteRule . /gallery2/main.php?g2_view=core.ShowItem&g2_path=%1 [QSA,L]

</IfModule>

# END Url Rewrite section

 
You just saved me a heck of a lot of time. You now have naming rights to my firstborn son. Er... better make that daughter. No, cat.
 
G2 is AWESOME.
But I had to add some memory and php accelerator, because it started to hog up resources.
Too bad I couldn't turn on full caching with php accelerator - it started breaking (known bug)

It also has some bugs in determning whether your mod_rewrite is working. I knew mine was, but the G2 tests kept failing. So, I overrode them and enabled short urls. Worked like a charm.

<bragging>
I even wrote a little module for it and it was added to the list of user contributions
</bragging>
 
Originally posted by: paulney
<bragging>
I even wrote a little module for it and it was added to the list of user contributions
</bragging>

Which one?

Edit: I was amazed by how easy the installation process was. To bad it can't prevent idiots like me from overwriting their .htaccess file 😉
 
The HitCounter module. I wanted my website's hitcounter to appear on gallery pages as well, so I wrote a container/block for it.
with G1 I just hacked the php pages directly, but now you can do it in a more elegant way.

I hit a couple of snags upgrading from G1, but those were related to non-english characters in photo and album titles.
 
Back
Top