Welcome, Guest. Please Login or Register.
August 30, 2025, 03:32:56 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Disable the more stats link « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Disable the more stats link  (Read 447 times)
Jere1983
Noobie
*
Posts: 20


I'm a llama!

Disable the more stats link
« on: April 05, 2002, 09:11:31 PM »
Reply with quote

I'd like to disable the more stats(?) link in the board index, how could I do that?

The new version ruulz, some problems with my old old template too, The font size of members and guests under the Currently at the forum has become huge.
also at the board index the text which says messages topics etc has changed its size color and font, what to do?
« Last Edit: April 05, 2002, 09:18:01 PM by Jere1983 » Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Disable the more stats link
« Reply #1 on: April 05, 2002, 09:50:05 PM »
Reply with quote

Disable it in Installed Mods and Settings.  uncheck track hits and track stats.
Logged

Jere1983
Noobie
*
Posts: 20


I'm a llama!

Re:Disable the more stats link
« Reply #2 on: April 06, 2002, 10:09:26 AM »
Reply with quote

I would like those stats to be private, is that possible?
Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:Disable the more stats link
« Reply #3 on: April 06, 2002, 10:14:59 AM »
Reply with quote

you can remove the link in the boardindex
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:Disable the more stats link
« Reply #4 on: April 06, 2002, 10:17:27 AM »
Reply with quote

if ($modSettings['trackStats']==1)
$stats="<br><a href=\"$scripturl?board=;action=stats\">$txt[yse223]</a>";
else
$stats="";

replace that in the boardindex with...
$stats="";
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Shoeb Omar
Disciple of Joe
YaBB God
*****
Posts: 1420


The shrub demands war. I don't. The world doesn't.

ICQ - 69234983clickopedia@hotmail.com WWW
Re:Disable the more stats link
« Reply #5 on: April 06, 2002, 11:37:39 AM »
Reply with quote

or to display the stats just to admins do this:

open boardindex.php in ur sources dir:

search for:

if ($modSettings['trackStats']==1)
$stats="<br><a href=\"$scripturl?board=;action=stats\">$txt[yse223]</a>";
else
$stats="";

replace with:

if ($modSettings['trackStats']==1 && $settings[7]' == 'Administrator')
$stats="<br><a href=\"$scripturl?board=;action=stats\">$txt[yse223]</a>";
else
$stats="";

this snippet just hides the liink though - if they were a really advanced user.. wel not really advance but if they knew the yabbse system pretty well they could still get into them.. id this ok for you (just hiding the link) or do you want aa more sure fire solution?
Logged

"If we all practice an eye for an eye, pretty soon the whole world will be blind" - Gandhi

We need to start listening to advocates of peace in oder to advance society. We have not grown from the prehistoric barbarians we once were.  Will society ever mature?
The Engineer
Sr. Member
****
Posts: 313


I'm the Dude, man!

ICQ - 156273462 WWW
Re:Disable the more stats link
« Reply #6 on: April 06, 2002, 01:30:37 PM »
Reply with quote

Add Omario's code and the add this to Stats.php right under the version info

is_admin();
[update]

On Omario's code he has
$settings[7]'
it should be
$settings[7]
[/update]

[update2]

While your at it update this as well
   if ($modSettings['trackStats']==1 && $modSettings['enableSP1Info'] != 1)
     $stats="<br><font size=1><a href=\"$scripturl?board=;action=stats\">$txt[yse223]</a></font>";
     else
     $stats="";

to

   if ($modSettings['trackStats']==1 && $modSettings['enableSP1Info'] != 1 && $settings[7] == 'Administrator')
     $stats="<br><font size=1><a href=\"$scripturl?board=;action=stats\">$txt[yse223]</a></font>";
     else
     $stats="";

[/update2]

that should do it

* The Engineer .
« Last Edit: April 06, 2002, 01:52:51 PM by The Engineer » Logged

Who is the more foolish.. The fool or the fool who follows it...
Help cure Cancer, Join the YaBB SE UD Team !
Shoeb Omar
Disciple of Joe
YaBB God
*****
Posts: 1420


The shrub demands war. I don't. The world doesn't.

ICQ - 69234983clickopedia@hotmail.com WWW
Re:Disable the more stats link
« Reply #7 on: April 06, 2002, 09:14:01 PM »
Reply with quote

oops sorry ;) it was 3:37 am whe i poste dthat so i was braindead ;)
Logged

"If we all practice an eye for an eye, pretty soon the whole world will be blind" - Gandhi

We need to start listening to advocates of peace in oder to advance society. We have not grown from the prehistoric barbarians we once were.  Will society ever mature?
fruity_baby
Guest
Re:Disable the more stats link
« Reply #8 on: May 03, 2002, 06:35:08 AM »
Reply with quote

this worked a treat - thanks x
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Disable the more stats link « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.031 seconds with 16 queries.