1 (edited by Ludo 2004-11-24 18:05)

Topic: smilies in topics' titles ;)

Hi,

I would like to know if it is possible to have smilies in topics' titles? If not, will it be possible with 1.2 ?

It doesn't work on my website



Ludo

Re: smilies in topics' titles ;)

that could get very annoying

Re: smilies in topics' titles ;)

It's not possible and it most likely never will be :)

"Programming is like sex: one mistake and you have to support it for the rest of your life."

4 (edited by Ludo 2004-11-24 20:36)

Re: smilies in topics' titles ;)

Connorhd wrote:

that could get very annoying

why wink ?


What about in the announcement message?

Re: smilies in topics' titles ;)

it would wreck the height of each line and just be .... ugh tongue

Re: smilies in topics' titles ;)

You can add it to the announcement message by including HTML (e.g. <img src="...">).

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: smilies in topics' titles ;)

cant you use the do_smilies() function on the topic title and announcement texts before you output it on the site? and include parser.php as well...

something like (in header.php line 196)

<table class="punmain" cellspacing="1" cellpadding="4">
    <tr class="punhead">
        <td class="punhead"><?php echo $lang_common['Announcement'] ?></td>
    </tr>
    <tr>
        <td class="puncon2">
            <?php 
                           include($pun_root.'include/parser.php');
                           echo do_smilies($pun_config['o_announcement_message']) 
                        ?><br><br>
        </td>
    </tr>
</table>

and in viewforum.php: (line 155)

if ($pun_config['o_censoring'] == '1')
    $cur_topic['subject'] = censor_words($cur_topic['subject']);

include($pun_root.'include/parser.php');
$cur_topic['subject'] = do_smilies($cur_topic['subject']);

i have not tested this myself since these are functions i would not like to have, but do they work? im not familiar enough with this forum to know if you have disabled this in some way rickard wink

Most people are other people. Their thoughts are someone else's opinions, their lives a mimicry, their passions a quotation - Oscar Wilde