#1 2012-03-23 12:37:02

ukyo
Community Manager
From: Marmaris - Turkey
Registered: 2010-05-19
Posts: 734
Website

Sociallike Module (Add Like Buttons to Your Website)

Not documented yet!

Simple Usage (if you use like buttons 1 time in a page) :

<!-- If url is empty like button will share current url. base_url => http://www.your_website_name.com -->
<ion:sociallike>
     <ion:twitter url="base_url" />
     <ion:facebook url="base_url" />
     <ion:google_plus url="base_url" />
</ion:sociallike>

Simple Usage (if you use like buttons more than 1 time in a page) recommed this usage! :

<!-- Place this code snippet where you want. if you set js attr false like button won't include js codes! -->
<ion:sociallike>
     <ion:twitter js="false" />
     <ion:facebook js="false" />
     <ion:google_plus js="false" />
</ion:sociallike>

JS codes for like buttons

<!-- Here is just js codes for footer of your page. Your page could load faster if you include js codes in footer of your page -->
<ion:sociallike>
     <ion:js google_plus="true" facebook="true" twitter="true" />
</ion:sociallike>

You can find detailed usage of module inside Sociallike/libraries/tags.pgp you can see descriptions for functions. Will try to prepare a detailed documentation for this module. Also you can prepare a documentation for this module after i check the documentation could add it zipped package.

Also if you want to see more like buttons! You can fork my repo from github and you can help to expand this module!

Download link for : Sociallike Module


<ion:ukyo from="Turkey" />
Ionize CMS Türkçe Dil Çeviri Dosyaları | My Github Repositories
Please send your first message to a forum section, not forum users or administration.

Offline

#2 2014-01-17 12:34:55

JaimeZubiaur
Member
Registered: 2014-01-17
Posts: 1

Re: Sociallike Module (Add Like Buttons to Your Website)

The url link doesn't work. Can you update it? Please.

Thanks.

Offline

#3 2014-01-20 10:16:15

rmartinez
Member
Registered: 2013-01-16
Posts: 88

Re: Sociallike Module (Add Like Buttons to Your Website)

Offline

#4 2014-03-06 22:37:13

raskrial
Member
Registered: 2014-03-03
Posts: 22

Re: Sociallike Module (Add Like Buttons to Your Website)

download the package on gitHub and copied it in the modules folder but it seem to not showing in the module list of the adminstration panel to be able to install it. i'm working with the last version of ionize. any help would be greatly appreciated ! smile

Offline

#5 2014-03-07 12:30:28

ukyo
Community Manager
From: Marmaris - Turkey
Registered: 2010-05-19
Posts: 734
Website

Re: Sociallike Module (Add Like Buttons to Your Website)

My last repo update for this module 2 years ago smile this mean not updating it anymore, you can modify it for current ionize version.


<ion:ukyo from="Turkey" />
Ionize CMS Türkçe Dil Çeviri Dosyaları | My Github Repositories
Please send your first message to a forum section, not forum users or administration.

Offline

#6 2014-03-20 07:49:27

damascus
Member
From: Brisbane, Australia
Registered: 2013-04-08
Posts: 270
Website

Re: Sociallike Module (Add Like Buttons to Your Website)

@Ukyo, thanks for creating this

Havent looked at it yet, but I remember creating custom tags last year and this kind of thing helps a bunch - I highly encourage anyone to take the time to update the repo or maybe even just create simple tutorial of sorts for integrating it.

Last edited by damascus (2014-03-20 07:49:44)


Webmaster | OneCNC Australia

Offline

#7 2015-02-05 04:58:06

Tichu
Member
Registered: 2015-02-01
Posts: 21

Re: Sociallike Module (Add Like Buttons to Your Website)

i tried it but the usual of most if not all the modules from ionized,

they dont work out of the box, you have to tweak tem, since most are old for older incompatible versions.
:-(

glad that the actual cms app works, but none of the modules from here work.


using latest v1.0.7
added the tags in my view page and i get:
Tag missing: sociallike, scope: page.

Last edited by Tichu (2015-02-05 05:01:15)

Offline

#8 2015-02-05 10:34:05

Kink
Ion Tester
From: France
Registered: 2010-06-04
Posts: 581

Re: Sociallike Module (Add Like Buttons to Your Website)

@Tichu, if you want install this module, you must correct the config file with new Ionize structure (check demo module) and you must also change the file tag.php in the library folder like this : sociallike_tags.php.
It will work after that.


Webmaster / OUF!WEB

Offline

#9 2015-02-05 15:11:02

Tichu
Member
Registered: 2015-02-01
Posts: 21

Re: Sociallike Module (Add Like Buttons to Your Website)

Kink wrote:

@Tichu, if you want install this module, you must correct the config file with new Ionize structure (check demo module) and you must also change the file tag.php in the library folder like this : sociallike_tags.php.
It will work after that.

thanks, yeah i figured out in order to even install to modify the config file to make 1.07 compatible.

so i got that worked out ok,


i guess i need now to rename the  tag.php in the library folder to : sociallike_tags.php.


ok, well, after the rename now i get a blank page with error on my front page:

Fatal error: Access level to Sociallike_Tags::load_model() must be protected (as in class TagManager) or weaker in C:\Ampps\www\_ionize\modules\Sociallike\libraries\sociallike_tags.php on line 253

there is nothing on line 253 is the last line of file.


EDIT:
ok i got past that now , just renamed:
public static function load_model
to
protected static function load_model

but now i get these errors in my frontpage:

Tag missing: twitter, scope: page:sociallike.

Tag missing: facebook, scope: page:sociallike.

Tag missing: google_plus, scope: page:sociallike.

Tag missing: twitter, scope: page:sociallike.

Tag missing: facebook, scope: page:sociallike.

Tag missing: google_plus, scope: page:sociallike.

Tag missing: js, scope: page:sociallike.



any ideas?

thanks

Last edited by Tichu (2015-02-05 15:20:12)

Offline

#10 2015-02-05 15:30:27

Kink
Ion Tester
From: France
Registered: 2010-06-04
Posts: 581

Re: Sociallike Module (Add Like Buttons to Your Website)

Yes, a mandatory method is missing, the tag definition:

public static $tag_definitions = array
    (
        // <ion:demo:authors /> calls the method “tag_authors”
        "sociallike:twitter" =>      "call_to_the_method",
        "sociallike:facebook" =>    "call_to_another_method"
    );

Get a look a this page : http://doc.ionizecms.com/en/tutorials/b … ule-part-4

Last edited by Kink (2015-02-05 15:30:59)


Webmaster / OUF!WEB

Offline

#11 2015-02-05 15:52:34

Tichu
Member
Registered: 2015-02-01
Posts: 21

Re: Sociallike Module (Add Like Buttons to Your Website)

thank you,

i added the tag_definitions array to file, now it works ok.


got a last question:
do i need to specify somewhere in the code my googleplus, facebook and twitter account names?

or this will only grab my website url and recommend it in the social netwoks?

but if i have accounts with them,  where do i specify that?


thanks again in advanced

Offline

#12 2015-02-05 16:06:46

Kink
Ion Tester
From: France
Registered: 2010-06-04
Posts: 581

Re: Sociallike Module (Add Like Buttons to Your Website)

It's social like button, so, no need to add API key or anything else... i think.
Buttons share the url of the page.
So each page of your website there is the sociallike buttons, each url would be shared.


Webmaster / OUF!WEB

Offline

#13 2015-02-05 16:15:33

Tichu
Member
Registered: 2015-02-01
Posts: 21

Re: Sociallike Module (Add Like Buttons to Your Website)

ok,
so only for website url recomendaton.

thank you for your help, module now works ok.
cheers

Offline

#14 2015-02-05 18:47:47

Kink
Ion Tester
From: France
Registered: 2010-06-04
Posts: 581

Re: Sociallike Module (Add Like Buttons to Your Website)

If you like your release for Ionize 1.07, what about sending your repo to Ukyo on github which could update its module ?


Webmaster / OUF!WEB

Offline

#15 2015-02-05 20:53:48

Tichu
Member
Registered: 2015-02-01
Posts: 21

Re: Sociallike Module (Add Like Buttons to Your Website)

I might,  but will need to  do a brand new fresh install, and add the module and fix it again as you walked me through,   since i dont think he will accept my ionize version,
i custom modified mine, reorganized most of the cms folder, cache, modules, themes and custom folder renaming etc..
lol, in other words added my personal touch, which he might not accept for sure.


but this weekend ill see if i can do a fresh stock install and add the module fix and submit to Ukyo

Offline

#16 2015-02-05 21:18:21

Tichu
Member
Registered: 2015-02-01
Posts: 21

Re: Sociallike Module (Add Like Buttons to Your Website)

Kink wrote:

If you like your release for Ionize 1.07, what about sending your repo to Ukyo on github which could update its module ?

if you can help me with this other module, the comments issue i have, then i can submit both of them to him so he can update the repo for v1.07
see if you can advice me on the issue i have:
http://ionizecms.com/forum/viewtopic.php?id=1450

if not, it is ok, i still submit the sociallike to him, but wanted to kill 2 birds from 1 shot. :-)  sort of speak.

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations