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  

Confused with Intructs from this site?

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » GalleryTap View previous topicPrinter friendly versionView next topic
Author Message
nukestud

Beginner
Beginner


Joined: Apr 13, 2003
Posts: 13

PostPosted: Tue Jan 06, 2004 8:29 pm    Post subject: Confused with Intructs from this site? Reply with quote

I am a little confused with the instructions from this site

3. Add the code from the header.php file to your $urlin array in the function replace_for_mod_rewrite, and to the $urlout array. Again, make sure you substitute your Gallery module's name in each of the "name=gallery" portions of the code.

I don't quite follow this?

Also in the header.php which comes with the zip from this site is also a little confusing


Code: › ##################
# IN function replace_for_mod_rewrite(&$s), ADD TO THE END OF THE ARRAY:
##################
# MAKE SURE YOU CHANGE THE NAME OF YOUR GALLERY TO YOUR GALLERY MODULE NAME
# AT EACH OF THE name=gallery SEGMENTS OF THIS CODE
##################

"'(?<!/)modules.php\?name=gallery'",
"'(?<!/)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\?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'"

# ADD THIS CODE TO THE $urlout ARRAY:

"gallery.html",
"gallery-page\\1.html",
"gallery.html",
"gallery-photo_\\1-\\2.html",
"gallery-album_\\1-page\\2.html",
"gallery-album_\\1.html"


IN function replace_for_mod_rewrite(&$s), ADD TO THE END OF THE ARRAY:

Does this mean like this?

Code: › #Start of Google Tap Header
global $module_name;
// Google Tap On or Off, 1=On, 0=Off
$ob = 1;

if ($ob == 1) {
   if (file_exists("GoogleTap/GT-".$module_name.".php")) {
   ob_start();
   } else {
   $ob = 0;
   }
}

function replace_for_mod_rewrite(&$s) {
global $module_name;
"'(?<!/)modules.php\?name=gallery'",
"'(?<!/)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\?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'"


if (file_exists("GoogleTap/GT-$module_name.php")) {
      include("GoogleTap/GT-$module_name.php");
}
$s = preg_replace($urlin, $urlout, $s);
return $s;
} #End of Google Tap Header


# ADD THIS CODE TO THE $urlout ARRAY:

Does this go like this?

Code: › $s = preg_replace($urlin, $urlout, $s);
return $s;
"gallery.html",
"gallery-page\\1.html",
"gallery.html",
"gallery-photo_\\1-\\2.html",
"gallery-album_\\1-page\\2.html",
"gallery-album_\\1.html"
} #End of Google Tap Header


I tried it and I just get a parse error!

The current code for the standard google tap I have in header.php is like this:

Code: › #Start of Google Tap Header
global $module_name;
// Google Tap On or Off, 1=On, 0=Off
$ob = 1;

if ($ob == 1) {
   if (file_exists("GoogleTap/GT-".$module_name.".php")) {
   ob_start();
   } else {
   $ob = 0;
   }
}

function replace_for_mod_rewrite(&$s) {
global $module_name;


if (file_exists("GoogleTap/GT-$module_name.php")) {
      include("GoogleTap/GT-$module_name.php");
}
$s = preg_replace($urlin, $urlout, $s);
return $s;
} #End of Google Tap Header


Any suggestions?

Cheers

PS. Nice work by the way, I have been dreaming about something like this for ages now Wink
Back to top
Hidden View user's profile Send private message
AdBot
   Post subject: Confused with Intructs from this site?  

Back to top
dari

Site Admin
Site Admin


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

PostPosted: Wed Jan 07, 2004 8:45 am    Post subject: Re: Confused with Intructs from this site? Reply with quote

Whoa there...this code is NOT for the GT-NextGen GoogleTap, only for the original GoogleTap. There is a post in the forum with the GT-NextGen code....
_________________
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: Wed Jan 07, 2004 11:15 am    Post subject: Re: Confused with Intructs from this site? Reply with quote

Oops ok thanks.

Problem is I followed those instructions too but no go! It's no big deal as I have the rest of nuke running the google tap including the forums, so I guess I'll just leave gallery as is. Atleast it's still working after the mods lol

Cheers
Back to top
Hidden View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » GalleryTap 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: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb 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