|
Autor |
Nachricht |
boris
Beiträge: 11057
|
Titel: Snippet: Full Album Pack - Personal galleries on index
Verfasst am: Sa, 14 Feb 2009, 09:46 |
|
|
Mit diesen Änderungen kann man beim "Full Album Pack" (= Smartors Album MOD + etliche Add-Ons) die persönlichen Ordner auch auf dem Album Index anzeigen lassen und muß sich nicht erst über "Persönliche User-Galerien" durchklicken.
Beispiel hier.
Code: |
#
#-----[ OPEN ]------------------------------------------
#
album.php
#
#-----[ FIND ]------------------------------------------
#
$options = ($album_view_mode == ALBUM_VIEW_LIST ) ? ALBUM_READ_ALL_CATEGORIES|ALBUM_AUTH_VIEW %u3a ALBUM_AUTH_VIEW;
#
#-----[ REPLACE WITH ]------------------------------------------
#
$options = ($album_view_mode == ALBUM_VIEW_LIST || empty($_GET['user_id'])) ? ALBUM_READ_ALL_CATEGORIES|ALBUM_AUTH_VIEW %u3a ALBUM_AUTH_VIEW;
#
#-----[ OPEN ]------------------------------------------
#
album_mod/album_hierarchy_functions.php
#
#-----[ FIND ]------------------------------------------
# ca. line 296
$subpgm = append_sid(album_append_uid("album_cat.$phpEx?cat_id=" . $album_data['id'][$subthis]));
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ($cat['cat_user_id'] > 0)
{
$subpgm = append_sid(album_append_uid("album_cat.$phpEx?cat_id=" . $album_data['id'][$subthis] . "&user_id=" . $cat['cat_user_id']));
}
else
{
$subpgm = append_sid(album_append_uid("album_cat.$phpEx?cat_id=" . $album_data['id'][$subthis]));
}
#
#-----[ FIND ]------------------------------------------
# ca. line 403
$slideshow_link = append_sid(album_append_uid("album_showpage." . $phpEx . "?pic_id=" . $first_pic_id . "&slideshow=5"));
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ($cat['cat_user_id'] > 0)
{
$slideshow_link = append_sid(album_append_uid("album_showpage." . $phpEx . "?pic_id=" . $first_pic_id . "&slideshow=5&user_id=" . $cat['cat_user_id']));
}
else
{
$slideshow_link = append_sid(album_append_uid("album_showpage." . $phpEx . "?pic_id=" . $first_pic_id . "&slideshow=5"));
}
#
#-----[ FIND ]------------------------------------------
# ca. line 532
$cat_url = append_sid(album_append_uid("album_cat.$phpEx?cat_id=$cat_id"));
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ($cat['cat_user_id'] > 0 && empty($_GET['user_id']))
{
$cat_url = append_sid(album_append_uid("album.$phpEx?user_id=" . $cat['cat_user_id']));
}
else
{
$cat_url = append_sid(album_append_uid("album_cat.$phpEx?cat_id=$cat_id"));
} |
Der Code bewirkt, daß zunächst beim Anzeigen des Index ALLE Alben geholt werden (auf die der User Zugriff hat), die Änderungen in der album_hierarchy_functions.php ändern die Links zum Album, da die persönlichen Alben nicht wie normale Kategorien verlinkt werden können.
____________ beehave - home of humbug ... [we can't afford to be neutral]
|
|
Nach oben |
|
|
|
ähnliche Beiträge |
|
Thema
| Autor
| Forum
| Antworten
| Verfasst am
|
|
Neues Album: Queens of the stone age - Villains |
jrose |
silikonimplantate |
0 |
Mi, 14 Jun 2017, 23:43 |
|
Hurensöhne Mannheims mit neuem Album |
jrose |
joxe und so |
1 |
Fr, 05 Mai 2017, 11:00 |
|
Faith No More - neues Album 2015! |
jrose |
silikonimplantate |
2 |
Mi, 03 Sep 2014, 08:39 |
|
Handy full downgrade |
bumpi |
alltalk |
1 |
Do, 09 Sep 2010, 21:38 |
|
Smashing Pumpkins - neue Album |
jrose |
silikonimplantate |
0 |
Do, 22 Okt 2009, 22:11 |
Schreiben: nein. Antworten: nein. Bearbeiten: nein. Löschen: nein. Umfragen: nein.
|