Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Tips: Custom G2 URL rewrite mod

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Integration » phpBB3 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
PoPoutdoor

Wizard
Wizard


Joined: Jan 20, 2006
Posts: 129

PostPosted: Mon Oct 12, 2009 1:02 am    Post subject: Tips: Custom G2 URL rewrite mod Reply with quote

Finially get the site upgraded to phpBB3!

After Gallery2-phpBB3 Integration, edit the following files:

1. memberlist.php
2. includes/ucp/ucp_profile.php

This mod for Download Item set as %itemId%/%fileName%

Edit file: memberlist.php

Find
Code: ›                   $ids = preg_grep('#^\d*-\d*$#i', explode('/', $links_data['ucp_images'][$i]));
                  if (is_array($ids) && sizeof($ids) > 1)
                  {
                     $ids = array_values($ids);
                     $itemId = (int) substr($ids[0], 0, strpos($ids[0], '-'));
                  }

Replaced with
Code: ›                   $ids = preg_grep('#^\d+$#i', explode('/', $links_data['ucp_images'][$i]));
                  if (is_array($ids) && sizeof($ids) > 1)
                  {
                     $ids = array_values($ids);
                     $itemId = (int) $ids[0];
                  }


Edit file: includes/ucp/ucp_profile.php

Find
Code: ›                            $itemIds = preg_grep('#^\d*-\d*$#i', explode('/', $ucpImages));
                           if (is_array($itemIds) && sizeof($itemIds) > 1)
                           {
                              $itemIds = array_values($itemIds);
                              $itemId = (int) substr($itemIds[0], 0, strpos($itemIds[0], '-'));
                           }

Replaced with
Code: ›                            $itemIds = preg_grep('#^\d+$#i', explode('/', $ucpImages));
                           if (is_array($itemIds) && sizeof($itemIds) > 1)
                           {
                              $itemIds = array_values($itemIds);
                              $itemId = (int) $ids[0];
                           }
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Tips: Custom G2 URL rewrite mod  

Back to top
commander_keen

Beginner
Beginner


Joined: Feb 24, 2009
Posts: 7

PostPosted: Fri Dec 11, 2009 5:43 pm    Post subject: Re: Tips: Custom G2 URL rewrite mod Reply with quote

Could you please explain what this is actually for, I'm sorry I don't get it Wink
Back to top
Offline View user's profile Send private message
PoPoutdoor

Wizard
Wizard


Joined: Jan 20, 2006
Posts: 129

PostPosted: Sat Dec 12, 2009 10:09 pm    Post subject: Re: Tips: Custom G2 URL rewrite mod Reply with quote

This is for the G2 URL-rewrite setting not using DEFAULT.
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Integration » phpBB3 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationDedicated Web HostingWeb Design New YorkCompare VoIPseo packagesSEO CompanyNew York Yellow PagesFind LocationsVOIP Phone ServiceNeckermannBluetooth HeadsetOnline internetSEOchina factoryDressesRestaurant Locatorandroid tablet

8th year online! 2003-2011
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia