2 personman Jun 01, 2005 20:30

Hi this is the code in the display page which I have modifed to suit my needs:
<?php // ------------------------------------ START OF POSTS ---------------------- ?>
if( isset($MainList) ) $MainList->display_if_empty(); // Display message if no post
if( isset($MainList) ) while( $Item = $MainList->get_item() )
{
/* $MainList->date_if_changed(); */
?>
<div class="bPost" lang="<?php $Item->lang() ?>">
<?php
locale_temp_switch( $Item->locale ); // Temporarily switch to post locale
$Item->anchor(); // Anchor for permalinks to refer to
?>
</div>
<h2><?php $Item->issue_date('d.m.Y'); ?> - <?php $Item->title(); ?></h2>
<div class="bText">
<?php $Item->content(); ?>
<?php link_pages() ?>
</div>
<?php } // ---------------------------------- END OF POSTS -------------------------- ?>
The url the problem can be seen on is:
oops - slightly wrong there - tere should not be a php tag terminator "?>" on the "Start of posts" comment line.
I see what's happening. The :p in mailto:paul. . . is getting turned into a smilie. Try posting with smilies turned off.
hi - the smilies box on my admin screen is ticked and greyed out so I cannot change it. Can this be done in one of the plugin/config files?
Yes, that's right. Go to plugins/renderers/_smilies.renderer.php and set it to
var apply_when = 'opt-out';
Hi - that works fine and will do me. I have set it to opt-in as I doubt if smilies will ever be used on this site. Thanks for your help.
p.s. is this a bug?
I would call this a bug. The smilies plugin should detect whether or not a : P or : D or whatever is a part of a tag.
I've had problems with D&D (as in dungeons and dragons) getting turned into D&D and then into D& :D, but just never bothered to fix it since you can work around it pretty easily.
Thanks, guys, for asking and answering this question. I've been so frustrated with this problem today and now it's fine.
Rachel
skinnybloke wrote:
Hi - that works fine and will do me. I have set it to opt-in as I doubt if smilies will ever be used on this site. Thanks for your help.
p.s. is this a bug?
can you provide a link to the page where this is happening?