Home | Support Forums | Your Account | Gallery [2] | 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  

GT-NExtGEn and Gallery
Goto page 1, 2  Next
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » GalleryTap View previous topicPrinter friendly versionView next topic
Author Message
Aylwin

Novice
Novice


Joined: Sep 16, 2003
Posts: 27

PostPosted: Sun Nov 30, 2003 12:49 pm    Post subject: GT-NExtGEn and Gallery Reply with quote

For those who don't know yet, there's now an improved version of Gallery Tap which is much easier to install and maintain. It's GT-NExtGEn [audioslaved.com]. You can check out the thread at NukeCops [nukecops.com]. I only discovered this recently myself. It's currently Beta 0.4 but it works just fine.

You still need to edit your .htaccess, header.php and footer.php files but now each module has it's own GT-<module name>.php file under a GoogleTap directory.

Once you have GT-NExtGEn installed and working you'll need to edit your .htaccess file as described in the Gallery Tap instructions here at NukedGallery. You then need to create a GT-gallery.php file. Again, the contents are basically the same as described in the Gallery Tap instructions. Here's the file:

Code: › <?php

$urlin = array(
"'(?<!/)modules.php\?set_albumName=([a-zA-Z0-9_-]*)&amp;id=([a-zA-Z0-9_-]*)&amp;op=modload&amp;name=gallery&amp;file=index&amp;include=view_photo.php'",
"'(?<!/)modules.php\?set_albumName=([a-zA-Z0-9_-]*)&amp;op=modload&amp;name=gallery&amp;file=index&amp;include=view_album.php&amp;page=([0-9]*)'",
"'(?<!/)modules.php\?set_albumName=([a-zA-Z0-9_-]*)&amp;op=modload&amp;name=gallery&amp;file=index&amp;include=view_album.php'",
"'(?<!/)modules.php\?op=modload&amp;name=gallery&amp;file=index&amp;include=albums.php&amp;set_albumListPage=([0-9]*)'",
"'(?<!/)modules.php\?op=modload&amp;name=gallery&amp;file=index&amp;include=albums.php'",
"'(?<!/)modules.php\?name=gallery'"
);

$urlout = array(
"gallery-photo_\\1-\\2.html",
"gallery-album_\\1-page\\2.html",
"gallery-album_\\1.html",
"gallery-page\\1.html",
"gallery.html",
"gallery.html"
);

?>


There's also a small tweak needed to /modules/gallery/html_wrap/wrapper.header.default. Find:

Code: › global $PHP_SELF;


and replace with:

Code: › global $PHP_SELF, $nextgen_path, $next_gen_ob;


If you use the random photo block (my favorite), here's a mod for Google Tap support. Open /modules/gallery/random_support.php and find:

Code: ›     function random_photo($album, $index,$filetype){
   global $gallery;
      if (isset($index)) {
         $id = $album->getPhotoId($index);
         $url = SERVER_ADDR;
         $url .= "modules.php?set_albumName=".$album->fields["name"];
         $url .= "&id=" .$id;
         $url .= "&op=modload&name=gallery&file=index&include=view_photo.php";

         $albumURL = SERVER_ADDR;
         $albumURL .= "modules.php?set_albumName=".$album->fields["name"];
         $albumURL .= "&op=modload&name=gallery&file=index&include=view_album.php";
         $content = "<center><a href=\"$url\">".$album->getThumbnailTag($index)."</a></center>";
         $caption = $album->getCaption($index);
         if ($caption) {
            $content.="<br><center>".$caption."</center>";
         }
         $content .= "<br><center>From: <a href=\"".$albumURL."\">".$album->fields["title"]."</a></center>";

      } else {
         $content = "No photo chosen.";
      }


and replace with:

Code: ›     function random_photo($album, $index,$filetype){
   global $gallery;
      if (isset($index)) {
         $id = $album->getPhotoId($index);
         $url = SERVER_ADDR;
         $url .= "gallery-photo_".$album->fields["name"]."-";
         $url .= $id;
         $url .= ".html";

         $albumURL = SERVER_ADDR;
         $albumURL .= "gallery-album_".$album->fields["name"];
         $albumURL .= ".html";
         $content = "<center><a href=\"$url\">".$album->getThumbnailTag($index)."</a></center>";
         $caption = $album->getCaption($index);
         if ($caption) {
            $content.="<br><center>".$caption."</center>";
         }
         $content .= "<br><center>From: <a href=\"".$albumURL."\">".$album->fields["title"]."</a></center>";

      } else {
         $content = "No photo chosen.";
      }


This mod will also work with Google Tap 0.6.5. However, it's only for the random function. I don't use the hourly and daily photo functions myself so I didn't bothering to figure out the mod for them. Wink

By the way, you can find GT-NExtGEn Beta 0.4 working on my website: http://www.cal-family.org/ [cal-family.org]

I hope you find this info useful. Very Happy
Back to top
Offline View user's profile Send private message Visit poster's website
AdBot
   Post subject: GT-NExtGEn and Gallery  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6261
Location: Washington Township, NJ, USA

PostPosted: Sun Nov 30, 2003 7:26 pm    Post subject: Reply with quote

out of curiousity, do you notice any decrease in server load with the new googletap?
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
Aylwin

Novice
Novice


Joined: Sep 16, 2003
Posts: 27

PostPosted: Sun Nov 30, 2003 9:21 pm    Post subject: Reply with quote

Ummm, how do I check server load? Embarassed

I would assume though that it does decrease the server load. With the old googletap, the header.php file will just get bigger and bigger as you tap more modules. The whole tap is then loaded everytime because we're always loading header.php.

With this new one, header.php remains small and it only loads the tap for the module being viewed. If a tap doesn't exist for a particular module then it just skips the tap routine.

Anyway, this is how I guess it works. At least to me, it seems more efficient. But one thing I don't understand is how the .htaccess file works. It'll just get bigger and bigger. Does the size of the .htaccess file affect server load, processing time, etc.? Rolling Eyes
Back to top
Offline View user's profile Send private message Visit poster's website
Aylwin

Novice
Novice


Joined: Sep 16, 2003
Posts: 27

PostPosted: Sun Dec 07, 2003 3:46 am    Post subject: Re: GT-NExtGEn and Gallery Reply with quote

For those of you who happen to be using GT-NExtGEn (or even if you're not), I've put together a google tap conversion pack for Gallery 1.4.1:

http://gt.audioslaved.com/downloads-cat3.html

The conversion pack includes modded versions of the blocks found here at NukedGallery for google tap compatibility. I've also modded the multi-random block (found here [nukedgallery.net]) so that you can specify how many rows of photos you want.

I hope you find it useful.
Back to top
Offline View user's profile Send private message Visit poster's website
Stevesteve

Beginner
Beginner


Joined: Sep 09, 2003
Posts: 13

PostPosted: Thu Dec 11, 2003 7:37 pm    Post subject: Reply with quote

very usefull, works great!
Back to top
Offline View user's profile Send private message
nukestud

Beginner
Beginner


Joined: Apr 13, 2003
Posts: 13

PostPosted: Tue Jan 06, 2004 6:36 am    Post subject: Re: GT-NExtGEn and Gallery Reply with quote

I got pretty much everything working accept the links on the photos are still the nuke style links modules.php?set_albumName=album12&id=etc

Links to the albums like gallery-album_album12.html work fine and gallery.html all work but no matter what I do I can't get the photo links right. I have gallery 1.3.3 in nuke 6.5 and have followed the steps above several times over just to be sure but still no go.

Any suggestions?
Back to top
Hidden View user's profile Send private message
Aylwin

Novice
Novice


Joined: Sep 16, 2003
Posts: 27

PostPosted: Thu Jan 22, 2004 11:02 am    Post subject: Re: GT-NExtGEn and Gallery Reply with quote

Perhaps the urls for the photos in 1.3.3 are a bit different from 1.4.1? Could post a sample url? Or maybe a link to your photo gallery so we can have a look.

Hopefully, it's just a case of url mismatch because it's easy to fix.
Back to top
Offline View user's profile Send private message Visit poster's website
nukestud

Beginner
Beginner


Joined: Apr 13, 2003
Posts: 13

PostPosted: Fri Jan 23, 2004 1:24 am    Post subject: Re: GT-NExtGEn and Gallery Reply with quote

Thanks for the reply Aylwin. All sorted now just reinstalled everything again Wink

Cheers....
Back to top
Hidden View user's profile Send private message
jib_intelli

Beginner
Beginner


Joined: Jun 10, 2004
Posts: 14

PostPosted: Tue Apr 25, 2006 11:44 pm    Post subject: Re: GT-NExtGEn and Gallery Reply with quote

Could someone please get GT-Nextgen working with Gallery 2.1? It doesnt seem to work!
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6261
Location: Washington Township, NJ, USA

PostPosted: Wed Apr 26, 2006 6:26 am    Post subject: Re: GT-NExtGEn and Gallery Reply with quote

use the gallery2 embedded rewrite module
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
jib_intelli

Beginner
Beginner


Joined: Jun 10, 2004
Posts: 14

PostPosted: Wed Apr 26, 2006 11:36 pm    Post subject: Re: GT-NExtGEn and Gallery Reply with quote

Will it work or will it interfere with the GT-Nextgen already running on the site?
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6261
Location: Washington Township, NJ, USA

PostPosted: Thu Apr 27, 2006 7:03 am    Post subject: Re: GT-NExtGEn and Gallery Reply with quote

it should work
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
jib_intelli

Beginner
Beginner


Joined: Jun 10, 2004
Posts: 14

PostPosted: Thu Apr 27, 2006 11:52 pm    Post subject: Re: GT-NExtGEn and Gallery Reply with quote

Sorry not working. Tried everything. 404 not found error. Sad
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6261
Location: Washington Township, NJ, USA

PostPosted: Fri Apr 28, 2006 6:28 am    Post subject: Re: GT-NExtGEn and Gallery Reply with quote

make sure you put the htaccess code that g2 creates at the top of your phpnuke htaccess file. read the instructions at codex.gallery2.org
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
uberandy

Beginner
Beginner


Joined: Apr 29, 2004
Posts: 2

PostPosted: Tue Aug 15, 2006 11:10 am    Post subject: Re: GT-NExtGEn and Gallery Reply with quote

can anyone confirm that the g2 rewrite mod works with it embed'd in phpnuke?
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 » PHP-Nuke Issues » GalleryTap View previous topicPrinter friendly versionView next topic
Goto page 1, 2  Next

 
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: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSearch Engine OptimizationWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

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