News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Users Online Today Mod

Started by Nibogo, November 06, 2005, 01:42:31 AM

Previous topic - Next topic

JimM

@w1z8it - In the code that you added to your BoardIndex.template.php

Code (Find & Delete) Select
// Showing membergroups?
if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo          '<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';

   

This code occurs twice.  Delete the 2nd occurrence of it.
Jim "JimM" Moore
Former Support Specialist

Sabre™

Quote from: w1z8it on September 08, 2009, 06:08:21 PM
It's the group keys that I only want 1 occurrance of each, preferbly I'd like to remove the dupes that's listed in the Users Logged In Today list  ;)

Oh sorry champ, I misread your question lol
Jims directions should work for you.

@ Gav-Aus
Try the attached template.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


simplebeer

#1362
Quote from: Sabre™ on September 08, 2009, 05:16:26 PM
@ Gav-Aus & PiWi

Try the attached files with your name on it.
Let me know if they work ok for you.


YEAH, it looks to be good! one thing......not worry but it looks nicer when the color of the bar is the same as the one from my theme, is this possible?

I looked for color but can't find it? Maybe it is a .gif image?

Thanks Sabre!!!!

Gr
Sorry for my poor English, but i think it's probably better then your Dutch :)

Sabre™

Find this line
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
and try changing titlebg to catbg. Im pretty sure thats all it takes.
See if it works.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Gavin Chatt

Quote from: Sabre™ on September 09, 2009, 06:41:31 AM
Quote from: w1z8it on September 08, 2009, 06:08:21 PM
It's the group keys that I only want 1 occurrance of each, preferbly I'd like to remove the dupes that's listed in the Users Logged In Today list  ;)

Oh sorry champ, I misread your question lol
Jims directions should work for you.

@ Gav-Aus
Try the attached template.

Once again Sabre™ your da man, a huge thanks to Jim as well. Thanks guys. SMF is get'n better and better
Regards
Gavin Chatt
Austeam Founder
http://austeamracing.com.au

simplebeer

#1365
Quote from: Sabre™ on September 09, 2009, 06:07:06 PM
Find this line
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
and try changing titlebg to catbg. Im pretty sure thats all it takes.
See if it works.

YES it works! thanx a lot Sabre! I could never think of this at my own!

Gr
Sorry for my poor English, but i think it's probably better then your Dutch :)

Sabre™

Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


w1z8it

Quote from: JimM on September 08, 2009, 10:17:57 PM
@w1z8it - In the code that you added to your BoardIndex.template.php

Code (Find & Delete) Select
// Showing membergroups?
if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo          '<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';

   

This code occurs twice.  Delete the 2nd occurrence of it.

I can only find 1 occurance of it.

JimM

@w1z8it - after you install the mod, there will be 2 occurrences of that code.  Install the mod as normal and then delete the second one.  Prior to installing the mod, there will only be one.  The file you posted did not have the mod installed.
Jim "JimM" Moore
Former Support Specialist

w1z8it

Quote from: JimM on September 10, 2009, 09:19:26 PM
@w1z8it - after you install the mod, there will be 2 occurrences of that code.  Install the mod as normal and then delete the second one.  Prior to installing the mod, there will only be one.  The file you posted did not have the mod installed.

Ummm I have had the mod installed since day one.

TwitchisMental

Quote from: JimM on September 10, 2009, 09:19:26 PM
@w1z8it - after you install the mod, there will be 2 occurrences of that code.  Install the mod as normal and then delete the second one.  Prior to installing the mod, there will only be one.  The file you posted did not have the mod installed.

I have the mod installed and I only see that code once.

I will attach my board index.


Sabre™

Quote from: w1z8it on September 11, 2009, 09:56:47 AM
Ummm I have had the mod installed since day one.

What Jim has stated is correct.
You may have had the mod installed when you posted your template [HERE] buddy, but as you can see it is the backup of your boardindex.template, notice the  ~ , that means it is the backup and is probably from before the mod was installed.
Looking at that template myself, there would be two occurrences of the code, although they slightly differ, which is why you'd find only one occurrence.
Try searching for  show_group_key  and you should find the other.

NBK*Twitch , can you show me a screen shot of what you're seeing plz?
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


TwitchisMental

Quote from: Sabre™ on September 11, 2009, 04:05:22 PM
Quote from: w1z8it on September 11, 2009, 09:56:47 AM
Ummm I have had the mod installed since day one.

What Jim has stated is correct.
You may have had the mod installed when you posted your template [HERE] buddy, but as you can see it is the backup of your boardindex.template, notice the  ~ , that means it is the backup and is probably from before the mod was installed.
Looking at that template myself, there would be two occurrences of the code, although they slightly differ, which is why you'd find only one occurrence.
Try searching for  show_group_key  and you should find the other.

NBK*Twitch , can you show me a screen shot of what you're seeing plz?

Sure here you go - http://i26.tinypic.com/xbl37c.png

Sabre™

Cool.
You can remove this
<div class="windowbg">
<p class="section">
<img src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['uot_users_online_today'], '" />
</p>


and a </div> at the end of this mods code.

That is for the layout as you have it now.
I've also attached your template from the previous post and have changed the code a little to have what I think is a better layout.
Try it if you like, or suggest a change etc etc :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


TwitchisMental

#1374
Quote from: Sabre™ on September 11, 2009, 07:08:58 PM
Cool.
You can remove this
            <div class="windowbg">
               <p class="section">
                  <img src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['uot_users_online_today'], '" />
               </p>


and a </div> at the end of this mods code.

That is for the layout as you have it now.
I've also attached your template from the previous post and have changed the code a little to have what I think is a better layout.
Try it if you like, or suggest a change etc etc :)
I can't seem to find that :( .

Edit: NVM what you did made it look better :D.

Sabre™

lol cool.
If you'd like any change to it, just mention where and what, and I'll see what I can do.
I only quickly brushed through your template, so there may be little changes you'd like.
If not, then enjoy buddy :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


TwitchisMental

Quote from: Sabre™ on September 12, 2009, 12:34:08 AM
lol cool.
If you'd like any change to it, just mention where and what, and I'll see what I can do.
I only quickly brushed through your template, so there may be little changes you'd like.
If not, then enjoy buddy :)
Nah it looks great now :D.

Thanks for the help :D.

frankybv

#1377
How do I install this mod for 1.1.9 and Babylon theme?
I tried somthing but no results.
Thank you.

LE: Solved. Thank you Sabre™ for suport. Don't see it was with one page before. That helps me to :D

Sabre™

Hi frankybv,
Did you upload somebody else's template?
It may cause errors to your site if you do not have the same modifications installed, and other possible errors regarding theme images etc..
Check your error log in your maintenance section of your Admin panel, and see if any are there.
I would be more than happy to edit your themes template if you like, I believe that would be best for you buddy.
But if you're happy with it, then I'm glad I could have helped :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Trashcan

Hello...  great mod!

history:
Using smf 1.1.0.
users on line today mod ver Users Online Today Mod 1.4.0 

I also have these other mods installed:
Custom Profile Field Mod 3.20   
FlashChat Integration

Issues that I need help with
Getting this error in my error logs although the mod seems to be working fine.

Undefined index: uot_users_online_today
File: /home/xxxxxx/public_html/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 418

Undefined index: uot_users_online_today
File: /home/xxxxx/public_html/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 415


so what can I do to fix the errors?

attaching my boadindextemplate file

Any help would sure be appreciated!!!

Advertisement: