Tables Tables
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Tables

Started by Takeo, August 07, 2005, 07:05:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Takeo

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! :)

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Takeo

#2
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.

Joachim Müller

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