Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [PEAR] HTML_Template_Sigma
Hi,

Cliff wrote:
> I know I have posted before with a stupid PHP problem that had nothing
> do with PEAR.
> This time, however, I have made sure it is a problem with
> HTML_Template_Sigma, as the looping works fine but the templates
> output is not working as it should.
>
> http://pearbb.net
>
> It shows one (the last) category and 0 forums, while there are in fact
> 3 categories and 5 forums.
>
> http://pearbb.net/Includes/main.phps - the code
> http://pearbb.net/Templates/1/boards.tpl - the template

Well, you never actually loop over a 'rootforums' block. You do
$global->tpl->setCurrentBlock( "rootforums" );
and after that you do
$global->tpl->parseCurrentBlock();
But between these calls you do either
$global->tpl->setCurrentBlock( "linkforums" );
or
$global->tpl->setCurrentBlock( "forums" );
therefore that parseCurrentBlock() loops over either 'linkforums' or 'forums
'.

But that's only the part of the problem, I suspect that your /* loop through
forums */ part does not work at all. I can't comment further as I do not kno
w
what junk you actually keep in the database.

> Could someone point out what I have done wrong?

You didn't get yourself a debugger. And didn't even bother to do debug outpu
t in
your scripts.

Report this thread to moderator Post Follow-up to this message
Old Post
Alexey Borzov
06-07-05 01:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Pear archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:41 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.