Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
angelostudio.net
#1
Getsimple + bootstrap = www.angelostudio.net
Reply
#2
Like it, nice nice...
Reply
#3
How did you include the amount of preview and generate a like box?
Reply
#4
(2017-04-12, 14:18:43)Carrara Wrote: How did you include the amount of preview and generate a like box?

I used I18N special pages and I18N search plugin for homepage work list.

and for voted used my plugin LoveThis Smile
Reply
#5
Here's a simple Counter class based on ItemManager that you can use to count users who have visited certain pages or count the number of clicks and to create the vote stuff etc.

https://gist.github.com/bigin/5ef95d3352...1e7acc0172

Create a new ItemManager category, name it vcounter for example, then create a text field for it, name it total. Copy and paste the Counter class in your functions.php file in your theme folder. Change the 1 parameter in $counter = new Counter(1); line with your id of the vcounter category.

Now you can use the Counter class to count the page views.
To increment a counting variable for current page do this (in your template):
Code:
$counter->increment();
To increment a counting variable for specific page:
Code:
$counter->increment($slug);

To decrement a counting variable for current page:
Code:
$counter->decrement();
To decrement a counting variable for specific page:
Code:
$counter->decrement($slug);

To output the counting variable for current page use:
Code:
echo $counter->getCount();
To output the counting variable for specific page use following:
Code:
echo $counter->getCount($slug);


To delete the counter for current page do this:
Code:
$counter->remove();
To delete the counter for specific page do this
Code:
$counter->remove($slug);

Note, this approach is not thread-safe.
Reply
#6
Nice plugin, fantastic!

This Plugin LoveThis is free? or premium?
Reply
#7
(2017-04-13, 10:08:25)Carrara Wrote: Nice plugin, fantastic!

This Plugin LoveThis is free? or premium?

LoveThis plugin is premium... It will be available next week.
What do you get?
  • 2 vote version (icons or button)
  • save users IP / date / cookies
  • prevent voted again
  • simple use (% lovethis slug button %) / lovethis(page_slug,'button')
  • and more...
Reply
#8
premium LoveThis plugin is ready

more info here

buy plugin here
Reply




Users browsing this thread: 1 Guest(s)