Support Forum

Forum Issues

38 Answers

New Answer

IK Ike
Ike
Member

The child theme will have literally no bearing on whether an icon does or doesn’t show up unless it has been overwritten with a new icon in the child themes images folder.

Are you caching the forum page at all? Any caching plugins must omit the forum page completely as it works dynamically on one page – And any remaining cache files must be cleared.

ST Stephen
Stephen
Member

I have removed all caching from the sites as it was playing havoc with Wishlist Member. All I have done is switch from the custom theme to child version of default.

YS Yellow Swordfish
Yellow Swordfish
Member

If you grab the url of the image in question and then run that in the browser does it display?

ST Stephen
Stephen
Member

Yes – /wp-content/sp-resources/forum-themes/default/images/sp_NewPost.png

If I switch to the default theme it shows up, but not in the child theme.

MP Mr Papa
Mr Papa
Member

and what is the child theme?  just a single css file for child?  no images directories, right? making sure you have child and not a custom…

ST Stephen
Stephen
Member

I downloaded the child theme, changed the name (following the instructions) and amended the footer to remove stats. Nothing else.

There is an empty image directory which came with the child theme when I unzipped it. There’s also styles/images/ and styles/overlays/ all of which are empty. 

YS Yellow Swordfish
Yellow Swordfish
Member

Yes – they are all supposed to be empty unless you want to override anything. So – for example – if you did want to have a different icon for something then you can add it to the images folder of the child theme and it will be used in place of the one in the parent.

To be perfectly honest I can think of absolutely no reason why this icon should not display of there ave been no template changes to it. After I post this I will take another look at the code that displays it but I somehow doubt I will find a cause – after all we have exactly the same setup here – a child theme with only some minor template changes.

I will come back if I determine anything otherwise we may need to take a closer look at your setup.

YS Yellow Swordfish
Yellow Swordfish
Member

Something I did miss along the way… the icon you are actually talking about is:

sp_ForumIconPosts.png

not sp_NewPost.png. That is the one you should be looking for.

ST Stephen
Stephen
Member

That is in the forum-themes/default/images/ folder along with many more.

YS Yellow Swordfish
Yellow Swordfish
Member

So how absolutely certain are you that it is not working? Are you 100% sure that there are posts in the forum that you have not looked at? Do not forget that what you have and have not read is individually calculated for each user.

ST Stephen
Stephen
Member

I’m absolutely certain. I can see there have been posts since I last read certain sections from the timestamps as well as this in the top right:

 

topics-unread.JPG
ST Stephen
Stephen
Member

You have the login details… do you see the icons?

ST Stephen
Stephen
Member

Hrm… I just logged in with your credentials and I don’t see the icons, but I do see a completely new section underneath the main sections with new and recent posts. Never had that with the custom theme. Maybe it’s a different view for admins and I need to change a setting somewhere?

IK Ike
Ike
Member

The new section underneath or the recent post list isn’t visible to admins as default. You can change that in the template spGroupView.php, by finding the function:

sp_RecentPostList('show=10', __sp('Unread and recently updated topics'));

and adding the argument ‘admins=1’ so it would then appear:

sp_RecentPostList('show=10&admins=1', __sp('Unread and recently updated topics'));

So if you wanted to do that in your child theme you would need to start by copying the entire spGroupView.php template in to your child themes templates folder, then make the change there.

As to the icons, I’m not seeing any indication of new posts. What happens if you enable Default theme again, do the correct icons show after changing theme and doing a page refresh?

ST Stephen
Stephen
Member

Yes, if I activate the default theme the icons show up as expected.