Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Article URL posts to Disqus comments when I preview the Article
So I just switched to Disqus comments and they are great. I just have one problem, if I preview my articles while they are pending the disqus script still runs. This has been a problem for me if I have not setup the url for the article. The discuss script runs and then the old url is put into my disqus forum causing all my comments for this article to link to the wrong url.
Does any know if there is a way to stop scripts from executing or create a good conditional tag that I can use so that this script doesn’t execute when I am previewing my articles?
Offline
Re: Article URL posts to Disqus comments when I preview the Article
Finally found a solution! I used the wet_if_status plugin. I put in the conditional <txp:wet_if_live>. Worked like a charm!
Offline
#3 2011-06-20 16:19:18
- candyman
- Member
- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: Article URL posts to Disqus comments when I preview the Article
Could be available the example cede, please? Thanks in advance.
Offline
Re: Article URL posts to Disqus comments when I preview the Article
Here you go. First download the plugin wet_if_status
Then make your code like this for your article form or wherever you have pasted your disqus code.
<txp:wet_if_live>
Disqus code here
</txp:wet_if_live>
Offline