-
AuthorPosts
-
antjewilson Friend
antjewilson
- Join date:
- August 2010
- Posts:
- 78
- Downloads:
- 0
- Uploads:
- 27
- Thanks:
- 19
- Thanked:
- 1 times in 1 posts
December 11, 2014 at 6:51 am #203475Any chance of adding instagram to Social Details in the JoomlArt Advanced Custom Module?
Thanks,
Antje
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
December 12, 2014 at 10:32 am #558512Hi Antje,
Could you please clarify a little bit or provide an example so I can assist you better ?
Richard A FriendRichard A
- Join date:
- January 2013
- Posts:
- 190
- Downloads:
- 19
- Uploads:
- 14
- Thanks:
- 35
- Thanked:
- 18 times in 2 posts
December 13, 2014 at 3:12 am #558563Adam, I think antje means adding Instagram to the 5 social icons already included in the acm footer module.
The module currently uses Facebook, Google+, Twitter, Pinterest and LinkedIn but i agree Instagram would be a necessary addition as it is now extremely popular.
To antje:
The coding for the 5 styles of the acm footer module are at uber/acm/footer/css, less and tmpl and you could make an adjustment for instagram in whatever override file you are using for your template with reference to these folders.
Adam could possibly help with the exact details of how to do it in this thread as I have not made the adjustment myself yet.
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
Richard A FriendRichard A
- Join date:
- January 2013
- Posts:
- 190
- Downloads:
- 19
- Uploads:
- 14
- Thanks:
- 35
- Thanked:
- 18 times in 2 posts
December 13, 2014 at 5:16 am #558569I understand social icons can be added anywhere with a custom html module and saw the other thread where adam asked the same question but i assume he is not interested in using a second module and wants to know how to amend the footer module, otherwise he would not have raised it again.
How can the acm footer module be amended to change existing icons and/or include instagram?
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
December 15, 2014 at 3:43 am #558659Hi,
Thanks for the detail, please follow these steps below :
1. Open file root_folder/templates/uber/acm/footer/tmpl/style-1.php and look for this code :
<?php if($helper->get('linkedin')): ?>
<a class="addthis_button_linkedin_follow" addthis:usertype="company" addthis:userid="<?php echo $helper->get('linkedin')?>"><i class="fa fa-linkedin"></i></a>
<?php endif; ?>then update as below :
<?php if($helper->get('linkedin')): ?>
<a class="addthis_button_linkedin_follow" addthis:usertype="company" addthis:userid="<?php echo $helper->get('linkedin')?>"><i class="fa fa-linkedin"></i></a>
<?php endif; ?><?php if($helper->get('instagram')): ?>
<a class="addthis_button_instagram_follow" addthis:usertype="company" addthis:userid="<?php echo $helper->get('instagram')?>"><i class="fa fa-instagram"></i></a>
<?php endif; ?>2. Open file root_folder/templates/uber/acm/footer/config.xml and look for this code :
<field name="linkedin" type="text" size="40" default="" label="LINKEDIN_LABEL" description="LINKEDIN_DESC"></field>
then update as below :
<field name="linkedin" type="text" size="40" default="" label="LINKEDIN_LABEL" description="LINKEDIN_DESC"></field>
<field name="instagram" type="text" size="40" default="" label="INSTAGRAM_LABEL" description="INSTAGRAM_DESC"></field>3. Open file root_folder/language/en-GB/en-GB.tpl_uber.ini and look for this code :
LINKEDIN_DESC ="Add your LinkedIn name, no full url is required. For example: joomlart"
update as below and you’re ready to go :
LINKEDIN_DESC ="Add your LinkedIn name, no full url is required. For example: joomlart"
INSTAGRAM_LABEL ="Instagram"
INSTAGRAM_DESC ="Add your Instagram name, no full url is required. For example: joomlart"December 18, 2014 at 6:19 pm #559104Thanks for the custom code. Works well. My question however is when uber gets updated this customization would be lost. I did try your code by placing it in the appropriate folders under my local directory. root_folder/local/acm/footer/tpls/style-1. and similarly for the config.xml. I modified each of the 5 styles accordingly. Now for the language file one copy is in the root_folder/language, another copy in the root_folder/templates/language. So if one doesn’t want this customization overwritten how does one get this to work under the ‘local’ folder structure
December 18, 2014 at 9:49 pm #559111Good idea as the example below forgot to include the need to amend the style.less file for the ‘hover’ effect over the icon. Also it should be added to the bar acm module as well.
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
Richard A FriendRichard A
- Join date:
- January 2013
- Posts:
- 190
- Downloads:
- 19
- Uploads:
- 14
- Thanks:
- 35
- Thanked:
- 18 times in 2 posts
December 19, 2014 at 3:05 pm #559174<blockquote>So if one doesn’t want this customization overwritten how does one get this to work under the ‘local’ folder structure</blockquote>
@ Adam
jhouston would need example code to use to avoid changes being lost during a template update, I assume in the local folder (or wherever it should be placed)?
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
December 22, 2014 at 3:25 am #559304Hi @dealthenuts,
At the moment, there’s no local folder for JA ACM module but you can duplicate current style, for example clone this file root_folder/templates/uber/acm/footer/tmpl/style-1.php and give it a new name style-6.php so this file won’t be replaced whenever you update the template.
January 6, 2017 at 5:09 am #1000128This solution does not work, my root_folder/templates/uber/acm/footer/config.xml file has only this content.
<?xml version="1.0" encoding="utf-8"?> <form> <title>Footer</title> </form>
I modified other 2 files, I don’t see INSTAGRAM
January 6, 2017 at 5:32 am #1000130For step 2 above in Adam’s post, instead of modifying
config.xml root_folder/templates/uber/acm/footer/config.xml
modify style-1.xml root_folder/templates/uber/acm/footer/tmpl/style-1.xml
January 6, 2017 at 5:41 am #1000131I modified all 3 files, I see INSTAGRAM field however, whatever I enter for a link it does not work, it always links to my main domain name. I tried full URL of Instagram also tried only Instagram name, none works. Any ideas how to fix this issue?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 9, 2017 at 7:02 am #1000793Hi @samirbeg:
You can rollback any changed above on your site and apply this way
-
Download and extract my attached files
-
Copy both files: style-1.xml and style-1.php to templates/uber/acm/footer/tmpl/ folder
- Don’t forget to backup old files before doing changes
Hope it helps
Regards
-
AuthorPosts
This topic contains 16 replies, has 8 voices, and was last updated by Ninja Lead 7 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum