Probleem met link mod

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Gebruikersavatar
m-tuning
Berichten: 15
Lid geworden op: 13 jun 2004, 10:13
Locatie: Winschoten
Contacteer:

Probleem met link mod

Bericht door m-tuning » 07 feb 2005, 09:08

Ik heb een probleem met een link mod

Op deze pagina staat ie:

http://www.m-tuning.nl/forum/viewlinks.php?link_cat=1

Als je op de link drukt opent hij een nieuw scherm met dezelfde pagina.

weet iemand wat te doen :?:
Afbeelding

Warning: Children in the Backseat of a car can cause accidents
Warning: Accidents in the backseat of a car can cause children

Gebruikersavatar
Stef
Berichten: 9080
Lid geworden op: 04 jun 2003, 20:47

Bericht door Stef » 07 feb 2005, 12:19

Dat kan aan twee dingen liggen:
:arrow: Je moet de link eerst controleren en activeren
:arrow: Je hebt zelf iets in het script verandert.

Gebruikersavatar
m-tuning
Berichten: 15
Lid geworden op: 13 jun 2004, 10:13
Locatie: Winschoten
Contacteer:

Bericht door m-tuning » 07 feb 2005, 13:26

Je moet et geloof ik niet zelf controleren


Dit is de code:

Code: Selecteer alles

<?php
/***************************************************************************
 *                               viewcategory.php
 *                            -------------------
 *   begin                : Tuesday, Apr 23, 2002
 *   copyright            : Roman Malarev (romutis)
 *   email                : roman@malarev.com
 *
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   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.
 *
 ***************************************************************************/

define('IN_PHPBB', true);
include('MOD_links_constants.php');
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);

//
// Start initial var setup
//
if ( isset($HTTP_GET_VARS[POST_CATEGORY_URL]) )
{
	$category_id = intval($HTTP_GET_VARS[POST_CATEGORY_URL]);
}

if ( isset($HTTP_GET_VARS[POST_LINK_URL]))
{
	$link_id = intval($HTTP_GET_VARS[POST_LINK_URL]);
}

$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;

//
// End initial var setup
//

if( !isset($category_id) && !isset($link_id) )
{
	header('Location: ' . append_sid(INDEX_LINKS_PAGE.".$PhpEx"), true);
}

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
$is_admin = ( $userdata['user_level'] == ADMIN && $userdata['session_logged_in'] ) ? TRUE : 0;
$style = (!empty($userdata['user_style'])) ? $userdata['user_style'] : $board_config['default_style'];
setup_links_images($style);
if ( !empty($userdata['user_lang']))
{
	$board_config['default_lang'] = $userdata['user_lang'];
}
if ( !file_exists($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/MOD_links.'.$phpEx) )
{
       $board_config['default_lang'] = 'english';
}
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/MOD_links.' . $phpEx);

//
// End session management
//

if  ( !empty($link_id) && $mode=='jump')
{
	$sql="SELECT link_URL FROM ".LINKS_TABLE." where link_id=$link_id";
                              
        if ( !($result = $db->sql_query($sql)) )
        {
        	message_die(GENERAL_ERROR, "Could not obtain URL information<br />" .__LINE__ ."<br />". __FILE__ ."<br />". $sql);
        }
        
        $forum_row = $db->sql_fetchrow($result);
        if ( !($forum_row) )
        {
        	message_die(GENERAL_ERROR, $lang['MOD_Links_No_such_Link_id']);
        }
	$url = $forum_row['link_URL'];
	$db->sql_freeresult($result);

	$sql="UPDATE ".LINKS_TABLE." set link_clicks = link_clicks+1 where link_id=$link_id";
                              
        if ( !($result = $db->sql_query($sql)) )
        {
        	message_die(GENERAL_ERROR, "Could not update link information<br />" .__LINE__ ."<br />". __FILE__ ."<br />". $sql);
        }
	$db->sql_freeresult($result);
	header("Location: " . $url);
	exit;
}


//
// Start auth check
//
if ( !empty($link_id) )
{
        $sql="SELECT link_category_id FROM ".LINKS_TABLE." where link_id=$link_id";
                              
        if ( !($result = $db->sql_query($sql)) )
        {
        	message_die(GENERAL_ERROR, "Could not obtain category information<br />" .__LINE__ ."<br />". __FILE__ ."<br />". $sql);
        }
        
        $forum_row = $db->sql_fetchrow($result);
        if ( !($forum_row) )
        {
        	message_die(GENERAL_ERROR, $lang['MOD_Links_No_such_Link_id']);
        }
	$category_id=$forum_row['link_category_id'];

        $sql="SELECT count(*) as prev_posts FROM ".LINKS_TABLE." where link_id<$link_id and link_category_id=$category_id";
        
        if ( !($result = $db->sql_query($sql)) )
        {
        	message_die(GENERAL_ERROR, "Could not obtain link information<br>" .__LINE__ ."<br>". __FILE__ ."<br>". $sql);
        }
        
        $forum_row = $db->sql_fetchrow($result);
        if ( !($forum_row) )
        {
        	message_die(GENERAL_ERROR, "Error reading link information<br>" .__LINE__ ."<br>". __FILE__ ."<br>". $sql);
        }
        	
       	$start = floor(($forum_row['prev_posts']) / $board_config['posts_per_page']) * $board_config['posts_per_page'];
}

//
// Go ahead and pull all data for this topic
//


$sql="SELECT a.* from ".LINKS_CATEGORY_TABLE." a where a.category_id=$category_id";

if ( !($result = $db->sql_query($sql)) )
{
       	message_die(GENERAL_ERROR, "Could not obtain topic information<br>" .__LINE__ ."<br>". __FILE__ ."<br>". $sql);
}

$forum_row = $db->sql_fetchrow($result);

if ( !($forum_row) )
{
       	message_die(GENERAL_ERROR, "Could not obtain topic information<br>" .__LINE__ ."<br>". __FILE__ ."<br>". $sql);
}

$category_name=$forum_row['category_name'];
$category_text=$forum_row['category_text'];
$total_links = $forum_row['category_links']; 


//
// Define censored word matches
//
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);


// If the board has HTML off but the post has HTML
// on then we process it, else leave it alone
//
$category_text = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $category_text);
$category_text = bbencode_second_pass($category_text, '9988776655');


//
// Parse message and/or sig for BBCode if reqd
//
$category_text = make_clickable($category_text);

//
// Replace naughty words
//
if ( count($orig_word) )
{
     $category_text = preg_replace($orig_word, $replacement_word, $category_text);
}

//
// Parse smilies
//
if ( $board_config['allow_smilies'] )
{
    	$category_text = smilies_pass($category_text);
}

//
// Replace newlines (we use this rather than nl2br because
// till recently it wasn't XHTML compliant)
//

$category_text = str_replace("\n", "\n<br />\n", $category_text);

$sql="SELECT p.*, u.* from ".LINKS_TABLE." p, ".USERS_TABLE." u  where p.link_category_id=$category_id and p.link_poster_id=u.user_id 
      ORDER BY p.link_id 
      LIMIT $start, ".$board_config['posts_per_page'];

if ( !($result = $db->sql_query($sql)) )
{
	message_die(GENERAL_ERROR, "Could not obtain post/user information<br />" .__LINE__ ."<br />". __FILE__ ."<br />". $sql);
}

$total_posts = $db->sql_numrows($result); 

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



//
// Censor topic title
//
if ( count($orig_word) )
{
	$category_name = preg_replace($orig_word, $replacement_word, $category_name);
}

//
// Post, reply and other URL generation for
// templating vars
//
$reply_topic_url = append_sid("links_posting.$phpEx?mode=newlink&" . POST_CATEGORY_URL . "=$category_id");
$view_forum_url = append_sid(INDEX_LINKS_PAGE.".$phpEx");

$newcategory_img = $phpbb_root_path.$images['MOD_Links_new_Category'];
$newcategory_alt = $lang['MOD_Links_Post_new_Category'];
$newlink_img  = $phpbb_root_path.$images['MOD_Links_new_Link'];
$newlink_alt  = $lang['MOD_Links_Post_new_Link'];

//
// Set a cookie for this topic
//
if ( $userdata['session_logged_in'] )
{
	$tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_links']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_links']) : array();

	if ( !empty($tracking_topics[$category_id]) )
	{
		$topic_last_read = $tracking_topics[$category_id];
	}
	else
	{
		$topic_last_read = $userdata['user_lastvisit'];
	}

/*	if ( count($tracking_topics) >= 150 && empty($tracking_topics[$category_id]) )
	{
		asort($tracking_topics);
		unset($tracking_topics[key($tracking_topics)]);
	} */

	$tracking_topics[$category_id] = time();

	setcookie($board_config['cookie_name'] . '_links', serialize($tracking_topics), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
}


//
// Load templates
//
$template->set_filenames(array(
	'body' => 'viewlinks_body.tpl')
);

if ($is_admin)
{
	$template->assign_block_vars('switch_admin', array() );
}

//
// Output page header
// 
$page_title = $lang['MOD_Links_Name'] .' - ' . $category_title;
include($phpbb_root_path . 'includes/page_header.'.$phpEx);


//

$row_color = $theme['td_color2'];
$row_class = $theme['td_class2'];

if ( $is_admin )
{
     $temp_url = append_sid("links_posting.$phpEx?mode=editcategory&" . POST_CATEGORY_URL . "=" . $category_id);
     $edit_img = '<a href="' . $temp_url . '"><img src="' . $phpbb_root_path.$images['icon_edit'] . '" alt="' . $lang['MOD_Links_Edit_category'] . '" title="' . $lang['MOD_Links_Edit_category'] . '" border="0" /></a>';
     $edit = '<a href="' . $temp_url . '">' . $lang['MOD_Links_Edit_category'] . '</a>';
    	$temp_url = append_sid("links_posting.$phpEx?mode=deletecategory&" . POST_CATEGORY_URL . "=" . $category_id);
    	$delpost_img = '<a href="' . $temp_url . '"><img src="' . $phpbb_root_path.$images['icon_delpost'] . '" alt="' . $lang['MOD_Links_Delete_category'] . '" title="' . $lang['MOD_Links_Delete_category'] . '" border="0" /></a>';
    	$delpost = '<a href="' . $temp_url . '">' . $lang['MOD_Links_Delete_category'] . '</a>';
}
else
{
     $edit_img = '';
     $edit = '';
     $ip_img = '';
     $ip = '';
     $delpost_img = '';
     $delpost = '';
}



//
// Send vars to template
//
$pagination_posts = ($total_links>0) ? $total_links : 1;
$template->assign_vars(array(
	'FORUM_NAME' => $lang['MOD_Links_Name'],
        'TOPIC_ID' => $category_id,
        'TOPIC_TITLE' => $category_name,
        'PAGINATION' => generate_pagination("viewcategory.$phpEx?".POST_CATEGORY_URL."=$category_id", $pagination_posts , $board_config['posts_per_page'], $start),
        'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $board_config['posts_per_page'] ) + 1 ), ceil( $pagination_posts / $board_config['posts_per_page'] )), 
	'MESSAGE' => $category_text,
	'ROW_COLOR' => '#' . $row_color,
	'ROW_CLASS' => $row_class,

       	'EDIT_IMG' => $edit_img,
       	'EDIT' => $edit,
       	'DELETE_IMG' => $delpost_img, 
       	'DELETE' => $delpost, 

	'IMG_POST' => $newcategory_img,
	'POST_IMG' => $newcategory_img,
	'REPLY_IMG' => $newlink_img,

	'L_AUTHOR' => $lang['MOD_Links_Author'],
	'L_MESSAGE' => $lang['MOD_Links_Description'],
	'L_POSTED' => $lang['Posted'], 
	'L_POST_SUBJECT' => $lang['Post_subject'],
	'L_VIEW_NEXT_TOPIC' => $lang['View_next_topic'],
	'L_VIEW_PREVIOUS_TOPIC' => $lang['View_previous_topic'],
	'L_POST_NEW_TOPIC' => $newcategory_alt, 
	'L_POST_REPLY_TOPIC' => $newlink_alt, 
	'L_BACK_TO_TOP' => $lang['Back_to_top'],
	'L_DISPLAY_POSTS' => $lang['Display_posts'],
	'L_LOCK_TOPIC' => $lang['Lock_topic'], 
	'L_UNLOCK_TOPIC' => $lang['Unlock_topic'], 
	'L_MOVE_TOPIC' => $lang['Move_topic'], 
	'L_SPLIT_TOPIC' => $lang['Split_topic'], 
	'L_DELETE_TOPIC' => $lang['Delete_topic'], 
	'L_GOTO_PAGE' => $lang['Goto_page'], 

	'S_TOPIC_LINK' => POST_TOPIC_URL, 
	'S_SELECT_POST_DAYS' => $select_post_days,
	'S_SELECT_POST_ORDER' => $select_post_order,
	'S_POST_DAYS_ACTION' => append_sid("viewtopic.$phpEx?" . POST_CATEGORY_URL . '=' . $category_id . "&start=$start"), 
	'S_AUTH_LIST' => $s_auth_can,
	'S_TOPIC_ADMIN' => $category_mod,
	'S_WATCH_TOPIC' => $s_watching_topic,

	'U_VIEW_FORUM' => $view_forum_url,
	'U_VIEW_TOPIC' => append_sid("viewlinks.$phpEx?" . POST_CATEGORY_URL . "=$category_id&start=$start"), 
	'U_VIEW_OLDER_TOPIC' => $view_prev_topic_url,
	'U_VIEW_NEWER_TOPIC' => $view_next_topic_url,
	'U_POST_NEW_TOPIC' => append_sid("links_posting.$phpEx?mode=newcategory"),
	'U_POST_REPLY_TOPIC' => $reply_topic_url)
);


if ( $userdata['session_logged_in'] )
{
	$template->assign_block_vars('switch_owner', array());
}



//
// Update the topic view counter
//
$sql = "UPDATE ".LINKS_CATEGORY_TABLE."
	SET category_views = category_views + 1
	WHERE category_id = $category_id";
if ( !$db->sql_query($sql) )
{
	message_die(GENERAL_ERROR, "Could not update topic views.", '', __LINE__, __FILE__, $sql);
}

if ($total_links==0)
{
	//
	// No topics
	//
	$no_topics_msg = $lang['MOD_Links_No_Links'];
	$template->assign_vars(array(
		'L_NO_TOPICS' => $no_topics_msg)
	);

	$template->assign_block_vars('switch_no_topics', array() );
}
else
{
//
// Okay, let's do the loop, yeah come on baby let's do the loop
// and it goes like this ...
//
for($i = 0; $i < $total_posts; $i++)
{

	$post_date = create_date($board_config['default_dateformat'], $postrow[$i]['link_time'], $board_config['board_timezone']);

	$message = $postrow[$i]['link_text'];
//	$bbcode_uid = $postrow[$i]['bbcode_uid'];

//	$user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] ) ? $postrow[$i]['user_sig'] : '';
//	$user_sig_bbcode_uid = $postrow[$i]['user_sig_bbcode_uid'];

	$postername = $postrow[$i]['link_poster_username'];

	$poster_posts = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Posts'] . ': ' . $postrow[$i]['user_posts'] : '';

	$poster_from = ( $postrow[$i]['user_from'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Location'] . ': ' . $postrow[$i]['user_from'] : '';

	$poster_joined = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Joined'] . ': ' . create_date($lang['DATE_FORMAT'], $postrow[$i]['user_regdate'], $board_config['board_timezone']) : '';

	$poster_avatar = '';
	if ( $postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] )
	{
		switch( $postrow[$i]['user_avatar_type'] )
		{
			case USER_AVATAR_UPLOAD:
				$poster_avatar = ( $board_config['allow_avatar_upload'] ) ? '<img src="' . $board_config['avatar_path'] . '/' . $postrow[$i]['user_avatar'] . '" alt="" border="0" />' : '';
				break;
			case USER_AVATAR_REMOTE:
				$poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $postrow[$i]['user_avatar'] . '" alt="" border="0" />' : '';
				break;
			case USER_AVATAR_GALLERY:
				$poster_avatar = ( $board_config['allow_avatar_local'] ) ? '<img src="' . $board_config['avatar_gallery_path'] . '/' . $postrow[$i]['user_avatar'] . '" alt="" border="0" />' : '';
				break;
		}
	}

	//
	// Generate ranks, set them to empty string initially.
	//
	$poster_rank = '';
	$rank_image = '';
	if ( $postrow[$i]['user_id'] == ANONYMOUS )
	{
	}
	else if ( $postrow[$i]['user_rank'] )
	{
		for($j = 0; $j < count($ranksrow); $j++)
		{
			if ( $postrow[$i]['user_rank'] == $ranksrow[$j]['rank_id'] && $ranksrow[$j]['rank_special'] )
			{
				$poster_rank = $ranksrow[$j]['rank_title'];
				$rank_image = ( $ranksrow[$j]['rank_image'] ) ? '<img src="' . $ranksrow[$j]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';
			}
		}
	}
	else
	{
		for($j = 0; $j < count($ranksrow); $j++)
		{
			if ( $postrow[$i]['user_posts'] >= $ranksrow[$j]['rank_min'] && !$ranksrow[$j]['rank_special'] )
			{
				$poster_rank = $ranksrow[$j]['rank_title'];
				$rank_image = ( $ranksrow[$j]['rank_image'] ) ? '<img src="' . $ranksrow[$j]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';
			}
		}
	}

	//
	// Handle anon users posting with usernames
	//
	if ( $poster_id == ANONYMOUS && $postrow[$i]['link_poster_username'] != '' )
	{
		$poster_rank = $lang['Guest'];
		$poster_age='';
	}

	if ( $userdata['session_logged_in'] && $postrow[$i]['link_time'] > $userdata['user_lastvisit'] && $postrow[$i]['post_time'] > $topic_last_read )
	{
		$mini_post_img = $phpbb_root_path.$images['icon_minipost_new'];
		$mini_post_alt = $lang['New_post'];
	}
	else
	{
		$mini_post_img = $phpbb_root_path.$images['icon_minipost'];
		$mini_post_alt = $lang['Post'];
	}
	$mini_post_url = append_sid($phpbb_root_path."viewlinks.$phpEx?" . POST_LINK_URL . "=" . $postrow[$i]['link_id']."#".$postrow[$i]['link_id']);


	//
	// Note! The order used for parsing the message _is_ important, moving things around could break any 
	// output
	//

	//
	// If the board has HTML off but the post has HTML
	// on then we process it, else leave it alone
	//
	if ( !$board_config['allow_html'] )
	{
		if ( $postrow[$i]['enable_html'] )
		{
			$message = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $message);
		}
	}

	//
	// Parse message and/or sig for BBCode if reqd
	//
	$message = bbencode_second_pass($message, '9988776655');

	$message = make_clickable($message);

	$url = append_sid("viewlinks.$phpEx?mode=jump&" . POST_LINK_URL . "=" . $postrow[$i]['link_id']);
	$url_desc = ($postrow[$i]['link_name']) ? $postrow[$i]['link_name'] : $postrow[$i]['link_URL'] ;
	$clicks = $postrow[$i]['link_clicks'];
	$clicks_desc = $lang['MOD_Links_Clicks'];

	//
	// Replace naughty words
	//
	if ( count($orig_word) )
	{
		$post_subject = preg_replace($orig_word, $replacement_word, $post_subject);
		$message = preg_replace($orig_word, $replacement_word, $message);
	}

	//
	// Parse smilies
	//
	if ( $board_config['allow_smilies'] )
	{
		if ( $postrow[$i]['enable_smilies'] )
		{
			$message = smilies_pass($message);
		}
	}

	//
	// Replace newlines (we use this rather than nl2br because
	// till recently it wasn't XHTML compliant)
	//

	$message = str_replace("\n", "\n<br />\n", $message);

	//
	// Editing information
	//
	if ( $postrow[$i]['link_edit_time']>0 )
	{
		$l_edited_by = "&nbsp;&nbsp;-&nbsp;&nbsp;".$lang['Last_updated'] .": ". create_date($board_config['default_dateformat'], $postrow[$i]['link_edit_time'], $board_config['board_timezone']);
	}
	else
	{
		$l_edited_by = '';
	}

	//
	// Again this will be handled by the templating
	// code at some point
	//
	$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
	$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];


	if ( $userdata['user_id'] == $postrow[$i]['link_poster_id'] || $is_admin )
	{
		$temp_url = append_sid("links_posting.$phpEx?mode=edit&" . POST_LINK_URL . "=" . $postrow[$i]['link_id']);
		$edit_img = '<a href="' . $temp_url . '"><img src="' . $phpbb_root_path.$images['icon_edit'] . '" alt="' . $lang['MOD_Links_Edit_link'] . '" title="' . $lang['MOD_Links_Edit_link'] . '" border="0" /></a>';
		$edit = '<a href="' . $temp_url . '">' . $lang['MOD_Links_Edit_link'] . '</a>';
       		$temp_url = append_sid("links_posting.$phpEx?mode=delete&" . POST_LINK_URL . "=" . $postrow[$i]['link_id']);
       		$delpost_img = '<a href="' . $temp_url . '"><img src="' . $phpbb_root_path.$images['icon_delpost'] . '" alt="' . $lang['MOD_Links_Delete_link'] . '" title="' . $lang['MOD_Links_Delete_link'] . '" border="0" /></a>';
       		$delpost = '<a href="' . $temp_url . '">' . $lang['MOD_Links_Delete_link'] . '</a>';
	}
	else
	{
		$edit_img = '';
		$edit = '';
		$ip_img = '';
		$ip = '';
		$delpost_img = '';
		$delpost = '';
	}


       	$temp_url = append_sid($phpbb_root_path."profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=".$postrow[$i]['link_poster_id']);
       	$profile_img = '<a href="' . $temp_url . '"><img src="' . $phpbb_root_path.$images['icon_profile'] . '" alt="' . $lang['Read_profile'] . '" title="' . $lang['Read_profile'] . '" border="0" /></a>';
       	$profile = '<a href="' . $temp_url . '">' . $lang['Read_profile'] . '</a>';

       	$temp_url = append_sid($phpbb_root_path."privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=".$postrow[$i]['link_poster_id']);
       	$pm_img = '<a href="' . $temp_url . '"><img src="' . $phpbb_root_path.$images['icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" title="' . $lang['Send_private_message'] . '" border="0" /></a>';
       	$pm = '<a href="' . $temp_url . '">' . $lang['Send_private_message'] . '</a>';

       	if ( !empty($postrow[$i]['user_viewemail']) || $is_admin )
       	{
       		$email_uri = ( $board_config['board_email_form'] ) ? append_sid($phpbb_root_path."profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $postrow[$i]['link_poster_id']) : 'mailto:' . $postrow[$i]['user_email'];

       		$email_img = '<a href="' . $email_uri . '"><img src="' . $phpbb_root_path.$images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" border="0" /></a>';
       		$email = '<a href="' . $email_uri . '">' . $lang['Send_email'] . '</a>';
       	}
       	else
       	{
       		$email_img = '';
       		$email = '';
       	}

       	$www_img = ( $postrow[$i]['user_website'] ) ? '<a href="' . $postrow[$i]['user_website'] . '" target="_userwww"><img src="' . $phpbb_root_path.$images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : '';
       	$www = ( $postrow[$i]['user_website'] ) ? '<a href="' . $postrow[$i]['user_website'] . '" target="_userwww">' . $lang['Visit_website'] . '</a>' : '';

       	if ( !empty($postrow[$i]['user_icq']) )
       	{
       		$icq_status_img = '<a href="http://wwp.icq.com/' . $postrow[$i]['user_icq'] . '#pager"><img src="http://web.icq.com/whitepages/online?icq=' . $postrow[$i]['user_icq'] . '&img=5" width="18" height="18" border="0" /></a>';
       		$icq_img = '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $postrow[$i]['user_icq'] . '"><img src="' . $phpbb_root_path.$images['icon_icq'] . '" alt="' . $lang['ICQ'] . '" title="' . $lang['ICQ'] . '" border="0" /></a>';
       		$icq =  '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $postrow[$i]['user_icq'] . '">' . $lang['ICQ'] . '</a>';
       	}
       	else
       	{
       		$icq_status_img = '';
       		$icq_img = '';
       		$icq = '';
       	}

       	$aim_img = ( $postrow[$i]['user_aim'] ) ? '<a href="aim:goim?screenname=' . $postrow[$i]['user_aim'] . '&message=Hello+Are+you+there?"><img src="' . $phpbb_root_path.$images['icon_aim'] . '" alt="' . $lang['AIM'] . '" title="' . $lang['AIM'] . '" border="0" /></a>' : '';
       	$aim = ( $postrow[$i]['user_aim'] ) ? '<a href="aim:goim?screenname=' . $postrow[$i]['user_aim'] . '&message=Hello+Are+you+there?">' . $lang['AIM'] . '</a>' : '';

       	$temp_url = append_sid($phpbb_root_path."profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=".$postrow[$i]['link_poster_id']);
       	$msn_img = ( $postrow[$i]['user_msnm'] ) ? '<a href="' . $temp_url . '"><img src="' . $phpbb_root_path.$images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';
       	$msn = ( $postrow[$i]['user_msnm'] ) ? '<a href="' . $temp_url . '">' . $lang['MSNM'] . '</a>' : '';

       	$yim_img = ( $postrow[$i]['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $postrow[$i]['user_yim'] . '&.src=pg"><img src="' . $phpbb_root_path.$images['icon_yim'] . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" border="0" /></a>' : '';
       	$yim = ( $postrow[$i]['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $postrow[$i]['user_yim'] . '&.src=pg">' . $lang['YIM'] . '</a>' : '';


	$template->assign_block_vars('postrow', array(
		'ROW_COLOR' => '#' . $row_color,
		'ROW_CLASS' => $row_class,
		'POST_DATE' => $post_date,
		'MESSAGE' => $message, 
		'URL' => $url,
		'URL_DESC' => $url_desc,
		'CLICKS' => $clicks,
		'CLICKS_DESC' => $clicks_desc,
		'POSTER_NAME' => $postername,
		'EDITED_MESSAGE' => $l_edited_by, 


		'PROFILE_IMG' => $profile_img, 
		'PROFILE' => $profile, 

		'POSTER_RANK' => $poster_rank,
		'RANK_IMAGE' => $rank_image,
		'POSTER_JOINED' => $poster_joined,
		'POSTER_POSTS' => $poster_posts,
		'POSTER_FROM' => $poster_from,
		'POSTER_AVATAR' => $poster_avatar,

		'PM_IMG' => $pm_img,
		'PM' => $pm,
		'EMAIL_IMG' => $email_img,
		'EMAIL' => $email,
		'WWW_IMG' => $www_img,
		'WWW' => $www,
		'ICQ_STATUS_IMG' => $icq_status_img,
		'ICQ_IMG' => $icq_img, 
		'ICQ' => $icq, 
		'AIM_IMG' => $aim_img,
		'AIM' => $aim,
		'MSN_IMG' => $msn_img,
		'MSN' => $msn,
		'YIM_IMG' => $yim_img,
		'YIM' => $yim,

		'MINI_POST_IMG' => $mini_post_img, 
		'EDIT_IMG' => $edit_img,
		'EDIT' => $edit,
		'DELETE_IMG' => $delpost_img, 
		'DELETE' => $delpost, 

		'L_MINI_POST_ALT' => $mini_post_alt, 

		'U_MINI_POST' => $mini_post_url,
		'U_POST_ID' => $postrow[$i]['link_id'])
	);
}
}

$template->pparse('body');

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>
Afbeelding

Warning: Children in the Backseat of a car can cause accidents
Warning: Accidents in the backseat of a car can cause children

Gebruikersavatar
Stef
Berichten: 9080
Lid geworden op: 04 jun 2003, 20:47

Bericht door Stef » 07 feb 2005, 13:33

m-tuning schreef:Je moet et geloof ik niet zelf controleren
Weet je dat zeker? :roll:
Of heb je zelf iets in het script verandert?
Heb je de install al nagelopen?

Gebruikersavatar
m-tuning
Berichten: 15
Lid geworden op: 13 jun 2004, 10:13
Locatie: Winschoten
Contacteer:

Bericht door m-tuning » 07 feb 2005, 13:38

Zat er niet bij
Afbeelding

Warning: Children in the Backseat of a car can cause accidents
Warning: Accidents in the backseat of a car can cause children

Gebruikersavatar
Stef
Berichten: 9080
Lid geworden op: 04 jun 2003, 20:47

Bericht door Stef » 07 feb 2005, 13:40

Beantwoord mijn vragen nou eens goed want zo schiet je zelf weinig op.

1. Heb je er zelf iets aan verandert?
2. Weet je zeker dat je de link niet eerst moet controleren en of activeren?
3. Er zit altijd een install bestand bij dus check die even.

Gebruikersavatar
m-tuning
Berichten: 15
Lid geworden op: 13 jun 2004, 10:13
Locatie: Winschoten
Contacteer:

Bericht door m-tuning » 07 feb 2005, 13:41

1 Ik heb er niets aan verandert

2 Ja zover ik weet wel

3 Zat er niet bij
Afbeelding

Warning: Children in the Backseat of a car can cause accidents
Warning: Accidents in the backseat of a car can cause children

Gebruikersavatar
Stef
Berichten: 9080
Lid geworden op: 04 jun 2003, 20:47

Bericht door Stef » 07 feb 2005, 13:50

Wat is de exacte naam van die links mod?

Gebruikersavatar
m-tuning
Berichten: 15
Lid geworden op: 13 jun 2004, 10:13
Locatie: Winschoten
Contacteer:

Bericht door m-tuning » 07 feb 2005, 13:52

Afbeelding

Warning: Children in the Backseat of a car can cause accidents
Warning: Accidents in the backseat of a car can cause children

Gebruikersavatar
Stef
Berichten: 9080
Lid geworden op: 04 jun 2003, 20:47

Bericht door Stef » 07 feb 2005, 14:03

Goh verdomd slecht zeg, ik heb ook even gegoogled en niemand met het zelfde probleem.
Maar als je niks hebt aangepast en alles goed hebt geinstalleerd dan moet hij gewoon werken.

Gebruikersavatar
m-tuning
Berichten: 15
Lid geworden op: 13 jun 2004, 10:13
Locatie: Winschoten
Contacteer:

Bericht door m-tuning » 07 feb 2005, 14:04

raar doet ie dus niet! :cry:
Afbeelding

Warning: Children in the Backseat of a car can cause accidents
Warning: Accidents in the backseat of a car can cause children

Gesloten