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 - 12:29 pm

It's fine with the default theme.

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

Ah. Good news. Let me take a close look at your theme. I will see if I can find anything...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stephen
Member
Free Members
sp_UserOfflineSmall Offline
Sep 5, 2014 - 12:45 pm

Thank you

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

PM sent...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 5, 2014 - 1:04 pm

back to post #6 I am afraid

You DO have two calls to that function in your spTopicView.php template. Look above the part you copied and pasted in this thread and you will see it. That's why you have two displays!

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stephen
Member
Free Members
sp_UserOfflineSmall Offline
Sep 5, 2014 - 1:46 pm

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

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Sep 5, 2014 - 2:06 pm

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.

Avatar
Stephen
Member
Free Members
sp_UserOfflineSmall Offline
Sep 5, 2014 - 4:47 pm

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!

Avatar
Stephen
Member
Free Members
sp_UserOfflineSmall Offline
Sep 5, 2014 - 4:51 pm

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

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

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

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
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