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  

block-updatedGallery.php

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

Novice
Novice


Joined: Jul 09, 2003
Posts: 23

PostPosted: Fri Aug 01, 2003 12:37 pm    Post subject: block-updatedGallery.php Reply with quote

the file i downloaded came with 3files block-updatedGallery.php , add_fields.php , and index_php_patch .

can some1 teach me how to install the index_php_patch?

ive noticed also on line 31 @ block-updatedGallery.php is lookin for the albums.cache file under the albums directory. i was lookin inside my albums directory but didint find the albums.cache file Confused
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: block-updatedGallery.php  

Back to top
dari

Site Admin
Site Admin


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

PostPosted: Fri Aug 01, 2003 1:06 pm    Post subject: Reply with quote

the cache file will be created automagically.

for the patch file, here is what you have to do. open the modules/Your_Account/index.php file and look for the following line of code in the docookie function:
Code: › setcookie("user","$info",time()+2592000);

replace it with:
Code: › setcookie("user","$info",time()+3600);

(this is optional, it forces the user to log in after they've been gone for an hour, it facilitates checking for new albums).
next, find the login function. after the line that reads "include (config.php);", insert the following:
Code: ›
     # COPY CURRENT TIME TO PREVIOUS TIME AND UPDATE CURRENT TIME IN USER TABLE.
      $gettime = "SELECT user_id,user_current_visit,user_last_visit FROM ".$user_prefix."_users WHERE username='$username'";
      $timeinfo = $db->sql_query($gettime);                     
      $usertimes = $db->sql_fetchrow($timeinfo);
      $updatesql = "UPDATE ".$user_prefix."_users SET user_current_visit='".time()."',user_last_visit='".$usertimes[1]."' WHERE user_id='".$usertimes[0]."'";
      $updatequery = $db->sql_query($updatesql);


make sure you execute the add_fields.php file to add the fields to your database and you're set.
Back to top
Offline View user's profile Send private message Visit poster's website
switch

Novice
Novice


Joined: Jul 09, 2003
Posts: 23

PostPosted: Fri Aug 01, 2003 3:02 pm    Post subject: Re: block-updatedGallery.php Reply with quote

Dari: it worked. its runnning smoothly so far Very Happy "CROSSED MY FINGERS Wink " thanks for the detailed instructions made my installation run smoothly.thank you
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 Integration » Blocks 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 ServiceNeckermannOnline internetSEORestaurant Locator • Get great HP coupons from CouponSnapshot • Search for great dell coupons at CouponSnapshot.com.au • Graduation DressesAndroid TabletSEO IndiaBuy Phen375fuel filter

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