News: February 16th, 2020, The Tinyportal team is pleased to announce the release of ~~ TinyPortal 1.6.5! GET IT NOW!!!

Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

April 02, 2020, 10:37:43 AM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 189572
  • Total Topics: 20808
  • Online Today: 625
  • Online Ever: 917
  • (January 21, 2020, 09:02:26 AM)
Users Online
Users: 0
Guests: 47
Total: 47

Author Topic: Undefined index: mystart ??? on my forum after installing TinyPortal  (Read 10633 times)

0 Members and 1 Guest are viewing this topic.

verbam

  • Guest
Hello, first off all GREAT WORK this portal!

I hope you can help me with this problem:
Installation:
Forum VerBam | Powered by SMF 1.0.2.
© 2001-2005, Lewis Media. All Rights Reserved.
TinyPortal v.0.4 beta by Bloc

Problem in:
Maintenance Controls
Forum Maintenance
View Forum Error Log -->

8: Undefined index: mystart
File: c:\_verbamsrv\verbam\smf\Themes\default\TPortalBlocks.template.php (eval?)
Line: 15

Can somebody help me out off this?
Before TinyPortal, i have checked and found NO problems

Thanks
Danny V

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: Undefined index: mystart ??? on my forum after installing TinyPortal
« Reply #1 on: February 19, 2005, 01:56:06 PM »
I have the same error. I'm sure Bloc will check it out when he gets a chance. I have feeling he'll be updating the portal soon anyway.

verbam

  • Guest
Re: Undefined index: mystart ??? on my forum after installing TinyPortal
« Reply #2 on: February 19, 2005, 02:21:23 PM »
Thanks !
The only thing is that this gives me too much errors in my database and it is now difficult to see if there is something else who go wrong.

I will wait and in mean time try to disable the error logging

Danny V

verbam

  • Guest
Re: Undefined index: mystart ??? on my forum after installing TinyPortal
« Reply #3 on: February 19, 2005, 03:16:01 PM »
Found the problem:
In the file : TPortal.template.php
on line 13 add next:             $context['TPortal']['mystart']=0;
This will remove the error from our forum, untill Bloc find another solution.
The rest off my forum + portal seems to be ok now.

So the first 20 lines off the sourcecode will be as follows:

<?php
// TPortal template - for frontpage.

function template_main()
{
        global $context, $settings, $options, $txt, $scripturl, $modSettings;

         if($context['TPortal']['front_type']!='singlepage' && $context['TPortal']['boardnews']!=''){
            // find number of pages
            $pages=ceil(sizeof($context['TPortal']['boardnews'])/$context['TPortal']['frontpage_limit']);
            $cou=0;
            $scou=0;
            $context['TPortal']['mystart']=0;
            foreach($context['TPortal']['boardnews'] as $news){
              if($cou<$context['TPortal']['frontpage_limit']){
                  if($scou>$context['TPortal']['mystart'] || $scou==$context['TPortal']['mystart']){
                       $cou++;
                       $show=true;
                  }
                  else



CU Arround

Bjørn

  • Guest
Re: Undefined index: mystart ??? on my forum after installing TinyPortal
« Reply #4 on: February 19, 2005, 03:29:55 PM »
Yes, thats how to get rid of the errors. Declare the variable.Thank you. :)

verbam

  • Guest
Re: Undefined index: mystart ??? on my forum after installing TinyPortal
« Reply #5 on: February 19, 2005, 04:06:09 PM »
I hope i did it well.

next error that i have found ....

If you do NOT login & go to a topic with attachment TRUE the TPortal (who shows the articles for guest) then the login screen appears.... -->OK

THE ERROR:
now i login ..... --> and get again the login screen ... --> login again... --> go to the topic & try to download attachment ... --> GET again the login screen

TEMPO SOLUTION
do not allow guest to see topics in the TPortal
then you have to login BEFORE you can see the topic with attachment


CU (will try to find this error)

verbam

  • Guest
Re: Undefined index: mystart ??? on my forum after installing TinyPortal
« Reply #6 on: February 19, 2005, 04:22:32 PM »
maybe you get angry with me, but i am testing your Portal today and found next:

Colored text in an article say's : "New features are as follows:" instead: "New features are as follows:"


verbam

  • Guest
Re: Undefined index: mystart ??? on my forum after installing TinyPortal
« Reply #7 on: February 19, 2005, 04:25:25 PM »
meaning in the portal =
Code: [Select]
[color=Orange]New features are as follows:
instead:
New features are as follows:"

Bjørn

  • Guest
Re: Undefined index: mystart ??? on my forum after installing TinyPortal
« Reply #8 on: February 19, 2005, 05:27:46 PM »
I hope i did it well.

next error that i have found ....

If you do NOT login & go to a topic with attachment TRUE the TPortal (who shows the articles for guest) then the login screen appears.... -->OK

THE ERROR:
now i login ..... --> and get again the login screen ... --> login again... --> go to the topic & try to download attachment ... --> GET again the login screen

TEMPO SOLUTION
do not allow guest to see topics in the TPortal
then you have to login BEFORE you can see the topic with attachment


CU (will try to find this error)

This error is caused by the way SSI.php works, which is part of the forum. If there is a mix of topics that both have attachments and not attachments, there is no way(without adding a rather complex sql query) to know what topics are which. And its logical too..the attachment is closed for guests - you need to login to see it. 

Bjørn

  • Guest
Re: Undefined index: mystart ??? on my forum after installing TinyPortal
« Reply #9 on: February 19, 2005, 06:22:25 PM »
meaning in the portal =
Code: [Select]
[color=Orange]New features are as follows:
instead:
New features are as follows:"
Not sure what you mean here.