Webmastersite.net
Register Log In

upgrade 3.12 to 3.15
old category view templates don't work right

Comments on upgrade 3.12 to 3.15

gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
Posted Apr 21, 2005 - 10:52 AM:

I left my own 3.12 template set and upgraded everything to 3.15
On the category view get this error:

Line #799: </td>
Line #800: </tr>
Line #801: </table>
Line #802: <?php if ( || 1) { ?>
Line #803: <p>[<a href="http://www.ibsteam.net/wsnlinks/bulkedit.php?catid=2">Bulk edit/delete links from this category</a>]</p>
Line #804: <?php } ?> <?php if ("") { ?>


Looks like you don't have bulk edit option of the displaylink.tpl page.. what exactly changed? I had to take out the

<IF{CATISMODERATOR} or {THISMEMBERISADMIN}>
<p>[<a href="bulkedit.php?catid={CATID}">Bulk edit/delete links from this category</a>]</p>
</IF> <IF {CATISMODERATOR}>
<p><a href="modcp.php">Moderator Control Panel</a> ({CATUNVALIDATEDLINKS} links and {CATUNVALIDATEDCOMMENTS} comments pending validation)</p>
</IF>
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 21, 2005 - 10:21 PM:

The 3.15 template has

<IF {CATISMODERATOR} or {THISMEMBERISADMIN}><p>[<a href="bulkedit.php?catid={CATID}">Bulk edit/delete links from this category</a>]</p></IF>

<IF {CATISMODERATOR}><p><a href="modcp.php">Moderator Control Panel</a> ({CATUNVALIDATEDLINKS} links and {CATUNVALIDATEDCOMMENTS} comments pending validation)</p></IF>

and produces no error. So I don't see how that can really be your problem. You must have some other problem you accidentally fixed in removing that.
gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
Posted Apr 22, 2005 - 7:03 AM:

Yeah, I see you have the code now - looked in the wrong templaterolling eyes
I'll have to look some more comparing yours from 3.15 and mine.. kinda weird it floated up this way.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 23, 2005 - 2:31 PM:

Sure you overwrote classes/category.php? It looks to me like it's logically impossible for {CATISMODERATOR} to return anything but 0 or 1.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.