- Adres van je forum: http://www.endlessgaming.nl
Event. modificaties op je forum: Portal
Wanneer ontstond het probleem? Vandaag na een idee van mij
phpBB versie: 3.0.0
Heb je onlangs iets veranderd aan je forum? Ja
Wat is het probleem?

Uitschakelenkareld schreef:Kan je de onderwerp symbolen ook uitschakelen?
Open hier een nieuw onderwerp voor of gebruik de zoekfunctie want dit is "topic-hijacking".kareld schreef:Kan je de onderwerp symbolen ook uitschakelen?
Code: Selecteer alles
<?php
if (!defined('IN_PHPBB'))
{
exit;
}
/**
*/
//
// Fetch Posts for headlines from portal/includes/functions.php
//
if( (!isset($HTTP_GET_VARS['article'])) && ($CFG['headlines'] == true) )
{
$fetch_headlines = phpbb_fetch_posts($CFG['headlines_forum'], $CFG['number_of_headlines'], $CFG['headlines_length'], 0, ($CFG['show_all_headlines']) ? 'headlines_all' : 'headlines');
if (count($fetch_headlines) == 0)
{
$template->assign_block_vars('headlines_row', array(
'S_NO_TOPICS' => true,
'S_NOT_LAST' => false
)
);
}
else
{
for ($i = 0; $i < count($fetch_headlines); $i++)
{
if( isset($fetch_headlines[$i]['striped']) && $fetch_headlines[$i]['striped'] == true )
{
$read_full = $user->lang['READ_FULL'];
}
else
{
$read_full = '';
}
$template->assign_block_vars('headlines_row', array(
'ATTACH_ICON_IMG' => ($fetch_headlines[$i]['attachment']) ? $user->img('icon_attach', $user->lang['TOTAL_ATTACHMENTS']) : '',
'TITLE' => $fetch_headlines[$i]['topic_title'],
'POSTER' => $fetch_headlines[$i]['username'],
'U_USER_PROFILE' => (($fetch_headlines[$i]['user_type'] == USER_NORMAL || $fetch_headlines[$i]['user_type'] == USER_FOUNDER) && $fetch_headlines[$i]['user_id'] != ANONYMOUS) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&u=' . $fetch_headlines[$i]['user_id']) : '',
'TIME' => $fetch_headlines[$i]['topic_time'],
'TEXT' => $fetch_headlines[$i]['post_text'],
'REPLIES' => $fetch_headlines[$i]['topic_replies'],
'U_VIEW_COMMENTS' => append_sid($phpbb_root_path . 'viewtopic.' . $phpEx . '?t=' . $fetch_headlines[$i]['topic_id'] . '&f=' . $fetch_headlines[$i]['forum_id']),
'U_POST_COMMENT' => append_sid($phpbb_root_path . 'posting.' . $phpEx . '?mode=reply&t=' . $fetch_headlines[$i]['topic_id'] . '&f=' . $fetch_headlines[$i]['forum_id']),
'U_READ_FULL' => append_sid($_SERVER['PHP_SELF'] . '?article=' . $i),
'L_READ_FULL' => $read_full,
'S_NOT_LAST' => ($i < count($fetch_headlines) - 1) ? true : false,
'S_POLL' => $fetch_headlines[$i]['poll'],
'MINI_POST_IMG' => $user->img('icon_post_target', 'POST'),
)
);
}
}
$template->assign_vars(array(
'S_DISPLAY_HEADLINES_LIST' => true
)
);
}
else if ($CFG['headlines'] == true)
{
$fetch_headlines = phpbb_fetch_posts($CFG['headlines_forum'], $CFG['number_of_headlines'], 0, 0, ($CFG['show_all_headlines']) ? 'headlines_all' : 'headlines');
$i = intval($HTTP_GET_VARS['article']);
$template->assign_block_vars('headlines_row', array(
'ATTACH_ICON_IMG' => ($fetch_headlines[$i]['attachment']) ? $user->img('icon_attach', $user->lang['TOTAL_ATTACHMENTS']) : '',
'TITLE' => $fetch_headlines[$i]['topic_title'],
'POSTER' => $fetch_headlines[$i]['username'],
'TIME' => $fetch_headlines[$i]['topic_time'],
'TEXT' => $fetch_headlines[$i]['post_text'],
'REPLIES' => $fetch_headlines[$i]['topic_replies'],
'U_VIEW_COMMENTS' => append_sid($phpbb_root_path . 'viewtopic.' . $phpEx . '?t=' . $fetch_headlines[$i]['topic_id']),
'U_POST_COMMENT' => append_sid($phpbb_root_path . 'posting.' . $phpEx . '?mode=reply&t=' . $fetch_headlines[$i]['topic_id'] . '&f=' . $fetch_headlines[$i]['forum_id']),
'S_POLL' => $fetch_headlines[$i]['poll']
)
);
$template->assign_vars(array(
'S_DISPLAY_HEADLINES_LIST' => true
)
);
}
// Assign specific vars
$template->assign_vars(array(
'L_HEADLINES' => $user->lang['HEADLINES'],
'L_NO_HEADLINES' => $user->lang['NO_HEADLINES'],
'L_POSTED_BY' => $user->lang['POSTED_BY'],
'L_COMMENTS' => $user->lang['COMMENTS'],
'L_VIEW_COMMENTS' => $user->lang['VIEW_COMMENTS'],
'L_POST_REPLY' => $user->lang['POST_REPLY']
)
);
?>
Code: Selecteer alles
<div class="panel">
<div class="inner">
<span class="corners-top"><span></span></span>
<h3>{L_HEADLINES}</h3>
<!-- BEGIN headlines_row -->
<!-- IF headlines_row.S_NO_TOPICS -->
<span class="gensmall" style="text-align: center;"><strong>{L_NO_HEADLINES}</strong></span>
<!-- ELSE -->
<span style="float: right;">{headlines_row.TIME}</span>
<h4 class="first">{headlines_row.ATTACH_ICON_IMG}{forumrow.FORUM_IMAGE}<a href="{headlines_row.U_VIEW_COMMENTS}"><strong>{headlines_row.TITLE}</strong></a></h4>
<!-- ENDIF -->
<!-- IF headlines_row.S_NOT_LAST -->
<!-- ENDIF -->
<!-- END headlines_row -->
</div>
<span class="corners-bottom"><span></span></span>
</div>
</div>
<br />
portal/includes/functions.php
met deze codeportal includes
In je headlines.php
doe je deze handelingenCode: Selecteer alles
// ZOEK
'TITLE' => $fetch_headlines[$i]['topic_title'],
// AFTER ADD
'ICON' => $fetch_headlines[$i]['post_icon'],
{headlines_row.ICON}
Code: Selecteer alles
Fatal error: Cannot redeclare get_user_rank() (previously declared in C:\xampp\htdocs\www\endlessgaming\forum\portal\includes\functions.php:239) in C:\xampp\htdocs\www\endlessgaming\forum\portal\block\user_menu.php on line 176
phpbb_fetch_posts
) vervangen.Dan gaan we dat een proberen heBetaDevil schreef:Welke SQL Error, en anders moet je je portal even updaten naar de nieuste versie (niet 2.0) aangezien ik hem daarvoor maakte.