forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: swissgroover on January 22, 2008, 12:50:03 pm

Title: Hi! Two questions
Post by: swissgroover on January 22, 2008, 12:50:03 pm
1) How can I make my own statisticas page, where is how many pictures, albums, pageviews are.
Very easy page, just:
10 000 pictures, in 100 album. 1 000 000 pageviews.

2) How I can but MOST VISITED ALBUMS list into frontpage - like topn?

Thanks!
Title: Re: Hi! Two questions
Post by: Abbas Ali on January 22, 2008, 01:00:37 pm
We have a strict one question per thread policy and you agreed to it while registering on this forum.

1) Can be done with a little programming. Afaik there is no such mod being coded as yet.
2) Coppermine does not support MOST VISITED ALBUMS meta set. Again custom code is needed.

Search the forum to make sure you are the first one to ask above questions.
Title: Re: Hi! Two questions
Post by: swissgroover on January 22, 2008, 01:06:26 pm
Really sorry ;) English isn't my motherlanguage.

But, can I print someway $picture_count or [PICTURE_COUNT]
That file will be located CPG catalog.

I'm in trouble. I deleted some code what printed picture count, but now i can't undo this step.
I'm not programmer ;)
Title: Re: Hi! Two questions
Post by: Abbas Ali on January 22, 2008, 01:11:22 pm
Replace the file you modified with the corresponding file from a fresh download. You cannot print $picture_count and get the count magically. $picture_count needs to be populated with correct data with the help of some code.
Title: Re: Hi! Two questions
Post by: swissgroover on January 22, 2008, 01:20:26 pm
In english.php I have...

Code: [Select]

$lang_list_categories = array(
  'home' => 'Index',
  'stat1' => '<b>[pictures]</b> pictures. <b>[albums]</b> albumbs. <b>[comments]</b> comments and <b>[views]</b> pageviews.',
  'stat2' => '<b>[pictures]</b> pictures. <b>[albums]</b> albums. Pagevisits <b>[views]</b>.',
  'xx_s_gallery' => '%s gallery',
  'stat3' => 'mysite - <b>[pictures]</b> pictures. <b>[albums]</b> albumbs.',

... and...
Code: [Select]
$lang_album_list = array(
  'album_on_page' => '%d albumit %d lehel',


Last one... that is printed to my webpage.

Mabey i can print pictures count too?
Title: Re: Hi! Two questions
Post by: Joachim Müller on January 22, 2008, 01:25:10 pm
Yours is just wishfull thinking. You can't make things up, you need to code them. As you appear to have no idea how this can be accomplished, you'll need to hire someone to code this for you. It can't be done easily and is beyond of what you can expect from free support.
Title: Re: Hi! Two questions
Post by: swissgroover on January 22, 2008, 01:27:30 pm
Is some differnt way I can watch how many pictures is in CPG?
Title: Re: Hi! Two questions
Post by: Abbas Ali on January 22, 2008, 01:34:13 pm
No way apart from coding.