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

Recent

Welcome to TinyPortal. Please login or sign up.

May 17, 2024, 03:59:53 AM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,189
  • Total Topics: 21,220
  • Online today: 59
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 52
  • Total: 52

INFO STATS

Started by alhaudhie, September 19, 2007, 05:30:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alhaudhie

 ;D

How can i delete this 3 line and change it with image like banner?



tq

IchBin

Open TPortalBlocks.template.php in the default theme and search for the stats function.
function TPortal_statsbox()

Then inside that function find and delete your < hr > tags. (without the spaces in there).

alhaudhie

#2
// TPortal stats box
function TPortal_statsbox()
{
       global $context, $settings, $options, $scripturl, $txt, $modSettings;

$bullet = '<img src="'.$settings['images_url'].'/TPdivider.gif" alt="" border="0" style="margin:0 2px 0 0;" />';
$bullet2 = '<img src="'.$settings['images_url'].'/TPdivider2.gif" alt="" border="0" style="margin:0 2px 0 0;" />';
        echo'<div class="smalltext" style="font-family: verdana, arial, sans-serif;">';

       if(isset($context['TPortal']['userbox']['stats']))
   // members stats
            echo '
                 <img src="'.$settings['images_url'].'/icons/members.gif" style="margin: 0;" align="bottom" alt="" />
                 <a href="'.$scripturl.'?action=mlist"><b>'.$txt[19].'</b></a>
                 <br />'.$bullet.$txt[488].': ' , isset($modSettings['memberCount']) ? $modSettings['memberCount'] : $modSettings['totalMembers'] , '
                 <br />'.$bullet.$txt['tp-latest']. ': <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '"><b>', $modSettings['latestRealName'], '</b></a>';
       if(isset($context['TPortal']['userbox']['stats_all']))
   // more stats
            echo '
                  <hr /><img src="'.$settings['images_url'].'/icons/info.gif" style="margin: 0;" align="bottom" alt="" />
                 <a href="'.$scripturl.'?action=stats"><b>'.$txt['tp-stats'].'</b></a>
                 <br />'.$bullet.$txt[489].': '.$modSettings['totalMessages']. '
  <br />'.$bullet. $txt[490].': '.$modSettings['totalTopics']. '
  <br />'.$bullet.$txt['tp-mostonline-today'].': '.$modSettings['mostOnlineToday'].'
  <br />'.$bullet.$txt['tp-mostonline'].': '.$modSettings['mostOnline'].'<br />
  ('.timeformat($modSettings['mostDate']).')
  ';

I hope someone can do it for me to change the 3 line to image.
TQ

IchBin


alhaudhie

 ;D

not xpert for this....
i have tried it for several times...but not succeed.

JPDeni

Where is your graphic file stored?

alhaudhie

/public_html/v1/themes/currentthemes/images/

JPDeni

What is the URL of your graphic? You need the URL to display it. Is it in the same directory as the other images, like the icons?

alhaudhie

yes... it is in the same directory...

JPDeni

Okay. Replace

<hr />

with


<img src="'.$settings['images_url'].'/icons/info.gif" style="margin: 0;" align="bottom" alt="" />


Except that you'll need to change info.gif to be the name of your graphic file.

There are two more places where there is

<hr />

than in the code you posted.