+ Reply to Thread
Results 1 to 6 of 6

Thread: Emoticon Problems

  1. Join Date
    Jul 2005
    Posts
    13

    Emoticon Problems

    Hey, another support question. I am having some problems with the emoticons.

    http://gtaireland.com/index.php?id=news#232 (In bottom half of post)

    The problem I am having is that they are simply not displaying...I recently upgraded to IPB 2.1.2 which is what I suspect as the problem. I don't recall smiles not displaying before this. As far as I know there are no changes to the way or place smilies are stored from IPB 2. Everything else on the script works fine. I also noticed that the URL the script tries to get the images from does not come up properly.

    EXAMPLE:
    Code:
    It comes up as:
    
    http://gtaireland.com/style_emoticons/<#EMO_DIR#>/down.gif
    
    When it should be:
    
    http://gtaireland.com/forums/style_emoticons/<#EMO_DIR#>/down.gif
    A fast reply would be appreciated. Thanks!

  2. Join Date
    Aug 2004
    Posts
    781

    Emoticon Problems

    Yeah, looks like IPB has changed some stuff around.

    I can probably fix this fairly easily and get an update for IPB out if you can provide me with a backup of your database.

    If you know how to do this you can feel free to leave out user/member, administrator, post/topic tables (obviously I do not need those) and then send the .sql file or zipped file to me via PM on this forum.

    Otherwise you will need to wait until I can get my hands on a pirated copy or a copy of the database from elsewhere.

  3. Join Date
    Aug 2004
    Posts
    781

    Emoticon Problems

    It appears that invision board has changed some of their syntax.

    Could you tell me which version of IPB you were using before you upgraded?

    The reason I ask is that I need to know in order to properly label the new classes for the script.

    For example, if you were using IPB 2.1.1 then I know that this change was applied in IPB 2.1.2, and that all versions prior to this should use the old class (the one that isn't working now).

    If you were not, then I will need to determine when the change was made. Are there any changelogs or anything included with the script? There usually are.

  4. Join Date
    Jul 2005
    Posts
    13

    Emoticon Problems

    Hmmm....

    I'm sorry, I didn't see this post - otherwise I would have replied sooner.

    I was using IPB 2.0.4 before I upgraded.

  5. Join Date
    Aug 2004
    Posts
    781

    Emoticon Problems

    Well, I can't determine when the change was made so far.

    I can't release a new version class for the forum then, since I do not want to be wrong about the version that it corresponds to.

    However, you can fix this problem yourself by editing forum-news/classes/sources/Forums/Invision_Power_Board_2.php and modifying the following:

    Change (on line 213):
    Code:
    $text = str_replace("<img src='style_emoticons/<#EMO_DIR#>/" . $current_smilie['image'] . "'", "<img src='" . $this->CONF['url'] . "style_emoticons/" . $current_smilie['set'] . "/" . $current_smilie['image'] . "'", $text);
    to:
    Code:
    $text = str_replace("<img src=\"style_emoticons/<#EMO_DIR#>/" . $current_smilie['image'] . "\"", "<img src='" . $this->CONF['url'] . "style_emoticons/" . $current_smilie['set'] . "/" . $current_smilie['image'] . "'", $text);
    I *think* that is all that has changed. I think that the single quotes have changed to double quotes and as a result the script is no longer replacing the smilies. The above change should change the IPB 2 class to look for double quotes instead of single quotes when replacing for smilies.

  6. Join Date
    Jul 2005
    Posts
    13

    Emoticon Problems

    Hey thanks so much, it worked perfectly!

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts