One Table with two columns ->left {GALLERY} and right my .php, HOW ?!? One Table with two columns ->left {GALLERY} and right my .php, HOW ?!?
 

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

One Table with two columns ->left {GALLERY} and right my .php, HOW ?!?

Started by Mozillus, June 16, 2005, 01:03:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mozillus

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

Tranz


Mozillus

Quote from: TranzNDance on June 16, 2005, 04:19:05 PM
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

Joachim Müller

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.

Mozillus

Quote from: GauGau 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.

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

Mozillus

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

Nibbler

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.

Mozillus

Quote from: 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.

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


kegobeer

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.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller


Mozillus

Quote from: GauGau on June 18, 2005, 06:14:04 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

Nibbler

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.

Mozillus

Quote from: 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.

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

blambert

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.

blambert

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.

blambert

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://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.lambertandassoc.com%2Fphotos%2Fimages%2Fscreenshot_1.jpg&hash=612c277e9615b7712f802edcedb51e53029f064b) this is now  
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.lambertandassoc.com%2Fphotos%2Fimages%2Fscreenshot_2.jpg&hash=9fd60b7dd8d13d531450b0e12d87b1b7d74a47f1) this is what I want