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

You are not logged in.

#1 2009-07-22 14:52:47

Registered: 2008-05-22
Posts: 42

Easy BBCode with Flux 1.4

I've been using Rickard's Easy BBCode mod for a while and it works with 1.4b1.

Since the new parser was implemented in rev 1075, smilies don't show up in the related areas. Being PHP illiterate I haven't been able to get it working.

I think this is the relevant bit of code from the mod but could be wrong.


// Display the smiley set
require_once PUN_ROOT.'include/parser.php';

$smiley_dups = array();
$num_smilies = count($smiley_text);
for ($i = 0; $i < $num_smilies; ++$i)
    // Is there a smiley at the current index?
    if (!isset($smiley_text[$i]))

    if (!in_array($smiley_img[$i], $smiley_dups))
        echo "\t\t\t\t\t\t\t".'<a href="javascript:insert_text(\''.$smiley_text[$i].'\', \'\');"><img src="img/smilies/'.$smiley_img[$i].'" width="15" height="15" alt="'.$smiley_text[$i].'" /></a>'."\n";

    $smiley_dups[] = $smiley_img[$i];


Is this an easy fix or should we just wait until the code for 1.4 has been finalized?

Last edited by trichome (2009-07-22 17:21:33)


#2 2009-07-22 14:58:38

Lead developer
From: Germany
Registered: 2008-05-13
Posts: 6,719

Re: Easy BBCode with Flux 1.4

I suggest to wait since the parser might still be changed.

This will probably be one of the first mods to be updated. | develoPHP

"As code is more often read than written it's really important to write clean code."


#3 2009-07-23 21:56:51

Registered: 2008-05-22
Posts: 42

Re: Easy BBCode with Flux 1.4

Alright sounds good.

Guess I shouldn't be on the bleeding edge with so little PHP knowledge... the new features, like ordered lists are pretty hard to resist though. smile

Thanks for all the work put into 1.4 thus far!


Board footer

Powered by FluxBB