Is there a way to disable the header and footer for this script?
Im trying to embed it in my movable type front page using includes. I went through most of this thread but I got lost...
anyone have the answer?
floridave
Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2005-03-31 02:41
cut from <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> down to <body dir="<?php echo $gallery->direction ?>"> and cut includeHtmlWrap("stats.header"); and includeHtmlWrap("stats.footer"); and
</body>
</html>
Dave
netlink
Joined: 2004-10-23
Posts: 2
Posted: Fri, 2005-04-01 06:34
The disable the header and footer mod for the script worked great!
Can you tell us what changes to make to get the text for captions, album link, description, etc to appear below the photo?
floridave
Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2005-04-01 14:10
reade the readme and pay attention to: $showGrid, $numRows, $numCols
Mysterium
Joined: 2005-04-03
Posts: 25
Posted: Tue, 2005-04-05 09:26
I downloaded the stats.tar bue thre is only one file, stats.php, is the readme integrated on stats.php?
After unzip, I put the file on gallery/stats.php.
gallery/0040775002505700007640000000000010054430106012727 5ustar myriagoncgishellgallery/stats.php0100644002505700007640000016620610074330561014612 0ustar myriagoncgishell
Warning: Cannot modify header information - headers already sent by (output started at /home/hugolima/public_html/galeria/stats.php:1) in /home/hugolima/public_html/galeria/lib/lang.php on line 342
Warning: main(./stats.config.default.php): failed to open stream: No such file or directory in /home/hugolima/public_html/galeria/stats.php on line 73
Fatal error: main(): Failed opening required './stats.config.default.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hugolima/public_html/galeria/stats.php on line 73
Is this normal? I don't undertstand what that means...What should I do?Thaks
floridave
Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2005-04-05 13:33
Mysterium wrote:
I downloaded the stats.tar bue thre is only one file, stats.php, is the readme integrated on stats.php?
Lots more than one file and there is a README in the download . look at the first post.
What version of gallery you using?
Mysterium
Joined: 2005-04-03
Posts: 25
Posted: Tue, 2005-04-05 14:56
floridave wrote:
Mysterium wrote:
I downloaded the stats.tar bue thre is only one file, stats.php, is the readme integrated on stats.php?
Lots more than one file and there is a README in the download . look at the first post.
What version of gallery you using?
floridave wrote:
Mysterium wrote:
I downloaded the stats.tar bue thre is only one file, stats.php, is the readme integrated on stats.php?
Lots more than one file and there is a README in the download . look at the first post.
What version of gallery you using?
I'm using 1.4.4-pl6
It's working 100% now :D i've studied all the commands and functions. The problem was that I just saw one file on the first time on the .zip so i just uploaded only one file- stats.php. But now everything is okey.
My doubt now is - and I don't know if this is possible - I don't want to have a page with the most recent uploaded fotos, I want just a section of the page to show that. By another words, if you go into www.hugolima.com/galeria you see a Blue table, I want to put there the most recente photos only with the name of their album. I want to remove the "xxx images in the gallery" and the grey bars beyond the thumbnails, I just want 2 thumbnails and the name of albums they belong. Is that possible?
Thanks for the feedback
floridave
Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2005-04-05 17:30
Mysterium wrote:
I just want 2 thumbnails and the name of albums they belong.
You could use stasts for this but not without hacking it even more. I would try another mod like: http://www.discobug.com/index.php?topic=gallery_help
or hard code the image you want there with the right HTML
Dave
Mysterium
Joined: 2005-04-03
Posts: 25
Posted: Tue, 2005-04-05 23:25
New Problem, this is realy hardcore and strange too...
When you enter on www.hugolima.com/galeria you see 2 horizontal imagens and one verticaly. The first too title's are well centred but the last one... I don´t understand why is that away. I'm on this problem since 4 hours ago. Any solution someone could give to me?
thanks
floridave
Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2005-04-05 23:41
Mysterium wrote:
New Problem, this is realy hardcore and strange too...
When you enter on www.hugolima.com/galeria you see 2 horizontal imagens and one verticaly. The first 2 are valign="top" right?.. wrong.. they are valign="middle" but for some reason they are always on the top!! I'm on this since 4 hours ago and i didn't find the solution..! Is there any way to put the images valign="middle"??
thanks
And what does this have to do with this thread? You can't include stats.php in another file without modding it to remove the head and body tags etc.
slck0
Joined: 2004-08-31
Posts: 15
Posted: Fri, 2005-04-15 18:24
Is this the predecessor of the stats.php that's included in Gallery v1.5? It looks like the grid options are commented out in the configuration file (includes/stats/stats.inc.php). Anyone know how to get the grid working? (I'm guessing the answer is 'not yet' and that's why it's commented out, but I figured I'd ask because I miss the grid look.)
fluor
Joined: 2003-12-01
Posts: 68
Posted: Fri, 2005-04-15 19:20
I've just upgraded to gallery 1.5, and now i get this error:
Fatal error: Call to a member function on a non-object in C:\web\gallery\classes\AlbumItem.php on line 82
if (!$itemCaptureDate) {
// we want to attempt to set the $itemCaptureDate from the information that
// is available to us. First, look in the exif data if it is a jpeg file. If that
// doesn't help us, then use the file creation date.
LINE 82: $dir = $gallery->album->getAlbumDir();
$name = $this->image->name;
$tag = $this->image->type;
$file = "$dir/$name.$tag";
$itemCaptureDate = getItemCaptureDate($file);
}
Could somebody help me please? All I want to do is to have a link displaying the latest uploaded images (about 40 images per page).
floridave
Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2005-04-15 22:45
slck0 wrote:
Is this the predecessor of the stats.php that's included in Gallery v1.5?
Yes.
Now that this thread is 25 pages and stats is part of Gallery I have decided to "lock" this thread. If I did not lock this thread it will get even more confusing for support because of the different versions.
If you would like to start another thread by all means do so. If you have any objections to locking this thread then PM me with a good explanation, and your willingness to contribute and I will open it again.
Dave
diomark
Joined: 2003-03-14
Posts: 90
Posted: Thu, 2007-10-04 01:52
Resurrecting this thread from the dead... Has anyone managed to get this hack working with the 1.5.7 gallery?
The non-hacked version takes ~35-40 seconds to come back WITH a cache file - which is pretty unacceptable
-mark
Haplo wrote:
nevermind...here's a quick fix
problem was the $list array was HUGE for large Galleries and took several secs to generate...and this is not required once a cache exists...
Also, as soon as a cache exists you only have to allocate a few albums, reading from top of the cache file...
Here's the fix
FIND AND DELETE
// Retrieve all albums and store in list array.
// This can be done using new AlbumDB() but this doesn't work
// on all hosts.
$numTopAlbums = $albumDB->numAlbums($gallery->user);
for ($i = 1; $i<=$numTopAlbums; $i++)
{
$topAlbum = $albumDB->getAlbum($gallery->user, $i);
$list[] = $topAlbum;
recurseAlbums( $topAlbum );
}
$numAlbums = count($list);
if ($debug)
{
echo "Number Albums = ". $numAlbums . "<br>";
}
FIND
if ( !$useCache )
{
AFTER ADD
// Retrieve all albums and store in list array.
// This can be done using new AlbumDB() but this doesn't work
// on all hosts.
$numTopAlbums = $albumDB->numAlbums($gallery->user);
for ($i = 1; $i<=$numTopAlbums; $i++)
{
$topAlbum = $albumDB->getAlbum($gallery->user, $i);
$list[] = $topAlbum;
recurseAlbums( $topAlbum );
}
$numAlbums = count($list);
if ($debug)
{
echo "Number Albums = ". $numAlbums . "<br>";
}
Posts: 12
Is there a way to disable the header and footer for this script?
Im trying to embed it in my movable type front page using includes. I went through most of this thread but I got lost...
anyone have the answer?
Posts: 27300
cut from
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
down to<body dir="<?php echo $gallery->direction ?>">
and cutincludeHtmlWrap("stats.header");
andincludeHtmlWrap("stats.footer");
andDave
Posts: 2
The disable the header and footer mod for the script worked great!
Can you tell us what changes to make to get the text for captions, album link, description, etc to appear below the photo?
Posts: 27300
reade the readme and pay attention to: $showGrid, $numRows, $numCols
Posts: 25
I downloaded the stats.tar bue thre is only one file, stats.php, is the readme integrated on stats.php?
After unzip, I put the file on gallery/stats.php.
But when I enter on www.hugolima.com/stats.php, I get an error
Is this normal? I don't undertstand what that means...What should I do?Thaks
Posts: 27300
Lots more than one file and there is a README in the download . look at the first post.
What version of gallery you using?
Posts: 25
I'm using 1.4.4-pl6
It's working 100% now :D i've studied all the commands and functions. The problem was that I just saw one file on the first time on the .zip so i just uploaded only one file- stats.php. But now everything is okey.
My doubt now is - and I don't know if this is possible - I don't want to have a page with the most recent uploaded fotos, I want just a section of the page to show that. By another words, if you go into www.hugolima.com/galeria you see a Blue table, I want to put there the most recente photos only with the name of their album. I want to remove the "xxx images in the gallery" and the grey bars beyond the thumbnails, I just want 2 thumbnails and the name of albums they belong. Is that possible?
Thanks for the feedback
Posts: 27300
You could use stasts for this but not without hacking it even more. I would try another mod like:
http://www.discobug.com/index.php?topic=gallery_help
or hard code the image you want there with the right HTML
Dave
Posts: 25
New Problem, this is realy hardcore and strange too...
When you enter on www.hugolima.com/galeria you see 2 horizontal imagens and one verticaly. The first too title's are well centred but the last one... I don´t understand why is that away. I'm on this problem since 4 hours ago. Any solution someone could give to me?
thanks
Posts: 27300
And what does this have to do with this thread? You can't include stats.php in another file without modding it to remove the head and body tags etc.
Posts: 15
Is this the predecessor of the stats.php that's included in Gallery v1.5? It looks like the grid options are commented out in the configuration file (includes/stats/stats.inc.php). Anyone know how to get the grid working? (I'm guessing the answer is 'not yet' and that's why it's commented out, but I figured I'd ask because I miss the grid look.)
Posts: 68
I've just upgraded to gallery 1.5, and now i get this error:
Fatal error: Call to a member function on a non-object in C:\web\gallery\classes\AlbumItem.php on line 82
Could somebody help me please? All I want to do is to have a link displaying the latest uploaded images (about 40 images per page).
Posts: 27300
Yes.
Now that this thread is 25 pages and stats is part of Gallery I have decided to "lock" this thread. If I did not lock this thread it will get even more confusing for support because of the different versions.
If you would like to start another thread by all means do so. If you have any objections to locking this thread then PM me with a good explanation, and your willingness to contribute and I will open it again.
Dave
Posts: 90
Resurrecting this thread from the dead... Has anyone managed to get this hack working with the 1.5.7 gallery?
The non-hacked version takes ~35-40 seconds to come back WITH a cache file - which is pretty unacceptable
-mark
http://mvgals.net - Clublife, Revisited.