WebmasterSite.net

Register | Forgot Password

displaycats.php
this file is throwing off template.

Version: 5.0.52
printPrint


displaycats.php
sparkalina
Forum Regular

Usergroup: Customer
Joined: Nov 25, 2003

Total Topics: 60
Total Posts: 180
Posted 06/19/09 - 05:56 PM:
quote post
#1
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California

Total Topics: 64
Total Posts: 7217
Posted 06/23/09 - 02:23 PM:
quote post
#2
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 - 02:39 PM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California

Total Topics: 64
Total Posts: 7217
Posted 06/25/09 - 05:19 AM:
quote post
#3

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>


"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


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

WSN Links WSN Gallery WSN Knowledge Base WSN Forum WSN Classifieds WSN Directory WSN Software Directory