| Author |
Message |
miso
Beginner


Joined: Aug 06, 2003 Posts: 12
|
Posted: Thu Aug 07, 2003 3:29 pm Post subject: Featured Image CENTER Block... |
|
|
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 |
|
|
AdBot
|
| Post subject: Featured Image CENTER Block... |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Aug 07, 2003 3:41 pm Post subject: Re: Featured Image CENTER Block... |
|
|
| 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 |
|
|
miso
Beginner


Joined: Aug 06, 2003 Posts: 12
|
Posted: Thu Aug 07, 2003 4:53 pm Post subject: |
|
|
| 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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Aug 07, 2003 4:55 pm Post subject: |
|
|
| 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 |
|
|
miso
Beginner


Joined: Aug 06, 2003 Posts: 12
|
Posted: Thu Aug 07, 2003 5:19 pm Post subject: |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Aug 07, 2003 5:28 pm Post subject: |
|
|
| this has been answered many times in this forum, please do a search. |
|
| Back to top |
|
|
miso
Beginner


Joined: Aug 06, 2003 Posts: 12
|
Posted: Thu Aug 07, 2003 6:41 pm Post subject: |
|
|
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 |
|
|
miso
Beginner


Joined: Aug 06, 2003 Posts: 12
|
Posted: Mon Aug 11, 2003 4:00 pm Post subject: |
|
|
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 |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon Aug 11, 2003 4:07 pm Post subject: |
|
|
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 |
|
|
miso
Beginner


Joined: Aug 06, 2003 Posts: 12
|
Posted: Mon Aug 11, 2003 4:13 pm Post subject: |
|
|
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 |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
|
| Back to top |
|
|
|
|
|
|
|