• Welcome to Simple Machines Community Forum. Please login or sign up.
September 19, 2021, 07:49:03 PM

News:

SMF 2.1 RC4 has been released! Try it out and help us test! :) Read more.


User On Line Today Error

Started by Zalvador, July 29, 2008, 02:24:57 PM

Previous topic - Next topic

Zalvador

July 29, 2008, 02:24:57 PM Last Edit: August 11, 2008, 01:38:22 PM by Zalvador
SMFv2 beta 3.1

User On Line Today Error

I seaarched the SMF 2.x Support Section And found only one topic with a problem with a type of User On Line Today  However it doesn't seem to be related to mine.

I also searched the net and came up with some SMF url's to topics for older version that had some similar problems.

However the fix for the older version did not apply to the SMFv2 beta 3.1
The main resolve I saw for the older versions of SMF was to ensure that the files had the <?php at start and ?> at the end.

Each file I have has these codes.

Is there a resolve for this error for SMFv2 beta 3.1

Running only two Modifications:
Users Online Today
DeInCreasePostBox

Modification: Users Online Today Mod - Carceri
Version: Users_Online_Today_1.5.2.zip

0's in url link are just that, 0's to kill link As it just goes to the Admin section that only Admins of the forum can go to.
Quotehttp://000000000000.net/forum/index.php
8: Undefined index: uot_yesterday
File: /home/james2/public_html/forum/Sources/Subs-MembersOnlineToday.php
Line: 135

Scripted line Error:
Quote==>135:       $yesterday = $userday == $loginday ? '' : $txt['uot_yesterday'   

Full Script:
Quote132:       // Generate the text to hover over the user name
133:       $userday = strftime('%d', forum_time(true));
134:       $loginday = strftime('%d', forum_time(true, $row['last_login']));
==>135:       $yesterday = $userday == $loginday ? '' : $txt['uot_yesterday'];
136: 
137:       $last_login_txt = $yesterday . strftime($time_fmt, forum_time(true, $row['last_login']));
138:       $title = ' title="' . $last_login_txt . '"';
139:

Thank you in advance for any help that is offered

Zal

metallica48423

Theres a support topic for this mod located here: http://www.simplemachines.org/community/index.php?topic=55513.0

The mod's author and maintainer is the best point of contact for mod-related inquiries.  Thanks
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you   
Search
Settings Repair Tool
     

Zalvador

Thanks for the link. Some how I must of over looked it in my search.

Zal

Zalvador

Thanks again for the link. It was one of the ones I had found earlier that seem to have no reslove for the version of SMFv2 beta 3.1  that I am running. But again thank you for the direction and quick reply

Zal

metallica48423

hopefully they can find the problem

Though, i suspect now that its not so much a problem with the mod but rather with language strings

What language are you using in admin => server settings?
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you   
Search
Settings Repair Tool
     

Zalvador

August 02, 2008, 12:41:46 PM #5 Last Edit: August 02, 2008, 04:10:33 PM by Zalvador
Thank you for your attention on this issue. I am using the

English ISO-8859-1 21 en_US       on the graphics forum

I have a backup testing forum ready to go, to test any ideas some one might have.




greyknight17

Can you confirm if UsersOnlineToday.english.php is located in /Themes/default/languages? Make sure it's not an empty file....

Zalvador

It is there and has script in it.

Quote<?php

$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';

?>

Both these files contain the same script and text
UsersOnlineToday.english.php
UsersOnlineToday.english-utf8.php


Rumbaar

I never understand why people edit out their links, it does help us, help you.  But I just looked at your forum, and yes you are using plain English and the file is there /Themes/default/languages/UsersOnlineToday.english.php.  I even tried it in the default CORE theme.

What edits have you made to your 2.x BoardIndex.template.php file?  As it appears to be different in both default and custom themes you are using.  This might be an issue.
"An important reward for a job well done is a personal sense of worthwhile achievement."


[ Themes ]

Zalvador

August 11, 2008, 12:00:51 AM #9 Last Edit: August 11, 2008, 12:16:56 AM by Zalvador
I edited out the link out of not paying attention. For some reason I was thinking it went to my admin penel. After reading your reply I went back and looked. Foolish me.

I did not edit my 2.x BoardIndex.template.php file The theme I put together is based on using the Original 2.x BoardIndex.template.php file in the Default theme folder. I only added the custom theme after the post was originally posted some time around the 6th or 7th. At that time I added one more Mod AvatarOnBoard

All edits are to the SageGreyIs theme index.template.php style.css dropmenu.css other than that all the files are intact.

But the error-ed started back before the theme was added.

Rumbaar

Firstly I meant a link to the forum.  But either way even an admin link will redirect a non-admin to the login screen.  The paths are the same on each board anyways from the action array upwards.

Can you attach the whole file in question Subs-MembersOnlineToday.php and UsersOnlineToday.english.php.  Do you only get the error when you access the AdminCP area?  Was it always happening?  Just after installation of the mod?
"An important reward for a job well done is a personal sense of worthwhile achievement."


[ Themes ]

Zalvador

This was the first mod I added back in mid July. From day one I started getting the errors on the members.  One day it was this members and the next day it was that members. No rhyme or reasoning on which members it error-ed on. That was running just the default theme with no mods.

Added is the two files that you asked for.






Rumbaar

If you move the following to Modifications.english.php does it remove the error?
$txt['uot_yesterday']='Yesterday at ';
"An important reward for a job well done is a personal sense of worthwhile achievement."


[ Themes ]

Zalvador

Before I edit this file. Would I want to edit it in the order it is installed. and also would I want to place a copy of this file in the custom theme too

I attached the file.

Rumbaar

Just add it anywhere before the closing ?> on a separate line.

Also are you running 2.0 BETA 3 or 3.1 of this mod, as there are two version of this mod one for 3.0 and one for 3.1.  Not sure of the difference though.
"An important reward for a job well done is a personal sense of worthwhile achievement."


[ Themes ]

Zalvador

version 1.5.2 is for 2.0 Beta 3.1 and that is the one I am using.

Ok here is where I am not clear. I probably I don't have the back ground as you do. So for give me if this is a tad weak.

At http://www.w3schools.com/css they say an action must have a title so to speak.

So understand adding the action would be like this.
// UsersOnlineToday
$txt['uot_yesterday']='Yesterday at ';

But after reading your suggestion. Would I just add it like this.
$txt['uot_yesterday']='Yesterday at ';





Rumbaar

Just add that line as I posted it, and you'll be fine.  Use a decent text editor like Notepad++, download to your computer. Edit. Reupload.
"An important reward for a job well done is a personal sense of worthwhile achievement."


[ Themes ]

Zalvador

Thanks I will try that. Will see how it works in the next 24 hrs.

I do use notepad ++ nice fast little program

Thanks agian for your help

Zalvador

This issue seems to be resolved.

Rumbaar solution worked

Thank all of you for all the help.

Zal

Rumbaar

Well it seems it might be a design flaw of the mod, though when I installed it on my test system didn't get the error.  Doesn't seem to be finding the $txt[] call to the mods custom language file from that source file.  Can you raise this with the author as well.
"An important reward for a job well done is a personal sense of worthwhile achievement."


[ Themes ]

Advertisement: