all albums on a single page without thumbails all albums on a single page without thumbails
 

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

Main Menu

all albums on a single page without thumbails

Started by zom, November 16, 2003, 08:27:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zom

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:  <?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 --> 

"


?>
Thanks to everyone

jokinawa

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

Tranz

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

kegobeer

There is no support for 1.2.  Upgrade to the latest version.
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

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.

kegobeer

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