Closed (fixed)
Project:
Brilliant Gallery
Version:
5.x-3.3
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Jul 2008 at 15:19 UTC
Updated:
2 Jan 2014 at 19:06 UTC
Jump to comment: Most recent
Comments
Comment #1
nevets commentedA guess since all you see is the code is that you need to wrap the code in
<?phpand?>.Comment #2
johnhorning commentedNot sure why you would suggest wrapping it - this is not php code is it? In page.tpl.php wouldn't you write something like this?
echo "[bg|pathname|4|110|random|4|]";I don't understand this "mystery code".
Comment #3
vm commentedlooks like you may be trying to use filter code , which would explain why it shows in a page , where the filter can act on it. I don't believe you can arbitrarily throw filter style coding into the tpl.php and expect phptemplate to know what to do with it.
Comment #4
johnhorning commentedI see what you mean. I may try something dangerous next - copy some of the code from the module and paste it into Page.tpl.php. That's always fun. Any other suggestions?
Comment #5
vm commentedI may be helpful to those trying to help to expalin eactly what you are trying to do, rather then how you are trying to do it. There may be another method someone can suggest.
I assume you are just trying to pull images into the template, but why ?
Comment #6
johnhorning commentedOk - I do appreciate your help. I'm just trying to display the images in the header of the home page and I would like to do more than just display static photos. I like what Brilliant Gallery does. I don't really want to replace the entire home page either. Is that enough to go on?
Comment #7
johnhorning commentedI should add that the images should be adjacent (on the right side) of the logo so don't think a block in the header will work.
Comment #8
vm commentedyep now I understand more however, I don't believe you are going to be able to pull this off in the tpl.php.
you would need to place your in a bock maybe, and place that block in the header region or something a little more creative.
Comment #9
johnhorning commentedOk. Gave up on trying to use Brilliant Gallery in the header. Was able to get random images from a directory to display in the header at least, which is mostly what I wanted.
Inserted this code into my page.tpl.php, if anyone's interested:
A google search turns up other ways as well.
I appreciate the efforts of those that responded.
Comment #10
vm commented