![]() |
Thanks BOP5, but no, it is not working totally OK.
Before you click on Like/thanks button, Pinterest icon with number shows in post. When i put mouse pointer, it shows that link is javascript:void(0) and on click popup shows like it should be. After click on thanks/like button, post refresh and Pinterest icon is change to icon without number. Click on icon open new tab, and when you put mouse pointer, I see that now is not javascript like before, but link: Code:
http://pinterest.com/pin/create/button/?url=http//:www.pijanitvor.com/showthread.php... |
Yeah, I was afraid of that... The Ajax call dbech's mod is using loads the new post, but the javascript of the showthread page was already loaded. I added the javascript code to showpost (it works fine in showpost on VB 3.8) but since it's not using the showpost as the full page the javascript isn't being loaded again.
I'm afraid I don't know how I could change this mod any further to force the javascript to reload on the AJAX call by the dbtech mod. It seems like something that would need to be initiated by their mod. Have you tried using a different location for the Pin button? It seems very weird the whole post needs to reload on a "Like." |
I tried all possible options in ACP, but result is same.
Maybe solution is to move pinterest icon in post track (where is Like button here on vBorg)? |
Quote:
It ended up being too much grief to try to manually re-insert those elements into the post on button click, when the showpost.php could do it all with less hassle. I don't know what JS code you want to load, but if you're using jQuery and its .live() or .on() functions, it works when new elements are inserted into the DOM. Fillip |
Thanks for the explanation Fillip.
I'm not using jquery or anything really- the Pinterest Pin button requires a block of javascript code to run to turn their static image into their button with counter. This code must run after all the static images have loaded. I'm not even sure running it a second time will work but I hope it would. The Pinterest JavaScript that needs to be called is this: Code:
<script type="text/javascript"> |
In that case I don't know if these mods will work together period D:
Does your mod work if someone uses Quick Edit on a post? I think that also refreshes the post. What about if someone expands a deleted post? Fillip |
No it doesn't work after a quick edit, it needs to be reloaded... Hmmm.
|
When I click the pintrest button I get the popup to post it but when I click Pin It it just reloads the popup with a black image and no description. Nothing gets posted to my pintrest account Where as on the test sites it tells you it was successful and offers you the chance to tweet it.
Any idea whats wrong? |
Not off hand, link to a thread?
|
|
All times are GMT. The time now is 01:56 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|