Ben nu zelf ook wer bezig, heeft dit er niet mee van doen:
Code: Selecteer alles
if ($album_config['comment'] == 1) 
Code: Selecteer alles
if ($album_config['comment'] == 1) Code: Selecteer alles
# Open portal.php
#
#
# ZOEK:
#
// Display pics vertically
#
# Daarvoor toevoegen:
#
if ($album_config['fullpic_popup'])
{
if ( $userdata['session_logged_in'] )
{
$album_pic_url = append_sid("album_pic.$phpEx?pic_id=". $recentrow[$j]['pic_id']);
}
else
{
$album_pic_url = append_sid("login.$phpEx?redirect=album_pic.$phpEx?pic_id=". $recentrow[$j]['pic_id'], true);
}
}
else
{
if ( $userdata['session_logged_in'] )
{
$album_pic_url = append_sid("album_page.$phpEx?pic_id=". $recentrow[$j]['pic_id']);
}
else
{
$album_pic_url = append_sid("login.$phpEx?redirect=album_page.$phpEx?pic_id=". $recentrow[$j]['pic_id'], true);
}
}
#
#ZOEK:
#
'U_PIC' => ($album_config['fullpic_popup']) ? append_sid("album_pic.$phpEx?pic_id=". $recentrow[$j]['pic_id']) : append_sid("album_page.$phpEx?pic_id=". $recentrow[$j]['pic_id']),
#
# Vervangen met:
#
'U_PIC' => $album_pic_url,
#
# Het gedeelte hierboven is voor de foto
#Code: Selecteer alles
'RATING' => $album_rating_url,
'COMMENTS' => $album_comments_url)Code: Selecteer alles
$template->assign_block_vars('recent_pics.recent_detail', array(Code: Selecteer alles
if ($album_config['comment'] == 1)
{
if ( $userdata['session_logged_in'] )
{
$album_comment_url = '<a href="'. append_sid("album_comment.$phpEx?pic_id=". $recentrow[$j]['pic_id']) . '">' . $lang['Comments'] . '</a>: ' . $recentrow[$j]['comments'] . '<br />';
}
else
{
$album_comment_url = '<a href="'. append_sid("login.$phpEx?redirect=album_comment.$phpEx?pic_id=". $recentrow[$j]['pic_id']) . ', true">' . $lang['Comments'] . '</a>: ' . $recentrow[$j]['comments'] . '<br />';
}
}
else
{
$album_comment_url = '';
}
Code: Selecteer alles
$album_comment_url = '<a href="'. append_sid("login.$phpEx?redirect=album_comment.$phpEx?pic_id=". $recentrow[$j]['pic_id']) . ', true">' . $lang['Comments'] . '</a>: ' . $recentrow[$j]['comments'] . '<br />';Code: Selecteer alles
$album_comment_url = '<a href="'. append_sid("login.$phpEx?redirect=album_comment.$phpEx?pic_id=". $recentrow[$j]['pic_id']) . '">' . $lang['Comments'] . '</a>: ' . $recentrow[$j]['comments'] . '<br />';Code: Selecteer alles
# Voor linken enkel te laten werken voor leden (foto album blok portal)
#
# Open portal.php
#
#
# ZOEK:
#
// Display pics vertically
#
# Daarvoor toevoegen:
#
if ($album_config['fullpic_popup'])
{
if ( $userdata['session_logged_in'] )
{
$album_pic_url = append_sid("album_pic.$phpEx?pic_id=". $recentrow[$j]['pic_id']);
}
else
{
$album_pic_url = append_sid("login.$phpEx?redirect=album_pic.$phpEx?pic_id=". $recentrow[$j]['pic_id'], true);
}
}
else
{
if ( $userdata['session_logged_in'] )
{
$album_pic_url = append_sid("album_page.$phpEx?pic_id=". $recentrow[$j]['pic_id']);
}
else
{
$album_pic_url = append_sid("login.$phpEx?redirect=album_page.$phpEx?pic_id=". $recentrow[$j]['pic_id'], true);
}
}
#
#ZOEK:
#
'U_PIC' => ($album_config['fullpic_popup']) ? append_sid("album_pic.$phpEx?pic_id=". $recentrow[$j]['pic_id']) : append_sid("album_page.$phpEx?pic_id=". $recentrow[$j]['pic_id']),
#
# Vervangen met:
#
'U_PIC' => $album_pic_url,
#
# Het gedeelte hierboven is voor de foto
#
#
#ZOEK:
#
// Display pics vertically
#
# Daarna toevoegen:
#
if ($album_config['rate'] == 1)
{
if ( $userdata['session_logged_in'] )
{
$album_rating_url = '<a href="'. append_sid("album_rate.$phpEx?pic_id=". $recentrow[$j]['pic_id']) . '">' . $lang['Rating'] . '</a>: ' . $recentrow[$j]['rating'] . '<br />';
}
else
{
$album_rating_url = '<a href="'. append_sid("login.$phpEx?redirect=album_rate.$phpEx?pic_id=". $recentrow[$j]['pic_id']) . ', true">' . $lang['Rating'] . '</a>: ' . $recentrow[$j]['rating'] . '<br />';
}
}
else
{
$album_rating_url = '';
}
if ($album_config['comment'] == 1)
{
if ( $userdata['session_logged_in'] )
{
$album_comment_url = '<a href="'. append_sid("album_comment.$phpEx?pic_id=". $recentrow[$j]['pic_id']) . '">' . $lang['Comments'] . '</a>: ' . $recentrow[$j]['comments'] . '<br />';
}
else
{
$album_comment_url = '<a href="'. append_sid("login.$phpEx?redirect=album_comment.$phpEx?pic_id=". $recentrow[$j]['pic_id']) . ', true">' . $lang['Comments'] . '</a>: ' . $recentrow[$j]['comments'] . '<br />';
}
}
else
{
$album_comment_url = '';
}
#
# ZOEK:
#
'RATING' => ($album_config['rate'] == 1) ? ( '<a href="'. append_sid("album_rate.$phpEx?pic_id=". $recentrow[$j]['pic_id']) . '">' . $lang['Rating'] . '</a>: ' . $recentrow[$j]['rating'] . '<br />') : '',
'COMMENTS' => ($album_config['comment'] == 1) ? ( '<a href="'. append_sid("album_comment.$phpEx?pic_id=". $recentrow[$j]['pic_id']) . '">' . $lang['Comments'] . '</a>: ' . $recentrow[$j]['comments'] . '<br />') : '')
#
# Vervangen met:
#
'RATING' => $album_rating_url,
'COMMENTS' => $album_comments_url)
#
# Zoek:
#
$recent_poster = '<a href="'. append_sid("profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $recentrow[$j]['user_id']) .'">'. $recentrow[$j]['username'] .'</a>';
#
# Vervangen met:
#
if ( $userdata['session_logged_in'] )
{
$recent_poster = '<a href="'. append_sid("profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $recentrow[$j]['user_id']) .'">'. $recentrow[$j]['username'] .'</a>';
}
else
{
$recent_poster = '<a href="'. append_sid("login.$phpEx?redirect=profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $recentrow[$j]['user_id']) .'">'. $recentrow[$j]['username'] .'</a>';
}