Advanced search  

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

Pages: [1]   Go Down

Author Topic: One Table with two columns ->left {GALLERY} and right my .php, HOW ?!?  (Read 7355 times)

0 Members and 1 Guest are viewing this topic.

Mozillus

  • Coppermine newbie
  • Offline Offline
  • Posts: 10

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
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149

php code goes in theme.php
Logged

Mozillus

  • Coppermine newbie
  • Offline Offline
  • Posts: 10

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

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.
Logged

Mozillus

  • Coppermine newbie
  • Offline Offline
  • Posts: 10

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
Logged

Mozillus

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
One Table with two columns ->left {GALLERY} and right my .php, HOW ?!?
« Reply #5 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
Logged

Nibbler

  • Guest

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.
Logged

Mozillus

  • Coppermine newbie
  • Offline Offline
  • Posts: 10

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
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website

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.
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

@Mozillus: don't PM me, read my signature. >:(
Logged

Mozillus

  • Coppermine newbie
  • Offline Offline
  • Posts: 10

@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
Logged

Nibbler

  • Guest

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.
Logged

Mozillus

  • Coppermine newbie
  • Offline Offline
  • Posts: 10

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
Logged

blambert

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22

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.
Logged

blambert

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22

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.
Logged

blambert

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22

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?
(http://www.lambertandassoc.com/photos/images/screenshot_1.jpg) this is now  
(http://www.lambertandassoc.com/photos/images/screenshot_2.jpg) this is what I want
Logged
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 20 queries.