Well as a temp hack untill I do my next version:

Find

<?php endif; ?>                        <label><strong><?php echo $lang_common['Message'] ?></strong><br />

post.php

After that put:

<div style="width: 400px; height: 100px; overflow: auto">

<?php

$smiley_text = array(
);
$smiley_img = 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]))

        continue;



    echo "\t\t".'    '.$smiley_text[$i];



    // Save the current text and image

    $cur_img = $smiley_img[$i];

    $cur_text = $smiley_text[$i];



    // Loop through the rest of the array and see if there are any duplicate images

    // (more than one text representation for one image)

    for ($next = $i + 1; $next < $num_smilies; ++$next)

    {

        // Did we find a dupe?

        if (isset($smiley_img[$next]) && $smiley_img[$i] == $smiley_img[$next])

        {

            echo ' <b>and</b> '.$smiley_text[$next];



            // Remove the dupe so we won't display it twice

            unset($smiley_text[$next]);

            unset($smiley_img[$next]);

        }

    }

echo "Make" . "<img src=\"/img/smilies/$cur_img\">" .  "<br />";
}

?>

</div>

Rember!

$smiley_text = array(
);
$smiley_img = array(
);

Are arrays you have to edit your self. They can be found in parser.php almost at the top.

2

(15 replies, posted in Feature requests)

Yes modding that will be easier.

I started doing it, and it is alot harder than I first though. Give me a bit please ^_^.

3

(15 replies, posted in Feature requests)

I never even relized this wasn't a feature. Well if looks don't matter to you I should have a mod for you by the end of the day  tomorrow.

(7/25/05 6:00pm ECT)

Connorhd wrote:

bit dirty tongue iframes aren't allowed, but does the job i guess

What do you mean by "they aren't allowed?"

I am working on another version that will take them out of the iframe (probably) and make them all clickable.

5

(4 replies, posted in PunBB 1.2 troubleshooting)

Thanks!

I messed up <text area> and <textarea> >_<

6

(4 replies, posted in PunBB 1.2 troubleshooting)

Gizzmo wrote:

and you are right the file is post.php the textarea input is on line 494

<label><strong><?php echo $lang_common['Subject'] ?></strong><br /><input class="longinput" type="text" name="req_subject" value="<?php if (isset($_POST['req_subject'])) echo pun_htmlspecialchars($subject); ?>" size="80" maxlength="70" tabindex="<?php echo $cur_index++ ?>" /><br /></label>

Umm ... where? I need the text area for the actual post.

Thanks for the other though!

7

(4 replies, posted in PunBB 1.2 troubleshooting)

I can't seem to the two files that I need badly.


The first is the file that controls the links at the top. Anyway know what the name of this files is?

The second is the file that actuall has the <text area> tag for posting. i have looked through post.php and I can find <imput id = "post" ......  but I cant find the actual <text area> tag.


Thanks for any help smile.

>_<

You find the first code in post.php. Sorry for not being clear.

This is easy so I wont bother with a download:

Step 1:
Find:

<li><a href="help.php#smilies" onclick="window.open(this.href); return false;"><?php echo $lang_common['Smilies'] ?></a>: <?php echo ($pun_config['o_smilies'] == '1') ? $lang_common['on'] : $lang_common['off']; ?></li>
</ul>

and add:

<br />
<br />
<br />
<p>Available Smilies:</p><br />
<iframe src ="http://www.YOURDOMAIN/YOURDIRECTORY/smilies.php" width="80%"> </iframe>

Then make a file called smilies.php. Add to it:

<?php
define('PUN_HELP', 1);
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'header.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/help.php';
require PUN_ROOT.'include/parser.php';
$num_smilies = count($smiley_text);
for ($i = 0; $i < $num_smilies; ++$i)
{
if (!isset($smiley_text[$i]))
continue;
echo "\t\t".'    '.$smiley_text[$i];
$cur_img = $smiley_img[$i];
$cur_text = $smiley_text[$i];
for ($next = $i + 1; $next < $num_smilies; ++$next)
{
if (isset($smiley_img[$next]) && $smiley_img[$i] == $smiley_img[$next])
{
echo ' '.$lang_common['and'].' '.$smiley_text[$next];
unset($smiley_text[$next]);
unset($smiley_img[$next]);
}
}
echo ' '.$lang_help['produces'].' <img src="img/smilies/'.$cur_img.'"  alt="'.$cur_text.'" /><br />'."\n";
}
?>

Upload smilies.php to your main forum directory and viol! Your done!


Example: http://www.fatessong.com/forums/post.php?fid=2