forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: Mozillus on June 16, 2005, 01:03:06 pm

Title: One Table with two columns ->left {GALLERY} and right my .php, HOW ?!?
Post by: Mozillus on June 16, 2005, 01:03:06 pm
the template.htm or the theme.php but the i don´t understand :-[ the short explanation in the FAQ.

Which file is responsible for the correct implementation of .php-code, and what code i have to change/add ?!?

Can anyone make a step by step instruction in which is explained how to insert a .php-code (for example Newsletterlogin, or calender or anything else) in the gallery?

Thanks for helping.

Ciao

Mozillus
Title: Re: I want to integrate a .php-code like a newsletter function or else in ...
Post by: Tranz on June 16, 2005, 04:19:05 pm
php code goes in theme.php
Title: Re: I want to integrate a .php-code like a newsletter function or else in ...
Post by: Mozillus on June 17, 2005, 07:42:14 am
php code goes in theme.php

Thanks, and how in detail. The infos in the FAQ´s are to short to understand how i can place a .php action in the theme.php.

Can YOU give me please a detailed list ?!?

The easiest way is, if you tell me how to place the anycontent-File on the left side of the GALLERY-Block

Thanks a lot

Mozillus
Title: Re: I want to integrate a .php-code like a newsletter function or else in ...
Post by: Joachim Müller on June 17, 2005, 08:04:25 am
there can't be an easy answer, as it differs depending on what you want to accomplish. There can't be simple instructions like "paste your custom code here". I suggest you look up the "custom header" postings on this forum to understand how this is done: you basically add a placeholder token in template.html where you want the output of your custom code to appear, then you modify theme.php and add the code that actually makes coppermine execute your custom code at the location where your placeholder is.
To give you more details, you should post what exactly you want to accomplish.
Title: Re: I want to integrate a .php-code like a newsletter function or else in ...
Post by: Mozillus on June 17, 2005, 10:50:12 am
there can't be an easy answer, as it differs depending on what you want to accomplish. There can't be simple instructions like "paste your custom code here". I suggest you look up the "custom header" postings on this forum to understand how this is done: you basically add a placeholder token in template.html where you want the output of your custom code to appear, then you modify theme.php and add the code that actually makes coppermine execute your custom code at the location where your placeholder is.
To give you more details, you should post what exactly you want to accomplish.

Yes it tried and it functions with the original {CUSTOM_HEADER} !!!

But the only thing i want is to place  {CUSTOM_HEADER} or anything else on the right side of the {GALLERY} NOT ABOVE and NOT DOWN UNDER .

I´ve made a table with two rows. In the left row i placed the {GALLERY} and in the right i want to place my .php. It´s very simple but when i took the {CUSTOM_HEADER} it doesn´t function ...

Please help.

Thanks
Title: One Table with two columns ->left {GALLERY} and right my .php, HOW ?!?
Post by: Mozillus on June 17, 2005, 11:54:06 am
Is there anybody outthere who can give me a short answer ?!?

I want to create ONE TABLE-Block with two colums inside. The left colum will show the {GALLERY} and the right column is filled with my .php code.

HOW can i do that ???

Which file must i change for this feature?

HELP

Thanks
Mozillus
Title: Re: One Table with two columns ->left {GALLERY} and right my .php, HOW ?!?
Post by: Nibbler on June 17, 2005, 12:09:14 pm
Don't double post. If you are adding a new placeholder tag after the {GALLERY} tag then you need to be making a custom footer. Same principle as a custom header, just modify the pagefooter function instead.
Title: Re: One Table with two columns ->left {GALLERY} and right my .php, HOW ?!?
Post by: Mozillus on June 17, 2005, 12:36:59 pm
Don't double post. If you are adding a new placeholder tag after the {GALLERY} tag then you need to be making a custom footer. Same principle as a custom header, just modify the pagefooter function instead.

Sorry, but it´s seems not so ease to explan what i mean, and i have very big problems to follow your instructions "Same principle as a custom header ...".

Can you show me a link or give me a code for my problem?

I´ve searched the forum for more than 10 ours but don´t find a solution for my problem.

I only want this ... in my template.htm


| {ADMIN_MENU}                     |
| {LANGUAGE_SELECT_LIST}    |
--------------------------------------
|                   |  my .php         |
| {GALLERY}   |                       |
|                   |  another .php |
|                   |                        |
--------------------------------------

Please help me

Mozillus
Title: Re: One Table with two columns ->left {GALLERY} and right my .php, HOW ?!?
Post by: Nibbler on June 17, 2005, 12:51:08 pm
http://coppermine.sourceforge.net/faq.php#customHeader
Title: Re: One Table with two columns ->left {GALLERY} and right my .php, HOW ?!?
Post by: kegobeer on June 18, 2005, 12:11:13 am
You'll have to edit the template.html file and wrap the {GALLERY} token in a two column table, with {GALLERY} in one <td> and your custom token(s) in the other <td>.  Then you'll have to add the token parsing after the {GALLERY} token parsing in the theme.php file.

Basically that's it, but I haven't tried it.  See what happens.
Title: Re: One Table with two columns ->left {GALLERY} and right my .php, HOW ?!?
Post by: Joachim Müller on June 18, 2005, 06:14:04 am
@Mozillus: don't PM me, read my signature. >:(
Title: Re: One Table with two columns ->left {GALLERY} and right my .php, HOW ?!?
Post by: Mozillus on June 20, 2005, 10:38:27 am
@Mozillus: don't PM me, read my signature. >:(

Sorry, i never read the small printings ...


@NIBBLER

That doesnt work, sorry, when i copy the {CUSTOM_HEADER} in the right column of the splitted table i see only "{CUSTOM_HEADER}" nothing more ...


@kegobeer

What do you mean with "Thenn you´ll have to add the token parsing after the {GALLERY}-token in the theme.php ... Can you show me the correct place at theme.php where must edit the {GALLERY}-part .


Thanks a lot
Title: Re: One Table with two columns ->left {GALLERY} and right my .php, HOW ?!?
Post by: Nibbler on June 20, 2005, 02:13:26 pm
Read what I said : If you are adding a new placeholder tag after the {GALLERY} tag then you need to be making a custom footer. Same principle as a custom header, just modify the pagefooter function instead.
Title: Re: One Table with two columns ->left {GALLERY} and right my .php, HOW ?!?
Post by: Mozillus on June 21, 2005, 07:51:07 am
Read what I said : If you are adding a new placeholder tag after the {GALLERY} tag then you need to be making a custom footer. Same principle as a custom header, just modify the pagefooter function instead.

Thank you Nibbler for the infos. But i am not a code/.php specialist and the description in the FAQs to edit the Header/Footer is absolut incomprehensible for an amateur.

By the way the header is running only on top of the {GALLERY} and the footer is running only below the {GALLERY}. The same goes with ANYCONTENT which you can only place in the admin menu on top or down of the {GALLERY}  :\'(.

If you can show me a way to place {ANYCONTENT} or any other .php  in the template.htm beside the {GALLERY} i will be very happy.

| {ADMIN_MENU}                     |
| {LANGUAGE_SELECT_LIST}    |
--------------------------------------
|                   |  my .php          |
| {GALLERY}   |                       |
|                   |  another .php    |
|                   |                        |
--------------------------------------

Please give me a detailed solution and i am stop annoying you  ;D

Thanks a lot.

Mozillus
Title: Re: One Table with two columns ->left {GALLERY} and right my .php, HOW ?!?
Post by: blambert on July 07, 2005, 10:13:36 pm
Hello,
I have been trying to split the Gallery into 2 coloums for 2 weeks...may have gotten it to work...but still have problems with it all displaying.
Title: Re: One Table with two columns ->left {GALLERY} and right my .php, HOW ?!?
Post by: blambert on July 07, 2005, 10:16:48 pm
Hello,
I have been trying to split the Gallery into 2 coloums for 2 weeks...may have gotten it to work...but still have problems with it all displaying.
Title: Re: One Table with two columns ->left {GALLERY} and right my .php, HOW ?!?
Post by: blambert on July 09, 2005, 07:24:42 am
Custom Header or Footer makes you lose control...when you use them you create a permanent frame....this needs to be done in a lower php routine....like the index.php or anycontent....but I got the anycontent to call up CPMFETCH
<?php
include "include/config.inc.php";
include "coppermine.php";
$objCpm = new cpm('/photos');
cpm_viewRandomMediaFromAlbum(1,3,7);
$objCpm->cpm_close();
?>
Works great but can't move the content to the right of my ALBUM thumbnail....any Ideas?
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.lambertandassoc.com%2Fphotos%2Fimages%2Fscreenshot_1.jpg&hash=612c277e9615b7712f802edcedb51e53029f064b) this is now  
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.lambertandassoc.com%2Fphotos%2Fimages%2Fscreenshot_2.jpg&hash=9fd60b7dd8d13d531450b0e12d87b1b7d74a47f1) this is what I want