coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Takeo on August 07, 2005, 07:05:17 PM

Title: Tables
Post by: Takeo on August 07, 2005, 07:05:17 PM
Hi there!

I've recently installed Coppermine on my server and I may say I'm pretty much satisfied. But since I don't undestand pretty much of php and html stuff, specially editing the themes I would like to request some help.

There's one block that I've seen on your demo site, with the title "Welcome" which has a text that we should edit. On mine Coppermine I don't see anything like that, even with other themes. I would like to have that block and on the top of the site (wright over the "Category" block).
The other thing I would like to make it's another block, placed wright after the new "Welcome" block with a pub banner which code is the following:

Quote<script type="text/javascript"><!--
google_ad_client = "pub-2647790743959157";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "CCCCCC";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Well, that all. Hope I don't cause any trouble.
Another thing, sorry for y english.

Thanks! :)
Title: Re: Tables
Post by: Casper on August 07, 2005, 07:35:06 PM
That block is the 'anycontent'.  Edit your anycontent.php to include what you want, upload it, and then add anycontent to the 'contents of main page' setting in config.  You can out the ads code in there as well.
Title: Re: Tables
Post by: Takeo on August 07, 2005, 08:48:20 PM
That helped me a lot! :)
Thanks.

But I wanted the code (banner) to be inserted on a block with "Google Ads" as title. :/ But there's another thing, the banner has to be always on top on every sub-pages.
Title: Re: Tables
Post by: Joachim Müller on August 08, 2005, 08:31:47 AM
if it has to be on all pages (not only on the index pages), edit themes/yourtheme/template.html and add the code you have posted there instead of anycontent.php