coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: zom on November 16, 2003, 08:27:52 AM

Title: all albums on a single page without thumbails
Post by: zom 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:  <?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 --> 

"


?>
Title: Re: all albums on a single page without thumbails
Post by: jokinawa 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.
Title: Re: all albums on a single page without thumbails
Post by: Tranz 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.
Title: Re: all albums on a single page without thumbails
Post by: kegobeer on December 26, 2005, 03:53:21 PM
There is no support for 1.2.  Upgrade to the latest version.
Title: Re: all albums on a single page without thumbails
Post by: ecto 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.
Title: Re: all albums on a single page without thumbails
Post by: kegobeer on December 27, 2005, 12:46:25 AM
Thread is locked.