Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2013-03-14 10:35:53

Squiggles
Member
Registered: 2012-12-14
Posts: 278

Please help with slight code modification

Hey guys,

I need to add <h5> tags within the <?php ?> tags, because I have this set to only show on the first post if I put the <h5> on the outside of the php tag, the padding etc of the <h5> tag is still shown on all other posts.

I've tried a few combinations but can't get it to work successfully.

<?php if ($post_count =='1') echo pun_htmlspecialchars($cur_topic['subject']) ?>

Thanks,

Offline

#2 2013-03-14 12:23:50

Squiggles
Member
Registered: 2012-12-14
Posts: 278

Re: Please help with slight code modification

Easy fixed

<?php if ($post_count =='1') echo "<h5>" . pun_htmlspecialchars($cur_topic['subject']) . "</h5>"; ?>

Last edited by Squiggles (2013-03-14 12:25:02)

Offline

Board footer

Powered by FluxBB 1.5.7