TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 638
  • Total: 639
  • tino

SMF or TP Forum?

Started by tunkadata, January 21, 2010, 04:17:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tunkadata

I want to remove the stats of 'latest member' not the whole stats. Forum is in maintenence mode till I sort this. I worked on it till I am blue in the face.

Problem is I am unsure if its another theme that removes it. In SMF default there is no 'board index' where I might have found it. I got this from a search at SMF:


// Show YaBB SP1 style information...
   if ($settings['show_sp1_info'])
   {
      echo '
   <tr>
      <td class="catbg" colspan="2">', $txt[645], '</td>
   </tr>
   <tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         <a href="', $scripturl, '?action=stats">
            <img src="', $settings['images_url'], '/icons/info.gif" alt="', $txt[645], '" border="0" /></a>
      </td>
      <td class="windowbg2" width="100%">
         <table border="0" width="90%"><tr>
            <td class="smalltext">
               ', $txt[490], ': <b>', $context['common_stats']['total_topics'], '</b> &nbsp;&nbsp;&nbsp;&nbsp; ', $txt[489], ': <b>', $context['common_stats']['total_posts'], '</b><br />
               ', !empty($context['latest_post']) ? $txt[659] . ':
               &quot;' . $context['latest_post']['link'] . '&quot;  (' . $context['latest_post']['time'] . ')<br />' : '', '
               <a href="', $scripturl, '?action=recent">', $txt[234], '</a>', $context['show_stats'] ? '<br />
               <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
            </td>
            <td class="smalltext">
               ', $txt[488], ': <b>', $context['show_member_list'] ? '<a href="' . $scripturl . '?action=mlist">' . $context['common_stats']['total_members'] . '</a>' : $context['common_stats']['total_members'], '</b><br />
               ', $txt[656], ': <b>', $context['common_stats']['latest_member']['link'], '</b><br />';
      // If they are logged in, show their unread message count, etc..
      if ($context['user']['is_logged'] && $context['allow_pm'])
         echo '
               ', $txt['smf199'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['messages'], '</a></b> ', $txt['newmessages3'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['unread_messages'], '</a></b>';
      echo '
            </td>
         </tr></table>
      </td>
   </tr>';
   }


Because it looks like it must only affect YABB its not gone from Bloc's BZ22 theme.

Does anyone know anything about editing SMF default (no board index) or BZ22?

I messed up the yabb trying to make a 'forum button' does anyone have the code for that please?

Thanks!

IchBin

You have no board index file in your default theme? That's not good...

You're going to have to be explicit on what it is exactly that you want. Based on your description I am very unclear. What are you referring to when you talk about yabb? Yabb is not a theme I'm aware of. The code that you posted that has Yabb in the comment has nothing to do with Yabb.

To be honest with you, this is a TinyPortal support forum. Not and SMF support forum. You really should seek help with this SMF issue at their site.

tunkadata

Classic YaBB SE Theme (1.1) has a board index, sorry IncBin,

When I wanted to modify SMF default thinking I needed that it does not show in the list of themes to modify, maybe its that way for the purpose of the backup theme should any themes get corrupted..

Its BZ22 that has'nt a board index.php Do we know how to remove the latest member from that theme? If I ask at SMF they will say see bloc about his themes.

tunkadata

Never mind the above,

I have installed Leviathan and I removed what I was  asking.

I could do with a 'forum button' because there is only admin. I saved trhe forum page in favs but others will eventually need to see it in the menu.

tunkadata

Sorted it myself

Uploaded a board index.php

;D

IchBin

Any theme you get from this site should already have a forum button. If the theme doesn't have the BoardIndex.template.php file, then it automatically uses the file from the default theme. Which means, SMF should show you how to modify their file. :)

If your theme doesn't have a forum button, take a look at the downloads page and make sure you're downloading the right theme. Some themes have a setting in the theme settings to turn support for TP on, and other themes have a separate version that you can use.

tunkadata

Thanks IchBin,

I'll sort it tomorrow, I had enough editing for today.

:)

This website is proudly hosted on Crocweb Cloud Website Hosting.