Advertisement:

Author Topic: [solved] How to replace deafault profile avatar in OsclassWizards theme?  (Read 1465 times)

BW

  • Jr. Member
  • **
  • Posts: 69
Hi everyone!

I am new here. I'm building my 1st OSClass site. I choose OsclassWizards and I try to replace a default profile avatar but there is a small problem...

My default profile pic is in a file:

/oc-content/themes/osclasswizards/images/default.gif

It can't be simply replaced by FTP. I've discovered that an OsclassWizards Theme use an CDN for wordpress account. It has been created directly for my site. When I have opened an avatar picture in a new tab, I have discovered that the address of this file is:

i1.wp.com/(DOMAIN-OF-MY-SITE)/oc-content/themes/osclasswizards/images/default.gif

So, the simple replace of a default.gif file on my server doesn't work at all.

What do you suggest? What should I do to replace that default.gif file? I like the idea of the CDN for my site (unfortunatly, images from the /oc-content/uploads/ folder are not supported), so I'd like to keep that. But I don't know, how to update my default.gif pic on the CDN site?

Best regards!

Newbe
« Last Edit: September 21, 2016, 09:07:21 pm by BW »

BW

  • Jr. Member
  • **
  • Posts: 69
Re: How to replace deafault profile avatar in OsclassWizards theme?
« Reply #1 on: September 21, 2016, 06:50:12 pm »
I have found this topic and it might help: http://forums.osclass.org/plugins/(new-plugin)-upload-profile-picture/

The topic is about a plugin which I am not going to use. But it describes a code lines which should be modify. There are posts about OsclassWizards theme too. The problem is, OW theme use a Gravatars... So, I guess, I have to erase gravatars lines of code, right?

Just see this post of Liath:
http://forums.osclass.org/plugins/(new-plugin)-upload-profile-picture/msg136140/#msg136140

He solves a problem with a plugin Profile Picture in OsclassWizards theme. Can you point me, what should I do, to simply modify OW theme just like I want that without an installation of this plugin?

Regards!

BW

  • Jr. Member
  • **
  • Posts: 69
Re: How to replace deafault profile avatar in OsclassWizards theme?
« Reply #2 on: September 21, 2016, 09:05:20 pm »
Solved by myself!

Do what I did:

1st make a new avatar with te same width and wide px (336x336). Name a new avatar new.gif

2nd copy a new.gif file to /oc-content/themes/osclasswizards/images/ directory by your FTP client.

3rd open those files:
/oc-content/themes/osclasswizards/item-sidebar.php
/oc-content/themes/osclasswizards/user-public-profile.php


and replace this code:

Code: [Select]
<figure><img class="img-responsive" src="http://www.gravatar.com/avatar/<?php echo md5strtolowertrimosc_user_email() ) ) ); ?>?s=400&d=<?php echo osc_current_web_theme_url('images/default.gif') ; ?>" /></figure>

with this new code:

Code: [Select]
<figure><img class="img-responsive" src="http://www.gravatar.com/avatar/<?php echo md5strtolowertrimosc_user_email() ) ) ); ?>?s=400&d=<?php echo osc_current_web_theme_url('images/new.gif') ; ?>" /></figure>

It works with me! ;)

BTW. I wonder, can I do the same with photos adding by users to theirs ads? Hm... :>

Can anyone make (a FREE) plugin like that?

Regards!

BW

  • Jr. Member
  • **
  • Posts: 69
Re: [solved] How to replace deafault profile avatar in OsclassWizards theme?
« Reply #3 on: September 21, 2016, 09:17:06 pm »
UPDATE

I guess I have found a free plugin with CDN for OSClass:
https://market.osclass.org/plugins/cloud-tools/amazon-s3_12

I don't know how it does work, but I'll try! ;)

Over & out!

UPDATE
Amazon-S3 Plugin is free, but Amazon S3 is not, so this is not what I am looking for. That is why I start this new topic here:

http://forums.osclass.org/plugins-20/a-free-cdn-wp-com-for-ads-pictures-how-to-save-the-transfer-of-your-server/

Regards!
« Last Edit: September 21, 2016, 10:25:16 pm by BW »