News:

Welcome to the Unofficial Help Forum



Author Topic: More Stats  (Read 6395 times)

Offline FrizzleFried

  • Newbie
  • *
  • Posts: 9
    • View Profile
More Stats
« on: April 21, 2012, 04:14:08 PM »
I've always hated the [MORE STATS] text link in the info center... it looks tacky.  How would I go about making that a button of some sort?

Thanks!

SMF 2.0.2
Default theme

Offline Illori

  • Administrator
  • *
  • Posts: 322
    • View Profile
Re: More Stats
« Reply #1 on: April 21, 2012, 04:53:15 PM »
do you have an image already selected for this use? if so give a url to the location of the image and i can look into the replacement for you.

Offline FrizzleFried

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: More Stats
« Reply #2 on: April 21, 2012, 05:54:51 PM »
I do not have an image as of yet... I was thinking of using one of the button options built in to SMF... I can create menu buttons at will... and with icons in them too... but when I try to use the same code in the boardindex.php where i found the MORE STATS code... it failed miserably.  I am a PHP newb.  What string/command do I put in place of the TXT command currently in there?  If I can't use one of the buttons from SMF (with hover) ... I'd happily use a PNG file instead of just the text link.

Offline Illori

  • Administrator
  • *
  • Posts: 322
    • View Profile
Re: More Stats
« Reply #3 on: April 21, 2012, 07:15:28 PM »
try something like

Code: [Select]
<a href="' . $scripturl . '?action=stats"><img src="' . $themeurl . 'themes/default/images/board.gif "/></a>' : '', '
and
Code: (find) [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings;
Code: (replace) [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings, $themeurl;in your boardindex.template.php

Offline FrizzleFried

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: More Stats
« Reply #4 on: April 21, 2012, 09:54:27 PM »
Well,  the [MORE STATS] link went away... unfortunately my icon didn't show up.  I uploaded my icon to the themes/images/ folder and changed the code to reflect the icon name...


Offline FrizzleFried

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: More Stats
« Reply #5 on: April 21, 2012, 10:08:35 PM »
Fixed... the code above has "themes" rather than "Themes" (with a CAP "T")... once that was fixed we're golden!   Thanks!

Offline Illori

  • Administrator
  • *
  • Posts: 322
    • View Profile
Re: More Stats
« Reply #6 on: April 22, 2012, 06:28:07 AM »
ah sorry, did the code on windows where caps does not matter vs a linux server where it does.

 

anything