theme.php... theme.php...
 

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

theme.php...

Started by crion, February 01, 2006, 03:55:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

crion

Hi!

Back again. My "slim" theme looks nice, but its not perfect yet, if you like, have a look at [1].
- One thing I'd like to have is a category-list with two columns. Tried to fiddle around with code from the sample theme.php inserted into my theme.php, but I think thats too hard - because you'd have to display two different main categories in one table row, and then the right sub-cats below them. Maybe anyone who nows the code could give an estimation about how long that would take approximately?
- Another thing is that in categories with many albums, where you've got tabs that lead you to the next x albums, or the same problem in albums with many images, where you've got many pages, the links to the following pages are a little "hidden" far away on the right side. Maybe it would be nice to position them centered. So I searched for the variable, that seemd to be responsible for that ($template_tab_display), and copied its 7 lines including comment into my theme.php. Without modifying it, just by inserting it, my theme looked different on the screen compared to the theme without that lines of code in it. How can that be possible? I thought that if a variable was not used, it is taken out of themes.inc.php? And there the variable seems to get exactly the same content as in my theme.php or in the sample theme.php.
The new result on the screen: The tabs are filling the whole width of the page, the "xx albums on x pages" is gone. Not exactly what I wanted, and - I don't know why it is there. If I remove the copied-in variable, everything is fine again...
- The last oddity I ran into is that if in the Album list, which has three columns in my gallery, one table-cell does not contain an album, it is filled with a mysterious spacer-image with 102 pixels in heigth. So that makes a "lot" of unused space, because most of my album front-images are only 75 px in heigth. How is that spacer calculated, and what does it do?
Again, I tried to find it out for myself, so I copied what I thought could be the right thing out of the sample theme.php into my theme.php - and again, without modifying *anything*, I had some white space below my last album's front-images.
How's that possible? Is there another 2nd inc-file that is accessed to fetch data for the template.php?

I hope you can understand my little problems... nothing serious, but... I'd like to know ;)

Thank you!

regards,
   Chriss

[1]http://photos.crion.de/

donnoman

if you need some really advanced functionality and just twiddling with the theme won't cut it, graduate to using a plugin.

Look at CPGOcat as a start, it's a pretty heavy modification of category displays.

azjennifer

hello,

where can i find:

CPGOcat ?

azjt

Tranz