| Author |
Message |
Aylwin
Novice


Joined: Sep 16, 2003 Posts: 27
|
Posted: Sun Nov 30, 2003 12:49 pm Post subject: GT-NExtGEn and Gallery |
|
|
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_-]*)&id=([a-zA-Z0-9_-]*)&op=modload&name=gallery&file=index&include=view_photo.php'",
"'(?<!/)modules.php\?set_albumName=([a-zA-Z0-9_-]*)&op=modload&name=gallery&file=index&include=view_album.php&page=([0-9]*)'",
"'(?<!/)modules.php\?set_albumName=([a-zA-Z0-9_-]*)&op=modload&name=gallery&file=index&include=view_album.php'",
"'(?<!/)modules.php\?op=modload&name=gallery&file=index&include=albums.php&set_albumListPage=([0-9]*)'",
"'(?<!/)modules.php\?op=modload&name=gallery&file=index&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.
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.  |
|
| Back to top |
|
|
AdBot
|
| Post subject: GT-NExtGEn and Gallery |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6241 Location: Washington Township, NJ, USA
|
Posted: Sun Nov 30, 2003 7:26 pm Post subject: |
|
|
out of curiousity, do you notice any decrease in server load with the new googletap? _________________
 |
|
| Back to top |
|
|
Aylwin
Novice


Joined: Sep 16, 2003 Posts: 27
|
Posted: Sun Nov 30, 2003 9:21 pm Post subject: |
|
|
Ummm, how do I check server load?
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.?  |
|
| Back to top |
|
|
Aylwin
Novice


Joined: Sep 16, 2003 Posts: 27
|
Posted: Sun Dec 07, 2003 3:46 am Post subject: Re: GT-NExtGEn and Gallery |
|
|
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 |
|
|
Stevesteve
Beginner


Joined: Sep 09, 2003 Posts: 13
|
Posted: Thu Dec 11, 2003 7:37 pm Post subject: |
|
|
| very usefull, works great! |
|
| Back to top |
|
|
nukestud
Beginner


Joined: Apr 13, 2003 Posts: 13
|
Posted: Tue Jan 06, 2004 6:36 am Post subject: Re: GT-NExtGEn and Gallery |
|
|
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 |
|
|
Aylwin
Novice


Joined: Sep 16, 2003 Posts: 27
|
Posted: Thu Jan 22, 2004 11:02 am Post subject: Re: GT-NExtGEn and Gallery |
|
|
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 |
|
|
nukestud
Beginner


Joined: Apr 13, 2003 Posts: 13
|
Posted: Fri Jan 23, 2004 1:24 am Post subject: Re: GT-NExtGEn and Gallery |
|
|
Thanks for the reply Aylwin. All sorted now just reinstalled everything again
Cheers.... |
|
| Back to top |
|
|
jib_intelli
Beginner


Joined: Jun 10, 2004 Posts: 14
|
Posted: Tue Apr 25, 2006 11:44 pm Post subject: Re: GT-NExtGEn and Gallery |
|
|
| Could someone please get GT-Nextgen working with Gallery 2.1? It doesnt seem to work! |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6241 Location: Washington Township, NJ, USA
|
Posted: Wed Apr 26, 2006 6:26 am Post subject: Re: GT-NExtGEn and Gallery |
|
|
use the gallery2 embedded rewrite module _________________
 |
|
| Back to top |
|
|
jib_intelli
Beginner


Joined: Jun 10, 2004 Posts: 14
|
Posted: Wed Apr 26, 2006 11:36 pm Post subject: Re: GT-NExtGEn and Gallery |
|
|
| Will it work or will it interfere with the GT-Nextgen already running on the site? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6241 Location: Washington Township, NJ, USA
|
Posted: Thu Apr 27, 2006 7:03 am Post subject: Re: GT-NExtGEn and Gallery |
|
|
it should work _________________
 |
|
| Back to top |
|
|
jib_intelli
Beginner


Joined: Jun 10, 2004 Posts: 14
|
Posted: Thu Apr 27, 2006 11:52 pm Post subject: Re: GT-NExtGEn and Gallery |
|
|
Sorry not working. Tried everything. 404 not found error.  |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6241 Location: Washington Township, NJ, USA
|
Posted: Fri Apr 28, 2006 6:28 am Post subject: Re: GT-NExtGEn and Gallery |
|
|
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 |
|
|
uberandy
Beginner


Joined: Apr 29, 2004 Posts: 2
|
Posted: Tue Aug 15, 2006 11:10 am Post subject: Re: GT-NExtGEn and Gallery |
|
|
| can anyone confirm that the g2 rewrite mod works with it embed'd in phpnuke? |
|
| Back to top |
|
|
|
|
|
|
|