Support Forum

Changing popup in sp_UnreadPostsInfo

BR Brandon
Brandon
Member

Thought I would ask this here in the case that it can help others.

To change the most recent posts link/icon from doing a popup to displaying it on a forum page you can use popup=0. So I changed the original:

sp_UnreadPostsInfo('tagClass=spRight spUnreadPostsInfo&spanClass=spLeft&iconClass=spLeft spIcon', __sp('%COUNT% topics with<br />unread posts'), __sp('Most recent topics with unread posts'), __sp('Mark all topics as read'));

To this:

sp_UnreadPostsInfo('tagClass=spRight spUnreadPostsInfo&spanClass=spLeft&iconClass=spLeft&popup=0 spIcon', __sp('%COUNT% topics with<br />unread posts'), __sp('Most recent topics with unread posts'), __sp('Mark all topics as read'));

 

Which works and a regular page is shown and not the popup when the icon is clicked.

The issue I have is that afterwards the icons sp_UnRead.png and sp_markRead.png are too close together. In inspecting the differences I see the Icons in the original div has this:

<img alt="" title="Most recent topics with unread posts" src="http://websitena,e.com/wp-content/sp-resources/forum-themes/Theme/images/sp_UnRead.png" class="spLeft spIcon vtip">

In the changed one it is:

<img alt="" title="Most recent topics with unread posts" src="http://www.Websitename.com/wp-content/sp-resources/forum-themes/Theme/images/sp_UnRead.png" class="spLeft vtip">

As you can see there is no spIcon in the class so naturally no styling for them in the SP theme.

So should the popop=0 be somewhere else or is something else up?

As a side note… There is also no breadcrumb for newposts when not using a popup this way.

No answers yet

Be the first to answer. A good reply helps the whole community.

Log in to reply