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   Go Down

Author Topic: How can i put on my site front page the Recent Added Albums?  (Read 58976 times)

0 Members and 1 Guest are viewing this topic.

Joe Belmaati

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
    • http://www.belmaati.com
How can i put on my site front page the Recent Added Albums?
« Reply #20 on: December 09, 2003, 11:09:16 am »

Gaugau,
did you have a chance to look at the files I sent you...?

Thank you very much for your kind help!

Best,
Joe Belmaati
Copenhagen, Denmark
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How can i put on my site front page the Recent Added Albums?
« Reply #21 on: December 09, 2003, 05:37:53 pm »

Joe,

sorry, I didn't have the time yet, but it's on my agenda, promise!

GauGau
Logged

Joe Belmaati

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
    • http://www.belmaati.com
How can i put on my site front page the Recent Added Albums?
« Reply #22 on: December 09, 2003, 05:44:27 pm »

Thanks,
I really do appreciate it..!

Best,
Joe Belmaati
Copenhagen Denmark
Logged

BigKing

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
How can i put on my site front page the Recent Added Albums?
« Reply #23 on: December 15, 2003, 10:36:20 am »

I try to built the ssi mod into the index page but i get this error message:

Code: [Select]

Notice: Undefined variable: function in c:\webroot\coppermine\ssi.php on line 67

Notice: Undefined variable: function in c:\webroot\coppermine\ssi.php on line 67

Notice: Undefined variable: function in c:\webroot\coppermine\ssi.php on line 67

Notice: Undefined variable: function in c:\webroot\coppermine\ssi.php on line 67

Notice: Undefined variable: function in c:\webroot\coppermine\ssi.php on line 67

Notice: Undefined variable: function in c:\webroot\coppermine\ssi.php on line 67

Notice: Undefined variable: function in c:\webroot\coppermine\ssi.php on line 67

Notice: Undefined variable: function in c:\webroot\coppermine\ssi.php on line 67

Notice: Undefined variable: function in c:\webroot\coppermine\ssi.php on line 67

Notice: Undefined variable: function in c:\webroot\coppermine\ssi.php on line 67

Notice: Undefined variable: function in c:\webroot\coppermine\ssi.php on line 67

Notice: Undefined variable: function in c:\webroot\coppermine\ssi.php on line 67


What i did wrong?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How can i put on my site front page the Recent Added Albums?
« Reply #24 on: December 15, 2003, 11:56:32 am »

nothing, it's just a notice - change your error level in php.

GauGau
Logged

Joe Belmaati

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
    • http://www.belmaati.com
How can i put on my site front page the Recent Added Albums?
« Reply #25 on: December 18, 2003, 09:44:44 am »

Gaugau,
I changed my root path, and I no longer get the "failed to include" error in example.php, however when I execute the file I get the following error:

Quote
Parse error: parse error, unexpected T_STRING in /hotel/belmaati/WWW/gallery/ssi.php on line 124

This is an example of the usage of ssi.php
This is how to ouput a table containing the thumbnails linking to the most recent pics:

Fatal error: Call to undefined function: cpg_thumb() in /hotel/belmaati/WWW/gallery/example.php on line 41


Could this still be related to my root path or is something else wrong..?

Thanks in advance,
Joe
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How can i put on my site front page the Recent Added Albums?
« Reply #26 on: December 18, 2003, 01:04:13 pm »

you'll have to get rid of the parse error first, this shoould be easy to track (it's php saying "your syntax is incorrect") - look for some missing semi-colons or quotes.

GauGau
Logged

Joe Belmaati

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
    • http://www.belmaati.com
How can i put on my site front page the Recent Added Albums?
« Reply #27 on: December 18, 2003, 01:52:16 pm »

This is the code in line 124 in ssi.php. I can't tell what's missing there.

Code: [Select]
if ($cpg_link_target=="popup")

code from line 120-130
Code: [Select]
{
  $return_value.= "<a href=%22%22;
    if ($cpg_link_singlepic==1)
      {
       if ($cpg_link_target=="popup")
          {
          $return_value.="javascript:;\" onClick=\"MM_openBrWindow('".$url_of_cpg_dir."displayimage.php?pid=".$row['pid']."&fullsize=1','".uniqid(rand())."','toolbar=yes,status=yes,resizable=yes,width=".($row['pwidth']+16).",height=".($row['pheight']+16)."')\"";
          }
          else
          {
          $return_value.=$url_of_cpg_dir."displayimage.php?&pos=-".$row['pid'];


Any help is much appreciated.
Thank you very much,
Joe Belmaati
Copenhagen Denmark
Logged

Joe Belmaati

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
    • http://www.belmaati.com
How can i put on my site front page the Recent Added Albums?
« Reply #28 on: December 18, 2003, 01:54:39 pm »

should line 121 be

Code: [Select]
$return_value.= "<a href=%22%22>";




....?

[edit: tried that and got a whole bunch of errors. I'm a php novice, so any help is MUCH appreciated!]
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How can i put on my site front page the Recent Added Albums?
« Reply #29 on: December 18, 2003, 02:11:47 pm »

somehow your ssi.php file has been corrupted, the line should be
Code: [Select]
$return_value.= "<a href=\"";instead of $return_value.= "<a href=%22%22>";
Code: [Select]
Do you happen to edit ssi.php (and example.php) with a wysiwyg editor like MS Frontpage? If your answer is yes: get a fresh copy of ssi.php (re-download or look for the zip, if it's still on your hard drive) and only edit it with a text editor (notepad.exe will do fine).
Never edit a file containing other things than plain html with a wysiwyg editor (in fact, never use frontpage at all :wink: )!

GauGau
Logged

Joe Belmaati

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
    • http://www.belmaati.com
How can i put on my site front page the Recent Added Albums?
« Reply #30 on: December 18, 2003, 03:38:34 pm »

MADE IT WORK!!! Thanks, Gaugau!!

'!@[%&$$! MS Frontpage...! I trashing all my doings in FP and moving everything over to Dreamweaver.

Once again, thanks for your help!!

Best,
Joe Belmaati
Copenhagen Denmark
Logged

Joe Belmaati

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
    • http://www.belmaati.com
How can i put on my site front page the Recent Added Albums?
« Reply #31 on: December 18, 2003, 04:04:20 pm »

The script is totally cool!

Is there any way to make the fetched thumbnails appear on a vertical string instead of a horizontal one?

Thank you so much for the help.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How can i put on my site front page the Recent Added Albums?
« Reply #32 on: December 19, 2003, 09:34:49 am »

Quote from: "Joe Belmaati"
Is there any way to make the fetched thumbnails appear on a vertical string instead of a horizontal one?
try this: in ssi.php, look for
Code: [Select]
$return_value="<table align=\"center\" cellspacing=\"0\" cellpadding=\"10\" align=\"center\" class=\"maintable\" border=\"0\">";
$td_start="<td valign=\"middle\" class=\"thumbnails\" align=\"center\">\n";
$td_end="</td>";
$cpg_table_end="</table>";
$tr_start="<tr>\n";
$tr_end="</tr>\n";
and change it to
Code: [Select]
$return_value="<table align=\"center\" cellspacing=\"0\" cellpadding=\"10\" align=\"center\" class=\"maintable\" border=\"0\">";
$td_start="<tr>\n<td valign=\"middle\" class=\"thumbnails\" align=\"center\">\n";
$td_end="</td></tr>\n";
$cpg_table_end="</table>";
$tr_start="";
$tr_end="";
GauGau
Logged

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
How can i put on my site front page the Recent Added Albums?
« Reply #33 on: December 22, 2003, 06:59:46 pm »

How do i make it show the pictures name under the picture?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How can i put on my site front page the Recent Added Albums?
« Reply #34 on: December 22, 2003, 11:13:52 pm »

at the moment: not at all...

GauGau
Logged

pilot

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
How can i put on my site front page the Recent Added Albums?
« Reply #35 on: March 19, 2004, 12:18:45 pm »

Gaugau.. I've testet your add-on for a while. It works good, but it doesn't support long filenames. The link works, but not the thumb......

example

albums/userpics/thumb_Wingover%20en%20la%20Portada.jpg (the path from the first page)

albums/userpics/thumb_Wingover%2520en%2520la%2520Portada.jpg (the path from coppermine album)



Do you have a new version or patch out?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How can i put on my site front page the Recent Added Albums?
« Reply #36 on: March 19, 2004, 03:50:37 pm »

no, sorry. Like I said earlier: ssi.php is not recommended anymore...

GauGau
Logged

nordew

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
    • Architektur- und Ingenieurbüro Dewender
How can i put on my site front page the Recent Added Albums?
« Reply #37 on: March 22, 2004, 07:21:43 am »

Gaugau. Your mod works fine for me.

How will only pictures from a certain category shown on the frontpage?

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How can i put on my site front page the Recent Added Albums?
« Reply #38 on: March 22, 2004, 07:20:22 am »

you can only have it display pics from a certain album, but not a certain category. This will hopefully be in a future version of this mod (which I still haven't started coding yet :wink: ).

GauGau
Logged

aem

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: How can i put on my site front page the Recent Added Albums?
« Reply #39 on: April 24, 2004, 05:02:26 am »

Is there a html script for this mod?

I have a portal with boxes which allows for htmls and would like to link the recent added pics to it.
Logged
Pages: 1 [2] 3   Go Up
 

Page created in 0.039 seconds with 19 queries.