1
koralex90
Smilies not showing up??
  • 2008/1/3 1:46

  • koralex90

  • Just popping in

  • Posts: 97

  • Since: 2005/3/15


Hi.

I recently updated my XOOPS site to 2.0.18. After doing so, my smilies stopped showing up properly. Now, only the codes to type in for the smiley to show up, appear. For example, this has the code : -D and only : -D shows up. These codes become links linking to xoopsroot/modules/mediawiki/?title=(name of smiley)
when no such folder called mediawiki exists in my modules folder.

I don't know why this is happening. Please Help!!

2
sarahmx
Re: Smilies not showing up??
  • 2008/1/3 2:21

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28



3
koralex90
Re: Smilies not showing up??
  • 2008/1/9 16:36

  • koralex90

  • Just popping in

  • Posts: 97

  • Since: 2005/3/15


I tried this method. It worked for like 10 minutes then did not work again. :(

I tried downloading the latest XOOPS 2018 final version and installing it but it still does not work. Please help!

4
sarahmx
Re: Smilies not showing up??
  • 2008/1/9 23:58

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


try clear templates_c/cache..hope this helps

5
koralex90
Re: Smilies not showing up??
  • 2008/1/10 3:04

  • koralex90

  • Just popping in

  • Posts: 97

  • Since: 2005/3/15


unfortunately it didnt work :(

6
faridelha
Re: Smilies not showing up??
  • 2008/1/15 22:41

  • faridelha

  • Just popping in

  • Posts: 22

  • Since: 2006/3/7 0


in class/module.textsanitizer.php

find :
function smiley($message)
    {
        
$smileys $this->getSmileys();
        foreach (
$smileys as $smile) {
            
$message str_replace($smile['code'], '.XOOPS_UPLOAD_URL.'/'.htmlspecialchars($smile['smile_url']).'" alt="" />'$message);
        }
        return 
$message;
    }



And replace by:


function smiley($message)
    {
        
$db =& Database::getInstance();
        if (
count($this->smileys) == 0) {
            if (
$getsmiles $db->query("SELECT * FROM ".$db->prefix("smiles"))){
                while (
$smiles $db->fetchArray($getsmiles)) {
                    
$message str_replace($smiles['code'], '.XOOPS_UPLOAD_URL.'/'.htmlspecialchars($smiles['smile_url']).'" alt="" />'$message);
                    
array_push($this->smileys$smiles);
                }
            }
        }
        elseif (
is_array($this->smileys)) {
            foreach (
$this->smileys as $smile) {
                
$message str_replace($smile['code'], '.XOOPS_UPLOAD_URL.'/'.htmlspecialchars($smile['smile_url']).'" alt="" />'$message);
            }
        }
        return 
$message;
    }

Login

Who's Online

300 user(s) are online (221 user(s) are browsing Support Forums)


Members: 0


Guests: 300


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits