Webmastersite.net
Register Log In

displaycats.php
this file is throwing off template.

Comments on displaycats.php

sparkalina
Forum Regular

Usergroup: Customer
Joined: Nov 25, 2003

Total Topics: 70
Total Comments: 211
Posted Jun 19, 2009 - 6: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

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jun 23, 2009 - 3: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?
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jun 25, 2009 - 6: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
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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