News:

SMF 2.0.19 has been released! Please update. Read more.

Main Menu

Like Posts

Started by vbgamer45, June 29, 2013, 09:29:03 AM

Previous topic - Next topic

Arantor

But it's officially still alpha and thus there are broken things in there.
No good deed goes unpunished / All helpful urges should be circumvented

I have something to say: it's better to burn out than to fade away. There can be only one.

Joker™

Quote from: Arantor Beeblebrox the First on December 24, 2013, 02:07:57 PM
While I think it's great that you're adding this, be careful about putting too much in when 2.1 not only includes likes by default, it also includes a notifications system.
Well that's nice. I've few mods in mind, but before working on them, I'd like to complete this mod in all features which I have in mind.

BTW, users using this mod are having an advantage, when they are going to port from SMF 2.0 -> 2.1, they will be carrying the likes for posts with them :).
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Arantor

Using the same table structure, eh?
No good deed goes unpunished / All helpful urges should be circumvented

I have something to say: it's better to burn out than to fade away. There can be only one.

Joker™

Quote from: Arantor Beeblebrox the First on December 25, 2013, 10:58:37 AM
Using the same table structure, eh?
I haven't went deep enough in 2.1 yet, but I'm very sure that this mod will be able to adapt to 2.1 standards either easily or hard way.

Even the upcoming update of the mod is having some nice DB structure changes.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Arantor

Well, I can guarantee the 2.1 installer is not going to investigate or try to import any itself - and I tried to make sure that the table name was different to all the other mods out there to prevent it accidentally clashing.

If you want to make the mod integrate, that's great but as a mod for 2.1 it is somewhat unnecessary and unlikely to be particularly well supportable because of the way likes works (it can, theoretically, support any other thing that wants to have likes support, e.g. gallery items)... it's complex, which is why I wanted to get the core be sufficiently generic that it could do so.
No good deed goes unpunished / All helpful urges should be circumvented

I have something to say: it's better to burn out than to fade away. There can be only one.

Biology Forums

Quote from: margarett on December 25, 2013, 08:14:11 AM
Some users do have own test forums live, or you can get the newest code from GitHub and set up your own ;)

I was hoping for a link to one that's already installed.

Joker™

Quote from: Arantor Beeblebrox the First on December 25, 2013, 09:00:40 PM
Well, I can guarantee the 2.1 installer is not going to investigate or try to import any itself - and I tried to make sure that the table name was different to all the other mods out there to prevent it accidentally clashing.

If you want to make the mod integrate, that's great but as a mod for 2.1 it is somewhat unnecessary and unlikely to be particularly well supportable because of the way likes works (it can, theoretically, support any other thing that wants to have likes support, e.g. gallery items)... it's complex, which is why I wanted to get the core be sufficiently generic that it could do so.
Sounds great :)
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

_monotiz_

Hi, thank you for the mod.

I got a error... I'm using a jquery scrollTop() in the index.template.php file for the nav bar stick like this:
http://jsfiddle.net/CriddleCraddle/Wj9dD/

It work on every sections, except in the topic display (where LikePost.js is loaded).
If I comment out the LikePost.js, everything works fine.

Can you help me?

ryan_dwight

I'm using this now on my forum and its a great mod.

Is it possible to have a list of title of the post only when you view the likes on your profile instead of the whole post because sometimes there are replies that is very long and you need to scroll to the bottom. I don't know if this has already implemented but I can't see any option to do it. And one more thing if possible like stat (ie. most liked thread or something)

Thank you for this great mod

Joker™

Quote from: _monotiz_ on January 08, 2014, 09:12:43 AM
Hi, thank you for the mod.

I got a error... I'm using a jquery scrollTop() in the index.template.php file for the nav bar stick like this:
http://jsfiddle.net/CriddleCraddle/Wj9dD/

It work on every sections, except in the topic display (where LikePost.js is loaded).
If I comment out the LikePost.js, everything works fine.

Can you help me?
Wow, nice to see someone using fiddle around. Coming back to issue, due you see any errors/warnings in console, while using your customisation with likes mod?


Quote from: ryan_dwight on January 09, 2014, 12:11:48 PM
I'm using this now on my forum and its a great mod.

Is it possible to have a list of title of the post only when you view the likes on your profile instead of the whole post because sometimes there are replies that is very long and you need to scroll to the bottom. I don't know if this has already implemented but I can't see any option to do it. And one more thing if possible like stat (ie. most liked thread or something)

Thank you for this great mod
Correct me if I'm wrong, but only list of posts subject are shown under like in profile.

Adding likes in stats sounds like a nice addon.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

ryan_dwight

QuoteCorrect me if I'm wrong, but only list of posts subject are shown under like in profile.

in my forum it is the whole reply (subject title and the body) is there any setting to set this up?

Joker™

Quote from: ryan_dwight on January 11, 2014, 05:22:48 AM
in my forum it is the whole reply (subject title and the body) is there any setting to set this up?
- What version of mod are you using?
- Link to your site with a test account :)
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

_monotiz_

Quote from: Joker™ on January 11, 2014, 04:58:05 AM
Wow, nice to see someone using fiddle around. Coming back to issue, due you see any errors/warnings in console, while using your customisation with likes mod?
Hi,
this is my code:
<script>
$(document).ready(function() {
$(document).bind("scroll", function () {
if ($(document).scrollTop() > 70) {
$("#navbar_spacer").addClass("navbar_spacer");
$("#navbar").addClass("navbar_fixed");
}
else {
$("#navbar").removeClass("navbar_fixed");
$("#navbar_spacer").removeClass("navbar_spacer");
}
})
});
</script>


The error is marked on the function scrollTop:
Uncaught TypeError: Property '$' of object [object Object] is not a function

It disappear if I comment out the LikePost.js.

Thank you.

ryan_dwight

Quote from: Joker™ on January 11, 2014, 05:28:27 AM
Quote from: ryan_dwight on January 11, 2014, 05:22:48 AM
in my forum it is the whole reply (subject title and the body) is there any setting to set this up?
- What version of mod are you using?
- Link to your site with a test account :)
version 1.2.1
test account on your PM

Thanks

Joker™

Quote from: ryan_dwight on January 11, 2014, 07:17:50 AM
Quote from: Joker™ on January 11, 2014, 05:28:27 AM
Quote from: ryan_dwight on January 11, 2014, 05:22:48 AM
in my forum it is the whole reply (subject title and the body) is there any setting to set this up?
- What version of mod are you using?
- Link to your site with a test account :)
version 1.2.1
test account on your PM

Thanks
Are there any custom edits made by you under the profile section?



Quote from: _monotiz_ on January 11, 2014, 06:30:07 AM
Quote from: Joker™ on January 11, 2014, 04:58:05 AM
Wow, nice to see someone using fiddle around. Coming back to issue, due you see any errors/warnings in console, while using your customisation with likes mod?
Hi,
this is my code:
<script>
$(document).ready(function() {
$(document).bind("scroll", function () {
if ($(document).scrollTop() > 70) {
$("#navbar_spacer").addClass("navbar_spacer");
$("#navbar").addClass("navbar_fixed");
}
else {
$("#navbar").removeClass("navbar_fixed");
$("#navbar_spacer").removeClass("navbar_spacer");
}
})
});
</script>


The error is marked on the function scrollTop:
Uncaught TypeError: Property '$' of object [object Object] is not a function

It disappear if I comment out the LikePost.js.

Thank you.
_monotiz_, give me few hrs, as I'm about to release a new version of this mod, with notification system integrated :)
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

ryan_dwight

QuoteAre there any custom edits made by you under the profile section?
You mean custom profile fields? that will be a yes

Joker™

Quote from: ryan_dwight on January 11, 2014, 08:00:57 AM
QuoteAre there any custom edits made by you under the profile section?
You mean custom profile fields? that will be a yes
Umm, if you can wait for few hrs. a new mod version is on its way, as I'm running some basic test cases which I usually runs before any of my mod release.

So, I can safely say that if I don't come across any ground breaking bug there will be new version roll out in another hour. You can try it.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

ryan_dwight

that will be great, thanks a lot

Joker™

A new version(1.3) is in place, with notification system.

Please upgrade to it, as it consists of several bug fixes as well.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Joker™

@_monotiz_,

Are you loading a separate jQuery or trying to use the one which is loaded by the 'LikePosts' mod?

The mod has faced a lot of jQuery conflicts, as there are various other mods on SMF who loads there own version of jQuery.To overcome the issue 'LikePosts' mod uses the jQuery root operator/instance($) under a different instance name(lpObj.jQRef).

So, if you are using the jQuery which loads with this mod, your code should be something like this
<script type="text/javascript">
lpObj.jQRef(document).ready(function() {
lpObj.jQRef(document).bind("scroll", function () {
if (lpObj.jQRef(document).scrollTop() > 70) {
lpObj.jQRef("#navbar_spacer").addClass("navbar_spacer");
lpObj.jQRef("#navbar").addClass("navbar_fixed");
}
else {
lpObj.jQRef("#navbar").removeClass("navbar_fixed");
lpObj.jQRef("#navbar_spacer").removeClass("navbar_spacer");
}
})
});
</script>

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Advertisement: