Advanced search  

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

Pages: 1 2 3 [4] 5   Go Down

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

0 Members and 1 Guest are viewing this topic.

bbbbug

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: [Done] statistics as an image - have a look
« Reply #60 on: September 18, 2004, 12:53:00 pm »

this requires GD 2.0.
is there any based on GD 1.0?
Logged
(http://www.mytfls.com/photo/myphoto.php)

Lombi

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
  • Never lick a gift horse in the mouth.
    • Surreal Art Prints
Re: [Done] statistics as an image - have a look
« Reply #61 on: October 01, 2004, 12:59:11 am »

Nice, works swell.
Logged
While you are looking at some surreal art prints or just some surrealistic art you might get yourself some windows xp boot screens.

neeth

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 131
  • I love my gallery
    • Gelipo
Re: [Done] statistics as an image - have a look
« Reply #62 on: February 11, 2005, 06:34:12 pm »

i have one problem..

the random pic is over stats..

please see

http://www.neeth.info/galerija/signature_cpg.php


tnx..
Logged
[

joelgomez

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 42
  • 4x4 fan & attorney
    • The only 4x4 Gallery in Mexico
Re: [Done] statistics as an image - have a look
« Reply #63 on: March 09, 2005, 05:27:53 pm »

i have one problem..

the random pic is over stats..

please see

http://www.neeth.info/galerija/signature_cpg.php


tnx..

I have the SAME problem! http://www.galeria4x4.com.mx/photos/signature_cpg.php

Besides, the thumb looks desproportionate, I mean, wider that it should be. Is there a way to tell the script: "Please respect the size of the original thumb and display it in its original size"???
Logged
(http://www.galeria4x4.com.mx/photos/signature_cpg.php)

Joel A. Gomez
Amateur Photographer & Jeep Lover!
www.galeria4x4.com
fotos.joelgomez.com

joelgomez

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 42
  • 4x4 fan & attorney
    • The only 4x4 Gallery in Mexico
Re: [Done] statistics as an image - have a look
« Reply #64 on: March 09, 2005, 06:17:54 pm »

NEETH!!!! I found and corrected the problem, please find the following lines in your code:

Quote
ImageString($im, 3, 155, 7, "Galeria4x4.com.mx", $farbe_text);
ImageString($im, 2, 155, 20, "$total_pics Fotos", $tc);
ImageString($im, 2, 155, 30, "vistas $total_views veces", $tc);
ImageString($im, 2, 155, 40, "$total_albums Albums", $tc);
ImageString($im, 2, 155, 50, "$total_comments Comentarios", $tc);

The "155" was "105" originaly. Play with this numbers, they give the instructions as where to place the text. I guess "155" is 155 pixels from left to right.

However, I still believe that the thumb looks desproportionate, I mean, wider that it should be.
Logged
(http://www.galeria4x4.com.mx/photos/signature_cpg.php)

Joel A. Gomez
Amateur Photographer & Jeep Lover!
www.galeria4x4.com
fotos.joelgomez.com

Nibbler

  • Guest
Re: [Done] statistics as an image - have a look
« Reply #65 on: March 09, 2005, 06:23:03 pm »

Maybe you should adjust the ssi to only grab jpegs, or the background bit to allow use of imagecreatefromgif() if appropriate.
Logged

joelgomez

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 42
  • 4x4 fan & attorney
    • The only 4x4 Gallery in Mexico
Re: [Done] statistics as an image - have a look
« Reply #66 on: March 09, 2005, 06:33:51 pm »

Maybe you should adjust the ssi to only grab jpegs, or the background bit to allow use of imagecreatefromgif() if appropriate.

Thanks Nibbler, any suggestion on how to do it? Just let me know which lines of code should I find and I'll play with them to restrict to jpeg grabbing.

Cya...

PS.- The forum in which I want to use this signature doesn't let me include "png" pictures in my signatures. It seems the [ IMG ] function only takes .gifs and .jpegs... any ideas in how to fool or trick the system?
Logged
(http://www.galeria4x4.com.mx/photos/signature_cpg.php)

Joel A. Gomez
Amateur Photographer & Jeep Lover!
www.galeria4x4.com
fotos.joelgomez.com

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: [Done] statistics as an image - have a look
« Reply #67 on: March 09, 2005, 06:39:41 pm »

I have the same problem since phpbb doesn't accept php files in img. Put this into an .htaccess file:
Code: [Select]
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule sig.png sig.php [L]

syntax is what is the fake extension and what to actually point it to.
Logged

joelgomez

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 42
  • 4x4 fan & attorney
    • The only 4x4 Gallery in Mexico
Re: [Done] statistics as an image - have a look
« Reply #68 on: March 09, 2005, 06:53:07 pm »

I'm sorry for asking this stupid question, but what is a ".htaccess file"?  ??? ??? ???

Thanks for the help again TranzNDance, I'll use it as soon as I figure what is an .htaccess file.

Cya...
Logged
(http://www.galeria4x4.com.mx/photos/signature_cpg.php)

Joel A. Gomez
Amateur Photographer & Jeep Lover!
www.galeria4x4.com
fotos.joelgomez.com

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: [Done] statistics as an image - have a look
« Reply #69 on: March 09, 2005, 07:00:42 pm »

Sorry, I forgot to add the disclaimer that not everyone can edit the .htaccess file. You should ask your webhost if you can do it so you don't waste time trying something you can't do.
Logged

joelgomez

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 42
  • 4x4 fan & attorney
    • The only 4x4 Gallery in Mexico
Re: [Done] statistics as an image - have a look
« Reply #70 on: March 09, 2005, 07:23:35 pm »

Quote
Joel: Can I edit the .htaccess file?

Brad: Yes you can edit the .htaccess file. Please do so in your Site Admin Panel

Joel: THANKSSSS!!!

Brad: You can edit it in the File Manager in your Site Admin Panel

 ;D ;D ;D
Logged
(http://www.galeria4x4.com.mx/photos/signature_cpg.php)

Joel A. Gomez
Amateur Photographer & Jeep Lover!
www.galeria4x4.com
fotos.joelgomez.com

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: [Done] statistics as an image - have a look
« Reply #71 on: March 09, 2005, 07:42:17 pm »

.htaccess is a configuration file for the webserver. It lets you make changes to your account without affecting other accounts on the same server. If you put into the root of your web docs folder, whatever it may be called, the settings will be inherited by all subfolders. Since this extension manipulation is something you are unlikely to want to happen to all files, you should only use it specifically for one folder.

Put the .htaccess file with the above content, edited to suit your file names/extensions, into the same folder that you want to apply the settings.
Logged

joelgomez

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 42
  • 4x4 fan & attorney
    • The only 4x4 Gallery in Mexico
Re: [Done] statistics as an image - have a look
« Reply #72 on: March 09, 2005, 08:07:17 pm »

W O W ! ! ! It's WORKING now!!! Thank you very much TranzNDance!!!
Logged
(http://www.galeria4x4.com.mx/photos/signature_cpg.php)

Joel A. Gomez
Amateur Photographer & Jeep Lover!
www.galeria4x4.com
fotos.joelgomez.com

SBSTechInc

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: [Done] statistics as an image - have a look
« Reply #73 on: May 24, 2005, 07:07:44 pm »

I have applied all the changes to the signature_cpg.php and uploaded it to my coppermine dir at http://yourdomain.com/cpg

I'm getting a red x as a display and when i get the property for the x it points to signature_cpg.php ..

I think it's has to do with the following settings:

$url_of_cpg_dir='http://yourdomain.com/cpg/';    // full path to your coppermine gallery (with trailing slash)
$absolute_path_to_coppermine='cpg/';    // absolute path on your server to coppermine gallery (with trailing slash)
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: [Done] statistics as an image - have a look
« Reply #74 on: May 24, 2005, 07:39:28 pm »

Absolute path would look something like this, depending on if your server is running linux or windows:
/home/user/public_html/cpg/

That's just an example.
Logged

SBSTechInc

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: [Done] statistics as an image - have a look
« Reply #75 on: May 25, 2005, 04:45:54 pm »

Firstly, thanks TranzNDance for the explanation of the absolute path..

I copied the codes re-written by nukeworker and overwrite my signature_cpg.php and placed the file in the root of my coppermine dir..

I changed of course the 2 lines to my album:

$url_of_cpg_dir='http://yourdomain.com/cpg/';    // full path to your coppermine gallery (with trailing slash)
$absolute_path_to_coppermine='/home/user/public_html/path/cpg/'; // absolute path on your server to coppermine gallery (with trailing slash)

I also added the image path to my template.html:
Code: [Select]
       <td valign="top" bordercolor="#666666" bgcolor="#FFFFFF" style="border: 1px solid;">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                       <tr>
                                <td width="100%" align="center">
                                        <h1>{GAL_NAME}</h1>
                                        <h3>{GAL_DESCRIPTION}</h3><br />
                                        {MAIN_MENU}<br /></td>
                        </tr>

<tr><td>
<table border="8" cellpadding="2" cellspacing="5" align="center">
<td>
<div align="center"><img src="'http://yourdomain.com/cpg/signature_cgp.php">
</table></td></tr>
                </table>

I still get the red x as an image..  What am I doing wrong?
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: [Done] statistics as an image - have a look
« Reply #76 on: May 25, 2005, 06:40:09 pm »

Are you using the correct absolute path for your server? You need to confirm with your webhost as it varies.
Logged

SBSTechInc

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: [Done] statistics as an image - have a look
« Reply #77 on: May 25, 2005, 07:22:16 pm »

Yes, the absolute path is correct..  When I right-click and select properties on the red x it shows the correct path to the signature_cpg.php..

Example of my configuration:

$url_of_cpg_dir='http://yourdomain.com/phpbb/cpg/';    // full path to your coppermine gallery (with trailing slash)
$absolute_path_to_coppermine='/home/sbstechinc/public_html/phpbb/cpg/'; // absolute path on your server to coppermine gallery (with trailing slash)
Logged

blobnl

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: [Done] statistics as an image - have a look
« Reply #78 on: June 14, 2005, 05:14:16 pm »

get this error message:

Parse error: parse error, unexpected T_VARIABLE in c:\ibserver\www\fotoforum\signature_cgp.php on line 26
Logged
(http://82.156.219.246/fotoforum/pic.jpg)

adik

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: [Done] statistics as an image - have a look
« Reply #79 on: September 22, 2005, 01:11:23 am »

Remove "" from 28 line ...

I have another question. How to change script to get image only from one selected album ???
« Last Edit: September 22, 2005, 01:50:41 am by adik »
Logged
Pages: 1 2 3 [4] 5   Go Up
 

Page created in 0.029 seconds with 19 queries.