Support Forum

Thanks displayed twice

21 Answers

New Answer

ST Stephen
Stephen
Member

Ok… so what do I need to remove? Apologies, I don’t have the first clue about coding.

IK Ike
Ike
Member

Well if you have two instances of ‘sp_thanks_thanks_for_post’ (not to be confused with ‘sp_thanks_thank_for_post’) then you need to remove one of the two calls.

The duplicate will most likely be a copy of what you already have from the code you pasted, if it’s above that I’d say it was moved but the original wasn’t deleted so it might look like:

if (function_exists(‘sp_thanks_thanks_for_post’)) {
          sp_thanks_thanks_for_post();

}

 

But if you are unsure, you can either wait for Andy to reply (who I’m guessing has access to the template) or you can paste more of your code and I can tell you exactly what you need to remove.

ST Stephen
Stephen
Member

Great, found and removed that. I still have two “thank” buttons at the top though. Which bit of code should I remove for that?

Thanks again for your help!

ST Stephen
Stephen
Member

Never mind, found it. Thanks for all your help – finally sorted!

YS Yellow Swordfish
Yellow Swordfish
Member

Excellent. Sorry I was a bit slow there – was dealing with another issue,

YS Yellow Swordfish
Yellow Swordfish
Member

You’re welcome. Glad we managed to get it sorted out.