Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Aiheen aloitti: MRM4 - lokakuu 30, 2007, 11:24:00 AP

Otsikko: Looking for a couple of mods
Kirjoitti: MRM4 - lokakuu 30, 2007, 11:24:00 AP
I tried to find these and was unable to do so.

The first mod I'm looking for is one that will show the beginning of a post in another box when hovering over the subject link. phpBB and other software has one.

The other is a way to turn off the time online next to your user name. Several of my members have requested this. I guess they don't want to realize how much time they are wasting on the board.  :D
Otsikko: Re: Looking for a couple of mods
Kirjoitti: Kindred - lokakuu 30, 2007, 11:30:02 AP
for the first one, search for "mouseover preview"
Lainaus käyttäjältä: MRM4 - lokakuu 30, 2007, 11:24:00 AP
The other is a way to turn off the time online next to your user name.

Where is the appearance that you want to remove? You need to be specific.
Otsikko: Re: Looking for a couple of mods
Kirjoitti: MRM4 - lokakuu 30, 2007, 11:38:38 AP
I want to remove the line that says the total amount of time on the board. It says so many days, hours, and minutes.
Otsikko: Re: Looking for a couple of mods
Kirjoitti: Kindred - lokakuu 30, 2007, 11:41:05 AP
*WHERE* does the line that you want to remove appear?

(this is a template issue and several templates have it appearing in different places!)
Otsikko: Re: Looking for a couple of mods
Kirjoitti: MRM4 - lokakuu 30, 2007, 11:45:13 AP
Sorry, it's on the main page.
Otsikko: Re: Looking for a couple of mods
Kirjoitti: Kindred - lokakuu 30, 2007, 11:46:17 AP
again...  not specific enough.

WHERE on the main page?
Why don't you just provide a picture indicating where or a link to your site?
Otsikko: Re: Looking for a couple of mods
Kirjoitti: MRM4 - lokakuu 30, 2007, 11:50:26 AP
It's in the upper, left corner next to the user name and avatar. It's within a box called "user info". It's the 'total time logged in' line.

Otsikko: Re: Looking for a couple of mods
Kirjoitti: Kindred - lokakuu 30, 2007, 11:59:00 AP
ah!   now THAT is the information I was asking for.

you would edit index.template.php

find

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
', $txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}

and comment out those lines
(use // at the start of each line)
Otsikko: Re: Looking for a couple of mods
Kirjoitti: MRM4 - lokakuu 30, 2007, 01:33:53 IP
Thanks!

FYI, apparently the mouseover mod does not work for 1.4. I installed it on mine and it did not work.
Otsikko: Re: Looking for a couple of mods
Kirjoitti: Kindred - lokakuu 30, 2007, 01:39:52 IP
are you using the default theme?   Mods only install automatically on the default theme

(if the mods successfully installed, i.e. no errors and you completed the instalaltion, then it should be working)
Otsikko: Re: Looking for a couple of mods
Kirjoitti: MRM4 - lokakuu 30, 2007, 01:51:34 IP
The weird thing is it's working on the other two themes that are not the default theme (which is what I use).