• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Editing Social Network Buttons?

sp3ctr3

Chevereto Member
MEmn5.png


How/where would I change and edit these buttons?
 
Do you want to change the order? or the images? or delete some?
 
The social links on the default theme consist on a demo function that you can find in /content/themes/Peafowl/functions.php

You have to edit this array:
PHP:
$social_services = array(
		"Facebook"		=> array('url' => '[url]http://www.facebook.com/share.php?u=[/url]'.$url, 'target' => 'pop-up', 'img' => 'ico-facebook.png'),
		"Twitter"		=> array('url' => '[url]http://twitter.com/share?url=[/url]'.$url, 'target' => 'pop-up', 'img' => 'ico-twitter.png'),
		"Delicious"		=> array('url' => '[url]http://www.delicious.com/save?v=5&noui&jump=close&url=[/url]'.$url, 'target' => 'pop-up', 'img' => 'ico-delicious.png'),
		"reddit"		=> array('url' => '[url]http://reddit.com/submit?url=[/url]'.$url, 'target' => '_blank', 'img' => 'ico-reddit.png'),
		"StumbleUpon"	=> array('url' => '[url]http://www.stumbleupon.com/submit?url=[/url]'.$url, 'target' => '_blank', 'img' => 'ico-stumbleupon.png'),
		"Myspace"		=> array('url' => '[url]http://www.myspace.com/Modules/PostTo/Pages/?u=[/url]'.$url, 'target' => 'pop-up', 'img' => 'ico-myspace.png')
	);

So if you want for instance delete reddit, it shoud look like this:
PHP:
$social_services = array(
		"Facebook"		=> array('url' => '[url]http://www.facebook.com/share.php?u=[/url]'.$url, 'target' => 'pop-up', 'img' => 'ico-facebook.png'),
		"Twitter"		=> array('url' => '[url]http://twitter.com/share?url=[/url]'.$url, 'target' => 'pop-up', 'img' => 'ico-twitter.png'),
		"Delicious"		=> array('url' => '[url]http://www.delicious.com/save?v=5&noui&jump=close&url=[/url]'.$url, 'target' => 'pop-up', 'img' => 'ico-delicious.png'),
		"StumbleUpon"	=> array('url' => '[url]http://www.stumbleupon.com/submit?url=[/url]'.$url, 'target' => '_blank', 'img' => 'ico-stumbleupon.png'),
		"Myspace"		=> array('url' => '[url]http://www.myspace.com/Modules/PostTo/Pages/?u=[/url]'.$url, 'target' => 'pop-up', 'img' => 'ico-myspace.png')
	);

If you want to edit the images, you have to (1) upload/replace the images on the theme directory (2) make sure that the images are right on the array.

That's all.
 
what about to change this :
Code:
http://www.facebook.com/share.php?u=http://www.img-bb.com/?v=cMbpv.png
to
Code:
http://www.facebook.com/share.php?u=http://www.img-bb.com/i4/cMbpv.png

I mean, the shared photo not in viewer, but the actual and real link (cuz im using multifolders)

thanks
 
~AEdes~ said:
what about to change this :
Code:
http://www.facebook.com/share.php?u=http://www.img-bb.com/?v=cMbpv.png
to
Code:
http://www.facebook.com/share.php?u=http://www.img-bb.com/i4/cMbpv.png

I mean, the shared photo not in viewer, but the actual and real link (cuz im using multifolders)

thanks

Just edit the $social_services array.
 
If you want to change only the target you must open /content/themes/Peafowl/view.php and change this:

PHP:
<?php show_social_links('<li>', get_img_viewer()); ?>

To this:

PHP:
<?php show_social_links('<li>', get_img_url()); ?>
 
Back
Top