Display_thumbnails # columns Display_thumbnails # columns
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Display_thumbnails # columns

Started by artoonie, December 18, 2006, 09:45:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

artoonie

How would I change the number of display_thumbnails columns without changing the number of regular thumbnails?

The display_thumbs function is:
function display_thumbnails($album, $cat, $page, $thumbcols, $thumbrows, $display_tabs)

I have put:
display_thumbnails('lastup', $cat, 1, 2, 2, false);

but there is still the default number of columns (although the #rows changes)

I have also tried with different combinations of max(2, $matches[2]) with no success.

It seems that $thumbcols/rows only change the number of total pictures displayed. I need to change the number of cells, and there is always exactly 4 (the number i want for ordinary thumbnails).

I hope that all makes sense.

Example - http://www.creamedice.com/pics/lastup.php

artoonie

hmm, let me try simplifying my question:

There are several ways I can think of to do this.
1 - Create a new function with a set number of columns (it'd be okay if not changeable in config)
To do this, I need to know, which functions do I need to use, and in which files? and do i need to rename/redefine all variables, or just the function name?
2 - Remove the "Last uploads" row from the Last uploads page, then making two display_thumbnails()'s, the second one retrieving information from page 2.
This is not as efficient, but it would get the job done. I just need to know where to delete this in themes.inc.php.


Also, I need to know where the HTML href is that displays the user_name in the Thumbnail view. It looks as though this is would be around line 628:
<th><a href="profile.php?uid={USER_ID}">{USER_NAME}</a></th>
but when i set target="_parent", it does not work (from within an iframe)


My website: www.creamedice.com
You can see what I need by looking at the "last uploads" section on the right.


Thanks,
Artoonie

artoonie

No? Then how about including the page? How would I be able to use php on my template.html?

Joachim Müller

Quote from: artoonie on December 24, 2006, 02:29:24 AM
No? Then how about including the page?
You can't use the PHP commands include() nor require() to embedd Coppermine into an existing page.

Quote from: artoonie on December 24, 2006, 02:29:24 AM
How would I be able to use php on my template.html?
Not at all.