WebmasterSite.net

displaycats.php
this file is throwing off template.

Version: 5.0.52
URL:

PrintPrint


displaycats.php
sparkalina
Forum Regular

Usergroup: Customer
Joined: Nov 25, 2003

Total Topics: 69
Total Posts: 198
quote post #1
Posted 06/19/09 - 5:56 PM:

Approximately around line 252-256 I found this code in includes/displaycat.php


$template_linksbody = '<td></td>'; // make it validate
$tmp = strtolower($firsttype) . 'linksbodybase';
$$tmp = '<td></td>';



It renders when there are no topics in the forum as :


There are no topics in this forum.

<td></td>
</table>


That breaks my template if there are no topics. I can't find the closing table tag to remove it either. I'd rather allow clients to submit their topics rather than create ones for the sake of breaking code, but I will if you aren't going to be spending time on the forum in the near future.
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7604
quote post #2
Posted 06/23/09 - 2:23 PM:

I don't know what you posted since it somehow broke the forum. "There are no topics in this forum" will show whenever there are no topics in the forum, though. Do you have some sort of situation where you don't want to show that even though there aren't any topics in the forum? Please explain.

Update: fixed your post through phpmyadmin. So the issue is the table closing tags?

Edited by Paul on 06/23/09 - 2:39 PM
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7604
quote post #3
Posted 06/25/09 - 5:19 AM:

Solution: in the show topics in forum template, replace

<IF {FORUMLINKSHERE} is 0>

{LANG_SHOWLINKS_EMPTY}

<OTHERWISE>

<table width="100%">

[INSERTFILE=linkcolumnsbit]

</IF>

<!-- BEGIN REGULAR TOPICS -->

[INSERTFILE=linkbit]

<!-- END REGULAR TOPICS -->

</table>
with
<IF {FORUMLINKSHERE} is 0>

{LANG_SHOWLINKS_EMPTY}

<OTHERWISE>

<table width="100%">

[INSERTFILE=linkcolumnsbit]

<!-- BEGIN REGULAR TOPICS -->

[INSERTFILE=linkbit]

<!-- END REGULAR TOPICS -->

</table>

</IF>

 
Search thread for
Download thread as


Sorry, you don't have permission to post. Log in, or register if you haven't yet.