MyBB Community Forums

Full Version: After upgrade from 1.8.7 to 1.8.8 Smilies & PM icons not showing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Hello Guys !

Today I was upgraded my forum from 1.8.7 to 1.8.8. After that I noticed, PM icons in Message boxes are not showing and Smilies in "New Thread" Smilies box are disappear.


Screenshots:-

PM Image Problem >>

[Image: C8YfkCxm.jpg]


Inspect element shows image path only. Not showing image>>

[Image: qReR6wdm.jpg]
*I replaced my board url to "w w w . m y f o r u m . c o m" in Screenshot for posting here.


Smilie box Problem >>

[Image: o52oJk7m.jpg]


Inspect element not showing anything about Smilie images>>

[Image: gZWicPDm.jpg]



Thanks !
Hi, I think I might be able to help you with this one. We are also having many issues with the forum after the upgrade, including the one you posted about.

It seems that the problem is cause by changes in private.php which is in the root directory of the forum. After comparing the 1.8.7. and 1.8.8. files, I noticed there is no reference (for the lack of a better word) to the icon files. So I simply copied those lines from the 1.8.7. file.

Below is a comparison of the part of the files that deal with message icons from the two versions:

1.8.7.:

		// Determine Folder Icon
		if($message['status'] == 0)
		{
			$msgfolder = 'new_pm.png';
			$msgalt = $lang->new_pm;
			$msgprefix = "<strong>";
			$msgsuffix = "</strong>";
		}
		elseif($message['status'] == 1)
		{
			$msgfolder = 'old_pm.png';
			$msgalt = $lang->old_pm;
		}
		elseif($message['status'] == 3)
		{
			$msgfolder = 're_pm.png';
			$msgalt = $lang->reply_pm;
		}
		else if($message['status'] == 4)
		{
			$msgfolder = 'fw_pm.png';
			$msgalt = $lang->fwd_pm;
		}

and

			// Determine Folder Icon
			if($message['status'] == 0)
			{
				$msgfolder = 'new_pm.png';
				$msgalt = $lang->new_pm;
				$msgprefix = "<strong>";
				$msgsuffix = "</strong>";
			}
			elseif($message['status'] == 1)
			{
				$msgfolder = 'old_pm.png';
				$msgalt = $lang->old_pm;
			}
			elseif($message['status'] == 3)
			{
				$msgfolder = 're_pm.png';
				$msgalt = $lang->reply_pm;
			}
			elseif($message['status'] == 4)
			{
				$msgfolder = 'fw_pm.png';
				$msgalt = $lang->fwd_pm;
			}


1.8.8.

		// Determine Folder Icon
		if($message['status'] == 0)
		{
			$msgstatus = 'new_pm';
			$msgalt = $lang->new_pm;
		}
		else if($message['status'] == 1)
		{
			$msgstatus = 'old_pm';
			$msgalt = $lang->old_pm;
		}
		else if($message['status'] == 3)
		{
			$msgstatus = 're_pm';
			$msgalt = $lang->reply_pm;
		}
		else if($message['status'] == 4)
		{
			$msgstatus = 'fw_pm';
			$msgalt = $lang->fwd_pm;
		}

and

			// Determine Folder Icon
			if($message['status'] == 0)
			{
				$msgstatus = 'new_pm';
				$msgalt = $lang->new_pm;
			}
			else if($message['status'] == 1)
			{
				$msgstatus = 'old_pm';
				$msgalt = $lang->old_pm;
			}
			else if($message['status'] == 3)
			{
				$msgstatus = 're_pm';
				$msgalt = $lang->reply_pm;
			}
			else if($message['status'] == 4)
			{
				$msgstatus = 'fw_pm';
				$msgalt = $lang->fwd_pm;
			}

So I changed it to this and the icons are working now:

			// Determine Folder Icon
			if($message['status'] == 0)
			{
				$msgstatus = 'new_pm';
				$msgalt = $lang->new_pm;
				$msgfolder = 'new_pm.png';
			}
			else if($message['status'] == 1)
			{
				$msgstatus = 'old_pm';
				$msgalt = $lang->old_pm;
				$msgfolder = 'old_pm.png';
			}
			else if($message['status'] == 3)
			{
				$msgstatus = 're_pm';
				$msgalt = $lang->reply_pm;
				$msgfolder = 're_pm.png';
			}
			else if($message['status'] == 4)
			{
				$msgstatus = 'fw_pm';
				$msgalt = $lang->fwd_pm;
				$msgfolder = 'fw_pm.png';
			}

and

		// Determine Folder Icon
		if($message['status'] == 0)
		{
			$msgstatus = 'new_pm';
			$msgalt = $lang->new_pm;
			$msgfolder = 'new_pm.png';
		}
		else if($message['status'] == 1)
		{
			$msgstatus = 'old_pm';
			$msgalt = $lang->old_pm;
			$msgfolder = 'old_pm.png';
		}
		else if($message['status'] == 3)
		{
			$msgstatus = 're_pm';
			$msgalt = $lang->reply_pm;
			$msgfolder = 're_pm.png';
		}
		else if($message['status'] == 4)
		{
			$msgstatus = 'fw_pm';
			$msgalt = $lang->fwd_pm;
			$msgfolder = 'fw_pm.png';
		}

Note that this not an official solution. It just worked for us so I thought I might share.

P.S. do you have any other issues after the upgrade? Like the ones mentioned here and here?
@talkbasket Your Suggestion is worked thank you very much.

But I still have Smilie box problem. Same as you mentioned in here >>
https://community.mybb.com/thread-205188.html

but I hadn't found any solution yet.
(2016-10-22, 03:06 PM)talkbasket Wrote: [ -> ]It seems that the problem is cause by changes in private.php which is in the root directory of the forum. After comparing the 1.8.7. and 1.8.8. files, I noticed there is no reference (for the lack of a better word) to the icon files. So I simply copied those lines from the 1.8.7. file.
Because it has been moved to the templates. Please make sure you've updated your templates (https://docs.mybb.com/1.8/install/upgrad...he-upgrade Step 3).
(2016-10-22, 03:58 PM)StefanT Wrote: [ -> ]Because it has been moved to the templates. Please make sure you've updated your templates (https://docs.mybb.com/1.8/install/upgrad...he-upgrade Step 3).

I am using Flatty Template. but I haven't any Idea how to update that?
Your link not explain that. and another thing is I was done @talkbasket suggestion. Is that suggestion, risky for security?
(2016-10-22, 03:58 PM)StefanT Wrote: [ -> ]
(2016-10-22, 03:06 PM)talkbasket Wrote: [ -> ]It seems that the problem is cause by changes in private.php which is in the root directory of the forum. After comparing the 1.8.7. and 1.8.8. files, I noticed there is no reference (for the lack of a better word) to the icon files. So I simply copied those lines from the 1.8.7. file.
Because it has been moved to the templates. Please make sure you've updated your templates (https://docs.mybb.com/1.8/install/upgrad...he-upgrade Step 3).

In our case all templates have been updated and PM icons still weren't showing.
In MY case, I've updated the templates and now I have TWO sets of icons (myBB default and the theme icons).
I don't know what happen but still smilies are not in smilies box. What can I do for that ?

I found another error>>

[ c o d e ] [ / c o d e ]

Code tag is not working correctly. That is showing only "Click to edit" and codes is not show in that code area. but editor page showing codes correctly.

I found another error again >>

[ u r l ] tag is not working too.
I think several tags are not working correctly.

Smile Finally able to sloved Tag problem.
I replace "inc/class_parser.php" from 1.8.7

but smilies box problem is still appear.
I hadn't found way to fix that Sad
(2016-10-22, 05:03 PM)talkbasket Wrote: [ -> ]In our case all templates have been updated and PM icons still weren't showing.
In this case you have haven't updated the templates properly. It works fine with the default theme (as you can see on community forum) so there is something wrong on your end.
(2016-10-23, 04:40 PM)StefanT Wrote: [ -> ]
(2016-10-22, 05:03 PM)talkbasket Wrote: [ -> ]In our case all templates have been updated and PM icons still weren't showing.
In this case you have haven't updated the templates properly. It works fine with the default theme (as you can see on community forum) so there is something wrong on your end.

The issue took too much time to resolve so we did what user Towers suggested in another thread - made a new install and replaced data in SQL tables to have users, posts etc. It solved all of the problems that we were having. Though a new issue appeared - when making a reply by using "Quick Reply" box, the new post does not automatically show even though the message appears that it was successfully posted. You can only see the reply if you refresh the page. This happens on the default theme too which hasn't been modified by us.

The only plugin installed is Google SEO.
Pages: 1 2 3