Pagina 1 van 2

laatste active berichten

Geplaatst: 13 jun 2007, 21:17
door vw_speedsterke
ik ben opzoek naar een mod zodat je de laatste bv 10 brichten van eel het forum kunt zien.
heb dit al meerdere keren geien maar dek dat het bij de 2.0 is

Re: laatste active berichten

Geplaatst: 14 jun 2007, 10:52
door Coen
vw_speedsterke schreef:ik ben opzoek naar een mod zodat je de laatste bv 10 brichten van eel het forum kunt zien.
heb dit al meerdere keren geien maar dek dat het bij de 2.0 is
Het enige wat ik kan vinden, wat een beetje past in hetgeen wat je zoekt is de phpBB3portal. Die brengt echter nog een hoop extra functies met zich mee, ik weet natuurlijk niet of je daar ook op zit te wachten... :geek:

Re: laatste active berichten

Geplaatst: 14 jun 2007, 16:36
door Semi_Deus

Re: laatste active berichten

Geplaatst: 14 jun 2007, 16:42
door rohit
ok heb hem ook ff gedownload.

kan ik deze gewoon gebruiken met Stijl : Brushed Metal?

en in die xml staat een stukje Sql
ik neem aan dat ik die in me database plak en da stukje code laat runnen?

Re: laatste active berichten

Geplaatst: 14 jun 2007, 18:27
door Semi_Deus
ja die kan je daar runnen.
En Brushed Metal is gewoon een geeditte ProSilver, dus het zou moeten werken, maar misschien werkt die alleen maar met SubSilver hoor, zou heel goed kunnen.

Re: laatste active berichten

Geplaatst: 14 jun 2007, 20:36
door vw_speedsterke
als ik phpbbportal installeer gaan er dan gegevens van mijn forum weg? want er zijn al enkele posts.
werkt het met phpbb3 rc1? of moet deze eerst van de server?

Re: laatste active berichten

Geplaatst: 14 jun 2007, 23:44
door Semi_Deus
als het goed is werkt hij met RC1, en nee, er gaan geen gegevens verloren als je alles naar behoren installeert, en niet onnodig dingen gaat weggooien, of deleten.. ;)

Re: laatste active berichten

Geplaatst: 15 jun 2007, 08:40
door Coen
vw_speedsterke schreef:als ik phpbbportal installeer gaan er dan gegevens van mijn forum weg? want er zijn al enkele posts.
werkt het met phpbb3 rc1? of moet deze eerst van de server?
Geen zorgen, die portal kun je geheel zonder dataverlies installeren, het is namelijk een Modificatie voor je forum, een aanpassing dus, geen complete nieuwe installatie.

En ja, hij zou gewoon moeten werken op RC1! :)

Re: laatste active berichten

Geplaatst: 15 jun 2007, 21:32
door rohit
hmmzz

deze mod ff geinstalleerd.

ik krijg die recent panel nou helemaal boven me forum te zien :S dat wil ik niet
ik wil het onder het menu krijgen hoe doe ik dat?

kijk hier : http://www.hindimusic4u.nl

Edit: ik heb al een mooi plaatsje gevonden :D
alleen ik moet toch een ander plaatsje verzinne want nou zie ik die recentpanel overal :S en ik wil het alleen zichtbaar maken op de homepagina dus niet in de subforums.
weet iemand hoe ik dit kan fixen? ( hij staat wel in de Overal_header) ;)

alleen weet iemand hoe ik kan toevoegen welke user die laatste post heeft gedaan?
in invision zag je dat wel : laatste topics en laatste posts + user die het heeft gepost

weet iemand hoe ik dat kan doen?

Re: laatste active berichten

Geplaatst: 15 jun 2007, 22:21
door Semi_Deus
plaats even de code van de HTML file hier zodat we even kunnen kijken.
Dat maakt het iets makkelijker om je tips te geven over hoe je het moet veranderen, of 'wij' kunnen het dan voor je doen

Re: laatste active berichten

Geplaatst: 15 jun 2007, 22:36
door rohit
Dit is de Overall_Header.html
beetje onderin zie je include REcent_PAnel dat is de code die hem invoegt

Code: Selecteer alles

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>

<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2002-2006 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
{META}
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

<!--
	phpBB style name: prosilver
	Based on style:   prosilver (this is the default phpBB3 style)
	Original author:  Tom Beddard ( http://www.subBlue.com/ )
	Modified by:      
	
	NOTE: This page was generated by phpBB, the free open-source bulletin board package.
	      The phpBB Group is not responsible for the content of this page and forum. For more information
	      about phpBB please visit http://www.phpbb.com
-->

<script type="text/javascript">
// <![CDATA[
	var jump_page = '{L_JUMP_PAGE}:';
	var on_page = '{ON_PAGE}';
	var per_page = '{PER_PAGE}';
	var base_url = '{BASE_URL}';
	var style_cookie = 'phpBBstyle';
	var onload_functions = new Array();
	var onunload_functions = new Array();

	<!-- IF S_USER_PM_POPUP -->
		if ({S_NEW_PM})
		{
			window.open('{UA_POPUP_PM}', '_phpbbprivmsg', 'height=225,resizable=yes,width=400');
		}
	<!-- ENDIF -->

	/**
	* Find a member
	*/
	function find_username()
	{
		<!-- IF UA_FIND_USERNAME -->
		window.open('{UA_FIND_USERNAME}', '_usersearch', 'height=500, resizable=yes, scrollbars=yes, width=740');
		<!-- ENDIF -->
		return false;
	}

	/**
	* New function for handling multiple calls to window.onload and window.unload by pentapenguin
	*/
	window.onload = function()
	{
		for (i = 0; i <= onload_functions.length; i++)
		{
			eval(onload_functions[i]);
		}
	}

	window.onunload = function()
	{
		for (i = 0; i <= onunload_functions.length; i++)
		{
			eval(onunload_functions[i]);
		}
	}

// ]]>
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/styleswitcher.js"></script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>

<!-- IF T_STYLESHEET_LINK and not S_FORCE_EMBED_STYLE -->
	<link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
	<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />

	<link href="{T_THEME_PATH}/normal.css" rel="stylesheet" type="text/css" title="A" />
	<link href="{T_THEME_PATH}/medium.css" rel="alternate stylesheet" type="text/css" title="A+" />
	<link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />
<!-- ELSE -->
	<style type="text/css" media="screen, projection">
		{T_THEME_DATA}
	</style>
<!-- ENDIF -->
</head>

<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">

<div id="wrap-bg">
  <div id="wrap">

	<a id="top" name="top" accesskey="t"></a>
	<div id="page-header">
      <div id="flash">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="860" height="220">
                <param name="movie" value="{T_THEME_PATH}/flash/header.swf">
                <param name="quality" value="high">
                <embed src="{T_THEME_PATH}/flash/header.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="860" height="220"></embed></object>
      </div>
  <div class="navbar">
			<div class="inner"><span class="corners-top"><span></span></span>

			<ul class="linklist navlinks">
				<li><a class="icon-home" href="{U_INDEX}" accesskey="h">{L_INDEX}</a> <!-- BEGIN navlinks --> <strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></li>

				<li class="rightside"><a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH_ADV}</a> {S_HIDDEN_FIELDS}</a></li>

				<!-- IF U_EMAIL_TOPIC --><li class="rightside"><a href="{U_EMAIL_TOPIC}" title="{L_EMAIL_TOPIC}" class="sendemail">{L_EMAIL_TOPIC}</a></li><!-- ENDIF -->
				<!-- IF U_EMAIL_PM --><li class="rightside"><a href="{U_EMAIL_PM}" title="{L_EMAIL_PM}" class="sendemail">{L_EMAIL_PM}</a></li><!-- ENDIF -->
				<!-- IF U_PRINT_TOPIC --><li class="rightside"><a href="{U_PRINT_TOPIC}" title="{L_PRINT_TOPIC}" accesskey="p" class="print">{L_PRINT_TOPIC}</a></li><!-- ENDIF -->
				<!-- IF U_PRINT_PM --><li class="rightside"><a href="{U_PRINT_PM}" title="{L_PRINT_PM}" accesskey="p" class="print">{L_PRINT_PM}</a></li><!-- ENDIF -->
			</ul>

			<ul class="linklist">
				<!-- IF not S_IS_BOT -->
					<!-- IF S_USER_LOGGED_IN -->
					<li>
						<a href="{U_PROFILE}" title="{L_PROFILE}" accesskey="u" class="icon-ucp">{L_PROFILE}</a>
							<!-- IF S_DISPLAY_PM --> (<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>)<!-- ENDIF --> &bull; 		
						<a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a>
						<!-- IF U_RESTORE_PERMISSIONS --> &bull;
						<a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>
						<!-- ENDIF -->
					</li>
					<!-- ENDIF -->
				<!-- ENDIF -->
				<li class="rightside">
					<a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}" class="icon-faq">{L_FAQ}</a>&nbsp; 
					<!-- IF not S_IS_BOT -->
						<!-- IF S_DISPLAY_MEMBERLIST --><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}" class="icon-members">{L_MEMBERLIST}</a>&nbsp; <!-- ENDIF -->
						<!-- IF not S_USER_LOGGED_IN --><a href="{U_REGISTER}" class="icon-register">{L_REGISTER}</a>&nbsp; <!-- ENDIF -->
						<a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="l" class="icon-logout">{L_LOGIN_LOGOUT}</a>
					<!-- ENDIF -->
				</li>
			</ul>
<!-- INCLUDE recent_panel.html -->
			<span class="corners-bottom"><span></span></span></div>
		</div>

	</div>

	<a name="start_here"></a>
	<div id="page-body">
		
		 <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and (U_MCP or U_ACP) --> 
		<div id="message" class="rules">
			<div class="inner"><span class="corners-top"><span></span></span>
				<strong>{L_INFORMATION}:</strong> {L_BOARD_DISABLED}
			<span class="corners-bottom"><span></span></span></div>
		</div>
		<!-- ENDIF --> 
En Dit is de code van Recentpanel. misschien dat iemand weet hoe ik die users daaraan kan toevoegen die het laatst heeft gepost ;)

Code: Selecteer alles

<?php
/** 
*
* Recent Panel MOD by LEW21
* 
* @package Recent Panel MOD by LEW21
* @version $Id: recent_panel.php,v 1.1.0 2006-12-17 LEW21 Exp $
* @copyright (c) 2006 LEW21
* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
*
*/

/**
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

// Should we do anything?
if (
	$config['recent_panel_on'] && ($config['recent_panel_max_rows'] > 0) && ($config['recent_panel_module_width'] > 0) &&
	(!$config['board_disable'] || ($user->data['user_type'] == USER_FOUNDER))
)
{
	// Set variables
	$permission = '';
	$modules = 0;

	// Load infos about recent panel modules from DB
	$sql = 'SELECT *
		FROM ' . RECENT_PANEL_MODULES . '
		WHERE module_active = 1
		ORDER BY module_order ASC';
	$result = $db->sql_query($sql);

	while ($module_data = $db->sql_fetchrow($result))
	{
		// Lower it... It should be lowercase already, but better do it if you don't want many bug reports.
		$module_data['module_name'] = strtolower($module_data['module_name']);

		// Does this module check permissions?
		if ( $module_data['check_permissions'] )
		{
			// Check if we didn't generate it already.
			if (!$permission)
			{
				// Generate $permission
				$permission = ($config['recent_panel_require_read']) ? 'f_read' : 'f_list';

				// Generate $sql_where
				$sql_where = '';
				if ($config['recent_panel_exclude_forums'])
				{
					$exclude_forums = explode(',', $config['recent_panel_exclude_forums']);
					foreach ($exclude_forums as $i => $id)
					{
						if (($id > 0) && is_numeric($id))
						{
							$sql_where .= ' AND forum_id != ' . intval($id);
						}
					}
				}
			}

			$rows = $module_data['module_name']($sql_where, $permission);
		}
		else
		{
			$rows = $module_data['module_name']();
		}

		// If there isn't anything to display, don't display anything!
		if (!empty($rows))
		{
			// Set module title
			$template->assign_block_vars('recent_panel_module', array(
				'TITLE'	=> $user->lang[strtoupper($module_data['module_name'])])
			);

			// Set rows
			foreach ($rows as $row)
			{
				$row['anchor'] = (isset($row['anchor'])) ? '#' . $row['anchor'] : '';
				$template->assign_block_vars('recent_panel_module.row', array(
					'TITLE'	=> censor_text($row['title']),
					'LINK'	=> append_sid("{$phpbb_root_path}viewtopic.$phpEx", $row['infos']) . $row['anchor'])
				);
			}

			// Count modules
			$modules++;
		}
	}
}

// Setting some vars to the template
$template->assign_vars(array(
	'RECENT_PANEL_MODULE_WIDTH' => $config['recent_panel_module_width'],

	'S_RECENT_PANEL'			=> (isset ($modules)) ? $modules : 0)
);

function recent_topics($sql_where, $permission)
{
	global $db, $config, $auth;

	$sql = 'SELECT topic_title, forum_id, topic_id
		FROM ' . TOPICS_TABLE . '
		WHERE topic_status <> 2
			AND topic_approved = 1
			' . $sql_where . '
		ORDER BY topic_time DESC';
	$result = $db->sql_query($sql);

	$i = 0;
	while ( ($row = $db->sql_fetchrow($result)) && ($row['topic_title'] != '') && ($i < $config['recent_panel_max_rows']) )
	{
		if ($auth->acl_get($permission, $row['forum_id']) || !$row['forum_id'])
		{
			$rows[] = array(
				'title'		=> $row['topic_title'],
				'infos'		=> 'f=' . $row['forum_id'] . '&t=' . $row['topic_id'],
			);
			$i++;
		}
	}
	return (isset($rows)) ? $rows : false;
}

function recent_posts($sql_where, $permission)
{
	global $db, $config, $auth;

	$sql = 'SELECT post_subject, forum_id, topic_id, post_id
		FROM ' . POSTS_TABLE . '
		WHERE post_approved = 1
			' . $sql_where . '
		ORDER BY post_time DESC';
	$result = $db->sql_query($sql);

	$i = 0;
	while ( ($row = $db->sql_fetchrow($result)) && ($row['post_subject'] != '') && ($i < $config['recent_panel_max_rows']) )
	{
		if (($auth->acl_get($permission, $row['forum_id'])) || !$row['forum_id'])
		{
			$rows[] = array(
				'title'		=> $row['post_subject'],
				'infos'		=> 'f=' . $row['forum_id'] . '&t=' . $row['topic_id'] . '&p=' . $row['post_id'],
				'anchor'	=> 'p' . $row['post_id'],
			);
			$i++;
		}
	}
	return (isset($rows)) ? $rows : false;
}

function global_announcments()
{
	global $db, $config;

	$sql = 'SELECT topic_title, forum_id, topic_id
		FROM ' . TOPICS_TABLE . '
		WHERE topic_status <> 2
			AND topic_approved = 1
			AND forum_id = 0
		ORDER BY topic_time DESC';
	$result = $db->sql_query_limit($sql, $config['recent_panel_max_rows']);

	while ( ($row = $db->sql_fetchrow($result)) && ($row['topic_title'] != '') )
	{
		$rows[] = array(
			'title'		=> $row['topic_title'],
			'infos'		=> 'f=0&t=' . $row['topic_id'],
		);
	}
	return (isset($rows)) ? $rows : false;
}
?>

Re: laatste active berichten

Geplaatst: 15 jun 2007, 22:49
door Semi_Deus
Probeer het eens zo:

Code: Selecteer alles

     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
    <head>

    <meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
    <meta http-equiv="content-style-type" content="text/css" />
    <meta http-equiv="content-language" content="{S_USER_LANG}" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="resource-type" content="document" />
    <meta name="distribution" content="global" />
    <meta name="copyright" content="2002-2006 phpBB Group" />
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    {META}
    <title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

    <!--
       phpBB style name: prosilver
       Based on style:   prosilver (this is the default phpBB3 style)
       Original author:  Tom Beddard ( http://www.subBlue.com/ )
       Modified by:     
       
       NOTE: This page was generated by phpBB, the free open-source bulletin board package.
             The phpBB Group is not responsible for the content of this page and forum. For more information
             about phpBB please visit http://www.phpbb.com
    -->

    <script type="text/javascript">
    // <![CDATA[
       var jump_page = '{L_JUMP_PAGE}:';
       var on_page = '{ON_PAGE}';
       var per_page = '{PER_PAGE}';
       var base_url = '{BASE_URL}';
       var style_cookie = 'phpBBstyle';
       var onload_functions = new Array();
       var onunload_functions = new Array();

       <!-- IF S_USER_PM_POPUP -->
          if ({S_NEW_PM})
          {
             window.open('{UA_POPUP_PM}', '_phpbbprivmsg', 'height=225,resizable=yes,width=400');
          }
       <!-- ENDIF -->

       /**
       * Find a member
       */
       function find_username()
       {
          <!-- IF UA_FIND_USERNAME -->
          window.open('{UA_FIND_USERNAME}', '_usersearch', 'height=500, resizable=yes, scrollbars=yes, width=740');
          <!-- ENDIF -->
          return false;
       }

       /**
       * New function for handling multiple calls to window.onload and window.unload by pentapenguin
       */
       window.onload = function()
       {
          for (i = 0; i <= onload_functions.length; i++)
          {
             eval(onload_functions[i]);
          }
       }

       window.onunload = function()
       {
          for (i = 0; i <= onunload_functions.length; i++)
          {
             eval(onunload_functions[i]);
          }
       }

    // ]]>
    </script>
    <script type="text/javascript" src="{T_TEMPLATE_PATH}/styleswitcher.js"></script>
    <script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>

    <!-- IF T_STYLESHEET_LINK and not S_FORCE_EMBED_STYLE -->
       <link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
       <link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />

       <link href="{T_THEME_PATH}/normal.css" rel="stylesheet" type="text/css" title="A" />
       <link href="{T_THEME_PATH}/medium.css" rel="alternate stylesheet" type="text/css" title="A+" />
       <link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />
    <!-- ELSE -->
       <style type="text/css" media="screen, projection">
          {T_THEME_DATA}
       </style>
    <!-- ENDIF -->
    </head>

    <body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">

    <div id="wrap-bg">
      <div id="wrap">

       <a id="top" name="top" accesskey="t"></a>
       <div id="page-header">
          <div id="flash">
          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="860" height="220">
                    <param name="movie" value="{T_THEME_PATH}/flash/header.swf">
                    <param name="quality" value="high">
                    <embed src="{T_THEME_PATH}/flash/header.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="860" height="220"></embed></object>
          </div>
      <div class="navbar">
             <div class="inner"><span class="corners-top"><span></span></span>

             <ul class="linklist navlinks">
                <li><a class="icon-home" href="{U_INDEX}" accesskey="h">{L_INDEX}</a> <!-- BEGIN navlinks --> <strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></li>

                <li class="rightside"><a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH_ADV}</a> {S_HIDDEN_FIELDS}</a></li>

                <!-- IF U_EMAIL_TOPIC --><li class="rightside"><a href="{U_EMAIL_TOPIC}" title="{L_EMAIL_TOPIC}" class="sendemail">{L_EMAIL_TOPIC}</a></li><!-- ENDIF -->
                <!-- IF U_EMAIL_PM --><li class="rightside"><a href="{U_EMAIL_PM}" title="{L_EMAIL_PM}" class="sendemail">{L_EMAIL_PM}</a></li><!-- ENDIF -->
                <!-- IF U_PRINT_TOPIC --><li class="rightside"><a href="{U_PRINT_TOPIC}" title="{L_PRINT_TOPIC}" accesskey="p" class="print">{L_PRINT_TOPIC}</a></li><!-- ENDIF -->
                <!-- IF U_PRINT_PM --><li class="rightside"><a href="{U_PRINT_PM}" title="{L_PRINT_PM}" accesskey="p" class="print">{L_PRINT_PM}</a></li><!-- ENDIF -->
             </ul>

             <ul class="linklist">
                <!-- IF not S_IS_BOT -->
                   <!-- IF S_USER_LOGGED_IN -->
                   <li>
                      <a href="{U_PROFILE}" title="{L_PROFILE}" accesskey="u" class="icon-ucp">{L_PROFILE}</a>
                         <!-- IF S_DISPLAY_PM --> (<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>)<!-- ENDIF --> &bull;       
                      <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a>
                      <!-- IF U_RESTORE_PERMISSIONS --> &bull;
                      <a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>
                      <!-- ENDIF -->
                   </li>
                   <!-- ENDIF -->
                <!-- ENDIF -->
                <li class="rightside">
                   <a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}" class="icon-faq">{L_FAQ}</a>&nbsp;
                   <!-- IF not S_IS_BOT -->
                      <!-- IF S_DISPLAY_MEMBERLIST --><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}" class="icon-members">{L_MEMBERLIST}</a>&nbsp; <!-- ENDIF -->
                      <!-- IF not S_USER_LOGGED_IN --><a href="{U_REGISTER}" class="icon-register">{L_REGISTER}</a>&nbsp; <!-- ENDIF -->
                      <a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="l" class="icon-logout">{L_LOGIN_LOGOUT}</a>
                   <!-- ENDIF -->
                </li>
             </ul>
    
             <span class="corners-bottom"><span></span></span></div>
          </div>

       </div>
<div class="navbar">
<div class="inner"><span class="corners-top"><span></span></span>
<!-- INCLUDE recent_panel.html -->
<span class="corners-bottom"><span></span></span></div>
</div>
       <a name="start_here"></a>
       <div id="page-body">
          
           <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and (U_MCP or U_ACP) -->
          <div id="message" class="rules">
             <div class="inner"><span class="corners-top"><span></span></span>
                <strong>{L_INFORMATION}:</strong> {L_BOARD_DISABLED}
             <span class="corners-bottom"><span></span></span></div>
          </div>
          <!-- ENDIF --> 

Re: laatste active berichten

Geplaatst: 15 jun 2007, 23:12
door rohit
nee is niet goed
kheb het geprobeerd

die balk word breder als het forum dan :S
egt vaag

Re: laatste active berichten

Geplaatst: 15 jun 2007, 23:20
door Semi_Deus

Code: Selecteer alles

         <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
        <head>

        <meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
        <meta http-equiv="content-style-type" content="text/css" />
        <meta http-equiv="content-language" content="{S_USER_LANG}" />
        <meta http-equiv="imagetoolbar" content="no" />
        <meta name="resource-type" content="document" />
        <meta name="distribution" content="global" />
        <meta name="copyright" content="2002-2006 phpBB Group" />
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        {META}
        <title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

        <!--
           phpBB style name: prosilver
           Based on style:   prosilver (this is the default phpBB3 style)
           Original author:  Tom Beddard ( http://www.subBlue.com/ )
           Modified by:     
           
           NOTE: This page was generated by phpBB, the free open-source bulletin board package.
                 The phpBB Group is not responsible for the content of this page and forum. For more information
                 about phpBB please visit http://www.phpbb.com
        -->

        <script type="text/javascript">
        // <![CDATA[
           var jump_page = '{L_JUMP_PAGE}:';
           var on_page = '{ON_PAGE}';
           var per_page = '{PER_PAGE}';
           var base_url = '{BASE_URL}';
           var style_cookie = 'phpBBstyle';
           var onload_functions = new Array();
           var onunload_functions = new Array();

           <!-- IF S_USER_PM_POPUP -->
              if ({S_NEW_PM})
              {
                 window.open('{UA_POPUP_PM}', '_phpbbprivmsg', 'height=225,resizable=yes,width=400');
              }
           <!-- ENDIF -->

           /**
           * Find a member
           */
           function find_username()
           {
              <!-- IF UA_FIND_USERNAME -->
              window.open('{UA_FIND_USERNAME}', '_usersearch', 'height=500, resizable=yes, scrollbars=yes, width=740');
              <!-- ENDIF -->
              return false;
           }

           /**
           * New function for handling multiple calls to window.onload and window.unload by pentapenguin
           */
           window.onload = function()
           {
              for (i = 0; i <= onload_functions.length; i++)
              {
                 eval(onload_functions[i]);
              }
           }

           window.onunload = function()
           {
              for (i = 0; i <= onunload_functions.length; i++)
              {
                 eval(onunload_functions[i]);
              }
           }

        // ]]>
        </script>
        <script type="text/javascript" src="{T_TEMPLATE_PATH}/styleswitcher.js"></script>
        <script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>

        <!-- IF T_STYLESHEET_LINK and not S_FORCE_EMBED_STYLE -->
           <link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
           <link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />

           <link href="{T_THEME_PATH}/normal.css" rel="stylesheet" type="text/css" title="A" />
           <link href="{T_THEME_PATH}/medium.css" rel="alternate stylesheet" type="text/css" title="A+" />
           <link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />
        <!-- ELSE -->
           <style type="text/css" media="screen, projection">
              {T_THEME_DATA}
           </style>
        <!-- ENDIF -->
        </head>

        <body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">

        <div id="wrap-bg">
          <div id="wrap">

           <a id="top" name="top" accesskey="t"></a>
           <div id="page-header">
              <div id="flash">
              <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="860" height="220">
                        <param name="movie" value="{T_THEME_PATH}/flash/header.swf">
                        <param name="quality" value="high">
                        <embed src="{T_THEME_PATH}/flash/header.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="860" height="220"></embed></object>
              </div>
          <div class="navbar">
                 <div class="inner"><span class="corners-top"><span></span></span>

                 <ul class="linklist navlinks">
                    <li><a class="icon-home" href="{U_INDEX}" accesskey="h">{L_INDEX}</a> <!-- BEGIN navlinks --> <strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></li>

                    <li class="rightside"><a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH_ADV}</a> {S_HIDDEN_FIELDS}</a></li>

                    <!-- IF U_EMAIL_TOPIC --><li class="rightside"><a href="{U_EMAIL_TOPIC}" title="{L_EMAIL_TOPIC}" class="sendemail">{L_EMAIL_TOPIC}</a></li><!-- ENDIF -->
                    <!-- IF U_EMAIL_PM --><li class="rightside"><a href="{U_EMAIL_PM}" title="{L_EMAIL_PM}" class="sendemail">{L_EMAIL_PM}</a></li><!-- ENDIF -->
                    <!-- IF U_PRINT_TOPIC --><li class="rightside"><a href="{U_PRINT_TOPIC}" title="{L_PRINT_TOPIC}" accesskey="p" class="print">{L_PRINT_TOPIC}</a></li><!-- ENDIF -->
                    <!-- IF U_PRINT_PM --><li class="rightside"><a href="{U_PRINT_PM}" title="{L_PRINT_PM}" accesskey="p" class="print">{L_PRINT_PM}</a></li><!-- ENDIF -->
                 </ul>

                 <ul class="linklist">
                    <!-- IF not S_IS_BOT -->
                       <!-- IF S_USER_LOGGED_IN -->
                       <li>
                          <a href="{U_PROFILE}" title="{L_PROFILE}" accesskey="u" class="icon-ucp">{L_PROFILE}</a>
                             <!-- IF S_DISPLAY_PM --> (<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>)<!-- ENDIF --> &bull;       
                          <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a>
                          <!-- IF U_RESTORE_PERMISSIONS --> &bull;
                          <a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>
                          <!-- ENDIF -->
                       </li>
                       <!-- ENDIF -->
                    <!-- ENDIF -->
                    <li class="rightside">
                       <a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}" class="icon-faq">{L_FAQ}</a>&nbsp;
                       <!-- IF not S_IS_BOT -->
                          <!-- IF S_DISPLAY_MEMBERLIST --><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}" class="icon-members">{L_MEMBERLIST}</a>&nbsp; <!-- ENDIF -->
                          <!-- IF not S_USER_LOGGED_IN --><a href="{U_REGISTER}" class="icon-register">{L_REGISTER}</a>&nbsp; <!-- ENDIF -->
                          <a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="l" class="icon-logout">{L_LOGIN_LOGOUT}</a>
                       <!-- ENDIF -->
                    </li>
                 </ul>
       
                 <span class="corners-bottom"><span></span></span></div>
              </div>

           </div>
<center>
    <div class="navbar" width="40%">
    <div class="inner"><span class="corners-top"><span></span></span>
    <!-- INCLUDE recent_panel.html -->
    <span class="corners-bottom"><span></span></span></div>
    </div>
</center>
           <a name="start_here"></a>
           <div id="page-body">
             
               <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and (U_MCP or U_ACP) -->
              <div id="message" class="rules">
                 <div class="inner"><span class="corners-top"><span></span></span>
                    <strong>{L_INFORMATION}:</strong> {L_BOARD_DISABLED}
                 <span class="corners-bottom"><span></span></span></div>
              </div>
              <!-- ENDIF --> 
probeer het nu eens, en pas als het niet goed is het width percentage aan bij deze regel:

Code: Selecteer alles

<center>
    <div class="navbar" width="40%">
    <div class="inner"><span class="corners-top"><span></span></span>
    <!-- INCLUDE recent_panel.html -->
    <span class="corners-bottom"><span></span></span></div>
    </div>
</center>

Re: laatste active berichten

Geplaatst: 15 jun 2007, 23:50
door rohit
Nee lukt nog steeds niet heb de percentages verandert maar er gebeurt niks met de breedte hij blijf uitsteken
:(

Re: laatste active berichten

Geplaatst: 16 jun 2007, 11:25
door Semi_Deus
hmm, ik zal eens wat testen, ik installeer die mod ook wel ff..

Re: laatste active berichten

Geplaatst: 16 jun 2007, 21:06
door rohit
Ok thnx alvast !!

Re: laatste active berichten

Geplaatst: 16 jun 2007, 23:34
door Semi_Deus
hmm, bij mij wil die hele mod niet werken, of ik ben iets vergeten..
hoe heb jij hem geinstalleerd?
alles geupload, en toen gewoon dat <!-- INCLUDE recent_panel.html --> toegevoegd of moest je nog meer editten?

Re: laatste active berichten

Geplaatst: 17 jun 2007, 01:48
door rohit
je hebt tog die install.xml?
je moet wel meer editen :D
ik kan de gemodde bestande wel geven alleen heeft dat niet veel nut denk ik omdat ik brushed metal gebruik en jij subblue als ikme nie vergis ;)

Files To Edit:
language/en/common.php,
language/en/acp/common.php,
language/pl/common.php,
language/pl/acp/common.php,
includes/constants.php,
includes/fuctions.php,
styles/subSilver/template/overall_header.html

Included Files:
recent/includes/recent_panel.php,
recent/includes/acp/acp_recent_panel.php,
recent/includes/acp/info/acp_recent_panel.php,
recent/styles/subSilver/template/recent_panel.html,
recent/adm/style/acp_recent_panel.html

je moet sql ook runnen

Code: Selecteer alles

DROP TABLE IF EXISTS phpbb_recent_panel_modules;

CREATE TABLE phpbb_recent_panel_modules (
  module_name varchar(255) DEFAULT '' NOT NULL,
  module_active smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
  module_order smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
  check_permissions tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
  PRIMARY KEY  (module_name),
  KEY module_order (module_order)
);

INSERT INTO phpbb_recent_panel_modules VALUES ('recent_topics', 1, 0, 1);
INSERT INTO phpbb_recent_panel_modules VALUES ('global_announcments', 1, 1, 0);
INSERT INTO phpbb_recent_panel_modules VALUES ('recent_posts', 1, 2, 1);

INSERT INTO phpbb_config (config_name, config_value) VALUES ('recent_panel_on', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('recent_panel_module_width', '300');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('recent_panel_max_rows', '5');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('recent_panel_require_read', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('recent_panel_exclude_forums', '');
Hier de install.xml :)

Code: Selecteer alles

Installation instructions for 'Recent Topics, Posts and Global Announcments MOD' Version 1.1.1
About this MOD
Title: 
Recent Topics, Posts and Global Announcments MOD 
Description: 
Shows links to selected number of recent topics, posts and global announcments in overall header. 
Version: 
1.1.1 
Installation Level: 
Easy 
Installation Time: 
~8 minutes 

Files To Edit
language/en/common.php, 
language/en/acp/common.php, 
language/pl/common.php, 
language/pl/acp/common.php, 
includes/constants.php, 
includes/fuctions.php, 
styles/subSilver/template/overall_header.html 
Included Files
recent/includes/recent_panel.php, 
recent/includes/acp/acp_recent_panel.php, 
recent/includes/acp/info/acp_recent_panel.php, 
recent/styles/subSilver/template/recent_panel.html, 
recent/adm/style/acp_recent_panel.html 


SQL
DROP TABLE IF EXISTS phpbb_recent_panel_modules;

CREATE TABLE phpbb_recent_panel_modules (
  module_name varchar(255) DEFAULT '' NOT NULL,
  module_active smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
  module_order smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
  check_permissions tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
  PRIMARY KEY  (module_name),
  KEY module_order (module_order)
);

INSERT INTO phpbb_recent_panel_modules VALUES ('recent_topics', 1, 0, 1);
INSERT INTO phpbb_recent_panel_modules VALUES ('global_announcments', 1, 1, 0);
INSERT INTO phpbb_recent_panel_modules VALUES ('recent_posts', 1, 2, 1);

INSERT INTO phpbb_config (config_name, config_value) VALUES ('recent_panel_on', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('recent_panel_module_width', '300');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('recent_panel_max_rows', '5');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('recent_panel_require_read', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('recent_panel_exclude_forums', '');
File Copy
Copy: recent/includes/recent_panel.php 
To: includes/recent_panel.php 
Copy: recent/includes/acp/acp_recent_panel.php 
To: includes/acp/acp_recent_panel.php 
Copy: recent/includes/acp/info/acp_recent_panel.php 
To: includes/acp/info/acp_recent_panel.php 
Copy: recent/styles/subSilver/template/recent_panel.html 
To: styles/subSilver/template/recent_panel.html 
Copy: recent/adm/style/acp_recent_panel.html 
To: adm/style/acp_recent_panel.html 
Edits
Click on the action name or in the code box to select the code. You may also hit 's' on your keyboard to go to the first code box and the up and down arrows to scroll through the code boxes.

Open: language/en/common.php
Comment: 
Adding english language variables on the end of the file. 
Find
Tip: This may be a partial find and not the whole line. 

?>
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.

// Recent Panel MOD 1.1 (2006-12-17)
$lang = array_merge($lang, array(
	'RECENT_TOPICS'			=> 'Recent topics',
	'RECENT_POSTS'			=> 'Recent posts',
	'GLOBAL_ANNOUNCMENTS'	=> 'Global announcments',
));
Open: language/en/acp/common.php
Comment: 
Adding english language variables on the end of the file. 
Find
Tip: This may be a partial find and not the whole line. 

?>
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.

// Recent Panel MOD 1.1 (2006-12-17)
$lang = array_merge($lang, array(
	'ACP_RECENT_PANEL'					=> 'Recent Topics, Posts and Global Announcments',
	'ACP_RECENT_PANEL_EXPLAIN'			=> 'Recent Topics, Posts and Global Announcments MOD 1.0 by LEW21 - settings',

	'MODULES'							=> 'Modules',

	'RECENT_PANEL_ON'						=> 'Display panel',
	'RECENT_PANEL_MAX_ROWS'					=> 'Max. number of rows',
	'RECENT_PANEL_MAX_ROWS_EXPLAIN'			=> 'Max. number of topics or posts displayed in every module',
	'RECENT_PANEL_MODULE_WIDTH'				=> 'Width of every module',
	'RECENT_PANEL_MODULE_WIDTH_EXPLAIN'		=> 'In pixels',
	'RECENT_PANEL_REQUIRE_READ'				=> 'Require permission to read',
	'RECENT_PANEL_REQUIRE_READ_EXPLAIN'		=> 'Select "yes" if script should require permission to read topics on forum to display topic / post on the list of recent topics / posts. Select "no" if script should only require permission to see forum.',
	'RECENT_PANEL_EXCLUDE_FORUMS'			=> 'Exclude forums with IDs',
	'RECENT_PANEL_EXCLUDE_FORUMS_EXPLAIN'	=> 'Seperate IDs with a comma.',

	'LOG_CONFIG_RECENT_PANEL'			=> '<b>Altered Recent Topics, Posts and Global Announcments settings</b>',
));
Open: language/pl/common.php
Comment: 
Adding polish language variables on the end of the file. 
Find
Tip: This may be a partial find and not the whole line. 

?>
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.

// Recent Panel MOD 1.1 (2006-12-17)
$lang = array_merge($lang, array(
	'RECENT_TOPICS'			=> 'Najnowsze tematy',
	'RECENT_POSTS'			=> 'Najnowsze posty',
	'GLOBAL_ANNOUNCMENTS'	=> 'Ogłoszenia globalne',
));
Open: language/pl/acp/common.php
Comment: 
Adding polish language variables on the end of the file. 
Find
Tip: This may be a partial find and not the whole line. 

?>
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.

// Recent Panel MOD 1.1 (2006-12-17)
$lang = array_merge($lang, array(
	'ACP_RECENT_PANEL'					=> 'Najnowsze tematy, posty i ogłoszenia globalne',
	'ACP_RECENT_PANEL_EXPLAIN'			=> 'Recent Topics, Posts and Global Announcments MOD 1.0 by LEW21 - ustawienia',

	'MODULES'							=> 'Moduły',

	'RECENT_PANEL_ON'						=> 'Włącz wyświetlanie panelu',
	'RECENT_PANEL_MAX_ROWS'					=> 'Maksymalna liczba linii',
	'RECENT_PANEL_MAX_ROWS_EXPLAIN'			=> 'Maksymalna liczba tematów lub postów wyświetlanych w&nbsp;każdym module.',
	'RECENT_PANEL_MODULE_WIDTH'				=> 'Szerokość jednego modułu',
	'RECENT_PANEL_MODULE_WIDTH_EXPLAIN'		=> 'Podaj liczbę pikseli.',
	'RECENT_PANEL_REQUIRE_READ'				=> 'Wymagaj zezwolenia do czytania',
	'RECENT_PANEL_REQUIRE_READ_EXPLAIN'		=> 'Wybierz "tak", jeżeli chcesz żeby skrypt wymagał pozwolenia na czytanie forum aby wyświtlić temat na liście. Wybierz "nie", aby wystarczyło pozwolenie na zobaczenie forum.',
	'RECENT_PANEL_EXCLUDE_FORUMS'			=> 'Nie wyświetlaj postów i tematów napisanych na forach o ID',
	'RECENT_PANEL_EXCLUDE_FORUMS_EXPLAIN'	=> 'Oddziel numery ID przecinkami.',

	'LOG_CONFIG_RECENT_PANEL'			=> '<b>Zmieniono ustawnienia najnowszych tematów, postów i globalnych ogłoszeń</b>',
));
Open: includes/constants.php
Comment: 
Defining name of table with Recent Panel modules 
Find
Tip: This may be a partial find and not the whole line. 

define('RANKS_TABLE',				$table_prefix . 'ranks');
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.

define('RECENT_PANEL_MODULES',		$table_prefix . 'recent_panel_modules');	// Recent Panel MOD 1.1 (2006-12-17)
Open: includes/fuctions.php
Comment: 
Including includes/recent_panel.php. 
Find
Tip: This may be a partial find and not the whole line. 

	// application/xhtml+xml not used because of IE
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.

	// Recent Panel MOD 1.1 (2006-12-17)
	include($phpbb_root_path . 'includes/recent_panel.' . $phpEx);
Open: styles/subSilver/template/overall_header.html
Comment: 
Including recent_panel template. 
Find
Tip: This may be a partial find and not the whole line. 

<div id="wrapcentre">
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.

	<!-- INCLUDE recent_panel.html -->
DIY Instructions
These are manual instructions that cannot be performed automatically. You should follow these instructions carefully.

Clear cache/ folder (delete everything without .htaccess)
Install ACP module (group "Recent Topics, Posts and Global Announcments [acp_recent_panel]", name "Recent Topics, Posts and Global Announcments")

--------------------------------------------------------------------------------

Save all files. End of MOD.
You have finished the installation for this MOD. Upload all changed files to your website. If the installation went bad, simply restore your backed up files.

MOD UA XSLT File Copyright © 2006 The phpBB Group, this MOD is copyright to the author listed above.

Re: laatste active berichten

Geplaatst: 17 jun 2007, 11:21
door Semi_Deus
oh, ja die xml's doen het bij mij niet op de een of andere manier :(
hmm gaat ook niet lukken om die sql te runnen denk ik. slechte freehost..
sorry dan kan ik je denk ik niet verder helpen.. :oops: