*

Nerijus

  • **
  • 5 posts
Social connect - Need Help
« on: July 09, 2017, 07:11:21 PM »
Before purchasing Veronica theme I asked if Social connect will work and I was told that it would, but unfortunately I am not able to get it to work as intended.

Instructions say:


Add social buttons

Once your plugin is configured you only need to add one line of code to your theme:

user-login.php, user-register.php
<?php osc_run_hook('sc_buttons'); ?>
Profile picture

Some providers as Facebook, Twitter and Google+ provide a profile picture that you can use.

You can get the first imported profile picture using this function helper:

sc_profile_picture( osc_user_id() )

Note, if there is not an imported profile picture, no image will be shown.

Note, latest imported image will be used.


If I open user-login.php in Veronica...  code does not belong there.

So I placed code in user-register.php and now buttons do show up.

Issues I have:

1. I have no idea where to place : sc_profile_picture( osc_user_id() )'

2. There is no option to connect existing user accounts to Facebook or other social networks. If I try to use Facebook and account already has same email I am getting an error: The specified e-mail is already in use

3. I managed to place <?php osc_run_hook('sc_buttons'); ?> in user-register.php but all buttons show the same light blue color :(

Please help to solve this.




« Last Edit: July 09, 2017, 10:53:13 PM by Nerijus »

*

MB Themes

Re: Social connect - Need Help
« Reply #1 on: July 10, 2017, 09:22:01 AM »
@Nerijus
1) anywhere you want to show profile picture. You may replace profile_picture plugin functions
2) check with plugin author
3) check css if there is no overwrite
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Nerijus

  • **
  • 5 posts
Re: Social connect - Need Help
« Reply #2 on: July 10, 2017, 12:51:01 PM »
I am new to this script and do not code. I paid for this Veronica theme expecting real support and not advice what I can do on my own.

There should be line by line instructions on how to use or customize theme.

In my case something that should properly work simply by activating theme or plugin - does not work :(

After playing for hours I managed to have buttons show up in Sign in and Register, but they are all light blue color.



But this does not change issue that there is no link in members section. In files I see files related to connecting social account to existing user account but it just simply does not show up in Veronica theme after user Signs in.

And for Facebook picture. Can you please tell what lines in what files need to be changed.


*

MB Themes

Re: Social connect - Need Help
« Reply #3 on: July 10, 2017, 09:17:44 PM »
@Nerijus
That plugin is not ours so I am not sure what are you talking about.
Custom development is not covered by support.
Modify styles of plugin to fit theme design or change ID's of blocks to not get that style.

You even did not post URL where to check problem even you see it in my signature, problem could be already solved...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Nerijus

  • **
  • 5 posts
Re: Social connect - Need Help
« Reply #4 on: July 10, 2017, 10:27:57 PM »
I am solving issues on my own but can you at least tell me how to edit this Footer:

OUR PARTNERS

<!-- PARTNERS SECTION IN FOOTER -->
<div id="footer-partner" class="not767">
  <div class="inside">
    <div id="partner">
      <div class="lead"><?php _e('Our partners', 'veronika'); ?></div>

      <?php
        $partner_path = osc_base_path() . 'oc-content/themes/' . osc_current_web_theme() . '/images/partner-logos';
        $partner_url = osc_base_url() . 'oc-content/themes/' . osc_current_web_theme() . '/images/partner-logos';
        $partner_images = scandir($partner_path);

        if(isset($partner_images) && !empty($partner_images) && $partner_images <> '') {
          foreach($partner_images as $img) {
            $ext = strtolower(pathinfo($partner_path . '/' . $img, PATHINFO_EXTENSION));
            $allowed_ext = array('png', 'jpg', 'jpeg', 'gif');

            if(in_array($ext, $allowed_ext)) {
              echo '<img class="partner-image" src="' . $partner_url . '/' . $img . '" alt="' . __('Our partner logo', 'veronika') . '" />';
            }
          }
        }
      ?>
    </div>
  </div>
</div>

What I want is: to place my own partner links so they can be clickable and new link would open in new window (_balnk)
 

*

Nerijus

  • **
  • 5 posts
Re: Social connect - Need Help
« Reply #5 on: July 11, 2017, 12:57:21 AM »
Can you at least tell me where to place :

sc_profile_picture( osc_user_id() )

for socialconnect to get profile picture imported?

*

MB Themes

Re: Social connect - Need Help
« Reply #6 on: July 11, 2017, 09:10:10 AM »
@Nerijus
1) Theme does not have feature to show clickable images, you need to define links and images manualy (<a><img/></a>) and replace code inside one you posted between <?php and ?> tags

2) I have no idea what you want to do with that... take a look i.e. to user-dashboard.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

zaintech

  • **
  • 10 posts
Re: Social connect - Need Help
« Reply #7 on: November 04, 2017, 10:52:08 PM »
Hello Nerijus

I am not a programmer and non technical.
Hope you have resolved the issue.
I am at very basic step that where to put code
<?php osc_run_hook('sc_buttons'); ?>

If you have resolved the issue kindly share here it will help others to resolve this issue.
Best Regards

*

MB Themes

Re: Social connect - Need Help
« Reply #8 on: November 05, 2017, 02:12:02 PM »
@zaintech
Go to oc-content/themes/{your_theme}/user-register.php and place code after line starting with <form
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

zaintech

  • **
  • 10 posts
Re: Social connect - Need Help
« Reply #9 on: November 08, 2017, 09:39:23 PM »
@zaintech
Go to oc-content/themes/{your_theme}/user-register.php and place code after line starting with <form

Thanks @frosticek working fine with me.
kindly guide me how I can do it in center, sorry not a programmer.
Thanks again.

Regards
http://www.gulshan-e-hadeed.com

*

MB Themes

Re: Social connect - Need Help
« Reply #10 on: November 08, 2017, 09:47:30 PM »
@zaintech
Code: [Select]
.socialconnect-button.socialconnect-button-fixedwidth {display:block;margin:5px auto;float:none;clear:both;}
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: Social connect - Need Help
« Reply #11 on: March 02, 2019, 12:44:46 AM »
I've been reading and I do not know where to put this code sc_profile_picture (osc_user_id ()) for me to upload the social image. The theme I use is veronika and I have installed the Profile Picture plugin.
Thank you

*

MB Themes

Re: Social connect - Need Help
« Reply #12 on: March 02, 2019, 08:39:44 AM »
I am not sure how that plugin works but if it does not put image directly to profile picture plugin, you will have to create function that will pick image out of those 2 plugins
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots