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.
-
opinion
- Berichten: 23
- Lid geworden op: 10 dec 2005, 21:26
Bericht
door opinion » 26 mar 2006, 19:12
hier zie je dus dat de kolom " aantal keren bekeken" veel te smal is waardor die cellpic niet zo mooi weergegeven wordt omdat die drie woorden boven elkaar staan. Hoe kan ik die kolombreedte wijzigen? Dus wat moet waar verandert worden.
Hiervoor heb ik de links mod gebruikt.
Ik dacht eerst bij viewlinks_body.tpl (dat leek mij toch het meest logische), maar ik kan er echt niet aan uit, ik zie het verschil niet...
De volgende bestanden zater er ook bij:
posting_links_body.tpl
posting_links_body.tpl
MOD_Links.cfg
links.php
links_posting.php
MOD_links_install.php
viewlinks.php
MOD_links_constants.php

alvast bedankt :thumb:
-
Paul
- Beheerder

- Berichten: 20316
- Lid geworden op: 23 okt 2003, 11:38
- Locatie: Utrecht
-
Contacteer:
Bericht
door Paul » 26 mar 2006, 19:15
Geef links.php eens?
-
opinion
- Berichten: 23
- Lid geworden op: 10 dec 2005, 21:26
Bericht
door opinion » 26 mar 2006, 19:19
Code: Selecteer alles
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include('MOD_links_constants.php');
include($phpbb_root_path . 'common.'.$phpEx);
//
// 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
//
$tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_links']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_links']) : '';
//
// Start initial var setup
//
$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;
//
// End initial var setup
//
//
// Get all data about photoalbums
//
$sql = "select a.*, b.*
from ". LINKS_CATEGORY_TABLE." a, ".USERS_TABLE." b where a.category_last_poster=b.user_id order by a.category_time desc";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain links information<br />'. __LINE__.'<br />'.__FILE__.'<br />'. $sql);
}
//
// If the query doesn't return any rows this isn't a valid forum. Inform
// the user.
//
$total_cat = 0;
while( $row = $db->sql_fetchrow($result) )
{
$cat_rowset[] = $row;
$total_cat++;
}
$db->sql_freeresult($result);
/*
//
// Mozilla navigation bar
//
$nav_links['up'] = array(
'url' => append_sid('index.'.$phpEx),
'title' => sprintf($lang['Forum_Index'], $board_config['sitename'])
);
*/
//
// Dump out the page header and load viewforum template
//
$page_title = $lang['MOD_Links_name'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
'body' => 'view_linkscategory_body.tpl')
);
if ($is_admin)
{
$template->assign_block_vars('switch_admin', array() );
}
$template->assign_vars(array(
'MOD_LINKS_NAME' => $lang['MOD_Links_Name'],
'L_POST_NEW_TOPIC' => $lang['MOD_Links_Post_new_Category'],
'POST_IMG' => $phpbb_root_path.$images['MOD_Links_new_Category'] ,
'U_POST_NEW_TOPIC' => append_sid("links_posting.$phpEx?mode=newcategory"),
'L_TOPICS' => $lang['MOD_Links_Category'],
'L_VIEWS' => $lang['MOD_Links_Views'],
'L_LINKS' => $lang['MOD_Links_Links'],
'L_LASTPOST' => $lang['MOD_Links_Last_Post'],
'U_MOD_LINKS_VIEW' => append_sid($REQUEST_URI)
)
);
//
// End header
//
//
// Okay, lets dump out the page ...
//
if( $total_cat>0 )
{
for($i = 0; $i < $total_cat; $i++)
{
$category_id = $cat_rowset[$i]['category_id'];
$category_name = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $cat_rowset[$i]['category_name']) : $cat_rowset[$i]['category_name'];
$category_links = $cat_rowset[$i]['category_links'];
$folder_alt = $lang['No_new_posts'];
$folder_image = $phpbb_root_path.$images['folder'];
if ($userdata['session_logged_in'] && $cat_rowset[$i]['category_time'] > $userdata['user_lastvisit'])
{
if (empty($tracking_topics[$category_id]) || (!empty($tracking_topics[$category_id]) && $tracking_topics[$category_id] < $cat_rowset[$i]['category_time']) )
{
$folder_alt = $lang['New_posts'];
$folder_image = $phpbb_root_path.$images['folder_new'];
}
}
if( ( $category_links ) > $board_config['posts_per_page'] )
{
$total_pages = ceil( ( $category_links + 1 ) / $board_config['posts_per_page'] );
$goto_page = ' [ <img src="' . $phpbb_root_path.$images['icon_gotopost'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] . '" />' . $lang['Goto_page'] . ': ';
$times = 1;
for($j = 0; $j < $category_links; $j += $board_config['posts_per_page'])
{
$goto_page .= '<a href="' . append_sid("viewlinks.".$phpEx."?" . POST_CATEGORY_URL . "=".$category_id."&start=$j") . '">' . $times . '</a>';
if( $times == 1 && $total_pages > 4 )
{
$goto_page .= ' ... ';
$times = $total_pages - 3;
$j += ( $total_pages - 4 ) * $board_config['posts_per_page'];
}
else if ( $times < $total_pages )
{
$goto_page .= ', ';
}
$times++;
}
$goto_page .= ' ] ';
}
else
{
$goto_page = '';
}
$view_topic_url = append_sid("viewlinks.$phpEx?" . POST_CATEGORY_URL . "=".$category_id);
$first_post_time = create_date($board_config['default_dateformat'], $cat_rowset[$i]['category_time'], $board_config['board_timezone']);
$last_post_author = ($category_links>0) ? '<a href="' . append_sid($phpbb_root_path."profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $cat_rowset[$i]['category_last_poster']) . '">' . $cat_rowset[$i]['username'] . '</a>' : '';
$last_post_url = ($category_links>0) ? '<a href="' . append_sid("viewlinks.$phpEx?" . POST_LINK_URL . '=' . $cat_rowset[$i]['category_last_link_id']) . '#' . $cat_rowset[$i]['category_last_link_id'] . '"><img src="' . $phpbb_root_path.$images['icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>' : '';
$views = $cat_rowset[$i]['category_views'];
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$template->assign_block_vars('topicrow', array(
'ROW_COLOR' => $row_color,
'ROW_CLASS' => $row_class,
'TOPIC_FOLDER_IMG' => $folder_image,
'GOTO_PAGE' => $goto_page,
'LINKS' => $category_links,
'TOPIC_TITLE' => $category_name,
'VIEWS' => $views,
'U_VIEW_TOPIC' => $view_topic_url,
'FIRST_POST_TIME' => $first_post_time,
'LAST_POST_AUTHOR' => $last_post_author,
'LAST_POST_IMG' => $last_post_url,
'L_TOPIC_FOLDER_ALT' => $folder_alt,
)
);
}
$template->assign_vars(array(
'PAGINATION' => generate_pagination($REQUEST_URI."?", $total_cat, $board_config['topics_per_page'], $start),
'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $board_config['topics_per_page'] ) + 1 ), ceil( $total_cat / $board_config['topics_per_page'] )),
'L_GOTO_PAGE' => $lang['Goto_page'])
);
}
else
{
//
// No topics
//
$no_topics_msg = $lang['MOD_Links_No_Category'];
$template->assign_vars(array(
'L_NO_TOPICS' => $no_topics_msg)
);
$template->assign_block_vars('switch_no_topics', array() );
}
//
// Parse the page and print
//
$template->pparse('body');
//
// Page footer
//
// print_r($tracking_topics);
// echo "<br>";
// print_r($userdata);
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
-
Paul
- Beheerder

- Berichten: 20316
- Lid geworden op: 23 okt 2003, 11:38
- Locatie: Utrecht
-
Contacteer:
Bericht
door Paul » 26 mar 2006, 19:21
view_linkscategory_body.tpl moet je hebben

-
opinion
- Berichten: 23
- Lid geworden op: 10 dec 2005, 21:26
Bericht
door opinion » 26 mar 2006, 19:30
Ok, bedankt.
Ik heb dit gewijzigd en werkt prima
Code: Selecteer alles
<th width="50" align="center" class="thTop" nowrap="nowrap"> {L_VIEWS} </th>
ik heb width 50 vervangen door een ander getal
:thumb: