View Full Version : Emoticon Problems
Bryan
10-27-2005, 03:37 PM
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:
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! :D
Patrick
10-27-2005, 05:37 PM
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.
Patrick
10-29-2005, 06:55 PM
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.
Bryan
11-02-2005, 04:30 AM
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.
Patrick
11-05-2005, 10:57 AM
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):
$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:
$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.
Bryan
11-12-2005, 04:50 AM
Hey thanks so much, it worked perfectly! :D
Powered by vBulletin™ Version 4.0.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.