When I setup image icons for service links module, amadou shows Only local images are allowed. html code. I have tried it on other templates and it works fine on them except amadou.

CommentFileSizeAuthor
#3 servicelinks.jpg10.74 KBidcm

Comments

jwolf’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » jwolf

To get the services links to work correctly you'll have to edit Amadou's template.php file as follows:

Remove lines 45 through 106
Once you have removed those lines, save the file. Within Drupal go to admin > performance ( http://example.com/admin/settings/performance ) and scroll to the bottom of the page and click the "Clear cached data" button twice - not double clicking - click the button once and then again after the page reloads.

I will fix this with he next release.
Thanks for catching this.

fourteen40’s picture

Thanks for the fix, applied this today. Amadou may not be one of the newest themes but it certainly remains one of the best! I'm curious; why clear cache 2 times?

idcm’s picture

StatusFileSize
new10.74 KB

I did as you suggested but the images are being stretched and distorted. See screen shot attached.

Also, the other site i have that uses amadou shows this error:

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'phptemplate_links' was given in /home/idcmi/sitename.com/html/includes/theme.inc on line 617.

Thoughts?

trueconnect’s picture

Could you be more specific on the code to remove. I am not using amadou and I am having this problem also. Please post the offending code so I can take a look. Thanks

meerkat’s picture

Has there been an update on this? I'm using my own theme and have the same problem.

just_fixed_it’s picture

Thanks for the fix.

@ meerkat

I've got my own theme based on amadou. The bit of code that seemed to be causing the trouble (not sure why, just focusing on getting it to work) was the function "phptemplate_links". I've commented it out, saved, and cleared the cache twice. Problem solved.

sk33lz’s picture

Status: Active » Fixed

Solution: Comment out the phptemplate_links function starting on line 47 of template.php.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.