forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: jenny20 on January 09, 2006, 08:08:56 pm

Title: can i
Post by: jenny20 on January 09, 2006, 08:08:56 pm
putt writing on my coppermine gallery on the front page?
Title: Re: can i
Post by: sbpoole on January 10, 2006, 12:58:49 am
Yes you can.  Actually there are 2 ways to do this
Either you can download and install the minicms plugin or you
can create an anycontent.php file containing the text you wish

The anycontent.php file would be added by logging in as
the administrator in CPG, going to config and adding
anycontent in "the content of the main page" under album
list view.  Mine is set as

minicms/breadcrumb/anycontent/alblist/catlist/lasthits

the anycontent will be shown at the top of the page
if you want it at the bottom, change it to

minicms/breadcrumb/alblist/catlist/lasthits/anycontent

The minicms plugin is probably the easiest option though.

Hope this helps you




Sample anycontent.php file created with notepad
-----------------------------------------------



<?php

starttable("100%"," ");

?>
<tr><td class="tableb" ><div align="center"> //text will be centered

<font size=-3  color="#c8ffff"><br> //use the font size & color you like

<i>type the text you wish in this line<br> //the <br> starts a new line
and this line<br>
and this line<br>
and this line, etc.<br>
</a></i></font><br>
</td></tr>

<?php
endtable();

?>
Title: Re: can i
Post by: MikePaglia on January 12, 2006, 12:57:34 am
I'm not a coder, so this question may be weird:

Do I create that new file, anycontent.php, and upload it my server in the root directory?

and where can I get the plugin from?

Thanks
Mike
Title: Re: can i
Post by: sbpoole on January 12, 2006, 01:07:40 am
Yes, you create the anycontent.php file and upload it to your root directory.  You can copy and paste the above example and modify it and save it as anycontent.php

If you are speaking of the minicms plugin you can get it at:

http://sourceforge.net/project/showfiles.php?group_id=132063&package_id=146227

If you use the anycontent.php method, you don't have to install the minicms plugin unless you want to.

Sonny
Title: Re: can i
Post by: MikePaglia on January 12, 2006, 04:30:04 am
Thanks for the help.

I like the way your site is set up
Title: Re: can i
Post by: Tranz on January 12, 2006, 06:00:26 am
anycontent.php should already exist in the package.
Title: Re: can i
Post by: MikePaglia on January 12, 2006, 04:50:35 pm
anycontent.php should already exist in the package.

It's not. I'll add it in later.
Title: Re: can i
Post by: Joachim Müller on January 12, 2006, 05:45:39 pm
where did you get the package from?

Anyway, just create a file and name it anycontent.php. Edit it with a plain text editor, save it into coppermine's root folder.
Title: Re: can i
Post by: MikePaglia on January 12, 2006, 06:07:38 pm
it's one of those "one click" installs from my webhost.

M
Title: Re: can i
Post by: Tranz on January 13, 2006, 04:44:40 am
When you upgrade, please do so manually and avoid the one-click option, which brings along its own issues.