You see themes have special tags like:
{GAL_NAME}
{LANGUAGE_SELECT_FLAGS}
{GALLERY}
etc.
So, how do I make my own tag like {banners} and it will show content from php,html page?
Anyone?
They are in the pageheader/pagefooter functions.
Can you explain if it is possible to add your own to a theme ?
Yeah. You copy the pageheader or pagefooter functions from the sample theme into your theme.php and modify that.
Okay,I found how to do that and now I need little help for stupid me.
I added {BANNERS} tag and made it to be $bannerpage
Now I need this $bannerpage to be include('banners.php')
If 'banners.php' outputs the banners, try
'{BANNERS}' => include('banners.php')
'{BANNERS}' => cpg_get_custom_include('banners.php'),
Strange I added '{BANNERS}' => cpg_get_custom_include('banners.php'), to my pagefooter at the end, but in theme {BANNERS} remains the same. I dont get errors or anything
If {BANNERS} is before {GALLERY} it belongs in pageheader. If it's after {GALLERY} then it goes in pagefooter.
Aww, I am dumb :(
Where and what do I need to put to banners.php so it shows html ::)
Quote from: johanz on August 18, 2008, 03:14:03 PM
Aww, I am dumb :(
Where and what do I need to put to banners.php so it shows html ::)
Some code, that returns something like
<a href="http://www.google.com"><img src="banner.png" /></a>
??? ??? ???
Okay everything works now,thanks. You can lock if needed
Mark the thread yourself as solved by clicking on the hook in your first post.