• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

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