Where to define social bookmark networks

  • patgaytx
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 6 months ago #11770 by patgaytx
There is an option in the configuration called Show social bookmark buttons.

Where do you define the Social Networks that you want to configure?

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #11773 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Where to define social bookmark networks
Hi

Right now, the extension only supports several social networks. The code for displaying social networks can be found at components/com_eventbooking/views/event/tmpl/default.php :
Code:
<?php $title = $item->title ; $html = EventBookingHelper::getDeliciousButton( $title, $socialUrl ); $html .= EventBookingHelper::getDiggButton( $title, $socialUrl ); $html .= EventBookingHelper::getFacebookButton( $title, $socialUrl ); $html .= EventBookingHelper::getGoogleButton( $title, $socialUrl ); $html .= EventBookingHelper::getStumbleuponButton( $title, $socialUrl ); $html .= EventBookingHelper::getTechnoratiButton( $title, $socialUrl ); $html .= EventBookingHelper::getTwitterButton( $title, $socialUrl ); echo $html ; ?>

Please Log in or Create an account to join the conversation.

  • patgaytx
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 6 months ago #11786 by patgaytx
Replied by patgaytx on topic Re: Where to define social bookmark networks
Hi,

Thanks for the information.

How do I define $socialURL so that it points to my particular social network?

For example, if I wanted getTwitterButton to point to twitter.com/@somename?

Thanks

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #11799 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Where to define social bookmark networks
Hi

You will need to modify the corresponding function in components/com_eventbooking/helper/helper.php. For example, if you want to use the link for Twitter button, have a look at getTwitterButton function in the above file !

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc