Tricked Out News

Welcome to TON. This site is dedicated to development of addons for the RavenNuke™ CMS
Follow Us:
Tricked Out Mods: Forums

 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tricked Out News with Disqus
 Goto page Previous  1, 2
 
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> Tricked Out News
View previous topic :: View next topic  
Author Message
neralex
Regular
Regular


Joined: Nov 01, 2010
Posts: 15

Reputation: 19Reputation: 19

PostPosted: Mon Dec 20, 2010 9:15 pm 
Post subject:
Reply with quote

it does not work. i try it in the next days online. the rest of the comments works fine.
  
Back to top
View user's profile Send private message
Guardian
Blingaholic
Blingaholic


Joined: Nov 03, 2009
Posts: 20

Reputation: 17.2Reputation: 17.2

PostPosted: Tue Feb 08, 2011 10:41 am 
Post subject:
Reply with quote

The problem seems to be in the comment identifier. Please note that I am using TON2.5E but it shouldn't make much difference.

In News/index.php
FIND the original comment counting code
Code:
if ($articlecomm == 1 AND $acomm == 0) {

         if ($c_count == 0) {
            $commentnum =  _COMMENTSQ . '';
         } elseif ($c_count == 1) {
            $commentnum = $c_count . ' ' . _COMMENT . '';
         } elseif ($c_count > 1) {
            $commentnum = $c_count . ' ' . _COMMENTS . '';
         }
      }

BEFORE, ADD

Code:
 if (defined('TNSL_USE_SHORTLINKS')){

      $hometext .='<a href="'.$articleurl.'#disqus_thread" identifier="News-'.$sid.'">Comments</a>';
      }else{
      $hometext .='<a href="$articleurl.'#disqus_thread" identifier="News&amp;file=article&amp;sid='.$sid.'">Comments</a>;
      }
  
Back to top
View user's profile Send private message
Guardian
Blingaholic
Blingaholic


Joined: Nov 03, 2009
Posts: 20

Reputation: 17.2Reputation: 17.2

PostPosted: Tue Feb 08, 2011 10:43 am 
Post subject:
Reply with quote

For some reason the forum is stripping some that code.
identifier= should be
data-disqus-identifier=
  
Back to top
View user's profile Send private message
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 600
Location: North Carolina
Reputation: 543Reputation: 543Reputation: 543
votes: 4

PostPosted: Tue Feb 08, 2011 10:48 am 
Post subject:
Reply with quote

In the 2.6 release, I am using Spastic Donkeys jQuery disqus code that includes the data-disqus-identifer. This should eliminate a lot of issues with it and stop conflicts with other future modules using disqus.
_________________
Tricked Out News
  
Back to top
View user's profile Send private message
Guardian
Blingaholic
Blingaholic


Joined: Nov 03, 2009
Posts: 20

Reputation: 17.2Reputation: 17.2

PostPosted: Tue Feb 08, 2011 12:24 pm 
Post subject:
Reply with quote

I'm actually adding Disqus to some other modules right now Smile
  
Back to top
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> Tricked Out News All times are GMT - 5 Hours
 Goto page Previous  1, 2
 Page 2 of 2

 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001-2008 phpBB Group
Forums ©