a CSS / DHTML - 100% Degradable System Tree ... a CSS / DHTML - 100% Degradable System Tree ...
 

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]

Main Menu

a CSS / DHTML - 100% Degradable System Tree ...

Started by Rodinou, February 25, 2005, 01:52:01 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Rodinou

Found on http://sadbastard.org/?p=archive&month=February&year=2005&day=18th&time=14:52&select=time


<script type="text/javascript" language="javascript">
function togVis( id ) {
    var list = id+"List";
    list = document.getElementById( list );
    var button = id+"Button";
    button = document.getElementById( button );
    if( list.style.display == "block" ) {
        list.style.display = "none";
        button.src = "/path/to/image/of/plus/sign";
    } else {
        list.style.display = "block";
        button.src = "/path/to/image/of/minus/sign";
    }
}
</script>



<!-- LIST NAME: parentMenu //-->

<a href="#" onclick="togVis( 'parentMenu' ); return false;"><img src="/path/to/image/of/plus/sign" alt="+" id="parentMenuButton" /></a> parentMenu

<ul id="parentMenuList">

    <!-- LIST NAME: childOne //-->

    <li><a href="#" onclick="togVis( 'childOne' ); return false;"><img src="/path/to/image/of/plus/sign" alt="+" id="childOneButton" /></a> childOne</li>

    <li><ul id="childOneList">
        <li>PUT</li>
        <li>YOUR</li>
        <li>FIRST</li>
        <li>SUBMENU</li>
        <li>ITEMS</li>
        <li>HERE</li>
    </ul></li>

    <!-- LIST NAME: childTwo //-->

    <li><a href="#" onclick="togVis( 'childTwo' ); return false;"><img src="/path/to/image/of/plus/sign" alt="+" id="childTwoButton" /></a> childTwo</li>

    <li><ul id="childTwoList">
        <li>PUT</li>
        <li>YOUR</li>
        <li>SECOND</li>
        <li>SUBMENU</li>
        <li>ITEMS</li>
        <li>HERE</li>
    </ul></li>
</ul>


Advantages : by using this code for NAVIGATION TREE on WHOLE Coppermine, it's 100% xhtml compliant, and 100% wellfull degradable for browsers which are not able to read the code.

The idea would be ...


Category 1
  - album 1
  - album 2

Category 2
  - sub Category 1
      - Category 1
      - Category 2
...


Would it be ...

1. possible to place it everywhere we want on a website ?
2. to create a page in Coppermine like "Plan of the Site" ?!



Rodinou

I have seen them, of course ... but they are quite heavy "a lot of code for this" ... with DOM and the incredible compatibility between IE & FF & Opera for a lot of things ... but it's compatible Lynx too ! :) (yes, Lynx users will see a list tree)

Tarique Sani

Well Honestly I do intend to redo the sidebar with lists - just do not have the time....
SANIsoft PHP applications for E Biz

Titooy

#4
Here is my implementation of it
[edit]see further for the right code[/edit]

Rodinou

Hummmmmmm I have tried at
http://www.sortons.net/photos/test.htm and as you can see, the simple Copy / Paste gives a white page ... where am I wrong ?!

Titooy

Let's try this one (fixed some errors)
<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');

global 
$CONFIG$HIDE_USER_CAT$FORBIDDEN_SET,$cpg_show_private_album;
if (!empty(
$FORBIDDEN_SET) && !$cpg_show_private_album) {
$album_filter ' and ' str_replace('p.''a.'$FORBIDDEN_SET);
}
$sql "SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE category>=" FIRST_USER_CAT $album_filter;
$result db_query($sql);
$album_count mysql_num_rows($result);
if (!
$album_count) {
$HIDE_USER_CAT 1;
}


function 
get_tree_subcat_data($parent) {
global 
$CONFIG$HIDE_USER_CAT$catStr;
if (
$CONFIG['categories_alpha_sort'] == 1) {
$cat_sort_order 'name';
}else{
$cat_sort_order 'pos';
}
$sql "SELECT cid, name " "FROM {$CONFIG['TABLE_CATEGORIES']} " "WHERE parent = '$parent' " "ORDER BY "$cat_sort_order;
$result db_query($sql);
if ((
$cat_count mysql_num_rows($result)) > 0) {
$rowset db_fetch_rowset($result);
$pos 0;

foreach (
$rowset as $subcat) {
if (
$subcat['cid'] == USER_GAL_CAT && $HIDE_USER_CAT == 1) {

} elseif(
$parent == 0)  {
$catStr .= "<a href=\"#\" onclick=\"togVis('".$subcat['cid']."'); return false;\"><img class=\"tree\" src=\"images/nolines_plus.gif\" alt=\"+\" id=\"".$subcat['cid']."Button\" /></a> <a href=\"index.php?cat=".$subcat['cid']."\">".$subcat['name']."</a><br />\n\n";
$catStr .= "<ul class=\"tree\" id=\"".$subcat['cid']."List\">\n\n";
get_tree_subcat_data($subcat['cid']);
get_tree_album_data($subcat['cid']);
$catStr .= "</ul>\n\n";
} else {
$catStr .= "<li class=\"tree\"><a href=\"#\" onclick=\"togVis('".$subcat['cid']."'); return false;\"><img class=\"tree\" src=\"images/nolines_plus.gif\" alt=\"+\" id=\"".$subcat['cid']."Button\" /></a> <a href=\"index.php?cat=".$subcat['cid']."\">".$subcat['name']."</a></li>\n\n";
$catStr .= "<li class=\"tree\"><ul class=\"tree\" id=\"".$subcat['cid']."List\">\n\n";
get_tree_subcat_data($subcat['cid']);
get_tree_album_data($subcat['cid']);
$catStr .= "</ul></li>\n\n";
}
}
if (
$parent == 0) {
get_tree_album_data($parent);
}
}
}

function 
get_tree_album_data($category) {
global 
$catStr,$ALBUM_SET;
global 
$CONFIG$HIDE_USER_CAT$FORBIDDEN_SET,$cpg_show_private_album;
$album_filter='';
$pic_filter='';
if (!empty(
$FORBIDDEN_SET) && !$cpg_show_private_album) {
$album_filter ' and '.str_replace('p.','a.',$FORBIDDEN_SET);
$pic_filter ' and '.str_replace('p.',$CONFIG['TABLE_PICTURES'].'.',$FORBIDDEN_SET);
}
if (
$category == USER_GAL_CAT) {
$sql "SELECT DISTINCT user_id, user_name FROM {$CONFIG['TABLE_USERS']}{$CONFIG['TABLE_ALBUMS']} WHERE  10000 + {$CONFIG['TABLE_USERS']}.user_id = {$CONFIG['TABLE_ALBUMS']}.category ORDER BY user_name ASC";
$result db_query($sql);
if ((
$cat_count mysql_num_rows($result)) > 0) {
$rowset db_fetch_rowset($result);
foreach (
$rowset as $subcat) {
$catStr .= "<li class=\"tree\"><a href=\"#\" onclick=\"togVis('". (FIRST_USER_CAT + (int) $subcat['user_id']) ."'); return false;\"><img class=\"tree\" src=\"images/nolines_plus.gif\" alt=\"+\" id=\"". (FIRST_USER_CAT + (int) $subcat['user_id']) ."Button\" /></a> <a href=\"index.php?cat=". (FIRST_USER_CAT + (int) $subcat['user_id']) ."\">".$subcat['user_name']."</a></li>\n\n";
$catStr .= "<li class=\"tree\"><ul class=\"tree\" id=\"". (FIRST_USER_CAT + (int) $subcat['user_id']) ."List\">\n\n";
get_tree_album_data(FIRST_USER_CAT + (int) $subcat['user_id']);
$catStr .= "</ul></li>\n\n";
}
}
} else {
if (
$category == USER_GAL_CAT) {
$sql "SELECT aid,title FROM {$CONFIG['TABLE_ALBUMS']} WHERE category = $category ".$ALBUM_SET .$album_filter " ORDER BY pos";
} else {
$unaliased_album_filter str_replace('a.','',$album_filter);
$sql "SELECT aid,title FROM {$CONFIG['TABLE_ALBUMS']} WHERE category = $category ".$ALBUM_SET .$unaliased_album_filter " ORDER BY pos";
}
$result db_query($sql);
if ((
$cat_count mysql_num_rows($result)) > 0) {
$rowset db_fetch_rowset($result);
foreach (
$rowset as $subcat) {
$catStr .= "<li class=\"tree\"><img class=\"tree\" src=\"images/page.gif\" alt=\"album\" /> <a href=\"thumbnails.php?album=".$subcat['aid']."\">".$subcat['title']."</a></li>\n";
}
}
}
}

get_tree_subcat_data(0);

?>


<script type="text/javascript" language="javascript">
function togVis(id) {
var list = id+"List";
list = document.getElementById(list);
var button = id+"Button";
button = document.getElementById(button);
if(list.style.display == "block") {
list.style.display = "none";
button.src = "images/nolines_plus.gif";
} else {
list.style.display = "block";
button.src = "images/nolines_minus.gif";
}
}
</script>
<style type="text/css">
img.tree {border: 0; vertical-align: middle}
li.tree {list-style: none outside}
ul.tree {display: none; padding-left: 20; padding-top: 0; margin: 0}
</style>

<?php
echo $catStr;
?>


Rodinou

AHHAHAHAHAHA

I
LOVE
YOU !!!


Simply perfect, and 100% graceful degradable !!!

@DevTeam >> Could you able to add this ?!! so for example "Plan of the Site", or something like that !!!

It's simply Great !!! Arghhhhhhhhhhh LOVE !!! :)


Tranz


Rodinou

The perfect future would be

http://www.sortons.net/photos/test.htm

Next to the album, or the category, precise

(for example, for me)

Quote
Rouen, Agglo et Haute Normandie 5 categories, total numbers of the album of this category

Photos Cinéma Number of the photos ...

14-02-05 Equipe 'Ze Film' au Gaumont Grand Quevilly
04-02-05 Nuit Michaël Youn au Gaumont Grand Quevilly
11-01-05 Nuit Miyazaki à UGC Ciné Cité
03-01-05 Rencontre avec l'équipe du film 'Le Plus beau jour de ma vie' à UGC
07-12-04 Rencontre avec l'équipe du film les Dalton à UGC
03-12-04 Nuit Bridget Jones à UGC Ciné Cité
02-12-04 2ème Nuit Manga à UGC Ciné Cité
10-11-04 Rencontre avec l'équipe de Narco
22-10-04 Rencontre avec Olivier Marchal au Gaumont Grand Quevilly
21-09-04 Nuit Otomo à UGC
11-09-04 Nuit Espionnage au Gaumont Grand Quevilly
09-09-04 Claude Lelouch et Maïwenn à UGC
30-07-04 Nuit Alex Proyas au Gaumont Grand Quevilly
16-07-04 Nuit Spiderman au Gaumont Grand Quevilly
25-06-04 Ze Nuit Shrek au Gaumont Grand Quevilly
15-06-04 Finale Courtivore au Gaumont Rouen
10-06-04 Les Yamakasi à UGC
28-05-04 Nuit Catastrophe au Gaumont Grand Quevilly
16-05-04 Nuit Kill Bill à UGC
11-04-04 Anniversaire Gaumont Grand Quevilly, 5 ans
08-04-04 Rencontre avec Jean-Jacques Annaud au Gaumont Grand Quevilly
01-04-04 Tour de France des Lutins au Gaumont Rouen
25-03-04 Nuit Miyazaki au Gaumont Rouen
19-03-04 Nuit ISC au Gaumont Droite
19-02-04 Rencontre avec l'équipe du film 'Une vie à t'attendre' à l'UGC Rouen
29-01-04 AVP Podium au Multiplexe Gaumont avec X-trime Events
24-01-04 Japan Night au Multiplexe Gaumont Grand Quevilly
09-01-04 Rencontre avec l'équipe du film 'Les Amateurs' à l'UGC Ciné Cité Rouen
16-12-03 La Journée Seigneur des Anneaux au Multiplexe Gaumont Grand Quevilly
12-12-03 Pot de départ de Jérôme Concy au Multiplexe Gaumont Grand Quevilly
28-11-03 Nuit Tarantino au Gaumont Centre
24-10-03 Nuit Freddy vs Jason au Multiplexe Gaumont Grand Quevilly
23-10-03 Inauguration UGC Ciné Cité
17-10-03 Nuit Bad Boys au Multiplexe Gaumont Grand Quevilly
11-10-03 Nuit Ciné-Moto au Multiplexe Gaumont Grand Quevilly
10-10-03 Nuit American Pie au Multiplexe Gaumont Grand Quevilly
30-09-03 Soirée Cowboy Bebop au Multiplexe Gaumont
30-09-03 Quand Octobre en Normandie entre dans les salles obscures ...
09-08-03 Nuit Terminator au Gaumont Centre
Evenementiels (Rouen & Agglo)

31-12-04 Calendrier 2005 - Dieux du Rade
17-12-04 Soirée Tsar
29-11-04 Trophées de la Nuit - Lido (Paris)
18-11-04 Beaujolais Nouveau
28-09-04 Exobowls
25-09-04 Election Miss Rouen Normandie
11-09-04 Sortie Sortons.Net à Abr'en Ciel - Preaux
09-09-04 De Monet aux Pixels - Cathédrale
21-06-04 Fête de la Musique
25-05-04 Willy Denzey à NRJ
16-05-04 Journée Sortons.Net/NRJ au Bowling du Bois Cany
03-04-04 Anniversaire du Bowling Bois Cany - 5 ans
24-03-04 Tournoi Inter étudiant de bowling
13-03-04 Anniversaire Sortons.Net au Rouen Espace Karting
13-03-04 Flashmob
22-02-04 Disco Bowling
13-02-04 Ice Party
03-02-04 Mr Lab! à Paris
13-12-03 Anniversaire Scurl Shop : 1 an
30-10-03 Anniversaire Sortons.Net (le Site) : 2 ans !
06-10-03 Rencontre des partenaires Exo7 à Docks Laser
18-09-03 Rencontre avec Aleksi Briclot
13-09-03 FC Rouen VS Nancy
31-07-03 Les Terrasses du Jeudi - Acte Final
Photos Discothèques (Rouen, Agglo & Normandie)

Athénna

20-12-03 Anniversaire, 1 an
Bayou

29-01-04 Soirée DEUCH
Brocherie

25-12-04 Joyeux Noël !
17-12-04 Noël, Joyeux Noël
31-10-04 Halloween
29-10-04 Soirée Carte NRJ
28-08-04 Bientôt la rentrée
27-06-04 7e Nuit des Discothèques et Bars Normands
28-05-04 Trombino' Party, VI
24-04-04 Trombino' Party, V
19-03-04 Trombino' Party, IV
13-02-04 Trombino' Party, III
16-01-04 Trombino' Party, II
26-12-03 Trombino' Party
Chakra

26-02-05 Michael Kaiser
19-02-05 After Da Fresh + Finger Print
12-02-05 FG Winter Tour
29-01-05 RLP + After Five
16-01-05 Anniversaire, 1 an !
15-01-05 Anniversaire, 1 an !
31-12-04 Reveillon avec David Vendetta
18-12-04 100e Only For DJ's - Ludovic Llorca
04-12-04 David Vendetta
02-12-04 Soirée Esigelec
13-11-04 - Collectif Manoir + Greg Cerrone + Guests
06-11-04 David Vendetta + Maïa-K : 3 ans Sortons.Net !
04-11-04 Soirée INSA
30-10-04 Tom Pooks + Finger Print
16-10-04 Tekno Labels Party
14-10-04 Soirée Esigelec
02-10-04 Teo Moss
04-09-04 Maïa K & David Vendetta
31-07-04 Cosa Nostra starring David Vendetta
17-07-04 Soirée Strings ( ? )
10-07-04 Radio FG Summer Tour 2004
03-07-04 David Vendetta
25-06-04 Soirée Mousse - Ze first
04-06-04 Jack de Marseille
15-05-04 Songe Black
08-05-04 Crazy Paradise
30-04-04 Bibi Betterdays
24-04-04 David Vendetta
10-04-04 Philippe B
27-03-04 No Excess
13-03-04 Anniversaire Sortons.Net avec David Vendetta
06-03-04 Silk
28-02-04 X-Trem Blanche Neige
21-02-04 Carnaval Folies
14-02-04 Saturday Love Fever
30-01-04 De passage ...
23-01-04 The First Friday
17-01-04 Open Session
Club 83 - Exagone

09-01-05 Sunday Night, #01
08-01-05 Nuit des Dévédévors
25-12-04 Joyeux Noël !
21-08-04 Nuit NRJ
24-07-04 Nuit du Bruit
04-06-04 Inauguration Concerts - Mister Ben
30-04-04 Anniversaire 21 ans !
03-04-04 Guest Hit !
28-02-04 Fiesta !
07-02-04 Soirée NRJ
06-12-03 - Anniversaire 6 ans !
23-08-03 Soirée des Millionnaires
Crooner

11-02-05 Olaxkaya
26-09-04 House Club'in starring Paradox
08-04-04 After Parc Expo
30-01-04 Saturday Fever !
03-10-03 Happy People !
12-09-03 Friday Fever !
05-09-03 Friday Fever !
Excalibur

11-12-04 Soirée NRJ
Exo7

24-02-05 Soirée PHARMA
19-02-05 Rock N' Roll ! (2/2)
18-02-05 Rock N' Roll ! (1/2)
27-01-05 Soirée STAPS
08-01-05 Full Rock
31-12-04 Réveillon St Sylvestre
16-12-04 Soirée Pharma
25-11-04 Soirée Esigelec + Infirmières
10-11-04 Années 70 jusqu'à nos jours
05-11-04 After distribution mag' :)
31-10-04 Halloween
14-10-04 Soirée Staps
18-09-04 Rock !
04-09-04 Week End de rentrée !
31-07-04 Dernière soirée d'été
17-07-04 Exo Rocks !
03-07-04 Full Happy People
29-05-04 Rock, Rock and ... Rock
01-05-05 First Saturday
08-04-04 Soirée Staps
27-03-04 On the Rock Again
12-03-04 Défilé de mode
05-03-04 Soirée Années 80 avec Wax
12-02-04 Soirée Staps
10-01-04 Rock N' Roll !
12-12-03 Capitaine de Soirée
16-10-03 Soirée STAPS
30-08-03 Retour des vacances
02-08-03 Dernière soirée d'été
Euro Club

04-01-05 Comme un mardi !
04-12-04 Happy
13-11-04 Happy
31-10-04 Halloween
09-10-04 Happy !
11-09-04 Soirée Zouk Love
28-08-04 Happy !
06-06-04 Anniversaire 17 ans !
12-02-04 But where is Jean-Louis ?
30-01-04 Happy Birthday, jolie blonde !
31-12-03 St Sylvestre
16-10-03 1h30 et déjà blindé ...
20-09-03 Full Euro Club
02-08-03 Show sensuel
Hacienda

30-05-04 Anniversaire, 33 ans !
Ibiza Club

18-02-05 Friday Night
19-01-05 Karaoké
06-01-05 Fun
23-12-04 Before Noël ...
30-10-04 Halloween
23-10-04 Full
16-07-04 Soirée D.S.P
03-07-04 Ambiance de folie
01-07-04 Nuit du Bac
19-06-04 Soirée Get
21-05-04 Happy People
14-03-04 Anniversaire Sortons.Net
18-01-04 Anniversaire 7 ans !
20-09-03 Chippendales
13-09-03 Soirée WL's Show !
02-08-03 Enterrement de vies de garçon et fille
Karré VIP

13-02-05 34 de Nuit de Mr. Pierre
06-02-05 Star Boys
05-02-05 Chippendales
30-01-05 Village People
08-01-05 Nuit Chippendales avec Men in Action
26-12-04 Influences Party
02-12-04 Oriental Night
17-10-04 Inauguration
Keetch

08-01-05 No Theme
25-12-04 Joyeux Noël
Kiosque

19-01-05 Soirée ESIGELEC
12-01-05 Soirée ESC
15-09-04 Soirée ESIGELEC
30-07-04 Beautiful People
02-04-04 Soirée Maddy's
17-09-03 Soirée ESIGELEC
30-08-03 Casting Magazine
Moulin Rose

14-01-05 6ème Nuit des Célibataires
13-11-04 5ème Nuit des Célibataires
31-10-04 Halloween
09-09-04 4ème Nuit des Célibataires
11-06-04 3ème Nuit des Célibataires
03-10-03 Show Hallyday
Must

15-01-05 Tempête de Neige
14-01-05 Capitaine de Soirée
17-01-04 Soirée Casting
02-01-04 Bonsoir 2004 !
13-12-03 Anniversaire, 3 ans Part II
12-12-03 Anniversaire, 3 ans Part I
28-11-03 Soirée Cocktails
10-11-03 Nuit Matrix + Inauguration Site Internet
Shamess

18-12-04 - Inauguration - Nuit Chippendales
Siècle

25-09-04 DJ Paradox
17-07-04 100% House
29-04-04 Re-Opening
13-09-03 Laurent Wolf
Smart

11-02-05 Chippendale
28-01-05 Soirée Messages
21-01-05 Soirée Black Out
16-01-05 Tempête de Neige
14-01-05 Nuit 100% Gonflée !
06-01-05 Soirée Jumelée avec l'Euro Café
02-01-05 Galette des Rois
26-12-04 La Nuit des Clubbers
25-12-04 Joyeux Noël !
18-12-04 Avant Noël ...
12-11-04 Soirée Moët et Chandon
31-10-04 Halloween
22-08-04 Dimanche sympa
04-04-04 Anniversaire, 1 an
21-03-04 Anniversaire Rémy
26-10-03 Nuit des Professionnels de la Nuit
Templiers

21-01-05 2ème Nuit des Célibataires
15-01-05 Galette des Rois
01-01-05 Première soirée de l'année
31-12-04 Réveillon St Sylvestre
25-12-04 Week End de la Mère Noël
18-12-04 Red Sour
27-11-04 Age de Pierre
13-11-04 Scottisch Attitude
31-10-04 Halloween
23-10-04 Soirée Pirates
05-09-04 Nuit des DJ's - Part 2
17-07-04 Nuit Chupa Chups
13-07-04 Bleu Blanc Rouge
11-07-04 Nuit des DJs
16-05-04 Anniversaire 16 ans - La Nuit des Saltimbanques
24-04-04 Psychedelic Night
03-04-04 Soirée Tatoos
26-03-04 3 Soirées en 1
13-03-04 Soirée Carnaval
21-02-04 Miss Templiers 2004
14-02-04 Love Night
07-02-04 Fiesta !
31-01-04 Blackout
24-01-04 Soirée Teuf !
17-01-04 Soirée Chocolat
12-01-04 After Butterfly
10-01-04 Galette des Rois
31-12-03 St Sylvestre
27-12-03 J-4 !
24-12-03 Nuit de la Mère Noël
12-12-03 Défilé de Mode
22-11-03 Les Dessous de l'Ecosse, Part II
15-11-03 Y a de la couette dans l'air
01-11-03 Halloween, Part II
31-10-03 Halloween, Part I
25-10-03 Les Dessous de l'Ecosse
11-10-03 Walking Night
04-10-03 Soirée de Ouf !!!
27-09-03 Faites sauter la banque
20-09-03 Soirée Tatoos
12-09-03 Yellow South
09-08-03 Chihuahua Party II
31-05-03 & 01-06-03 : les 12 ans des Templiers !
Hors Série 3 : C'est la rentrée, que la fête continue
Hors Série 2 : Visite des Templiers
Hors Série 1 : Les Templiers au Lido pour les Trophées de la Nuit
Trianon Club

14-11-04 Anniversaire 4 ans !
05-06-04 Soirée Mousse
23-11-03 Anniversaire 3 ans !
Velvet

30-10-04 Halloween
23-10-04 Youpi c'est les vacances !
02-10-04 Happy Students
02-07-04 Nuit du Bac
01-07-04 Soirée Infirmières
19-06-04 For Happy Students
06-05-04 Soirée IUP
22-04-04 Velvet Academy
09-04-04 Soirée Droit
25-03-04 Star Request
11-03-04 Soirée ISPP
27-02-04 Soirée Histoire avec IN OFF
31-12-03 St Sylvestre
23-10-03 Soirée IFI
16-10-03 Lancement Carte NRJ Campus
30-08-03 Soirée Maillots de Bain
Photos Concerts et Spectacles (Rouen & Agglo)

Bâteau Ivre

16-02-05 Elektrocution + Defenestrors + Gee Bitch and the Spot
11-02-05 OXP + Ewoks
11-12-04 Alias
08-12-04 Tibetan Holy Cowz + Dorothy Sanchez
02-01-04 Asparagos
Brooklyn Café

06-09-03 Bazooka
23-08-03 Accoustica
22-08-03 Hot Lines
Duchamp Villon / Hangar 23

18-05-04 Susheela Raman
30-01-04 King Riddim
11-10-03 Rubin Steiner
Eglise Jeanne d'Arc

03-10-04 Axel Salmona et Esther Chen-Thiry
Emporium Galorium

14-01-05 Aña
04-12-04 Violet Stigmata
06-11-04 Youngsax
17-06-04 Apokryff + Darjeeling
05-06-04 Nico's Factory
13-12-03 Porcelaine & Dirge
12-12-03 Bubble Heads
08-11-03 Just Friends
15-10-03 Kinky Yuppy Yukky
08-10-03 Rentrée Garden Party
Espace Culturel François Mitterrand

19-10-04 Art Mengo
27-04-04 Le Poids du Ciel
18-03-04 Lo'Jo'
Exo7

10-12-04 Matmatah
30-11-04 David Hallyday
24-11-04 Olivia Ruiz
23-11-04 Steel Pulse
21-11-04 Steeve Estatoff
17-11-04 8ème Tremplin ISPP
16-11-04 Sinsemilla
15-11-04 The Gathering + Paatos
09-11-04 The Elektrocution + Kump Hoven
20-10-04 Dolly + Kinito
19-10-04 Superbus
11-10-04 Feist + Apostle of Hustle
15-09-04 Reggae Bash : Mateo Monk - The Viceroys - Clinton Fearon
14-06-04 Mamadi Keita
11-05-04 Pimento - Soirée Expresso
06-05-04 La Familia + Banana Wax
20-04-04 Stereophonics
18-04-04 Archive
14-04-04 Daran
07-04-04 Watcha Clan + Plan B
27-02-04 Serafin
09-02-04 The Ethiopians
03-12-03 Raphaël
26-11-03 Nixon - MrLab! - Elista
19-11-03 7ème Tremplin ISPP
05-11-03 Les Wampas
29-10-03 Cox et Alias
22-10-03 Morgan Heritage et DJ Vince
21-10-03 Kyo et Gabriel Evan
09-10-03 Keziah Jones
Forum Fnac

05-02-04 Dan Ar Braz
Foyer Municipal Grand Couronne

27-02-05 Rock en Stock + Little Bob
Maison de l'Université

24-02-05 - Match Impro - Steac Frit
Match Impro - 4x4 Steac Frit
02-12-04 Catch Impro - Remue Méninges
16-10-03 Catch Impro - Remue Méninges
Prado

05-10-03 Améthyste
07-09-03 Pimento
Rive Gauche

12-10-04 Higelin chante Trenet
23-09-04 Vincent Delerm
Sillon

11-12-04 Fabulous Trabodors + Bombes 2 Bal
24-09-04 Miossec (+ Dominique Comont)
Trianon Transatlantique

21-01-05 Mr Lab!
12-10-04 La Grande Sophie
09-04-04 N&Sk
17-10-03 Mister Jack
Zénith Agglo Rouen

02-03-05 Night of the Proms
02-02-05 -M-
30-01-05 Dany Boon
14-01-05 Michel Sardou
12-01-05 Patricia Kaas
08-01-05 Chuck Berry
02-01-05 Concert du Nouvel An - Strauss
11-12-04 La légende du cirque Russe sur Glace
16-11-04 Isabelle Boulay
12-11-04 Gloubiboulga, la dernière !
09-11-04 Jenifer
03-11-04 -M-
01-11-04 Natasha St Pier
17-10-04 Garou
15-10-04 Charles Aznavour
08-10-04 Holiday On Ice
02-10-04 Calogero
17-09-04 Sylvie Vartan
19-06-04 Les Vamps
15-06-04 Etienne Daho
05-06-04 Le mythe de Roméo et Juliette
22-05-04 Global Project
21-05-04 Jamel Debbouze
15-05-04 Tri Yann - Festival Celtique
01-05-04 Night of The Proms
28-04-04 Sniper
06-04-04 Riverdance
01-04-04 La Presse est unanime
25-03-04 Eddy Mitchell
20-03-04 Henri Salvador
14-03-04 Muse
11-03-04 Yannick Noah
13-02-04 Cirque de Pékin
10-02-04 Nolween Leroy
05-02-04 Lynda Lemay
30-01-04 Pascal Obispo
18-12-03 Nuit des Etudiants - 2e Edition
08-12-03 Les Moines Shaolin
05-12-03 Bigard
02-12-03 Johnny Hallyday
22-11-03 Eddy Mitchell
08-11-03 Tryo
01-11-03 Pascal Obispo
22-10-03 Florent Pagny
16-10-03 Renaud
12-06-03 Renaud
05-06-03 Moby

Soirées Bars/Pubs/Restos (Rouen & Agglo)


It would be perfect, but if it's too hard, it's no a problem ... it's perfect like this !!!

Another thing : how to run this mod not inside the CPG dir ?

Titooy

This is the next step (fixes the list structure - adds some countings)

<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');

global 
$CONFIG$HIDE_USER_CAT$FORBIDDEN_SET$cpg_show_private_album$pic_count$alb_count$cat_count;
if (!empty(
$FORBIDDEN_SET) && !$cpg_show_private_album) {
$album_filter ' and ' str_replace('p.''a.'$FORBIDDEN_SET);
$count_filter ' WHERE ' str_replace('p.'''$FORBIDDEN_SET);
}
$sql "SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE category>=" FIRST_USER_CAT $album_filter;
$result db_query($sql);
$private_album_count mysql_num_rows($result);
if (!
$private_album_count) {
$HIDE_USER_CAT 1;
}

$sql "SELECT parent, COUNT(*) FROM {$CONFIG['TABLE_CATEGORIES']} GROUP BY parent";
$result db_query($sql);
$tmp db_fetch_rowset($result);
foreach (
$tmp as $tmp2) {
$cat_count[$tmp2[0]] = $tmp2[1];
}

$sql "SELECT category, COUNT(*) FROM {$CONFIG['TABLE_ALBUMS']}"$count_filter ." GROUP BY category";
$result db_query($sql);
$tmp db_fetch_rowset($result);
foreach (
$tmp as $tmp2) {
$alb_count[$tmp2[0]] = $tmp2[1];
}

$sql "SELECT aid, COUNT(*) FROM {$CONFIG['TABLE_PICTURES']}"$count_filter ." GROUP BY aid";
$result db_query($sql);
$tmp db_fetch_rowset($result);
foreach (
$tmp as $tmp2) {
$pic_count[$tmp2[0]] = $tmp2[1];
}

function 
get_tree_subcat_data($parent) {
global $CONFIG$HIDE_USER_CAT$catStr$cat_count$alb_count;
if ($CONFIG['categories_alpha_sort'] == 1) {
$cat_sort_order 'name';
} else {
$cat_sort_order 'pos';
}
$sql "SELECT cid, name " "FROM {$CONFIG['TABLE_CATEGORIES']} " "WHERE parent = '$parent' " "ORDER BY "$cat_sort_order;
$result db_query($sql);
if (mysql_num_rows($result) > 0) {
$rowset db_fetch_rowset($result);
$pos 0;

foreach ($rowset as $subcat) {
if ($subcat['cid'] == USER_GAL_CAT && $HIDE_USER_CAT == 1) {

} else {
if ($cat_count[$subcat['cid']] == "1") {
$count_cat " - ".$cat_count[$subcat['cid']]." sub-category";
} elseif ($cat_count[$subcat['cid']] > "1") {
$count_cat " - ".$cat_count[$subcat['cid']]." sub-categories";
}
if ($alb_count[$subcat['cid']] == "1") {
$count_alb " - ".$alb_count[$subcat['cid']]." album";
} elseif ($alb_count[$subcat['cid']] > "1") {
$count_alb " - ".$alb_count[$subcat['cid']]." albums";
}
$catStr .= "<li class=\"tree\"><a href=\"#\" onclick=\"togVis('".$subcat['cid']."'); return false;\"><img class=\"tree\" src=\"images/nolines_plus.gif\" alt=\"+\" id=\"".$subcat['cid']."Button\" /></a> <a href=\"index.php?cat=".$subcat['cid']."\">".$subcat['name']."</a>".$count_cat.$count_alb.$count_pic."\n\n";
$catStr .= "<ul class=\"tree\" id=\"".$subcat['cid']."List\">\n\n";
get_tree_subcat_data($subcat['cid']);
get_tree_album_data($subcat['cid']);
$catStr .= "</ul></li>\n\n";
$count_cat "";
$count_alb "";
}
}
if ($parent == 0) {
get_tree_album_data($parent);
}
}
}

function 
get_tree_album_data($category) {
global $catStr$ALBUM_SET$alb_count$pic_count;
global $CONFIG$HIDE_USER_CAT$FORBIDDEN_SET$cpg_show_private_album;
$album_filter='';
$pic_filter='';
if (!empty($FORBIDDEN_SET) && !$cpg_show_private_album) {
$album_filter ' and '.str_replace('p.','a.',$FORBIDDEN_SET);
$pic_filter ' and '.str_replace('p.',$CONFIG['TABLE_PICTURES'].'.',$FORBIDDEN_SET);
}
if ($category == USER_GAL_CAT) {
$sql "SELECT DISTINCT user_id, user_name FROM {$CONFIG['TABLE_USERS']}{$CONFIG['TABLE_ALBUMS']} WHERE  10000 + {$CONFIG['TABLE_USERS']}.user_id = {$CONFIG['TABLE_ALBUMS']}.category ORDER BY user_name ASC";
$result db_query($sql);
if (mysql_num_rows($result) > 0) {
$rowset db_fetch_rowset($result);
foreach ($rowset as $subcat) {
$catStr .= "<li class=\"tree\"><a href=\"#\" onclick=\"togVis('". (FIRST_USER_CAT + (int) $subcat['user_id']) ."'); return false;\"><img class=\"tree\" src=\"images/nolines_plus.gif\" alt=\"+\" id=\"". (FIRST_USER_CAT + (int) $subcat['user_id']) ."Button\" /></a> <a href=\"index.php?cat=". (FIRST_USER_CAT + (int) $subcat['user_id']) ."\">".$subcat['user_name']."</a>\n\n";
$catStr .= "<ul class=\"tree\" id=\"". (FIRST_USER_CAT + (int) $subcat['user_id']) ."List\">\n\n";
get_tree_album_data(FIRST_USER_CAT + (int) $subcat['user_id']);
$catStr .= "</ul></li>\n\n";
}
}
} else {
if ($category == USER_GAL_CAT) {
$sql "SELECT aid,title FROM {$CONFIG['TABLE_ALBUMS']} WHERE category = $category ".$ALBUM_SET .$album_filter " ORDER BY pos";
} else {
$unaliased_album_filter str_replace('a.','',$album_filter);
$sql "SELECT aid,title FROM {$CONFIG['TABLE_ALBUMS']} WHERE category = $category ".$ALBUM_SET .$unaliased_album_filter " ORDER BY pos";
}
$result db_query($sql);
if (mysql_num_rows($result) > 0) {
$rowset db_fetch_rowset($result);
foreach ($rowset as $subcat) {
if ($pic_count[$subcat['aid']] == "1") {
$count_pic " - ".$pic_count[$subcat['aid']]." image";
} elseif ($pic_count[$subcat['aid']] > "1") {
$count_pic " - ".$pic_count[$subcat['aid']]." images";
}
$catStr .= "<li class=\"tree\"><img class=\"tree\" src=\"images/page.gif\" alt=\"album\" /> <a href=\"thumbnails.php?album=".$subcat['aid']."\">".$subcat['title']."</a>".$count_pic."</li>\n";
$count_pic "";
}
}
}
}

get_tree_subcat_data(0);

?>


<script type="text/javascript" language="javascript">
function togVis(id) {
var list = id+"List";
list = document.getElementById(list);
var button = id+"Button";
button = document.getElementById(button);
if(list.style.display == "block") {
list.style.display = "none";
button.src = "images/nolines_plus.gif";
} else {
list.style.display = "block";
button.src = "images/nolines_minus.gif";
}
}
</script>
<style type="text/css">
img.tree {border: 0; vertical-align: middle}
li.tree {list-style: none outside}
ul.tree {display: none; padding-left: 20; padding-top: 0; margin: 0}
body {font-family : Verdana, Arial, Helvetica, sans-serif; font-size: 12px}
</style>

<?php
echo "<ul style=\"padding: 0; margin: 0\">\n\n";
echo 
$catStr;
echo 
"</ul>\n\n";
?>



Maybe some admin/mod could move this topic into the Mods/Hacks forum...

Rodinou

Awesome !!!! :) it's perfect

http://www.sortons.net/photos/test2.htm


Other futures ...

1. Possibility to use this system free out of CPG ? (on another page which isn't in CPG dir)
2. nothing for moment .. it's simply Great ...

Arghh yes !!!


I'm working of a next version of my site sortons.net ... and if I'm on the PUBS ROUEN

I would like to have only


Soirées Bars/Pubs/Restos (Rouen & Agglo) - 59 sub-categories
3 Pièces - 2 albums
06-02-05 Happy Birthday Bastien - 35 images
06-01-05 Gaumont au 3 Pièces - 54 images
New Spirit - 23 albums
06-11-04 After Choco BN - 62 images
23-10-04 Open Bar - 69 images
21-10-04 Friendly - 64 images
16-10-04 Open Bar - 122 images
09-10-04 MM's Rose - 76 images
07-10-04 Friendly - 32 images
01-10-04 Open Bar - 65 images
24-09-04 After Nuit Blanche - 67 images
18-09-04 Open Bar - 56 images
11-09-04 Mr Ya & DJ Regio - 60 images
28-08-04 After DJ Poon - 91 images
02-07-04 Nuit du Clan - 62 images
25-06-04 Love Boat - 87 images
18-06-04 Influence House - 45 images
05-06-04 Soirée Open Bar - 31 images
02-06-04 Soirée INSA - 40 images
06-05-04 Soirée ESIGELEC - 42 images
09-04-04 Soirée Droit - 65 images
25-03-04 Opération Séduction - 54 images
18-03-04 Anniversaire Sortons.Net - 86 images
12-03-04 Open Bar - 41 images
21-02-04 Sweet N' Chips - 23 images
06-02-04 Ouverture / Inauguration - 27 images
Alexander Pub - 1 album
05-03-05 Ganesh EKB - 20 images
Anatole Bar - 1 album
16-10-04 Défilé de mode - 57 images
Au coin des Diablotins - 7 albums
29-07-04 Soirée concerts - 34 images
09-07-04 Tek Over - 40 images
08-07-04 John Merricks Family - 57 images
12-06-04 Primitif & Dobermann - 26 images
28-05-04 Darjeeling - 27 images
14-02-04 St Valentin avec les Gozbo - 29 images
10-01-04 Ouverture et inauguration - 16 images
Au P'tit Bar - 9 albums
18-02-05 La Mygale - 55 images
19-11-04 Ganesh EKB - 30 images
08-10-04 Les Chicanos - 50 images
23-07-04 Happy People - 34 images
02-07-04 Anniversaire, 10 ans ! - 85 images
18-06-04 Tuno's Show ! - 35 images
02-04-04 Happy People - 38 images
23-01-04 Soirée Plage - 50 images
03-10-03 Asparagos - 21 images
Bidule - 16 albums
26-01-05 Fiesta ! - 42 images
14-01-05 Hot N' Full - 37 images
23-12-04 Avant Noël ... - 43 images
12-11-04 After 2h ... - 40 images
14-10-04 Soirée Pharma - 30 images
02-10-04 Private Open Bar, Part II - 65 images
03-09-04 Anniversaire, Part I - 26 images
17-07-04 Private Open Bar - 81 images
18-06-04 Full ... Full ... Full ... - 44 images
29-04-04 Before Siècle - 47 images
23-04-04 Fiesta Students ! - 39 images
26-03-04 Full Cave - 43 images
13-11-03 Soirée Pharma - 25 images
23-10-03 Soirée ISPP - 46 images
19-09-03 Inauguration officielle - 54 images
29-08-03 Réouverture du Bidule - 19 images
Big Ben - 1 album
11-03-04 Soirée Muse - 42 images
Bistrot St Maclou - 1 album
24-04-04 Soirée Cubaine - 26 images
Bodequita del Che - 1 album
14-02-04 Inauguration - 37 images
Boite à Bières - 1 album
17-03-04 St Patrick - 51 images
Chaman - 4 albums
06-11-04 Black Board Jungle - 18 images
23-10-04 Barbier de sa ville VS Bob Soul - 25 images
01-10-04 Solyluna - 33 images
06-09-04 Ouverture - 49 images
Chester's Café - 12 albums
19-02-05 DJ Szade - 45 images
06-11-04 Red Night - 26 images
08-10-04 DJ LFK - 33 images
20-08-04 Soirée sympa - 27 images
17-07-04 DJ DST - 39 images
18-06-04 DJ Szade (Radio FG) - 34 images
06-06-04 Anniversaire, 1 an - 72 images
23-04-04 Apero - 60 images
26-03-04 Soirée Anne & Ken - 36 images
12-02-04 Before Lounge - 29 images
12-12-03 Key N' Lock Party - 40 images
10-12-03 Vernissage Expo M. Yapo - 14 images
Clipper - 18 albums
26-01-05 Sports d'hiver - 98 images
14-01-05 Apéro sympathique - 56 images
15-12-04 Noël avant l'heure : soirée champagne ! - 52 images
31-10-04 Halloween - 18 images
20-10-04 Anniversaire 5 ans ! - 50 images
19-09-04 Happy Birthday Geoff ! - 48 images
18-09-04 Fiesta ! - 31 images
29-07-04 Fiesta ! - 37 images
21-07-04 Soirée Plage - 57 images
30-06-04 Apéro Time - 23 images
21-04-04 Embarquement Soleil ! - 82 images
21-03-04 Before Smart - 28 images
16-12-03 Noël au Clipper ! - 75 images
26-11-03 Soirée Castellane - 79 images
20-11-03 Soirée Beaujolais - 64 images
31-10-03 Halloween - 22 images
08-10-03 Anniversaire 4 ans ! - 94 images
10-09-03 Soirée Retour des Vacances - 35 images
Djul'Z - 2 albums
07-08-04 Latino / Latina - 42 images
24-07-04 Anniversaire, 1 an - 88 images
Dooliz - 5 albums
13-11-04 Ambiance orientale - 26 images
02-10-04 Hip Hop Raï, Vol2 - Live - 27 images
11-09-04 DJ Clems - 32 images
24-06-04 Blind Test - Soirée Sortons.Net - 245 images
19-06-04 Ambiance Orientale - 39 images
Echiquier - 3 albums
29-07-04 Les Terrasses du Jeudi : Bahasabé - 34 images
08-07-04 Les Terrasses du Jeudi : Cécile Charbonnel - 15 images
01-07-04 Les Terrasses du Jeudi : Sofa - 48 images
Emporium Galorium - 38 albums
25-02-05 ERASMUS - 99 images
24-02-05 INSA - 58 images
17-02-05 Cool Faces - 18 images
10-02-05 IFI - KINE - 159 images
03-02-05 Psycho Socio - 90 images
19-01-05 Soirée Shooters - 36 images
12-01-05 Soirée IFI - 160 images
05-01-04 Soirée Médecine - 221 images
13-11-04 Soirée Gothique - 44 images
10-11-04 Anniversaire, 7 ans ! - 51 images
31-10-04 Halloween - 59 images
23-10-04 Soirée Gothique - 44 images
15-10-04 Erasmus - 32 images
14-10-04 Soirée Médecine - 70 images
07-10-04 Soirée Infirmières - 54 images
01-10-04 The DTC Party - 40 images
24-04-04 Soirée Sortons.Net + TEO7 - 40 images
22-04-04 Soirée Erasmus - 33 images
17-04-04 Soirée Gothique - 57 images
26-03-04 Smiles - 27 images
20-03-04 Soirée Gothique - 40 images
12-03-04 Anniversaire Sortons.Net - 43 images
06-03-04 Soirée Dépêche Mode - 44 images
14-02-04 Soirée Gothique - 39 images
13-02-04 Soirée Sciences Humaines - 34 images
29-01-04 Soirée IFI - 32 images
22-01-04 Soirée ESITPA - 34 images
15-01-04 Soirée ESIG4L & IFSI - 54 images
20-12-03 Soirée Gothique - 24 images
15-11-03 Soirée Gothique - 44 images
31-10-03 Halloween - 98 images
25-10-03 Soirée Coiffure Relooking - 85 images
18-10-03 Soirée Gothique - 47 images
09-10-03 Soirée ESITPA - 26 images
02-10-03 Soirée ESITPA - 46 images
20-09-03 Soirée Gothique - 52 images
11-09-03 Soirée IFI - 48 images
03-09-03 Réouverture - Nouvelle déco' - 33 images
Espiguette - 1 album
08-07-04 Les Terrasses du Jeudi : Milonga - 38 images
Euro Café - 7 albums
05-02-05 Happy Birthday Mehdi ! - 25 images
31-01-05 Soirée ESC - 31 images
06-01-05 Soirée Jumelée avec le Smart - 16 images
09-07-04 Soirée Tilt - 56 images
01-07-04 Songe Black - 42 images
29-05-04 Happy Faces - 19 images
12-02-04 Anniversaire 5 Ans - 22 images
Fab Café - 20 albums
19-01-05 Inauguration Site www.fabcafe.fr.st - 48 images
16-01-05 B4 - 25 images
04-01-05 Apéro Fab' - 30 images
28-12-04 Anniversaire du Patron ! - 71 images
31-10-04 Mardi Gras - 45 images
23-10-04 Blanc, Rouge, Bayonne ! - 40 images
10-10-04 Anniversaire 2 ans ! - 53 images
19-09-04 Pied Pride - First Edition - 78 images
11-06-04 Soirée Bal Musette - 42 images
21-05-04 Soirée Pyjama - 56 images
12-05-04 Fab' Champion ! - 28 images
23-04-04 Soirée Russe - 31 images
14-02-04 St Valentin - 29 images
13-02-04 Apéro Fab' - 29 images
26-01-04 Apéro de la Botte - 49 images
23-01-04 Soirée Défilé de Lingerie - 68 images
31-10-03 Halloween - 39 images
10-10-03 Anniversaire 1 an ! - 53 images
19-09-03 Bonjour la rentrée ! - 28 images
29-08-03 Happy People - 35 images
Floralies - 1 album
12-12-03 Les Aminches - 27 images
Guevara - 1 album
05-09-03 Réouverture Caliente ! - 16 images
Highland's Café - 14 albums
03-03-05 Soirée ESIGELEC - 92 images
29-12-04 La dernière : bye bye Bruno et Christophe ! - 96 images
21-12-04 Blind Test Acte III - Soirée Sortons.Net - 192 images
02-12-04 Soirée ESIG - 38 images
22-07-04 Nicolas Candé Quartet - 28 images
30-05-04 Anniversaire, 5 ans ! - 61 images
13-05-04 Soirée Staps - The Last - 116 images
25-03-04 Soirée Infirmières vs Staps - 135 images
19-02-04 Soirée INSA - 67 images
18-12-03 Soirée Infirmières - 83 images
04-12-03 Soirée Neige - Staps - 80 images
20-11-03 Soirée Beaujolais - 22 images
05-11-03 Soirée ISPP - 35 images
18-09-03 Soirée Intégration STAPS - 184 images
Hurricane Bar - 12 albums
17-02-05 ESIGELEC - 47 images
09-02-05 Steac Frit - 97 images
19-01-05 Match Tout Terrain 4x4 par les Steac Frit - 121 images
28-10-04 Soirée Sortons.Net - Blind Test, Act II - 81 images
02-09-04 Soirée Esigelec - 50 images
09-07-04 Around the Fire - 36 images
15-06-04 Soirée Foot - After Courtivore - 32 images
13-05-04 Election BDE Esigelec - 57 images
11-03-04 Soirée Esigelec / Infirmières - 52 images
19-02-04 Soirée STAPS - 59 images
04-12-03 Soirée Esigelec starring IN OFF - 39 images
20-11-03 Soirée Beaujolais - 50 images
Insomnia - 2 albums
28-01-05 Soirée brésilienne avec Agogo Percussions - 39 images
27-01-05 JetSet Tech de Co - 59 images
LVN Kfé - 3 albums
29-10-04 Palanuk Opera - 20 images
15-07-04 Les Terrasses du Jeudi : Vermeulen - 55 images
26-03-04 After Apéro - 29 images
LVN - Place de la Pucelle - 3 albums
22-07-04 Les Terrasses du Jeudi : Aminima - 29 images
15-07-04 Les Terrasses du Jeudi : Uranus Bruyant + Vashfol - 51 images
01-07-04 Les Terrasses du Jeudi : La Familia - 139 images
Marylin Café - 2 albums
07-02-04 Mix & Turntablism - 45 images
11-10-03 Kasy Crew - 28 images
Matisse - 2 albums
13-02-04 Before Velvet - 28 images
01-10-03 Ouverture du Matisse - 32 images
Moby's Café - 1 album
14-01-05 Charles Carlson - 38 images
Murphy's - 4 albums
29-05-04 Murphy's ... by Night - 26 images
17-03-04 St Patrick - 35 images
13-12-03 Portuguais - 11 images
10-09-03 Soirée ESC - 135 images
Nash Café - 11 albums
28-08-04 Fashion & Cool - 25 images
22-07-04 Les Terrasses du Jeudi : Souinq - 41 images
15-07-04 Les Terrasses du Jeudi : Yaka - 31 images
13-07-04 Happy People - 35 images
19-06-04 Be Happy - 52 images
19-05-04 Songe Black - 89 images
07-05-04 Jimmy from Papagayo - 19 images
14-02-04 St Valentin starring Moet - 33 images
04-10-03 Soirée FunkaDelic - 20 images
14-09-03 Des Hommes ... Des Femmes ... et des Chabada bada ... - 152 images
08-08-03 Terrasse enflammée - 19 images
Next - 12 albums
04-03-05 Dream - 70 images
18-02-05 Open Bar - 76 images
11-02-05 Open Bar - 67 images
04-02-05 Open Bar - 65 images
02-02-05 Soirée EXIA - 76 images
29-01-05 Open Bar House and Dream - 60 images
22-01-05 Happy Students - 105 images
15-01-05 Open Bar - 135 images
09-01-05 After Sunday Night#01 - 51 images
02-01-05 Free Mix Party - 80 images
26-12-04 Noël au Balcon - 79 images
17-12-04 Inauguration - 71 images
O' Kallaghan's - 11 albums
29-01-05 Disco ! - 38 images
27-01-05 Soirée Médecine - 27 images
14-01-05 JP - 23 images
31-10-04 Halloween - 25 images
30-10-04 Halloween - 43 images
09-10-04 After Marathon Photo Fnac - 26 images
15-09-04 Soirée ESC - 59 images
29-07-04 Le Diabl' dans la fourche - 43 images
21-05-04 Pub or not Pub ? - 31 images
20-03-04 Happy People - 33 images
14-02-04 St Valentin - 35 images
Original - 1 album
17-01-04_Inauguration - 19 images
P'tit Marais - 3 albums
04-12-04 Strip Tease avec Dylan - 24 images
16-10-04 Show Sexy - 32 images
05-06-04 Soirée Tirage - 27 images
Renaissance - 1 album
17-10-03 DJ's Session - 30 images
Rézervoir Kaffé - 1 album
12-02-05 KL + Lilong - 51 images
River Blue's - 8 albums
08-10-03 Soirée Nautique - 27 images
20-09-03 Soirée Perruques Party - 57 images
11-09-03 DJ Dom K - 20 images
21-08-03 Lunettes noires pour nuit blanche - 43 images
24-07-03 Soirée Hawaïenne - 36 images
12-06-03 Sucettes Party - 51 images
25-05-03 St Bioz - 46 images
11-05-03 Hollywood Night - 53 images
Rois du Zinc - 1 album
13-11-03 Team Fooollle Delux - Part II - 30 images
Roxy Café - 7 albums
04-11-04 Gloubi Boulga - 42 images
31-10-04 Halloween - 30 images
19-09-04 Pied Pride - First Edition - 92 images
16-09-04 Happy Birthday Adeline ! - 31 images
11-06-04 Anniversaire - 1 an - 49 images
25-03-04 Trombino' Bar - Anniversaire Sortons.Net - 60 images
06-02-04 Soirée Neige - 40 images
Saxo - 1 album
17-03-04 St Patrick - 30 images
Scandale - 2 albums
06-01-05 Améthyste, annulé :( - 19 images
04-11-04 Soirée Médecine - 41 images
Scopitone - 5 albums
12-02-05 Anniversaire, 1 an ! - 29 images
14-07-04 Klymt & Echoes - 43 images
09-07-04 Zuma - 27 images
21-05-04 Karaoké 60's 70's - 35 images
19-02-04 Visite du Scopitone - 23 images
Shadow - 3 albums
06-01-05 Le mimi Chat Bus ! - 15 images
17-09-04 Walking in the Shadow - 18 images
17-05-04 Inauguration - 28 images
Shari Vari - 20 albums
18-02-05 Djette ISA - 31 images
04-12-04 R-Franck - 29 images
19-11-04 DJ Zadig - 20 images
15-10-04 DJ FK - 31 images
25-09-04 DJ Widenski - 24 images
11-09-04 R-Franck - 58 images
28-08-04 Bob's Soul : 'Cause you're Funky ! - 27 images
09-07-04 Happy Birthday Julien Ferment ! - 38 images
03-07-04 Happy Faces - 49 images
28-05-04 Laurent Hô - 31 images
02-04-04 DJ Ralph - 51 images
26-03-04 Battle Electro House - 34 images
20-03-04 Le Barbier de sa Ville - 40 images
13-03-04 LDB System - 32 images
30-01-04 R-Franck - 23 images
31-10-03 Halloween - 34 images
24-10-03 General Funk Theory - 31 images
18-10-03 Anniversaire 1 an ! - 46 images
10-10-03 Tribute to Prince - 45 images
20-09-03 DJ Yanosh - Urban Lives/Caen - 18 images
Sinon Rien - 1 album
22-03-04 Pot de départ Pierre Sevilla (Ricard) - 29 images
Socrate - 4 albums
19-11-04 Le Grand Bazar - RTL2 - 66 images
29-07-04 Les Terrasses du Jeudi : Gil - 20 images
22-07-04 Les Terrasses du Jeudi : The Elektrokution - 157 images
01-07-04 Les Terrasses du Jeudi : Claire et ses Radis - 31 images
St Vincent - 1 album
30-07-04 Happy Faces - 19 images
Underground - 16 albums
17-02-05 Soirée Australienne - 90 images
12-02-05 Satuday Night - 37 images
16-12-04 Les Bronzés font du Ski - 51 images
04-12-04 Happy ! - 26 images
31-10-04 Halloween - 76 images
17-09-04 Soirée Droit - 51 images
03-09-04 Happy - 46 images
21-08-04 Retour des vacances - 34 images
17-07-04 Happy People - 37 images
08-07-04 After les Terrasses (vides) - 42 images
02-07-04 Before Nuit du Bac - 75 images
07-05-04 Happy People - 35 images
02-04-04 Soirée Maddy's - 31 images
17-03-04 St Patrick - 47 images
14-01-04 Soirée ISPP - 58 images
01-10-03 Soirée ISPP - 52 images
Table d'Alex - 1 album
06-01-05 Piano Bar - 37 images
Valou Bar - 1 album
30-10-04 Halloween - 19 images
Victoria Pub - 1 album
14-11-04 Before Anniversaire Trianon Club - 56 images
Villa Cesane - 2 albums
18-09-04 François Corbier - 51 images
17-09-04 François Corbier - 20 images
Welcome - 6 albums
05-12-04 Todos Los Amigos - 27 images
09-10-03 Anniversaire du Welcome - 40 images
09-09-04 Soirée ISD - 24 images
15-05-04 Soirée Clan - 30 images
11-03-04 Soirée IN/OFF - 32 images
23-10-03 Inauguration du Welcome - 16 images
Why Not Caffé - 7 albums
23-02-05 Caliente ! - 71 images
30-10-04 Halloween - 44 images
09-09-04 St Alain - 26 images
12-03-04 Anniversaire, 3 ans ! - 112 images
04-03-04 Soirée Bacardi - 55 images
15-01-04 Pot de départ Hervé Fleury - 18 images
20-11-03 Soirée Beaujolais - 20 images
Yesterday - 1 album
07-02-04 Ambiance irlandaise - 30 images
XXL - 2 albums
02-10-04 Vernissage Expo Saireo - 28 images
12-06-04 Anniversaire - 7 ans - 53 images



In fact ... use a system like this ...


<?
include ('showcat=4');
?>


And on my page of the pubs I have only the categories and all the sub cat + albums which are inside ...


Anyway ... THANX A LOT ... I think with CSS I'll replace the index.php of coppermine by this system tree ... THANX THANX THANX !

Titooy

Making it work outside coppermine is a bit too complicated (for me anyway) cause you need to rewrite lots of functions instead of just include the existing ones.

If you want to see just "Soirées Bars/Pubs/Restos (Rouen & Agglo)"

you just have to replace get_tree_subcat_data(0); with get_tree_subcat_data(4);

Rodinou

Quiet easy indeed ....


but it's possible to call this function directly in the "echo code" ??? Indeed if I want to have several pages with "bars / pubs" - "discotheques" ... it's more simple to use only this variable instead of reusing the whole code (which can ben called by include for example) ...

It seems to use coppermine "out" of its folder is hard :( not fun.