Advertisement:

Author Topic: Like Posts  (Read 325843 times)

Offline someDev

  • Semi-Newbie
  • *
  • Posts: 13
Re: Like Posts
« Reply #280 on: April 17, 2014, 02:21:05 AM »
I am using english
so description should work,


Code: [Select]
array()

);

while ($row = $smcFunc['db_fetch_assoc']($q))
[...]

);
what part here should i put the code?

this loop collect data about people which received likes

if you want to check if script collected data, try to uncoment line 105 on abstats4likeposts.php
Code: [Select]
echo '<pre>',print_r($likes),'</pre>';
then check stat page
and send me results :)

Offline ryan_dwight

  • Jr. Member
  • **
  • Posts: 296
Re: Like Posts
« Reply #281 on: April 17, 2014, 03:20:58 AM »
its not working either

edit: and another thing is a member who hasn't permission to view a certain board can view the titlw of this post on this stat.
« Last Edit: April 17, 2014, 03:31:01 AM by ryan_dwight »

Offline someDev

  • Semi-Newbie
  • *
  • Posts: 13
Re: Like Posts
« Reply #282 on: April 17, 2014, 03:39:14 AM »
its not working either
:(

edit: and another thing is a member who hasn't permission to view a certain board can view the titlw of this post on this stat.
any who can view stats
my script doesnt check permission, just get data direct

Offline ryan_dwight

  • Jr. Member
  • **
  • Posts: 296
Re: Like Posts
« Reply #283 on: April 17, 2014, 03:43:42 AM »
but the other stat depends to the permission right.

that will be a different issue.

any option why the blocks are empty?

thanks

Offline someDev

  • Semi-Newbie
  • *
  • Posts: 13
Re: Like Posts
« Reply #284 on: April 17, 2014, 04:00:15 AM »
but the other stat depends to the permission right.

that will be a different issue.
ill think about it

any option why the blocks are empty?

thanks
you meand this two last?

Offline ryan_dwight

  • Jr. Member
  • **
  • Posts: 296
Re: Like Posts
« Reply #285 on: April 17, 2014, 04:12:06 AM »
I dont have this as the title of each block
- most liked post
- last liked post
- top likes receiver (user)
- top likes gaver

I only have the most liked post stat but no title. The other 3 blocks are empty.

Offline someDev

  • Semi-Newbie
  • *
  • Posts: 13
Re: Like Posts
« Reply #286 on: April 17, 2014, 04:35:58 AM »
I only have the most liked post stat but no title. The other 3 blocks are empty.

i have updated mod and i left only:
- most liked posts
- users list which post are liked

and also with your suggestion i added permission check

http://www.borowicz.info/pub/smf/abStats4LikePosts.zip [nofollow]

also i submitted this mod to official http://custom.simplemachines.org/mods/index.php?mod=3859
but this will take a while

Offline ryan_dwight

  • Jr. Member
  • **
  • Posts: 296
Re: Like Posts
« Reply #287 on: April 17, 2014, 11:25:45 AM »
I tried your new update but I think the first one is better than this one.

The statpage is incomplete, the last block at the bottom is
Top Topic Starters    Most Time Online

the new registered in monthly and yearly basis is gone.

Offline ryan_dwight

  • Jr. Member
  • **
  • Posts: 296
Re: Like Posts
« Reply #288 on: April 18, 2014, 04:13:43 AM »
here's the file

thank you

Offline Dblog

  • Jr. Member
  • **
  • Posts: 153
  • Gender: Female
Re: Like Posts
« Reply #289 on: May 23, 2014, 02:09:51 PM »
Is LIKES visibility to guest possible ?

Offline jlt1

  • Semi-Newbie
  • *
  • Posts: 23
Re: Like Posts
« Reply #290 on: May 25, 2014, 06:32:08 AM »
Is there anyway I can modify the color of the button? Can you point me to it step by step if possible? I need it to be blue to match my forum, if possible.

Offline Ground Zero

  • Newbie
  • *
  • Posts: 7
Re: Like Posts
« Reply #291 on: May 26, 2014, 11:35:07 PM »
Is there anyway I can modify the color of the button? Can you point me to it step by step if possible? I need it to be blue to match my forum, if possible.

You can do this by opening the CSS file of the mod (\Themes\default\css\LikePosts.css) then look for this code below:

Code: [Select]
.like_unlike_link {
background: #C44E19;
padding: 1px 5px;
color: #fff !important;
position: relative;
}

Replace the background color #C44E19 to match your forum... I've changed mine to blue as well... ;)

Offline jlt1

  • Semi-Newbie
  • *
  • Posts: 23
Re: Like Posts
« Reply #292 on: May 30, 2014, 12:55:17 PM »
Is there anyway I can modify the color of the button? Can you point me to it step by step if possible? I need it to be blue to match my forum, if possible.

You can do this by opening the CSS file of the mod (\Themes\default\css\LikePosts.css) then look for this code below:

Code: [Select]
.like_unlike_link {
background: #C44E19;
padding: 1px 5px;
color: #fff !important;
position: relative;
}

Replace the background color #C44E19 to match your forum... I've changed mine to blue as well... ;)

Thank you very much! Made my day :)

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Like Posts
« Reply #293 on: May 31, 2014, 02:41:46 PM »
Is LIKES visibility to guest possible ?
Working on the same, link
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

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Like Posts
« Reply #294 on: June 01, 2014, 10:50:55 AM »
Version 1.4 - mod link

Permission added for guests to view likes.
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

Offline ryan_dwight

  • Jr. Member
  • **
  • Posts: 296
Re: Like Posts
« Reply #295 on: June 01, 2014, 05:05:54 PM »
Version 1.4 - mod link

Permission added for guests to view likes.
thanks for the update

any news on the stat?

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Like Posts
« Reply #296 on: June 04, 2014, 10:50:15 AM »
Version 1.4 - mod link

Permission added for guests to view likes.
thanks for the update

any news on the stat?
Will be working on it, if I get some spare time in the weekend.
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

Offline The QE2 Story Forum

  • Charter Member
  • Jr. Member
  • *
  • Posts: 151
    • The QE2 Story
Re: Like Posts
« Reply #297 on: June 05, 2014, 01:51:58 PM »
I just installed this into my SMF 2.0.7. forum and it worked a treat, first time, with no fiddling required.

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Like Posts
« Reply #298 on: June 07, 2014, 10:29:45 AM »
I just installed this into my SMF 2.0.7. forum and it worked a treat, first time, with no fiddling required.
Glad it worked out seamlessly for you :)
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

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Like Posts
« Reply #299 on: June 07, 2014, 12:42:31 PM »
While working with stats for like posts here are few fields coming to mind

- Most liked message
- Most liked topic
- Most liked board
- Most likes received by user
- Most likes given by user

Anything you guys/gurlz want to add?
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