Output Pix url for theme image not fetch correct image.

Output Pix url for theme image not fetch correct image.

by kamesh veerachamy -
Number of replies: 6

Hi all ,

I have installed more themes in my local.

Now my current theme name is clean.I have enable the "allowthemechangeonurl" option in theme

settings page (Site Administration -> Apperance -> Theme->Theme settings).

Then I have changed the theme via url (http://localhost/moodle_281?theme=alluri).

Then I Clear the cache (Site Administration -> Development ->Purger all caches)

Then I run the home page.

But I got the following url :  url("http://localhost/moodle_281/theme/image.php/clean/theme/1437215868/home/homebanner")

i expected following url  "http://localhost/moodle_281/theme/image.php/alluri/theme/1437215868/home/homebanner"

Code :

<img src="<?php echo $OUTPUT->pix_url('home/banner', 'theme');  ?>" />


Any one help me.

same url run fine when disable "allowthemechangeonurl" option.

Thanks

Kamesh.V


Average of ratings: -
In reply to kamesh veerachamy

Re: Output Pix url for theme image not fetch correct image.

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Moving to Themes forum...

In reply to Howard Miller

Re: Output Pix url for theme image not fetch correct image.

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi Kamesh,

Alluri is a paid for theme, so I suggest that you contact the developer for support on this.

Kind regards,

Gareth

Average of ratings: Useful (1)
In reply to Gareth J Barnard

Re: Output Pix url for theme image not fetch correct image.

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

And is on a site that looks as if its infringing trademark again sad

In reply to Gareth J Barnard

Re: Output Pix url for theme image not fetch correct image.

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Looks just like Essential but with a few tweaks sad

In reply to Howard Miller

Re: Output Pix url for theme image not fetch correct image.

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

I've pulled it apart and its a BS3 theme with 'theme_bootstrap' as a parent.  Some odd comment tag of 'E.O.Content' so could be Elegance clone, bespoke or something else.