View Full Version : Installing DisQUS for Facebook, Twitter, Comments
James
05-23-2010, 10:11 PM
This is going to assume that you have no accounts yes with DisQUS.
1. Go here: http://disqus.com/comments/register/
2. While registering fill out all the fields as this is the start of the wizard that will
walk you through the process.
3. The next page pay attention to this statemen:
Quick Setup
You can always change these settings later, so no problem if you just skip this step and continue.
So do not panic about what to choose and not choose as you can always change it.
For a quick start I unchecked the media attachement.
Checked off the askismet and entered in the key that I had already. If you
do not have one there is a link and instructions on how to obtain it.
I checked off openid login, yahoo login, trackbacks and twitter.
4. On the next page is where get to the code part.
Choose universal code
You will get 3 sets of code and instructions. We are going to focus on the first two.
The first set of code will look like (username is different of course):
Content visible to registered users only.
This is the code that will go in the article and detail tpl file.
This is simple to add and I will use the professional template for this instruction.
In the detail template find:
<tr>
<td colspan="2"> </td>
</tr>
</table>
{* Javascript for tracking link clicks *}
we are going to place the first set of code inside of this:
<td colspan="2">DSIQUS CODE HERE</td>
Now using javascript we have to use literal tags so
it is going to look like this:
Content visible to registered users only.
Notice the bold tags both the literal ones and of course the username which will be the one set up in the first step
The article tpl will be almost the same but find:
{/if}
</tbody>
</table>
at the bottom of the file
after the {/if} add:
Content visible to registered users only.
James
05-23-2010, 10:16 PM
Now for the second set if code
this will go in the footer.tpl
in the footer.tpl find
</body>
</html>
right before that you will be placing code set number 2
it will look like this again with username replaced with yours and with the literal tags in place.
Content visible to registered users only.
James
05-23-2010, 10:19 PM
Save and upload.
This is very basic to get you started. Once you have it going explore your settings
http://disqus.com/comments/settings/username/
Here you can customize it further using css.
Enable options and moderation options plus much more.
sfod_d223
05-25-2010, 09:33 PM
Will this remove the legacy/standard comments functionality for both links and articles with Version 4.0?
James
05-25-2010, 09:38 PM
No
just turn it off.
I left that part alone
am working on to where you can have either or options from in the admin area
jsut moving this week so am running a bit slow :)
sfod_d223
05-26-2010, 02:05 AM
thanks for the tips..wasn't too painful implementing this tweak.
PhilEsq
05-26-2010, 01:13 PM
If I implement this code, will I have to make the changes again after upgrading to newer versions of phpLD when they come out?
caveman
05-26-2010, 02:13 PM
Thanks for the detailed install James.
Does anyone have a running example of how this looks and works in a PHPLD?
sfod_d223
05-26-2010, 02:40 PM
If it's OK with James, here is a link to one of my link details pages on my primary directory.
http://www.113dir.com/detail/link-22579.html
and this is what a link to a submitted article and what it looks like.
http://www.113dir.com/articles/article-590.html
The good thing that I can see all of this functionality is the tool giving your links and articles another place to be exposed to. Whether that is good for SEO or traffic, I'll leave it up to you.
caveman
05-26-2010, 04:13 PM
Thanks for that. I assume you can remove the website field and 'post as guest' to discourage spammers?
Thinking about it though, why would anybody really comment on a site in a directory? I'm open to being proved wrong!
sfod_d223
05-26-2010, 04:17 PM
Content visible to registered users only.
The spamming of comments doesn't bother me as much since I have cranked of the blacklisted keywords and allow the Akismet tool to act as a firewall against the spammy comments.
Yes, you can enable and disable on the backend in the disqus admin area.
James
05-26-2010, 06:13 PM
You can disallow guests and require an user to log in with one of the provided logins
use askismet and also send all to moderation first.
so really not a spam risk
nightflyer
05-28-2010, 04:10 AM
for those of you using
Elevation template
!! editing !!
The article tpl will be almost the same but find:
{/if}
</tbody>
</table>
at the bottom of the file
after the {/if} add:
will place the box on top
instead try this!!
underneath ratings table
look for this code
{/if}
</fieldset>
</td>
</tr>
{/if}
and add after {/if}
<tr><td>YOUR CODE HERE</td></tr>
HOPE THAT HELPS
David
05-29-2010, 01:16 AM
Looking really good sfod_d2223!
I just made a couple of comments on your, and of course tweeted them as well. Seems to be working well.
annemy
05-29-2010, 07:45 AM
thanks for this tip. I had to use it on the LiveDir4 template as well.:)
Content visible to registered users only.
billmarks
06-02-2010, 03:47 PM
James. your instructions read:
The article tpl will be almost the same but find:
{/if}
</tbody>
</table>
at the bottom of the file
after the {/if} add:
Code:
But my article tpl ends like:
</table>
</form>{else} <h3> You must be <a href="{$smarty.const.DOC_ROOT}/login.php"> logged in</a> to leave a comment.</h3>
{/if}
{/if}
{/if}
{*/strip*}
{include file="footer.tpl"}:confused:
James
06-02-2010, 05:07 PM
please add your forum username to your phpld account so I can then see the url :)
caveman
07-14-2010, 10:59 AM
Not sure if it's just me of whether anyone else is having this problem but James where you have put the code examples all I see is Content visible to registered users only.
The literal code I had to Google and it is basically wrapping the <script> code around {literal} and {/literal}
Hope that helps anyone else having viewing problems. My Disqus is up and running now [bt]
David
09-26-2010, 01:13 AM
Bump! A great thing that I think everyone should try!
magicmarkuk
02-04-2011, 11:28 PM
Strangely I seem to have a problem with this running phpld 4.1
Two effects are apparent:
1. When you type in the comment box it expands by a row for every character (see http://www.androidsitesdirectory.com/detail.php?id=1)
2. Within the disqus admin panel I have checked 'Display login buttons with comment box' but these do not appear.
I have tried reinstalling the code but to no avail.
Has anyone any suggestions please?
Thanks
Mark
James
02-04-2011, 11:32 PM
Works right for me as far as posting and characters and expanding ... in regards to login might want to verify settings
magicmarkuk
02-05-2011, 09:15 AM
Hi James
Thank you for this.
Did the box expand for you when you started typing? I'm sure it should just scroll.
I have checked it on 2 PCs at my end and get the same result - as soon as I type the first letter the input box expands my a row.
Can you check again and compare it to http://www.creativesolutionsplus.com/Directory/detail/maria-kozlova-web-and-graphic-designer-in-alpharetta-ga-2046.html which seems to work ok?
I have checked the seetings for the settings for displaying the login boxes and these are checked so I'm not sure what the problem is. If useful I could post the code I added to the templates although I have checked this twice.
Thanks
Mark
magicmarkuk
02-05-2011, 02:51 PM
Looking again I seem to be missing the vertical scroll bar?
magicmarkuk
02-08-2011, 10:21 AM
I have now resolved this after sending an email to Disqus support.
The solution was to switch themes from Houdini to Narcissus and it all works!
A copy of their reply is as follows:
Content visible to registered users only.
Hope this helps anyone else who has or is installing Disqus.
Regards
Mark
magicmarkuk
03-12-2011, 10:16 PM
Next problem I have noticed is that when having DISQUS and Google Maps together on the details page there seems to be a problem in that something is trying to download (the progress bar is still moving on IE8)
You can see the effect here:
http://www.accountancystudents.co.uk/directory/detail.php?id=2
If I use the default peppermint template without DISQUS it loads normally so I guessing that it DISQUS which is causing the problem.
Has anyone else experienced this or have any ideas how to eliminate it?
Thanks
Mark
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.