Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Looking for a couple of mods

Aloittaja MRM4, lokakuu 30, 2007, 11:24:00 AP

« edellinen - seuraava »

MRM4

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

Kindred

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.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

MRM4

I want to remove the line that says the total amount of time on the board. It says so many days, hours, and minutes.

Kindred

*WHERE* does the line that you want to remove appear?

(this is a template issue and several templates have it appearing in different places!)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

MRM4


Kindred

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?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

MRM4

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.


Kindred

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)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

MRM4

Thanks!

FYI, apparently the mouseover mod does not work for 1.4. I installed it on mine and it did not work.

Kindred

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)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

MRM4

The weird thing is it's working on the other two themes that are not the default theme (which is what I use).

Advertisement: