« [Plugin] MoreRecyclingBins
[Plugin] CountLikes

CerealGuy

  • Posts: 327

madfitz

  • Elite Class Non Coder
  • Posts: 97
[Plugin] Re: CountLikes
« Reply #1, on December 28th, 2014, 11:34 AM »
Not something I would use but it gets a thumbs up from me for the achievement. Thumbs up to any plugin authors because I can't do it!

Well done CG!

Nao

  • Dadman with a boy
  • Posts: 15,969
[Plugin] Re: CountLikes
« Reply #2, on March 10th, 2015, 11:15 AM »
Fixed a weird error with an unrecognized index on fetch_row... I have no idea why it didn't work, possibly a PHP version specific issue.
Here's the file... Also, fixed some indenting, and stuff.

 CountLikes.rar - 2.84 kB, downloaded 24 times.


CerealGuy

  • Posts: 327
[Plugin] Re: CountLikes
« Reply #3, on March 10th, 2015, 12:42 PM »Last edited on March 10th, 2015, 04:52 PM
Feel free to do a pull request, otherwise i will have a look at it this afternoon.
 Thank you for providing your changes :).
If I remember  it correctly, the view of the liked posts needs some improvement. I had to apply a complete template, perhaps this could be solved better?! Because in general its the same like the view posts stuff, only different query and other texts. A more general function for that would be helpful maybe. I dont like duplex code :D.

EDIT: Updated git repo

Nao

  • Dadman with a boy
  • Posts: 15,969
[Plugin] Re: CountLikes
« Reply #4, on March 20th, 2015, 11:26 PM »
On line 90, $context['is_topics'] is undefined... It's copy-pasted from Profile-View.php, where it's defined earlier...
I just removed that code block, working fine now.

CerealGuy

  • Posts: 327
[Plugin] Re: CountLikes
« Reply #5, on March 21st, 2015, 01:53 PM »
Didn't get that error yet :hmm:. But thats a block of code where I really don't know what it does.

Nao

  • Dadman with a boy
  • Posts: 15,969
[Plugin] Re: CountLikes
« Reply #6, on March 22nd, 2015, 11:15 AM »
Doesn't matter, you're not offering to view liked topics, only viewed posts, so off it goes.. ;)