I have some fixes and it works now. Changes apply to default.php Line 85, replace: $RedirectURL = Url("discussion/{$DiscussionID}#Item_{$CommentID}"); With: $RedirectURL = "discussion/{$DiscussionID}#Item_{$CommentID}";
Line 90, replace: $RedirectURL = Url("discussion/{$DiscussionID}");
hi hoang minh thang, I really appreciate your help. It works!!! one more bug I discover is after I like some post, the unlike button seems doesn't work (it keeps loading and loading) Can you help me find the solution for this? oh and i'm vietnamese too :D
one more bug is that if one person already liked the post, another one can not like it (after the second person press the like button, it just keep loading and loading)...
It's working for me, but beyond that, what is the use for it? I was looking for something to help me keep track of my "likes" as opposed to bookmarking a thread.
Comments
Line 85, replace:
$RedirectURL = Url("discussion/{$DiscussionID}#Item_{$CommentID}");With:
$RedirectURL = "discussion/{$DiscussionID}#Item_{$CommentID}";
Line 90, replace:
$RedirectURL = Url("discussion/{$DiscussionID}");
With:
$RedirectURL = "discussion/{$DiscussionID}";
Line 131, replace:
$Sender->AddJSFile($this->GetWebResource('lajkuj.js'));
With:
$Sender->AddJSFile('plugins/Lajkuj/lajkuj.js');
Line 174, replace:
$Src .= '<a href="/discussion/lajkuj/' . $Url . '">Like</a>';
With:
$Src .= '<a href="'.Url('/discussion/lajkuj/'.$Url). '">'.T('Like').'</a>';
Line 193, replace:
$Src .= '<a href="/discussion/lajkuj/' . $Url . '">Like</a> ' . $CountLikes . ' others like this.';
With:
$Src .= '<a href="'.Url('/discussion/lajkuj/'.$Url). '">'.T('Like').'</a> ' . $CountLikes . ' '.T('others like this.');
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •T('some text')for localization- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
1 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •It's working for me, but beyond that, what is the use for it? I was looking for something to help me keep track of my "likes" as opposed to bookmarking a thread.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Addendum: This works in some forums, but not others.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •