[Solved]: {GALLERY} etc questions [Solved]: {GALLERY} etc questions
 

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

[Solved]: {GALLERY} etc questions

Started by soaknfused, June 02, 2008, 02:26:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

soaknfused

I am in the process of converting a WP theme for the first time and need to know where the {GALLERY} etc tags pull their stuff from. I have a few layout issues and nothing in the css will change it (height of .tableh1) I have some graphics I want to use as the background but they are taller than the table is, so they get cut off short. I currently have a very empty template.html file. I assume the default gallery layout is being pulled from somewhere else? My site is http://www.distads.com/gallery if anyone wants to take a look at it and give me some guidance. Also, in album view the image I use for .tableh1 shows up full height, but it is repeated. If I am too vague, please let me know and I will provide more information. I am new to all of this, so please be gentle. My site is a simple family site with integrated/bridged phpbb3, wordpress and coppermine sharing a common database.

Thanks in advance.

steveeh131047

Soaknfused,

A couple of general points which may help you in the future:

1) The dynamic content for the {tags} is generated by core PHP code which, ideally, you should not modify; for one thing you have to remember where/what the mods are anytime you upgrade! But most of the code you might need to modify is contained in sample/theme.php. You copy the relevant sections from sample/theme.php into yourtheme/theme.php and modify them there. CPG will implement any code in yourtheme/theme.php in preference to its core code.

2) A lot of the styling/layoutcan be found in style.css, but there is also quite a bit left in the dynamically-generated HTML, so you sometimes have to "dig" a bit to find it.

I'm not sure what your specific problem is, but I see strange background image effects in some .tableh1 instances. My understanding is that the height of a .tableh1 table is not uniquely defined, but will simply reflect the size of its content. You should be able to achieve the effect you're looking for by some combination of the CSS "background:" styling and/or the size of images/cellpic1.gif.

If you have a small image which you don't want to tile vertically, either make the image bigger or change "repeat" to "repeat-x".

As far as I know there's not a way to use CSS to make the table expand to the height of the background image. It's not much help now, but in CSS3 there is a command "background-size" which will scale the background image to fit the box.

Hope some of that helps,
Steve


soaknfused

Figured out the tableh1 thing, simply added padding to the bottom on the css. A little experimentation and its just how I want it. All I have left to do is some final tweaking of the css, deleting the entries that aren't needed and I will be all done with this one.