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: all albums on a single page without thumbails  (Read 10154 times)

0 Members and 1 Guest are viewing this topic.

zom

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 83
all albums on a single page without thumbails
« on: November 16, 2003, 08:27:52 am »

Does someone has or know how to do a simple sript that could generate a web page including all the albums without thumbails, only names to make navigation eayser.
This kind of script exist for phpbb but unforunately I m not able to understand it:  
Code: [Select]
<?php 
/*************************************************************************** 
* Save this file as:   site_map.php (or anything you like) 
* Version:      Friday, Oct 4, 2002 
* Email:      angus@phphacks.com 
* Purpose of hack:   Basically generates a list of topics and 
*      displays them with link to the topic. Goal 
*      is to provide search engines like Google 
*      with a static page of links to dynamic pages 
*      You should link to this page from your sites 
*      home page somewhere. 
* Demo:      http://www.aussiecelebs.com/forums/site_map.php 
* Tested on:   phpBB 2.01, 2.02 

***************************************************************************/ 

/*************************************************************************** 

* This program is free software; you can redistribute it and/or modify 
* it under the terms of the GNU General Public License as published by 
* the Free Software Foundation; either version 2 of the License, or 
* (at your option) any later version. 

***************************************************************************/ 

echo 

<!-- Start header here. Make sure you dont use any \" s --> 

<html> 
<head> 
<base target='_top'> 
</head> 
<body bgcolor='#FFFFEA'> 
<h1>Arborescence du forum de Célébrités Sélection</h1> 
<!-- End Header --> 

"


define('IN_PHPBB'true); 
$phpbb_root_path './'
include(
$phpbb_root_path 'extension.inc'); 
include(
$phpbb_root_path 'common.'.$phpEx); 

echo 
"<h2>Catégories</h2>"

$result mysql_query("SELECT cat_title, cat_id FROM phpbb_categories ORDER BY cat_title"); 
while(
$row=  mysql_fetch_assoc($result)) 

      echo 
"<a href='index.php?c=".$row["cat_id"]."'>".$row["cat_title"]."</a><br>"



echo 
"<h2>Tous les forums de Célébrités Sélection</h2>"

$result mysql_query("SELECT forum_id, forum_name, forum_desc FROM phpbb_forums ORDER BY forum_name"); 
while(
$row=  mysql_fetch_assoc($result)) 

      echo 
"<a href='viewforum.php?f=".$row["forum_id"]."'>".$row["forum_name"]."</a>"." - ".$row["forum_desc"]."<br>"



echo 
"<h2>Tous les sujets postés</h2>"

$result mysql_query("SELECT topic_title, topic_id FROM phpbb_topics ORDER BY topic_title"); 
while(
$row=  mysql_fetch_assoc($result)) 

      echo 
"<a href='viewtopic.php?t=".$row["topic_id"]."'>".$row["topic_title"]."</a><br>"



echo 


<!-- Start footer here. --> 

</body> 
</html> 

<!-- End footer --> 

"


?>
Logged
Thanks to everyone

jokinawa

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: all albums on a single page without thumbails
« Reply #1 on: December 26, 2005, 02:39:21 pm »

I was just wondering which file do I need to modify in order to get this to work?  Cant seem to find it.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: all albums on a single page without thumbails
« Reply #2 on: December 26, 2005, 03:50:57 pm »

You could search for site map or sitemap and modify the code to show html rather than xml.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: all albums on a single page without thumbails
« Reply #3 on: December 26, 2005, 03:53:21 pm »

There is no support for 1.2.  Upgrade to the latest version.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

ecto

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 144
    • My very incomplete gallery
Re: all albums on a single page without thumbails
« Reply #4 on: December 26, 2005, 09:15:14 pm »

This below is only applicable if you upgrade to the latest version of Coppermine, but I thought you might want to know anyway..

Or if you want your gallery to always show the album list that way, you could edit the function theme_display_album_list() in themes/your_theme/theme.php. If there is no such function in that file, copy it over from themes/sample/theme.php and edit as you see fit.

Also, the HTML template for displaying albums is $template_album_list which is found in include/themes.inc.php. Make your own $template_album_list in your theme.php file and modify as you see fit.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: all albums on a single page without thumbails
« Reply #5 on: December 27, 2005, 12:46:25 am »

Thread is locked.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 14 queries.