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  

Featured Image CENTER Block...

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

Beginner
Beginner


Joined: Aug 06, 2003
Posts: 12

PostPosted: Thu Aug 07, 2003 3:29 pm    Post subject: Featured Image CENTER Block... Reply with quote

Anyone ever see a Featured Image Block...
Like a news block but only placing a feaured image and allowing commentary below...
I know that it could be done with HTML in the news module.. but I set up the gallery for someone who wants to highlight an image and then have it be able to click on the image and go directly to the album.

Anyone ever see something like that?
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version:
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Featured Image CENTER Block...  

Back to top
dari

Site Admin
Site Admin


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

PostPosted: Thu Aug 07, 2003 3:41 pm    Post subject: Re: Featured Image CENTER Block... Reply with quote

yeah, a quick hack of the random block (hourly/daily) will let you do it. just hard code in the URL of the photo/album that you want. this is, of course, assuming you don't want it to change.
Back to top
Offline View user's profile Send private message Visit poster's website
miso

Beginner
Beginner


Joined: Aug 06, 2003
Posts: 12

PostPosted: Thu Aug 07, 2003 4:53 pm    Post subject: Reply with quote

Well.. when a new album gets added or new images to an album... is what we are hoping... so Random Image only from a new or new image...
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Thu Aug 07, 2003 4:55 pm    Post subject: Reply with quote

then get the "new albums" block and in the code, there is a for loop that counts from 0 to 5, just change the 5 to a 1.
Back to top
Offline View user's profile Send private message Visit poster's website
miso

Beginner
Beginner


Joined: Aug 06, 2003
Posts: 12

PostPosted: Thu Aug 07, 2003 5:19 pm    Post subject: Reply with quote

I just added the center block... it is working but I get this error:
Warning: Invalid argument supplied for foreach() in /home/virtual/site41/fst/var/www/html/modules/gallery/session.php on line 55
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Thu Aug 07, 2003 5:28 pm    Post subject: Reply with quote

this has been answered many times in this forum, please do a search.
Back to top
Offline View user's profile Send private message Visit poster's website
miso

Beginner
Beginner


Joined: Aug 06, 2003
Posts: 12

PostPosted: Thu Aug 07, 2003 6:41 pm    Post subject: Reply with quote

yep... found it...


/* emulate register_globals for sessions */
if (!$gallery->register_globals) {
foreach($_SESSION as $key => $value) {
eval("\$$key = & \$_SESSION[\"$key\"];");
}
}

thanks..

now check out http://www.nickkatradis.com
Back to top
Offline View user's profile Send private message
miso

Beginner
Beginner


Joined: Aug 06, 2003
Posts: 12

PostPosted: Mon Aug 11, 2003 4:00 pm    Post subject: Reply with quote

Also edit the red values in the following lines in random_support.php to reflect the name of your gallery:

$url .= "&op=modload&name=gallery&file=index&include=view_photo.php";
$albumURL .= "&op=modload&name=gallery&file=index&include=view_album.php";


Would these be the lines to Hard code.

and can I increase the size of the image?

and is there anyway for the gallery owner to pick an image to hightie the image/
Back to top
Offline View user's profile Send private message
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Mon Aug 11, 2003 4:07 pm    Post subject: Reply with quote

Do a search in these forums using $scaleTo

The GALLERY owner can select a new highlighted image by going in to an album and selecting Highlight from the dropdown under an iimage
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
miso

Beginner
Beginner


Joined: Aug 06, 2003
Posts: 12

PostPosted: Mon Aug 11, 2003 4:13 pm    Post subject: Reply with quote

I just got this error in the random image...

Warning: rand() expects parameter 2 to be long, string given in /home/virtual/site41/fst/var/www/html/modules/gallery/random_support.php on line 193
ERROR: requested index [] out of bounds [42]
Fatal error: Call to a member function on a non-object in /home/virtual/site41/fst/var/www/html/modules/gallery/classes/Album.php on line 642
Back to top
Offline View user's profile Send private message
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Mon Aug 11, 2003 4:15 pm    Post subject: Reply with quote

Checkout this post:

http://www.nukedgallery.net/modules.php ... opic&t=121
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
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