Posts: 49
Threads: 13
Joined: Jul 2010
Created a custom smiley. I created the GIF and saved it over the "confused.gif". The new smiley is a
happy pterodactyl.
It still has the tag "confused" when it appears in the comment box before it's submitted. Is there an easy way to edit the tag
Posts: 535
Threads: 31
Joined: Jul 2010
Editing and adding smilies is a little complicated currently. If people really want to change it, I could write a tutorial. To change the text, go to "comments/includes/functions/processor.php", find the function 'comment_add_smilies', find the line with the ':confused:' line and change the title and alt attributes.
I'm giving you three guesses...
Posts: 49
Threads: 13
Joined: Jul 2010
Found the line and made the changes but it's not reflecting the change. Can you check to see if it's not cached properly?
http://www.societygonewild.com/emptypitchers/
Here's the edited code:
if ($enabled_smilies_confused) {
$comment = str_ireplace(":yellowpterodactyl:", "<img src='" . $url_to_comments_folder . "images/smilies/yellowptack.gif' title='Yellow Ptack' alt='Yellow Ptack' style='" . $smiley_styling . "'/>", $comment);
Posts: 535
Threads: 31
Joined: Jul 2010
Leave :yellowpterodactyl: as :confused: for now.
I'm giving you three guesses...
Posts: 49
Threads: 13
Joined: Jul 2010
Posts: 535
Threads: 31
Joined: Jul 2010
No, I meant to say that
PHP Code:
<?php
if ($enabled_smilies_confused) {
$comment = str_ireplace(":yellowpterodactyl:", "<img src='" . $url_to_comments_folder . "images/smilies/yellowptack.gif' title='Yellow Ptack' alt='Yellow Ptack' style='" . $smiley_styling . "'/>", $comment);
should be
PHP Code:
<?php
if ($enabled_smilies_confused) {
$comment = str_ireplace(":confused:", "<img src='" . $url_to_comments_folder . "images/smilies/yellowptack.gif' title='Yellow Ptack' alt='Yellow Ptack' style='" . $smiley_styling . "'/>", $comment);
but that will only change it in the comment itself.
If you change it back to :yellowpterodactyl: and edit this in "includes/template/form.php" on lines 402-404 to be
PHP Code:
<?php if ($enabled_smilies_confused) { ?>
<img src="<?php echo $path_to_comments_folder . "images/smilies/confused.gif";?>" title="Yellow Ptack" alt="Yellow Ptack" class="smiley_image" onmousedown="addTags('',':yellowpterodactyl:')"/>
<?php } ?>