Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Thanks displayed twice
Avatar
Stephen
Member
Free Members
sp_UserOfflineSmall Offline
Sep 5, 2014 - 6:49 am

I am seeing the "thanks" box displayed twice within each post. I'm not sure if it started happening before or after the latest updates as the forum only started to be used yesterday.

Any ideas that I can check?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 5, 2014 - 7:09 am

What do you mean by 'box'? Do you mean the part where it reports on who has thanked you for a post?
Can we have a link to a page with this on so we can see it?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stephen
Member
Free Members
sp_UserOfflineSmall Offline
Sep 5, 2014 - 7:15 am

Yes. The forum is behind membership software but I have a screenshot if that helps: 

View post on imgur.com

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 5, 2014 - 7:18 am

Is this a standard Simple:Press supplied theme or has ot been customised? And which theme is it you are using please?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stephen
Member
Free Members
sp_UserOfflineSmall Offline
Sep 5, 2014 - 7:20 am

I am using the "default" theme, copied and re-named so that a small number of customisations are not overwritten, such as removing the stats box at the bottom.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 5, 2014 - 8:17 am

So we really ought to start out by taking a look at the theme template to make sure there hasn't been any problem introduced there. So...

...can you take a look at the spTopicView.php template in the custom theme and check that the function:

sp_thanks_thanks_for_post();

is only called once? If you search for the actual call (as opposed to a 'function_exists' check then it should only appear once.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stephen
Member
Free Members
sp_UserOfflineSmall Offline
Sep 5, 2014 - 8:23 am

I have:

 

# Add Share This and/or Answers Topic to bottom of post content
# ----------------------------------------------------------------------
if (function_exists('sp_ShareThisTopicIndexTag') || function_exists('sp_AnswersTopicAnswer') || function_exists('sp_thanks_thanks_for_post')){
sp_ColumnStart('tagClass=spPluginSection spCenter&width=100%&height=40px');
if (function_exists('sp_ShareThisTopicIndexTag')) sp_ShareThisTopicIndexTag('tagClass=ShareThisTopicIndex spLeft');
if (function_exists('sp_AnswersTopicAnswer')) {
if ($spThisPost->post_index == 1) sp_AnswersTopicSeeAnswer('tagClass=spAnswersTopicSeeAnswer spButton spRight', __sp('See Answer'), __sp('Go to the post marked as the answer'));
sp_AnswersTopicAnswer('tagClass=spRight', __sp('Answers Post'), __sp('This post answers the topic'));
sp_AnswersTopicPostIndexAnswer('tagClass=spButton spRight', __sp('Mark as Answer'), __sp('Mark this post as topic answer'), __sp('Unmark as Answer'), __sp('Unmark this post as topic answer'));
}
sp_ColumnEnd();
if (function_exists('sp_thanks_thanks_for_post')) {
sp_InsertBreak();
sp_thanks_thanks_for_post();
}
sp_InsertBreak();
}
# End Share This and/or Answers Topic addition
# ----------------------------------------------------------------------

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 5, 2014 - 8:25 am

Next stage, I think, is that we really do need to see this topic. Are you able to set us up with an account so we can take a look? If so then please PM credentials to both myself and to 'Mr Papa'. Please include in the PM a link to your site, a link to this thread and brief reminder of the problem. And one of us will take a look for you.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stephen
Member
Free Members
sp_UserOfflineSmall Offline
Sep 5, 2014 - 9:36 am

Will do

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 5, 2014 - 12:16 pm

Most curious. I think it's something in the template - I can certainly see some what looks like malformed HTML but I can't yet put my finger on it.

Could you do me a favour? Could you very briefly switch to the standard, supplied 'default' theme, clear your browser cache and then run  page or two again to see if the problem persists? If it persists it will at least save me going on a wild goose chase.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625