Counter in header on my site Counter in header on my site
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Counter in header on my site

Started by tedd, December 17, 2004, 12:40:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tedd

Hey there people,

is there a way that i can get the xx albums, xx picutures, xx comments on my site? Not in the photoalbum but in a seperate page so i can include that into my site....

Joachim Müller

mods/hacks board, random image include or rss feeds mod.
Searching before posting might have helped.

Joachim

tedd

Hmmm... that isn't what i am searching for... it only shows: xx pictures

i want to have this: "171 files in 7 albums with 17 comments viewed 6520 times"

And i still can't find it...

Joachim Müller

The random image include mod (ssi.mod) will do what you're looking for, just rtfm. I have this on my site like this:<?
print cpg_total_pics("");
print " pics in ";
print cpg_total_cats();
print " Categories and ";
print cpg_total_albums();
print " Albums viewed <a href=\"/galerie/thumbnails.php?album=topn\">";
print cpg_total_views("");
print " times</a>, <a href=\"/galerie/thumbnails.php?album=lastcom\">";
print cpg_total_comments();
print " Comments</a> posted.";
?>
The mod in question goes unsupported, so this is as much as I'm willing to say about it. If this is not what you're looking for, you can always come up with some custom php code to do the necessary queries for you. You should spend more time searching, browsing and reading instead of just saying
Quote from: tedd on December 21, 2004, 09:48:35 AMthat isn't what i am searching for... it only shows: xx pictures

Joachim

P.S. Please don't reply on this thread asking more questions about ssi.mod - I won't answer them, as the mod goes UNSUPPORTED.

tedd

Im a big n00b in PHP and stuff.... i can only make very little scripts.

I have been searching for 2 hours or something and couldn't find anything...
Now u say that you have it on your page...
Why don't u give the code? I'll link you and give you credits, whatever you want...

Arrgghhh i can't understand why it is so hard to help someone out

Joachim Müller

I already did give you the code, it's in my above posting. All you have to do is read the thread http://forum.coppermine-gallery.net/index.php?topic=5921.0 , download the files as suggested there, unpack the archive, read the documentation/readme that comes with it (and do what it tells you to do) and you're set. What else do you expect me to do? Did you expect I'd say "don't worry, I'll set it up for you"? It would take me several hours each day to do so, as there are always newbies who are too lazy to read the documentations and would prefer if someone set things up for them. Imo I'm already spending more time on this project than what you would call "sane", don't expect me to work wonders. After all I believe in helping people to help themselves - and it's fun to find out things on your own, just do as suggested above.

Joachim

P.S. I already told you I won't give more support for the ssi mod, so if you keep asking questions on it, I'll ignore them.