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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 135
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 149
  • Total: 149

Articles not displaying?

Started by bd2003, December 17, 2005, 01:23:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bd2003

No problem - I'll PM you the access... thanks, Bloc! I appreciate it....

I just know this is something stupid..
*sigh*

bd2003

Think I may have stumbled across somthing...

In TPORTAL.PHP, this code is at line 328:


  if($row['useintro'] == -1)
  $phplink = '-1';
  elseif($row['useintro'] != -1 && $mypage!=''){
  $phplink = '0';
  else
   $phplink = $row['useintro'];
     $bt[] = array(


userintro = 1
mypage = 5

It's catching on the ELSEIF" - which keeps the bt array from being populated... and the bt array is what's displayed on the page...

Am I gettin' close?

bloc

mm..not quite. I am using the "useintro" for a check...if its "-1" then its a php article, and that can't use a intro. $bt is filled anyway.

bd2003

Hmm... looked down in the merge (just below), and couldn't get anything to echo out of $t either...

I gotta scoot right now, but will look at it some more this evening...

bd2003

#14
Quote from: Bloc on December 22, 2005, 08:36:27 PM
mm..not quite. I am using the "useintro" for a check...if its "-1" then its a php article, and that can't use a intro. $bt is filled anyway.

Duh. I see what you mean now - I was lumping everything together.  I can see where it's getting populated now.

Sorry 'bout that....


Update: Verified that it's leaving TPortal_init with $context['TPortal']['boardnews'] fully loaded... now to track down where that's going...

Maybe some sleep first, tho...

bd2003

#15
Quick (and probably easy) PHP question...

With:
$context['TPortal']['boardnews'] - 1
$counter - 1
$context['TPortal']['mystart'] - 0
$context['TPortal']['frontpage_limit'] - 1
,

will $show ever be set to true in the following code?

foreach($context['TPortal']['boardnews'] as $news){
// reached the start yet?
$show=false;

if($counter > $context['TPortal']['mystart'] || $counter == $context['TPortal']['mystart']){
if($counter< ($context['TPortal']['mystart']+$context['TPortal']['frontpage_limit']))
$show=true;
}
$counter++;
}


I don't see how it could be, but....

bd2003

Okay, I've answered my own question (I think). I don't believe that the "$show" variable will ever be set to true under these conditions...

Since $mystart was always at 0, I tried commenting the nested IF condition that set $show to true, and voila! I now have articles appearing...

Not sure why $mystart isn't allowing this to work properly, though... I'll dig in the code to see what exactly it's being used for...

bloc

I have been meaning to rewrite this for some time, its not optimal and may even give wrong results.

bd2003


MGT_STC007

Funny thing this is exactly one of the issues I am haveing right now on my forum.  Thought it was just me!  I also have other issues like post icons not showing up just appears as text and not being able to post links of any kind without them becoming distorted and broken.

I'll gladly grant you access to mine Bloc.

This website is proudly hosted on Crocweb Cloud Website Hosting.