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

Author Topic: [Solved]: Show the last albums added in yout gallery in text mode  (Read 6632 times)

0 Members and 1 Guest are viewing this topic.

jaiak

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 34
  • Spanish
    • Spanish Young People Electronic Music and Concerts

Sorry for the rescue this post, I have installed the cpmfetch 2.0 and coppermine 1.4.14 in powweb.com server.

I have merge phpBB 2.0.22 and coppermine 1.4.14 installation.

I have in my index the cpmfetch work ok with the last comments, the last thumbnails, etc. But I can't show the last titles of my albums added in my gallery. I want show the titles in text mode. Can you help me?

Regards from spain anda thanks in Advance!
« Last Edit: June 05, 2008, 09:23:45 am by Joachim Müller »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Show the last albums added in yout gallery in text mode
« Reply #1 on: January 29, 2008, 05:44:33 pm »

Read the docs and sticky threads here on this board - yours is not even a valid support request.
Logged

jaiak

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 34
  • Spanish
    • Spanish Young People Electronic Music and Concerts
Re: Show the last albums added in yout gallery in text mode
« Reply #2 on: January 29, 2008, 06:04:47 pm »

Hello again Gaugau

I have read all documentatino but I don't find how Can I show the last album in text mode.

Regards from spain
Logged

jaiak

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 34
  • Spanish
    • Spanish Young People Electronic Music and Concerts
Re: Show the last albums added in yout gallery in text mode
« Reply #3 on: June 04, 2008, 01:18:42 am »

Hello Again

I had developed this code for show the last albums in text mode (show the title)

Code: [Select]
<?php define('IN_COPPERMINE'true); require('include/init.inc.php'); $base rtrim($CONFIG['ecards_more_pic_target'], '/'); $albumpath "$base/" $CONFIG['fullpath']; $result mysql_query("SELECT tb.aid, ta.title FROM {$CONFIG['TABLE_ALBUMS']} tb LEFT OUTER JOIN {$CONFIG['TABLE_ALBUMS']} ta ON tb.aid = ta.aid ORDER BY ta.aid DESC LIMIT 0,8"); while (list($aid$title) = mysql_fetch_row($result)) {
echo 
"<li><a href=$base/thumbnails-$aid.html target=_top><font face=arial color=black><b>$title</b></font></a></li>"; } ?>
« Last Edit: June 04, 2008, 08:13:03 am by Joachim Müller »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Show the last albums added in yout gallery in text mode
« Reply #4 on: June 04, 2008, 08:14:37 am »

Making your code more readable:
Code: [Select]
<?php 
define
('IN_COPPERMINE'true); 
require(
'include/init.inc.php'); 
$base rtrim($CONFIG['ecards_more_pic_target'], '/'); 
$albumpath "$base/" $CONFIG['fullpath']; 
$result mysql_query("SELECT tb.aid, ta.title FROM {$CONFIG['TABLE_ALBUMS']} tb LEFT OUTER JOIN {$CONFIG['TABLE_ALBUMS']} ta ON tb.aid = ta.aid ORDER BY ta.aid DESC LIMIT 0,8"); while (list($aid$title) = mysql_fetch_row($result)) {
  echo 
"<li><a href=$base/thumbnails-$aid.html target=_top><font face=arial color=black><b>$title</b></font></a></li>"

?>
Logged

Fabricio Ferrero

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 1996
  • From San Juan, Argentina, to the World!
    • http://fabricioferrero.com/
Re: Show the last albums added in yout gallery in text mode
« Reply #5 on: June 04, 2008, 06:44:35 pm »

Regards from spain
Quote

I just remember you that the Spanish sub-board had just re-opened. If you have trouble whit the language, don't doubt to make your question there.

Regards.
Logged
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

jaiak

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 34
  • Spanish
    • Spanish Young People Electronic Music and Concerts
Re: Show the last albums added in yout gallery in text mode
« Reply #6 on: June 05, 2008, 09:23:13 am »

Very thanks fabri :)
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.