Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Adding users country flag to profile page.

11 years 5 months ago
  • Vlad's Avatar
    Topic Author
  • Vlad
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Active

ISSUE SUMMARY: I'd like to add members' country flags to their profile page.
Is there a way this can happen using the information they supply in their profile?
Is it an extension or plug-in? Can you recommend any?
Thanks
Jon Gasco

Our Jomsocial site is in the development site info.

LoonLounge.com is an existing site we are changing to JomSocial


STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

11 years 5 months ago
Licenses:

Hi Vlad,

please provide me FTP and joomla administrator access detail, by editing your first post at this topic. put it at site info form.
seem you are using old jomsocial version.

I will do it for you, for the changes.

Regards

11 years 5 months ago
  • Vlad's Avatar
    Topic Author
  • Vlad
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Active

Thank you for the offer, but I'd rather learn how to do this.

<You already have the latest Joomla! version, 3.4.1.>
<JomSocial - 4.0.5>

11 years 5 months ago
Licenses:

Hi Vlad,

ok, so you familiar with PHP code and know about joomla code.
you can override profile.about.php by copying it from /components/com_community/templates/jomsocial/layouts/ to /templates/[frontend tempalte]/html/com_community/layouts/
edit it at line 67, changing it from

<?php } else { ?>
to
<?php } else {  if ($item['type'] == 'country') echo '<img src="'. JURI::base().'images/country/'.strtolower($item['value']).".jpg' >"; ?>

after that you need put all flags image to [joomla site root]/images/country. in jpg format and filename in lower case.

Regards

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW