News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

[Done] statistics as an image - have a look

Started by Bruz, March 01, 2004, 11:24:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

luchtzak

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

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?

luchtzak

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

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

photoman13

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

www.glyphgate.com

Maybe ask them or whatever

Casper

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.
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

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

Anyone have done it?

Bruz

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
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.kingbruz.de%2FFotos%2Fsignatur_cpg.php&hash=b7bf1fbae41c2d8c534416d10d32fe51619697d7)

get your statistik-hack here

aem

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);

Bruz

Quote from: aem on May 07, 2004, 12:37:43 PM
Okie now i'm stuck with the "coordinate of the textline". Which line is this exactly?

Ok, lets take

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: ImageString($im, 3, 10, 110, "Member Gallery", $farbe_text);

Bruz
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.kingbruz.de%2FFotos%2Fsignatur_cpg.php&hash=b7bf1fbae41c2d8c534416d10d32fe51619697d7)

get your statistik-hack here

aem

Okie that worked.

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

Bruz

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?
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.kingbruz.de%2FFotos%2Fsignatur_cpg.php&hash=b7bf1fbae41c2d8c534416d10d32fe51619697d7)

get your statistik-hack here

aem

#32
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?

Bruz

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?
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.kingbruz.de%2FFotos%2Fsignatur_cpg.php&hash=b7bf1fbae41c2d8c534416d10d32fe51619697d7)

get your statistik-hack here

aem

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.

Bruz

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)
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.kingbruz.de%2FFotos%2Fsignatur_cpg.php&hash=b7bf1fbae41c2d8c534416d10d32fe51619697d7)

get your statistik-hack here

aem


Bizzy

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*

aem

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 ]

Bizzy

Oh no I'm sorry I should have explained myself better.  I need the code to add block and pic onto my ezportal