Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Display_thumbnails # columns  (Read 3018 times)

0 Members and 1 Guest are viewing this topic.

artoonie

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Display_thumbnails # columns
« on: December 18, 2006, 09:45:30 am »

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
Logged

artoonie

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: Display_thumbnails # columns
« Reply #1 on: December 22, 2006, 07:09:56 am »

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:
Code: [Select]
<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
Logged

artoonie

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: Display_thumbnails # columns
« Reply #2 on: December 24, 2006, 02:29:24 am »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Display_thumbnails # columns
« Reply #3 on: December 24, 2006, 06:14:50 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.

How would I be able to use php on my template.html?
Not at all.
Logged
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 15 queries.