coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: MisterX on March 21, 2007, 06:14:01 AM

Title: How to add username in part of the theme
Post by: MisterX on March 21, 2007, 06:14:01 AM
Hello,

I've made a custom theme for a site. There is one thing which I would like to do at this point which is to put some text on the page that says "Hello *username*" or something generic like that.

Where can I get this information so that I can stuff it in my template?

I searched yesterday and the day before but didn't find anything like what I am looking for.

Title: Re: How to add username in part of the theme
Post by: Joachim Müller on March 21, 2007, 08:24:01 AM
Use anycontent.php as suggested in http://forum.coppermine-gallery.net/index.php?topic=39061.msg185207#msg185207 or http://forum.coppermine-gallery.net/index.php?topic=11619.msg52319#msg52319 (and a bunch of similar threads).
Title: Re: How to add username in part of the theme
Post by: MisterX on March 22, 2007, 12:46:33 AM
That didn't do anything for me. How does this file get included because I suspect that the code inside is not running.
Title: Re: How to add username in part of the theme
Post by: MisterX on March 22, 2007, 05:57:33 AM
Well I scratched around and the only way I could get something remotely close to what I needed was to...

Go to  Config --> Album List View --> The content of the main page

Inside that text box area I put in:

anycontent/breadcrumb/catlist/alblist/random,2/lastup,2

Which shows my anycontent on the index page just before all the albums and just after the menu.

Close enough for me but would have preferred to put it inside my template somehow so that I can place it exactly where I want it.