foto blok portal

Installatie lukt niet? Plotseling een foutmelding. Of weet je niet hoe iets werkt. Problemen met phpBB2 kun je in dit archief opzoeken.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
maico
Berichten: 562
Lid geworden op: 04 jan 2004, 18:26

foto blok portal

Bericht door maico » 25 mei 2004, 09:48

Hoe krijg ik het voor elkaar om de linken die getoond worden in deze blok alleen te bekijken zijn door de leden.
als een niet lid erop klikt dat hij/zij het scherm krijgen gebruikersnaam wachtwoord.

Code: Selecteer alles

			<tr>
				<th class="thTop" height="25" nowrap="nowrap">{L_NEWEST_PICS}</th>
			</tr>
			<!-- BEGIN no_pics -->
			<tr>
				<td class="row1" align="center" height="50"><span class="gen">{L_NO_PICS}</span></td>
			</tr>
			<!-- END no_pics -->
			<!-- BEGIN recent_pics -->
			<!-- BEGIN recent_detail -->
			<tr>
				<td class="row1" width="{S_COL_WIDTH}" align="center"><a href="{recent_pics.recent_detail.U_PIC}" {TARGET_BLANK}><img src="{recent_pics.recent_detail.THUMBNAIL}" border="0" alt="{recent_pics.recent_detail.DESC}" title="{recent_pics.recent_detail.DESC}" vspace="10" /></a></td>
			</tr>
			<tr>
			<td class="row2">
					<span class="gensmall">{L_PIC_TITLE}: {recent_pics.recent_detail.TITLE}<br />
					{L_POSTER}: {recent_pics.recent_detail.POSTER}<br />{L_POSTED}: {recent_pics.recent_detail.TIME}<br />
					{L_VIEW}: {recent_pics.recent_detail.VIEW}<br />{recent_pics.recent_detail.RATING}{recent_pics.recent_detail.COMMENTS}<br /></span>
				</td>
			</tr>
			<!-- END recent_detail -->
			<!-- END recent_pics -->
			<tr>

Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 25 mei 2004, 14:34

daarvoor moet ik het stuk dat je in portal.php toe hebt gevoegd hebben
Afbeelding

maico
Berichten: 562
Lid geworden op: 04 jan 2004, 18:26

Bericht door maico » 25 mei 2004, 15:11

Dat is nogal wat maar fijn hier is het stuk uit de handleiding.

Code: Selecteer alles

#
#-----[ OPEN ]------------------------------------------
#
portal.php

#
#-----[ FIND ]------------------------------------------
#
$CFG['poll_forum'] = '1';

#
#-----[ AFTER, ADD ]------------------------------------------
#

// Start add  - Photo Album Block
// Pics Cat ID: no multi-categories support
$CFG['cat_id'] = '0';

// Number of pics on portal
$CFG['pics_number'] = '1';

// Pics viewing all: replace '0' with '1' to display both public & personal pics
$CFG['pics_all'] = '0';

// Pics randomization: replace '0' with '1' for random
$CFG['pics_sort'] = '0';
// End add  - Photo Album Block

#
#-----[ FIND ]------------------------------------------
#
$phpbb_root_path = './';

#
#-----[ AFTER, ADD ]------------------------------------------
#
$album_root_path = $phpbb_root_path . 'album_mod/';

#
#-----[ FIND ]------------------------------------------
#
//
// End session management
//

#
#-----[ AFTER, ADD ]------------------------------------------
#

// Start add  - Photo Album Block
include($album_root_path . 'album_common.'.$phpEx);
// End add  - Photo Album Block

#
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(
	'WELCOME_TEXT' => $CFG['welcome_text'],

#
#-----[ BEFORE, ADD ]------------------------------------
#

// Start add  - Photo Album Block
// Build Categories Index
$sql = "SELECT c.*, COUNT(p.pic_id) AS count
		FROM ". ALBUM_CAT_TABLE ." AS c
			LEFT JOIN ". ALBUM_TABLE ." AS p ON c.cat_id = p.pic_cat_id
		WHERE cat_id <> 0
		GROUP BY cat_id
		ORDER BY cat_order ASC";
if ( !($result = $db->sql_query($sql)) )
{
	message_die(GENERAL_ERROR, 'Could not query categories list', '', __LINE__, __FILE__, $sql);
}
$catrows = array();

while( $row = $db->sql_fetchrow($result) )
{
	$album_user_access = album_user_access($row['cat_id'], $row, 1, 0, 0, 0, 0, 0); // VIEW
	if ($album_user_access['view'] == 1)
	{
		$catrows[] = $row;
	}
}
if ( $CFG['pics_all'] == '1' )
{
	$allowed_cat = '0'; // For Recent Public Pics below
}
else
{
	$allowed_cat = ''; 
}

//
// $catrows now stores all categories which this user can view. Dump them out!
//
for ($i = 0; $i < count($catrows); $i++)
{
	// Build allowed category-list (for recent pics after here)
	$allowed_cat .= ($allowed_cat == '') ? $catrows[$i]['cat_id'] : ',' . $catrows[$i]['cat_id'];

	// Get Last Pic of this Category
	if ($catrows[$i]['count'] == 0)
	{
		// Category is empty
		$last_pic_info = $lang['No_Pics'];
		$u_last_pic = '';
		$last_pic_title = '';
	}
	else
	{
		// Check Pic Approval
		if ( ($catrows[$i]['cat_approval'] == ALBUM_ADMIN) or ($catrows[$i]['cat_approval'] == ALBUM_MOD) )
		{
			$pic_approval_sql = 'AND p.pic_approval = 1'; // Pic Approval ON
		}
		else
		{
			$pic_approval_sql = ''; // Pic Approval OFF
		}
	}
	// END of Last Pic
}

// Recent Public Pics
if ( $CFG['pics_all'] == '1' )
{
	$pics_allowed = '0';
}
else
{
	$pics_allowed = '';
}

if ( $allowed_cat != $pics_allowed )
{
	$CategoryID = $CFG['cat_id'];

	if ( $CFG['pics_sort'] == '1' )
	{
		if ( $CategoryID != 0 )
		{
			$sql = "SELECT p.pic_id, p.pic_title, p.pic_desc, p.pic_user_id, p.pic_user_ip, p.pic_username, p.pic_time, p.pic_cat_id, p.pic_view_count, u.user_id, u.username, r.rate_pic_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments
				FROM ". ALBUM_TABLE ." AS p
					LEFT JOIN ". USERS_TABLE ." AS u ON p.pic_user_id = u.user_id
					LEFT JOIN ". ALBUM_CAT_TABLE ." AS ct ON p.pic_cat_id = ct.cat_id
					LEFT JOIN ". ALBUM_RATE_TABLE ." AS r ON p.pic_id = r.rate_pic_id
					LEFT JOIN ". ALBUM_COMMENT_TABLE ." AS c ON p.pic_id = c.comment_pic_id
				WHERE p.pic_cat_id IN ($allowed_cat) AND ( p.pic_approval = 1 OR ct.cat_approval = 0 ) AND pic_cat_id = ($CategoryID)
				GROUP BY p.pic_id
				ORDER BY RAND()
				LIMIT ". $CFG['pics_number'];
		}
		else
		{
			$sql = "SELECT p.pic_id, p.pic_title, p.pic_desc, p.pic_user_id, p.pic_user_ip, p.pic_username, p.pic_time, p.pic_cat_id, p.pic_view_count, u.user_id, u.username, r.rate_pic_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments
				FROM ". ALBUM_TABLE ." AS p
					LEFT JOIN ". USERS_TABLE ." AS u ON p.pic_user_id = u.user_id
					LEFT JOIN ". ALBUM_CAT_TABLE ." AS ct ON p.pic_cat_id = ct.cat_id
					LEFT JOIN ". ALBUM_RATE_TABLE ." AS r ON p.pic_id = r.rate_pic_id
					LEFT JOIN ". ALBUM_COMMENT_TABLE ." AS c ON p.pic_id = c.comment_pic_id
				WHERE p.pic_cat_id IN ($allowed_cat) AND ( p.pic_approval = 1 OR ct.cat_approval = 0 )
				GROUP BY p.pic_id
				ORDER BY RAND()
				LIMIT ". $CFG['pics_number'];
			}
	}
	else if ( $CFG['pics_sort'] == '0' )
	{
		if ( $CategoryID != 0 )
		{
			$sql = "SELECT p.pic_id, p.pic_title, p.pic_desc, p.pic_user_id, p.pic_user_ip, p.pic_username, p.pic_time, p.pic_cat_id, p.pic_view_count, u.user_id, u.username, r.rate_pic_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments
				FROM ". ALBUM_TABLE ." AS p
					LEFT JOIN ". USERS_TABLE ." AS u ON p.pic_user_id = u.user_id
					LEFT JOIN ". ALBUM_CAT_TABLE ." AS ct ON p.pic_cat_id = ct.cat_id
					LEFT JOIN ". ALBUM_RATE_TABLE ." AS r ON p.pic_id = r.rate_pic_id
					LEFT JOIN ". ALBUM_COMMENT_TABLE ." AS c ON p.pic_id = c.comment_pic_id
				WHERE p.pic_cat_id IN ($allowed_cat) AND ( p.pic_approval = 1 OR ct.cat_approval = 0 ) AND pic_cat_id = ($CategoryID)
				GROUP BY p.pic_id
				ORDER BY pic_time DESC
				LIMIT ". $CFG['pics_number'];
		}
		else
		{
			$sql = "SELECT p.pic_id, p.pic_title, p.pic_desc, p.pic_user_id, p.pic_user_ip, p.pic_username, p.pic_time, p.pic_cat_id, p.pic_view_count, u.user_id, u.username, r.rate_pic_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments
				FROM ". ALBUM_TABLE ." AS p
					LEFT JOIN ". USERS_TABLE ." AS u ON p.pic_user_id = u.user_id
					LEFT JOIN ". ALBUM_CAT_TABLE ." AS ct ON p.pic_cat_id = ct.cat_id
					LEFT JOIN ". ALBUM_RATE_TABLE ." AS r ON p.pic_id = r.rate_pic_id
					LEFT JOIN ". ALBUM_COMMENT_TABLE ." AS c ON p.pic_id = c.comment_pic_id
				WHERE p.pic_cat_id IN ($allowed_cat) AND ( p.pic_approval = 1 OR ct.cat_approval = 0 )
				GROUP BY p.pic_id
				ORDER BY pic_time DESC
				LIMIT ". $CFG['pics_number'];
		}
	}
	if ( !($result = $db->sql_query($sql)) )
	{
		message_die(GENERAL_ERROR, 'Could not query recent pics information', '', __LINE__, __FILE__, $sql);
	}
	$recentrow = array();

	while( $row = $db->sql_fetchrow($result) )
	{
		$recentrow[] = $row;
	}

	if (count($recentrow) > 0)
	{
		for ($i = 0; $i < count($recentrow); $i += $album_config['cols_per_page'])
		{
			$template->assign_block_vars('recent_pics', array());

			for ($j = $i; $j < ($i + $album_config['cols_per_page']); $j++)
			{
				if ( $j >= count($recentrow) )
				{
					break;
				}

				if (!$recentrow[$j]['rating'])
				{
					$recentrow[$j]['rating'] = $lang['Not_rated'];
				}
				else
				{
					$recentrow[$j]['rating'] = round($recentrow[$j]['rating'], 2);
				}

				// Display pics horizontally
				$template->assign_block_vars('recent_pics.recent_col', array(
					'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']),
					'THUMBNAIL' => append_sid("album_thumbnail.$phpEx?pic_id=". $recentrow[$j]['pic_id']),
					'DESC' => $recentrow[$j]['pic_desc'])
				);

				if( ($recentrow[$j]['user_id'] == ALBUM_GUEST) or ($recentrow[$j]['username'] == '') )
				{
					$recent_poster = ($recentrow[$j]['pic_username'] == '') ? $lang['Guest'] : $recentrow[$j]['pic_username'];
				}
				else
				{
					$recent_poster = '<a href="'. append_sid("profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $recentrow[$j]['user_id']) .'">'. $recentrow[$j]['username'] .'</a>';
				}

				// Display pics vertically
				$template->assign_block_vars('recent_pics.recent_detail', array(
					'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']),
					'THUMBNAIL' => append_sid("album_thumbnail.$phpEx?pic_id=". $recentrow[$j]['pic_id']),
					'DESC' => $recentrow[$j]['pic_desc'],
					'TITLE' => $recentrow[$j]['pic_title'],
					'POSTER' => $recent_poster,
					'TIME' => create_date($board_config['default_dateformat'], $recentrow[$j]['pic_time'], $board_config['board_timezone']),
					'VIEW' => $recentrow[$j]['pic_view_count'],
					'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 />') : '')
				);
			}
		}
	}
	else
	{
		// No Pics Found
		$template->assign_block_vars('no_pics', array());
	}
}
else
{
	// No Cats Found
	$template->assign_block_vars('no_pics', array());
}
// End add  - Photo Album Block

#
#-----[ FIND ]------------------------------------------
#
	'L_VOTE_BUTTON' => $lang['Vote'],

#
#-----[ AFTER, ADD ]------------------------------------------
#

	// Start add - Photo Album Block
	'S_COLS' => $album_config['cols_per_page'],
	'S_COL_WIDTH' => (100/$album_config['cols_per_page']) . '%',
	'TARGET_BLANK' => ($album_config['fullpic_popup']) ? 'target="_blank"' : '',
	'L_NEWEST_PICS' => $lang['Newest_pics'],
	'L_NO_PICS' => $lang['No_Pics'],
	'L_PIC_TITLE' => $lang['Pic_Title'],
	'L_VIEW' => $lang['View'],
	'L_POSTER' => $lang['Poster'],
	'L_POSTED' => $lang['Posted'],
	// End add - Photo Album Block

#

Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 25 mei 2004, 15:29

Weet niet òf het werkt, maar probeer dit eens:
Open portal.php
Zoek

Code: Selecteer alles

// Display pics vertically 
Add, before

Code: Selecteer alles

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

Code: Selecteer alles

'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']),
Replace with

Code: Selecteer alles

'U_PIC' => $album_pic_url,
//veranderd, nog een keer (stomme fout!), and again
Laatst gewijzigd door Luuk op 26 mei 2004, 14:26, 3 keer totaal gewijzigd.
Afbeelding

maico
Berichten: 562
Lid geworden op: 04 jan 2004, 18:26

Bericht door maico » 25 mei 2004, 16:49

Resultaat

Code: Selecteer alles

Parse error: parse error in /home/pbexo/public_html/maico/portal.php on line 631
621 t/m 641 zijn jou toegevoede regels

Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 25 mei 2004, 16:59

probeer het stuk eens opnieuw, het is veranderd.
Afbeelding

maico
Berichten: 562
Lid geworden op: 04 jan 2004, 18:26

Bericht door maico » 25 mei 2004, 17:03

Parse error: parse error in /home/pbexo/public_html/maico/portal.php on line 631

Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 25 mei 2004, 17:13

opnieuw veranderd
stom, had een } vergeten!
Afbeelding

maico
Berichten: 562
Lid geworden op: 04 jan 2004, 18:26

Bericht door maico » 25 mei 2004, 19:18

Als ik als ingelogd ben niets aan de hand kan ik gewoon alles kijken maar toen ik uitlogde om te kijken dat ik ze niet meer kon kijken kreeg ik dit.

Code: Selecteer alles

Warning: Cannot modify header information - headers already sent by (output started at /home/pbexo/public_html/maico/includes/template.php(127) : eval()'d code:1) in /home/pbexo/public_html/maico/includes/functions.php on line 763

Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 26 mei 2004, 14:26

oke... opnieuw veranderd :twisted:
Afbeelding

maico
Berichten: 562
Lid geworden op: 04 jan 2004, 18:26

Bericht door maico » 26 mei 2004, 15:08

Luuk,

Als ik op de foto klik krijg ik inderdaad het scherm voor inlogen maar de linken die eronder staan die zijn nog wel te bekijken als ik niet ingelogd ben.
Dus het is bijna wat ik hebben wil.

http://www.pb.exocrew.com/maico/portal.php

Kijk maar

Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 26 mei 2004, 15:15

wil je alle linken zo hebben? Dat gaat ook...

PS: eigenlijk wel grappig, die pagina is namelijk helemaal niet voor leden maar zo doe je voor phpbb net alsof het wel zo is. en dat werkt ook nog :lol:
Afbeelding

maico
Berichten: 562
Lid geworden op: 04 jan 2004, 18:26

Bericht door maico » 26 mei 2004, 15:41

ja de linken van de foto album dan he de rest heb ik al achter een registratie zitten

Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 26 mei 2004, 18:09

oke dan, dan komt ie weer (proberen :lol: )
Open portal.php
Zoek

Code: Selecteer alles

// Display pics vertically 
Add, after

Code: Selecteer alles

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

Code: Selecteer alles

'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 />') : '')
Replace with

Code: Selecteer alles

'RATING' => $album_rating_url, 
'COMMENTS' => $album_comments_url)
Afbeelding

maico
Berichten: 562
Lid geworden op: 04 jan 2004, 18:26

Bericht door maico » 26 mei 2004, 18:32

Almost

nog eentje ben je vergeten :oops: :lol:

Wat moet ik hier van maken:

Code: Selecteer alles

'POSTER' => $recent_poster,
Want die moet ook pas na het inloggen zichtbaar zijn he

Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 26 mei 2004, 19:22

dat wordt dan:
zoek

Code: Selecteer alles

$recent_poster = '<a href="'. append_sid("profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $recentrow[$j]['user_id']) .'">'. $recentrow[$j]['username'] .'</a>';
wijzig met

Code: Selecteer alles

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>';
}
Afbeelding

maico
Berichten: 562
Lid geworden op: 04 jan 2004, 18:26

Bericht door maico » 27 mei 2004, 08:36

Luuk alles een beetje op een rijtje gezet voormezelf en voor de volgende keer en dan ziet het er zo uit:

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>'; 
}
Endat is goed op 1 ding na ik ben nu de lijnk naar het comentaar kompleet kwijt die zie ik niet als gast maar ook niet als lid.
Geef aub ff aan waar en wat in in MIJN hand leiding moet veranderen.

Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 27 mei 2004, 14:26

denk dat het wel goed is, maar als je in het config menu van het album commentaar uitzet gaat die link ook weg. Misschien heb je dat gedaan?
Afbeelding

maico
Berichten: 562
Lid geworden op: 04 jan 2004, 18:26

Bericht door maico » 27 mei 2004, 14:48

Als ik het "orginele"portal.php terug zet heb ik de link wel maar zodra ik de veranderingen van jou toepas is ie weg.
Dus het zit ergens in de verandering en ben al dagen niet op het configpanel geweest :oops:

Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 27 mei 2004, 14:51

en wat je ik je gaf deed het wel?
Afbeelding

Gesloten