Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: 1 [2] 3 4 5   Go Down

Author Topic: [Done] statistics as an image - have a look  (Read 87851 times)

0 Members and 1 Guest are viewing this topic.

luchtzak

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
    • Luchtzak Aviation
[Done] statistics as an image - have a look
« Reply #20 on: April 17, 2004, 02:44:57 pm »

Great tool! used it on my front-page on www.luchtzak.be !

I hope it doesn't slow down loading too much...

greetings,

Bart

futtlui

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
[Done] statistics as an image - have a look
« Reply #21 on: April 18, 2004, 02:17:29 am »

am I right that this one requires GD 2.0 (which I do not have  :cry: ) ???
Is there any chance in getting it done with GD 1.6.2?
Logged

luchtzak

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
    • Luchtzak Aviation
[Done] statistics as an image - have a look
« Reply #22 on: April 18, 2004, 10:41:23 am »

How can I change the type of letters into e.g. Verdana ? And what's the code for colour #336699 ? And how can I make the numbers in bold ?

greetings,

Bart

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
[Done] statistics as an image - have a look
« Reply #23 on: April 18, 2004, 01:27:28 pm »

you can't have every font, unless the server is yours to install fonts on. Usually, if you're webhosted, you'll have to go with the fonts that are pre-installed on the server.

GauGau
Logged

photoman13

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 96
[Done] statistics as an image - have a look
« Reply #24 on: April 18, 2004, 04:50:51 pm »

if your host has GlyphGate you pretty much got any font at your disposal.

www.glyphgate.com

Maybe ask them or whatever
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
[Done] statistics as an image - have a look
« Reply #25 on: April 18, 2004, 08:08:42 pm »

Quote from: "luchtzak"
And what's the code for colour #336699 ?


The RGB code is 51, 102, 153.
The cmyk code is 86, 60, 18, 2.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

aem

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: [Done] statistics as an image - have a look
« Reply #26 on: April 27, 2004, 01:41:11 pm »

I try and edit the code to have the text underneath the pic but it doesnt work.

Anyone have done it?
Logged

Bruz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: [Done] statistics as an image - have a look
« Reply #27 on: May 05, 2004, 04:19:11 pm »

To have the Text underneath the image you will have

a) to make the background image ($im) bigger (higher to have space under the random-pic)
b) to change the coordinates of the textlines
Logged
(http://www.kingbruz.de/Fotos/signatur_cpg.php)

get your statistik-hack here

aem

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: [Done] statistics as an image - have a look
« Reply #28 on: May 07, 2004, 12:37:43 pm »

Okie now i'm stuck with the "coordinate of the textline". Which line is this exactly?

$im = ImageCreateTrueColor (245, 177);
$bgc = ImageColorAllocate ($im, 255, 255, 255);
$farbe_text = ImageColorAllocate ($im, 0, 0, 132);
$farbe_online = ImageColorAllocate ($im, 255, 0, 0);
$tc = ImageColorAllocate ($im, 1, 5, 17);
ImageFilledRectangle ($im, 0, 0, 245, 177,$bgc);
ImageString($im, 3, 135, 10, "Member Gallery", $farbe_text);
ImageString($im, 2, 135, 20, "$total_pics Pictures", $tc);
ImageString($im, 2, 135, 30, "$total_albums Albums", $tc);
ImageString($im, 2, 135, 40, "$total_comments Comments", $tc);
ImageString($im, 2, 135, 50, "viewed $total_views times", $tc);
Logged

Bruz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: [Done] statistics as an image - have a look
« Reply #29 on: May 07, 2004, 01:39:46 pm »

Okie now i'm stuck with the "coordinate of the textline". Which line is this exactly?

Ok, lets take

Code: [Select]
ImageString($im, 3, 135, 10, "Member Gallery", $farbe_text);
as example.

The first number, the "3" ist the text-style.
The second number, the "135" is the hspace from the left image-border. (Here: the text starts 135 pixles to the right from the left border)
The third number, the "10" is the vspace from the upper image-border. (Here: the text starts 10 pixels under the upper border)

What you'll need to do is to change the coordinates like this:

your random image will be 100 pixels high. So your first textline should start at 10,110 (just try it!) The next should be at 10,120 and so on!
(10,110 means:
Code: [Select]
ImageString($im, 3, 10, 110, "Member Gallery", $farbe_text);
Bruz
Logged
(http://www.kingbruz.de/Fotos/signatur_cpg.php)

get your statistik-hack here

aem

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: [Done] statistics as an image - have a look
« Reply #30 on: May 07, 2004, 02:35:10 pm »

Okie that worked.

Also how do i make the thumbnail of the image wider?
Logged

Bruz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: [Done] statistics as an image - have a look
« Reply #31 on: May 08, 2004, 11:06:57 am »

I think you are talking about the random-image, do you?

Because we are taking a coppermine-generated thumbnail with the with of 100 pixels it would look not very good if this image would be stretched to lets say 200 pixels.

Or did I get you wrong?
Logged
(http://www.kingbruz.de/Fotos/signatur_cpg.php)

get your statistik-hack here

aem

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: [Done] statistics as an image - have a look
« Reply #32 on: May 08, 2004, 01:30:17 pm »

Yes you're right, i just double check the config in coppermine and it's optimised at 120. So i cant really make it any bigger without putting it out of focus.  :'( :'(.

Because i wish to have the image larger, i just notice the slide-show photos are abit larger than the random images (as seen when you click on the thumbnail), so now how could i incorporate the slide show photos instead of the thumbnail photos for the statistics random image?
« Last Edit: May 09, 2004, 01:05:57 am by aem »
Logged

Bruz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: [Done] statistics as an image - have a look
« Reply #33 on: May 09, 2004, 09:50:14 am »

Well, you could take the mid-size image - but: how big will your signature be? 400 to 300 Pixels?

Maybe you can post a link, so I can make my a picture of what you are doing?
Logged
(http://www.kingbruz.de/Fotos/signatur_cpg.php)

get your statistik-hack here

aem

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: [Done] statistics as an image - have a look
« Reply #34 on: May 09, 2004, 10:06:45 am »

Okie refer to this.

Atm, the width of the random inage (in that box) is 120 pixs, the portal box itself has width 189 pixs. What i want to do is incorporate slideshow pics which has width 169 pixs instead of the random pics. My aim is the take up as much space of the portal box as possible.
Logged

Bruz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: [Done] statistics as an image - have a look
« Reply #35 on: May 09, 2004, 11:50:26 am »

Ok, I see.

I will change the code for you - but I'm very busy at the moment (school) and so I don't know when I'll be able to do this. (But I think, I'll have time tomorrow)
Logged
(http://www.kingbruz.de/Fotos/signatur_cpg.php)

get your statistik-hack here

aem

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: [Done] statistics as an image - have a look
« Reply #36 on: May 10, 2004, 11:44:13 am »

Forever grateful  ;)
Logged

Bizzy

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: [Done] statistics as an image - have a look
« Reply #37 on: May 16, 2004, 09:04:58 am »

I have been looking for almost a week for a MOD to intergade my coppermine,album/pic into my portal page.  Can someone please tell me this is the right place.  Ome  I would like to have exactly what you have on your portal.  "your pic in a block"  is it at all possible if you could send me the code.  I would be forever greatful.
*On my knee's begging*
Logged

aem

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: [Done] statistics as an image - have a look
« Reply #38 on: May 16, 2004, 11:23:55 am »

It's just a table frame

Quote
<tr><td>
<table border="8" cellpadding="2" cellspacing="5" align="center">
<td>
<div align="center">[img]http://www.*.com/signature_cgp.php[/img}
</table></td></tr>

} should be ]
Logged

Bizzy

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: [Done] statistics as an image - have a look
« Reply #39 on: May 16, 2004, 11:36:57 am »

Oh no I'm sorry I should have explained myself better.  I need the code to add block and pic onto my ezportal
Logged
Pages: 1 [2] 3 4 5   Go Up
 

Page created in 0.026 seconds with 19 queries.