TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

June 26, 2024, 01:47:42 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,280
  • Total Topics: 21,227
  • Online today: 203
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 205
  • Total: 205

0.7.5 bug: membercount

Started by Moocat, October 27, 2005, 07:52:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Moocat

Member  ForShadow       October 18, 2005, 05:31:16 PM
IP address xx.xxx.xxx.xx       session 32ebe4b90b82dc38b48afcce27c7e2ee
URL http://www.orbisfornax.com/forum/index.php

message
8: Undefined index: memberCount
File: /home2/xxxxxxxx/public_html/forum/Themes/default/TPortalBlocks.template.php (eval?)
Line: 332

i have 101 pages of this error. any ideas?

TP 0.7.5
SMF RC1

only mods installed besides tp is vWarn and KarmaDescription.

Moocat

the errors go for about 10 pages of one member, then it starts with the error for another member.

borgBOB

That liiks like a session id, or session cookie, I think bloc revised some code to fix that problem.

IchBin

It might help if you follow the posting guide lines too...

http://www.tinyportal.net/smf/index.php?topic=581.0

bloc

The memberCount value is the number of members( :) ) , that in later versions of SMF was changed to totalMembers.

I have added code to check for both..but I will check again.

Moocat

#5
sorry for not following the guidelines i'll change it.

i still don't have a solution.. is there anywhere i should change code to fix it? or is an issue with the new version of tp and i should wait for a fix?

thanks

IchBin

Not a problem Moocat, it's just that it helps if you tell us what versions of stuff you have. :) I'm assuming Bloc will get back to you on this since he's checking his code.

bloc

Moocat, do you ahve this code in your TPortalBlocks.template?

       if(isset($context['TPortal']['userbox']['stats']))
   // add stats in here
            echo '
                  <hr /><img src="'.$settings['images_url'].'/icons/members.gif" style="margin: 0;" align="bottom" alt="" />
                 <a href="'.$scripturl.'?action=mlist"><b>'.$txt[19].'</b></a>
                 <br />'.$bullet.$txt[488].': ' , isset($modSettings['totalMembers']) ? $modSettings['totalMembers'] : $modSettings['memberCount'] , '
                 <br />'.$bullet.$txt['tp-latest']. ': <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '"><b>', $modSettings['latestRealName'], '</b></a>';

Moocat

#8
the last line you gave me there looked like this in my file
<br />'.$bullet.$txt[656]. ': <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '"><b>', $modSettings['latestRealName'], '</b></a>';

the only thing that is different is the txt[656] thing so i changed it to ['tp-latest'] as in your code
immediately after doing that, this error began to show up! rofl



Matt       Today at 03:56:47 PM
IP address xxx.xxx.xxx.xx                       session 2898febb4149fc90be43c878033cb10a
URL http://www.orbisfornax.com/forum/index.php?action=admin

message
8: Undefined index: tp-latest
File: /home2/xxxxxxxx/public_html/forum/Themes/default/TPortalBlocks.template.php (eval?)
Line: 567



the url part of the error varies in these 3 forms (so far) "index.php?action=forum" and "index.php"

it appears on every page move or refresh

bloc

You need to add this to TPortal.english.php:

$txt['tp-latest'] = 'Latest';