Elxis CMS Forum

Extensions => Bots and plugins => Topic started by: jorgebravoc on October 16, 2010, 17:27:17

Title: Addthis Cuztomization
Post by: jorgebravoc on October 16, 2010, 17:27:17
Hello elxis community:

I have updated to the new version of elxis and I was wondering how to customize the Addthis bot? I would like to have this very same look: http://www.syros-booking.gr/el/reservations/hermoupolis-syros-cyclades-greece/diogenis-hotel-hermoupolis-syros.html  (http://www.syros-booking.gr/el/reservations/hermoupolis-syros-cyclades-greece/diogenis-hotel-hermoupolis-syros.html) (see bottom right)

I´d like to show a few options such as Facebook, Twiter, Myspace, etc.... in a horizontal line not just the orange + icon which could be ignored by some viewers. Also the Like addition is wonderful, anybody know how to achieve this? I´m very n ew to php and I kind of messed up with the php file of the bot but didn´t  get the result I need....  any help out there?

I believe webgift developed this bot... maybe having this optionto customize will increase the usage of this bot? Will be very glad to hear from you.

Thanks in advance
Title: Re: Addthis Cuztomization
Post by: jorgebravoc on October 24, 2010, 09:16:17
99 views and not a single reply ?  :(
Title: Re: Addthis Cuztomization
Post by: CREATIVE Options on October 24, 2010, 11:03:52
Of course this can be done, but it is custom work.
If you are interested for commercial support please contact me.

As for WebGift, I don't know if he want to change the public release of the bot.
Title: Re: Addthis Cuztomization
Post by: webgift on October 24, 2010, 12:32:33
Sorry jorgebravoc ,
I almost see that thread.
Unfortunately i don't have free time to change that bot but i promise that i will create a new one with that kind of presentation at the future.
On EDC i have created an Addthis Button and this one that i will create is AddThis Toolbox (http://www.addthis.com/help/toolbox)
Title: Re: Addthis Cuztomization
Post by: jorgebravoc on October 26, 2010, 11:38:20
thanks for replying guys, after many attempts, I figured out a way to display the buttons in a row and choose some services to be displayed next to the + icon. Here's what you gotta do:

- open the shareaddthis.php file with a text editor, this file is located in the /public_html/mambots/content folder
- go to line 56 and do the following changes:

Code: [Select]
        $out = '<div class="addthis_toolbox addthis_default_style">';
$out .='<a class="addthis_button_compact" href="http://www.addthis.com/bookmark.php?v=250'.$str_uname1.'">Share this with your friends!</a>'."\n";
/*$out .= '<img src="'.$mainframe->getCfg('ssl_live_site').'/images/M_images/addthis.gif" alt="share" align="middle" style="border:0;" />'."\n";
$out .= "</a> \n";*/
$out .= '<a class="addthis_button_facebook"></a>';
$out .= '<a class="addthis_button_twitter"></a>';
$out .= '<a class="addthis_button_myspace"></a>';
$out .= '<a class="addthis_button_stumbleupon"></a>';
$out .= '<a class="addthis_button_email"></a>';
$out .= '<a class="addthis_button_live"></a>';
$out .= '<a class="addthis_button_print"></a>';
$out .= '</div>';
if (!defined('ADDTHIS_JS_LOADED')) {
$out .= '<script type="text/javascript" src="'.$mainframe->secureURL('http://s7.addthis.com/').'js/250/addthis_widget.js'.$str_uname2.'"></script>'."\n";
define('ADDTHIS_JS_LOADED', 1);
}
return $out;
}

This changes will show a good array of social networks and also the + icon of Addthis, you can take out the services you don't want, just deleted the line referring to the service, example. $out .= '<a class="addthis_button_stumbleupon"></a>';

you can find a complete list of the services and how to call them up from here: http://www.addthis.com/services/list (http://www.addthis.com/services/list) use the code as a class in order to see it appear.

I hope this brings a solution for anyone that wants more than just the + icon of Addthis in their content. Maybe an option in the bot parameters will be nice for next Elxis version, don't worry webgift, I know you must be busy doing some nice stuff, keep up the good work.
Title: Re: Addthis Cuztomization
Post by: webgift on October 26, 2010, 12:58:52
Bravo jorgebravoc ,
You do great job by yourself.!