Uutiset:

Join the Facebook Fan Page.

Main Menu
Advertisement:

Template parse error

Aloittaja treehugger, tammikuu 30, 2014, 06:36:03 IP

« edellinen - seuraava »

treehugger

In my BoardIndex.template.php is the following code and I'm trying to remove all the info that shows from how many members to the newest member. I tried removing the centre section of the code below but got a template parse error. Have also tried removing the centre section but adding ; after echo' on the third line of the code - error again.

Please can someone tell me what I need to remove?

// Show some statistics if stat info is off.
if (!$settings['show_stats_index'])
echo '



<div id="index_common_stats">
', $txt['members'], ': ', $context['common_stats']['total_members'], ' &nbsp;&#8226;&nbsp; ', $txt['posts_made'], ': ', $context['common_stats']['total_posts'], ' &nbsp;&#8226;&nbsp; ', $txt['topics'], ': ', $context['common_stats']['total_topics'], '
', ($settings['show_latest_member'] ? ' ' . $txt['welcome_member'] . ' <strong>' . $context['common_stats']['latest_member']['link'] . '</strong>' . $txt['newest_member'] : '') , '
</div>';




// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
echo '

Bigguy

Did you try just removing this:

<div id="index_common_stats">
', $txt['members'], ': ', $context['common_stats']['total_members'], ' &nbsp;•&nbsp; ', $txt['posts_made'], ': ', $context['common_stats']['total_posts'], ' &nbsp;•&nbsp; ', $txt['topics'], ': ', $context['common_stats']['total_topics'], '
', ($settings['show_latest_member'] ? ' ' . $txt['welcome_member'] . ' <strong>' . $context['common_stats']['latest_member']['link'] . '</strong>' . $txt['newest_member'] : '') , '
</div>


treehugger

That works fine - thank you Bigguy.   ;D

Bigguy


Advertisement: